jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
210 stars 61 forks source link

Hide the website header when printing #1581

Open lorenzo-rovigatti opened 3 weeks ago

lorenzo-rovigatti commented 3 weeks ago

Would it be possible to add a site option that can be enabled to hide the website header when printing?

Proposal

I'm currently writing some notes for a university course and the latex export does not work very well (as it does not support subfigures, and has issues with some math commands that works in the browser but fail when a pdf is built). As a result, I have tried directly printing the website, and the result is satisfactory, but for one thing: the website header covers the first lines of each page, as shown here:

Image

I propose to add an option to hide the header when printing to fix this problem.

agoose77 commented 3 weeks ago

@lorenzo-rovigatti have you reported the commands that do not work in export? It's possibly due to our use of KaTeX which supports different sets of commands to LaTeX. In any case, bug reports would be helpful!

lorenzo-rovigatti commented 3 weeks ago

Thanks for the answer! I plan to do it, but it's going to take some time to prepare minimal reproducible examples, which is probably not going to happen during this semester.

agoose77 commented 3 weeks ago

@lorenzo-rovigatti I think the easiest thing would be to share just the equations. If you are happy to, would you be comfortable building the site data (myst build --site) and sharing the result of _build/site as a zip?