Revision history [back]

How to include PDF image from Sage into LaTeX document (scale issue)?

Hello!

I have a PDF illustration prepared in Sage:

p = plot(sin, 0, pi, fontsize=12, axes_labels=('ABCDE', ur'$ABCDE$'))
p.save('/tmp/sage1.pdf')


And the following LaTeX document:

\documentclass[12pt]{article}

\usepackage{graphicx}
\graphicspath{{/}}

\begin{document}
ABCDE $ABCDE$ \\
\includegraphics{sage1.pdf}
\end{document}


The problem is that the font size is inconsistent - is is clearly bigger in the picture than in document. I know about width parameter for includegraphics and other scaling option, but how to select the scale? Or, more generally, how to include PDF graphics to get exactly the same font size?