Graphics, Figures & TablesIncorrect positioning using includegraphics + dvipdf

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Alain Bruguières
Posts: 1
Joined: Fri Nov 13, 2015 9:54 am

Incorrect positioning using includegraphics + dvipdf

Post by Alain Bruguières »

Hello,
I'm new here, I have a problem with figure inclusion I never had before. I have a latex document with eps figures which I include like this:

Code: Select all

\begin{center}
\includegraphics[width=1\textwidth]{fig1}
\label{fig1}
\end{center}
and the dvi output is perfect, but when I run dvipdf, the figure is moved to the left, into the margin, and looks as if it did not take into account the options.
Thanks in advance for any forthcoming help.
Cheers, Alain
Last edited by Stefan Kottwitz on Fri Nov 13, 2015 11:42 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Incorrect positioning using includegraphics + dvipdf

Post by Johannes_B »

Welcome,

it is hard to guess what goes wrong. Can you post a very small but compilable example along with the figure that shows the problem?

Off topic: The figure isn't numbered, the label or any reference to that label will show you a seemingly random number, likely that of the current section.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Incorrect positioning using includegraphics + dvipdf

Post by Stefan Kottwitz »

Hi Alain,

welcome to the forum!

You could try dvipdfmx instead of dvipdf. Or use dvips and ps2pdf.

Stefan
LaTeX.org admin
Post Reply