General ⇒ How do I show a picture
How do I show a picture
\begin{figure*}[tcb] \centering \includegraphics[width=1.0\textwidth]{result2} \caption{The input test images. Images 7 and 8 are arbitrarily collected in the internet.} \label{fig:result2} \end{figure*}
I had put the result2.eps in the root for directory.
Why can I not see the picture of "result2.eps"?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
How do I show a picture
Code: Select all
\documentclass{report}
\usepackage{graphicx}
\DeclareGraphicsExtensions{.eps}
\begin{document}
\begin{figure}[htb]
\centering
\includegraphics[width=.5\textwidth]{result2}
\caption{test image}
\label{fig:result2}
\end{figure}
\end{document}
2) Process the document using latex, not pdflatex.
3) If you want to use pdflatex directly, then you should work with images with extensions .pdf .png .jpg
Re: How do I show a picture
\usepackage{graphicx}
\DeclareGraphicsExtensions{.eps}
I add the three lines and it appears an error as below:
LaText Error: unkown graphic extension .eps
See the LaTex manual or LaTex Companion for explanation.
Type H <return> for immediate help.