Can we set out-width and out-height for latex figures? #2415
Unanswered
shabbychef
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I noticed the same thing. This is a difference compare to using knitr in R Markdown.
{fig-pos='H' width=\\textwidth} It seems pandoc does not support setting Though you can use #| out-width: "50%"
#| out-height: "32%" \includegraphics[width=0.5\textwidth,height=0.32\textheight]{test2_files/figure-pdf/unnamed-chunk-3-1.pdf} I think I'll open an issue about the latex string passed to width to see what we can do. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
It seems that the options
have no effect on .pdf output: the figure is not half sized; when I save the intermediate .tex file, there are no "textwidth" in the doc, etc.
Is this expected? How should one set the output figure width in pdf output?
Beta Was this translation helpful? Give feedback.
All reactions