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.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- 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