Replies: 5 comments 5 replies
-
This seems to be a Note that in your first example, the first code block is not executable as it's missing brackets. I believe you get the exact same behaviour with
In the end, if the |
Beta Was this translation helpful? Give feedback.
-
Thank you, @mcanouil. I think this should fix it:
adding this to the |
Beta Was this translation helpful? Give feedback.
-
Description
So: I have a quarto book project. I have a simple
index.qmd
, sayand then my first real chapter, say a file
chapter1.qmd
When I compile to pdf (from Rstudio or terminal), the "normal" image gets stored into chapter1_files/figure-pdf/figure1.pdf, but the images generated by tikz get stored in the root of my project (eg under /figure2.pdf). The resulting tex file points to the correct path for the two images, which get rendered OK, but I don't looove this because it clutters the root and makes it a bit more complicated to manage the project...
Also, I would want to output to both pdf and html, so I have a slight issue when compiling to html because all the files processed by tikz are natively pdf, which wouldn't work. I have in the past used a hook in a
setup.R
file (which I would load in the .Rprofile) to do something like(or versions thereof... I tried to force the png files and pdf files to be stored under
_files/figure-pdf/...
but to no avail...Ultimately, nothing is really broken, but I can't seem to force quarto to behave how I want (which I appreciate may be unreasonable...). Do I need to live with the fact that some images are stored away and others must remain in the main root of the project?
Many thanks and apologies if I'm missing something obvious!
Gianluca
Beta Was this translation helpful? Give feedback.
All reactions