Skip to content

pandas dataframe to latex table Solved! #863

Discussion options

You must be logged in to vote

I found a solution:

the latex builder does not handle the "text/html" mimetype
if this one is added: "text/html"
https://github.com/martinlarsalbert/MyST-NB/blob/master/myst_nb/core/render.py#L1257

        "latex": {
            "application/pdf": 10,
            "image/png": 20,
            "image/jpeg": 30,
            "text/latex": 40,
            "text/markdown": 50,
            "text/html":55,
            "text/plain": 60,
        },

The conversion pandas dataframe to table works in LaTeX also!
This was also explaining why this previously worked in html, but not in latex.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martinlarsalbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant