Graphics, Figures & TablesMissing text in figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kennedy
Posts: 2
Joined: Fri Jun 04, 2010 1:43 pm

Missing text in figure

Post by kennedy »

I have produced a graph in R which I have saved as a PDF file. When I inspect the PDF file it looks good. But when I insert it into Latex the axis labels and the header (and all other text and numbers) are gone. The axis and graph itself is there.

I am using Texworks on Windows and have the following in my preamble

Code: Select all

\usepackage[pdftex]{graphicx,color}
To include the PDF file (pam.pdf) i write

Code: Select all

\begin{figure}[ht]
\includegraphics{pam}
\caption{ABCD}
\end{figure}  
I have done the same thing on a Mac and it worked fine.


Thanks

Henrik
Last edited by kennedy on Wed Jun 09, 2010 10:38 am, edited 1 time in total.

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Missing text in figure

Post by localghost »

If present on Windows, use »pdftops« and afterwards »pstopdf« to get a proper file.


Best regards and welcome to the board
Thorsten
kennedy
Posts: 2
Joined: Fri Jun 04, 2010 1:43 pm

Re: Missing text in figure

Post by kennedy »

Two solutions to this problem is:

1. Change PDF viewer.
2. Use "pdftops" and then "pstopdf".

Thanks to Thorsten for providing the second solution.


Henrik
Post Reply