rstudio / rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
https://bookdown.org/yihui/rmarkdown-cookbook/
578 stars 224 forks source link

May I ask how to add the original latex code #388

Closed zoushucai closed 1 year ago

zoushucai commented 1 year ago

For example, sometimes I want to directly insert raw latex code into the rmd file to generate a PDF, but I don't know how to do it? Not to display the latex code, but to compile and output the raw latex code

cderv commented 1 year ago

This is explain in the book already https://bookdown.org/yihui/rmarkdown-cookbook/raw-latex.html

I believe this is what you are looking for. Please reopen if not

zoushucai commented 1 year ago

believe this is what you are looking for. Please reopen if not

Thank you. I know this, but later I realized that it turned out to be an issue with the visual mode of Rstduio

cderv commented 1 year ago

later I realized that it turned out to be an issue with the visual mode of Rstudio

For this issue you can open in the rstudio IDE repo then. Thanks !