latex导入png

  1. Use the graphicx package with the following command in the preamble:
          \usepackage{graphicx}     
    Yes, there are others but this is the best and most widely used.
  2. Insert the figure: using the figure environment as follows:
    \begin{figure}[htb]        
     \center{\includegraphics[width=5cm]  {pic-name.png}}        
     \caption{\label{1} My figure.  An example of a cool figure}      

    \end{figure}

编译的时候不要使用latex ./hello.tex,否则会报Latex Error cannot determine the size of graphic的错误

而应该使用pdflatex ./hello.tex

或者PDFTeXify


你可能感兴趣的:(论文)