Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a few graphs for a lab report I am writing and was wondering how you would go about import these files into LaTeX. They are PostScript files so LaTeX accepts them.

share|improve this question
    
The "normal"/original LaTeX compiler which produces DVI output will accept PostScript files ((E)PS) and pass them along to the DVI2PS converter (e.g. dvips). However, if you want PDF output it might be necessary to convert them to PDF first using epstopdf. Newer versions of the LaTeX compiler try to do this automatically. –  Martin Scharrer Mar 15 '11 at 8:50

1 Answer 1

up vote 8 down vote accepted

This is very simple use a document like this

\documentclass{article}

\usepackage{graphicx}

\begin{document}
\includegraphics[width=1\textwidth]{graph-in-eps-format}
\end{document}

Of course you may want to have a caption so you should put it in a floating environment

\documentclass{article}

\usepackage{graphicx}

\begin{document}
\begin{figure}
\includegraphics[width=1\textwidth]{graph-in-eps-format}
\caption{A graph}
\label{a-label.for-reference}
\end{figure}
\end{document}

Simple things like this are usually covered in every basic latex introduction such as e.g. l2short.pdf

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.