XeTeX ⇒ PDF graphics and xelatex
PDF graphics and xelatex
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
PDF graphics and xelatex
can you please post a minimal working example that allows us to reproduce the odd behaviour mentioned? Posting the actual image as an attachment would be ideal.
PDF graphics and xelatex
Code: Select all
\documentclass[a4paper, 11pt]{article}
\usepackage{graphicx}
\usepackage[no-math]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\begin{document}
\begin{figure}
\centering
\includegraphics{UsefulEntanglementGraph.pdf}
\caption{The graph showing useful entanglement $E_u$ as a function of the probability of erroneous detection $p$.}
\label{fig:UEGraph}
\end{figure}
\end{document}
- Attachments
-
- UsefulEntanglementGraph.pdf
- The file that is not displayed.
- (4.25 KiB) Downloaded 769 times
Re: PDF graphics and xelatex
I did a test with the code and image provided and everything went OK (I attach the resulting pdf file). Do you get any warnings/errors? after compilation of your test code?
- Attachments
-
- test.pdf
- (12.07 KiB) Downloaded 916 times
Re: PDF graphics and xelatex
I am using the programme Kile in Linux to compile the above file with the TeXLive distribution that comes with Fedora 10. I had to set up kile manually to use xelatex and here are the settings I used:
command: xelatex
options: -output-driver=xdvipdfmx -papersize="a4" %S.tex
Are you using any options when you compile the file? Maybe the command line options above could be at fault?
Edit: What I just noticed is that another picture, that is also in PDF format, appears like normal, in the same document where the PDF graph does not appear - I am now attaching a document that shows this effect. Another important thing that I discovered is that Fedora 10 is using xetex version 0.996.
PDF graphics and xelatex
I compiled directly from the command line usingmeznaric wrote:...
command: xelatex
options: -output-driver=xdvipdfmx -papersize="a4" %S.tex
Are you using any options when you compile the file? Maybe the command line options above could be at fault?
Code: Select all
xelatex test.tex
Re: PDF graphics and xelatex
When I first installed xetex I had some problems with mathematical fonts and so I installed the newest fontspec package from CTAN (which fixed the problem). Could this package now be causing the graphics problem? A friend of mine, on Fedora 11, has done the same thing and seems to be suffering from the same PDF problem.
Re: PDF graphics and xelatex
Re: PDF graphics and xelatex
Open a console and type in:
xelatex -v
to see what version it's using. I'd be interesting in learning which version(s) are working for you and which aren't.
PDF graphics and xelatex
Edit: Solved Problem with pdfcrop.
Code: Select all
pdfcrop file.pdf
Kwas
- Attachments
-
- figureminbsp.zip
- (178.61 KiB) Downloaded 442 times