Graphics, Figures & TablesFigure does not appear (using \special for importing)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hami9293
Posts: 2
Joined: Sun May 12, 2013 9:45 pm

Figure does not appear (using \special for importing)

Post by hami9293 »

I have been given a large latex file that uses an old style of figure importing.
Here is an example:

Code: Select all

\begin{figure}
\unitlength 1cm
\begin{picture}(13.5,6.5)(0,0)
\put(-0.0,-.45){\special{psfile=Images/fdata3a.eps   hscale=50 vscale=50}}
\put(7,-.45){\special{psfile=Images/fdata3b.eps   hscale=50 vscale=50}}
\end{picture}
\caption{Example1}
\label{fig:example1}
\end{figure}
When I compile this code on my computer the figure does not appear in the pdf file. Whereas, the same code would work on my colleague's computer.

Does anyone have any idea where the problem is?
I am not looking to change the code to \includegraphics , because there is just too many pictures.

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: Figure does not appear (using \special for importing)

Post by Johannes_B »

You cannot compile to pdf directly, you have to use latex in dvi-mode, and convert the result using
dvips -> ps2pdf
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply