latex pdf features - output latex tables, global code settings #1457
Unanswered
actsasgeek
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
I did not tested yet but it seems you want to output raw result from you python code chunk. Without setting this, the output of the chunk will be including in special code output container and not consider as raw text (raw LaTeX or raw Markdown) Just a hint |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I just learned about Quarto recently and I'm out kicking the tires. I publish several sets of course notes from Jupyter Notebooks as PDF (currently using jupyterbook, former nbsphinx user).
There are two questions/issues I've run into and perhaps they have a solution.
Code Generated Table Display in PDF
I find that I'm running into several of the same problems I have experienced with other publishing systems. It is very, very convenient to build a table in code...but nearly impossible to output one properly.
using raw latex
raw latex works in a Markdown cell but not in code output:
will output
but it just gets directly printed in the PDF.
Using display_latex
doesn't work either. In fact, the output is completely omitted from the PDF.
Markdown
Outputting markdown instead doesn't work and Markdown does not support Math mode.
Use a Pandas DataFrame
Somehow, Pandas DataFrame's do get rendered correctly. I would guess that there's some repr_latex magic at wor. I would think that display_latex would set the same field in the json. The issue here, as with markdown, is that embedded math isn't properly rendered:
and DataFrames are a poor substitute for a properly formatted table.
I would sort of expect some kind of code cell level directive like:
where the values might be html, latex, markdown, and default to raw
Global Code Cell Declarations
I was sort of surprised that code-overflow and some other code cell declarations aren't global. It seems like one would want to be able to set code overflow once rather than for every cell. But maybe I did it wrong...
Beta Was this translation helpful? Give feedback.
All reactions