Graphics, Figures & Tables ⇒ Inserting an eps file
-
- Posts: 5
- Joined: Sun Aug 09, 2009 12:41 am
Inserting an eps file
\documentclass[letterpaper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{trig}
\usepackage{graphics}
\graphicspath{{e:\graphs}}
\item Two inequalities are graphed below: Which set of inequalities does this graph represent?
\begin{figure}[h]
\centerline{\includegraphics[height=2in]{inequalities.eps}}
\end{figure}
\begin{enumerate}
\item $y\leq-5x+1$, $y\geq3x-2$
\item $y\geq-5x+1$, $y\leq3x-2$
\item $y\geq-5x+1$, $y\geq3x-2$
\item $y\leq-5x+1$, $y\leq3x-2$
\\[2]
\end{enumerate}
\end{document}
Can anybody help me with this issue? Thanks in advance.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Inserting an eps file
use LaTeX instead of pdfLaTeX, or use for instance the epstopdf package.
Stefan
Re: Inserting an eps file
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Inserting an eps file
pdflatex doesn't accept the EPS format for graphics files. As Stefan already mentioned, you can convert it by using the epstopdf command line tool or the epstopdf package for conversion "on the fly". Note that the compiler will need shell escape for the latter one. The search function of the forum will yield more details as there are already solutions to this issue.
The \item command only works in list environments like description, enumerate or itemize. Thus there should be an error at it's first occurrence.
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10