Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support footnotes #298

Closed
liZe opened this issue Feb 23, 2016 · 10 comments · Fixed by #1509
Closed

Support footnotes #298

liZe opened this issue Feb 23, 2016 · 10 comments · Fixed by #1509
Labels
feature New feature that should be supported sponsored Issues sponsored to be resolved faster
Milestone

Comments

@liZe
Copy link
Member

liZe commented Feb 23, 2016

No description provided.

@liZe liZe added the feature New feature that should be supported label Feb 23, 2016
@liZe liZe mentioned this issue Feb 23, 2016
@sudoremo
Copy link

Is there a workaround for footnotes at this moment? We're thinking of switching from LaTeX to WeasyPrint, and footnotes appear to be the only feature missing. Thanks for your help 👍

@liZe
Copy link
Member Author

liZe commented Sep 24, 2019

Is there a workaround for footnotes at this moment?

There's unfortunately no real workaround, unless you know the maximum height of your footnotes and thus can put them on the bottom page margin. (That's ugly.)

What we have to support is page floats, see #259.

@liZe
Copy link
Member Author

liZe commented Sep 24, 2019

Oh, and there's a section dedicated to footnotes in GCPM.

@sudoremo
Copy link

Great, thanks for your support 😃

@fabiobatalha
Copy link

Is this feature in the roadmap of WeasyPrint?

@Tontyna
Copy link
Contributor

Tontyna commented Oct 31, 2019

Implementing page floats will require a complete redesign of WeasyPrint's layout concept. Rendering the pages first and filling the margin boxes afterwards won't work anymore. A huge task.
But when somebody undertakes it I hope we'll finally get parallel flows, too.

@Stigjb
Copy link

Stigjb commented Nov 30, 2020

Support for footnotes would be really useful, especially if the required changes in Weasyprint would also lead to support for other floated content. It's been a year since the last comment, is there anything on the roadmap that leads in this direction? Are there any tasks where new contributors could be helpful, for instance?

@liZe
Copy link
Member Author

liZe commented Nov 30, 2020

It's been a year since the last comment, is there anything on the roadmap that leads in this direction?

The feature is listed in the roadmap, but there’s no specific date yet. As explained in that article, we’ll ask what’s important for users as soon as Cairo has been removed. For sure, this feature will probably be in good place judging from the 👍🏼s.

Are there any tasks where new contributors could be helpful, for instance?

Unfortunately, that’s not the easiest feature to add for new contributors. The paged layout features and modern layouts (and even proper right-to-left support) will probably need #36 to be solved before. It may be the next big change to come in WeasyPrint.

If anyone wants to start contributing, a good start is to solve one of the good first issues. And if you’re not fond of Python and CSS specs, donations really help us to give more time and love to WeasyPrint.

@grewn0uille
Copy link
Member

grewn0uille commented May 5, 2021

Hello!

(The survey is now closed. Thanks for all your answers! We’ll share the results soon 😉)

If you’re interested in footnotes, we created a short survey where you can give a boost to this feature and help us to improve WeasyPrint 😉

Vote for it!

@grewn0uille grewn0uille added the sponsored Issues sponsored to be resolved faster label Oct 20, 2021
@grewn0uille grewn0uille pinned this issue Oct 20, 2021
@liZe liZe added this to the 54.0 milestone Nov 10, 2021
@liZe
Copy link
Member Author

liZe commented Dec 11, 2021

Thanks to 💜 @code-and-co 💜, footnotes are now supported by WeasyPrint.

What’s missing from the specification:

  • the compact value of footnote-display,
  • resetting the counter value for each page (because the footnote counter is not a page-based counter).

Everything else should work correctly. Don’t hesitate to test and give us feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature that should be supported sponsored Issues sponsored to be resolved faster
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants