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 table styles for export PDF #1678

Open
Gijsreyn opened this issue Nov 26, 2024 · 5 comments
Open

Support table styles for export PDF #1678

Gijsreyn opened this issue Nov 26, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Gijsreyn
Copy link

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.

@Gijsreyn Gijsreyn added the enhancement New feature or request label Nov 26, 2024
@agoose77
Copy link
Contributor

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
Copy link
Author

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

@Flor1sHendriks
Copy link

@agoose77 @Gijsreyn we experience the same issue. Is this an issue in the underlying library or something in Jupyter-book / Mystmd?

@agoose77
Copy link
Contributor

We need more information here! PDF exports are performed using templates that generate typst or latex. Could you point to a reproduce that we can inspect (I.e a github repo)?

Thanks!

@Gijsreyn
Copy link
Author

Gijsreyn commented Jan 7, 2025

Hey @agoose77. Sorry for the delay in response. Holidays, christmas, you know the drill.

Thanks to @Flor1sHendriks, we created a public repository. You can find it in this link.

If you need any additional information, just hit me or Floris up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants