Pass information from latex to python code #26
Answered
by
tobiasBora
dflvunoooooo
asked this question in
Q&A
-
Is it possible to pass information from latex to python. I would like to set the plot width to the textwidth of latex. |
Beta Was this translation helpful? Give feedback.
Answered by
tobiasBora
Feb 19, 2024
Replies: 1 comment 3 replies
-
Yes, just create a new placeholder containing something like:
(this requires the very latest version from master, the older version had MWE:
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
dflvunoooooo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, just create a new placeholder containing something like:
(this requires the very latest version from master, the older version had
\lenToCm
but you need to manually trim thecm
at the end) You can choose using the optional argument the unit, for instance matplotlib expects inches:MWE: