R knitr PDF problems with \includegraphics

后端 未结 2 1405
眼角桃花
眼角桃花 2021-01-07 21:27

Using a new empty .rmd document, this code works:

![](RainbowDolphin.png)
\\begin{center}
\\includegraphics[width=4in]{RainbowDolphin.png}
\\end{center}
         


        
2条回答
  •  长情又很酷
    2021-01-07 22:19

    You may let Pandoc know that you have graphics in this document by specifying the YAML metadata:

    ---
    graphics: yes
    ---
    

提交回复
热议问题