jupyter-book / mystmd

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

Support table styles for export PDF #1678

Open Gijsreyn opened 1 day ago

Gijsreyn commented 1 day ago

Enhancement

While testing the new alpha release for Jupyter books, we noticed unusual formatting issues when exporting tables to PDF. This problem doesn't occur in Sphinx, as it supports table styles for PDF exports.

To make it successful and migrate to v2, we really would love to see table styles coming to MySTMD for PDF exports.

P.S. The documentation said the following indeed: Styles are Only for HTML CSS styles are currently only used for HTML outputs and are not carried through to all export targets (e.g. LaTeX) and are primarily used for web.

agoose77 commented 1 day ago

Could you clarify what you specifically mean by table styles? i.e. colour, colspan, etc.

Could you also clarify the template that you're using for PDF exports (I'm curious to determine whether it is LaTeX or Typst). Thanks!

Gijsreyn commented 1 day ago

Oops, I could have been more specific. What we mostly look for is widths, heights, etc...

In v1, we use the --builder pdflatex. In v2, I guess it is pdf+tex. I also tried the one from the tutorial in: https://next.jupyterbook.org/start/export-pdfs