vincentdoerig / latex-css

LaTeX.css is a CSS library that makes your website look like a LaTeX document
https://latex.vercel.app
MIT License
2.72k stars 124 forks source link

Printing sidenotes #43

Open samarulmeu opened 2 years ago

samarulmeu commented 2 years ago

Hello to you all!

This is more of a question than a issue. Is there a possibility to have the sidenotes/marginnotes appear when printing? I have no idea how to enable this.

Thank you very much!

vincentdoerig commented 2 years ago

Hi! Yes, it is indeed possible with the @media print { ... } query in your stylesheet. If I have the time I will try to make them appear when printing. In the meantime, here is an article on the print media query: https://benfrain.com/create-print-styles-using-css3-media-queries/.

PS: If you do end up writing print styles, feel free to open a PR or send them over so that we can add them to LaTeX.css :).

samarulmeu commented 2 years ago

Hi @vincentdoerig!

I know about @media print I just did not found information about how to handle the footnotes (were to put them in the page). If you can give me at least a hint, I could try to get something done.

Thank you!

vihuna commented 10 months ago

I have been playing here with Paged.js to make a "printable" design for a LaTeX.css document.

You can see here the pdf file obtained: LaTeX.css — Make your website look like a LaTeX document.pdf.

Some Notes:

Finally, what do you think? Is this worth working on?

vincentdoerig commented 10 months ago

Thanks for putting so much thought into this @vihuna! I really like the idea of having (nice!) printable documents, however, I would like to keep the "main" purpose of the project as simple as possible. A reference on the documentation to a secondary page (similar to the languages feature) would be good in my opinion. People interested in adding this "extension" can then read through the dedicated documentation. Regarding the associated styles, these should ideally be in a separate CSS file to avoid cluttering the main styles.

If you want to work on this, feel free to do so!! I will gladly have a look and give feedback once you open a PR!