简体   繁体   中英

rmarkdown html embed pdf/eps

I'm trying to make an R markdown HTML document in Rstudio. I have a number of images that I have in pdf and eps format. I'm trying to embed these into the output with the \\includegraphics{path to image} command. However, the output HTML doesn't show anything.

R-markdown is also a markdown. Markdown itself doesn't have a mechanism for embedding a PDF, however, Markdown accepts raw HTML in its input and passes it through unaltered.

There are many ways to do this, one of the recommended ways is-

 <object data="http://www.africau.edu/images/default/sample.pdf" type="application/pdf" width="700px" height="700px"> <embed src="http://www.africau.edu/images/default/sample.pdf"> <p>This browser does not support PDFs. Please download the PDF to view it: <a href="http://www.africau.edu/images/default/sample.pdf">Download PDF</a>.</p> </embed> </object>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM