I am trying to insert a pdf image into an r markdown file. I know it is possible to insert jpg or png images. I was just wondering if it is also possible to insert a pdf image.
Sorry, I found that there is a similar post before: Add pdf file in Rmarkdown file
Basically, I can use something like below works well for the html output:
And something like below works well for the pdf output:
(1)possible solution
\begin{center}
(2)possible solution
\includegraphics[width=8in]{myFirstAlignment2.pdf}
\end{center}
![Alt](myFirstAlignment2.pdf)
The myFirstAlignment2.pdf
should be replaced with path\myFirstAlignment2.pdf
if the pdf file is not in your working directory.