[texhax] a 1 inch .pdf == 4.30554pts?
William Adams
will.adams at frycomm.com
Thu Dec 10 20:53:08 CET 2009
I'm measuring boxes again, and getting some odd dimensions.
First, create a .pdf using the following logo.tex file:
\documentclass{article}
\usepackage{calc}
\usepackage{geometry}
\geometry{
paperwidth=1in,
paperheight=1in,
margin=0mm}
\begin{document}
\noindent\begin{picture}(0,0)\put(0,0){\rule[\baselineskip-1in]{1in}
{1in}}\end{picture}
\end{document}
Then pull it into a second .tex file, and the measured size varies
according to whether or no it's been pulled into a \savebox?:
\documentclass{article}
\usepackage{calc,graphicx}
\usepackage{geometry}
\geometry{
paperwidth=3in,
paperheight=3in,
margin=0mm}
\begin{document}
\newsavebox{\scaledLogo}
\newlength{\LogoVSize}
\sbox{\scaledLogo}{\includegraphics{logo.pdf}}%
\settoheight{\LogoVSize}{\scaledLogo}%
\usebox{\scaledLogo}
\the\LogoVSize
\settoheight{\LogoVSize}{\includegraphics{logo.pdf}}
\the\LogoVSize
\includegraphics{logo.pdf}
\end{document}
For some reason \LogoVSize == 4.30554pt when measuring the \savebox,
but 72.2698pt when measuring the graphic directly --- why is that?
William
--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.
More information about the texhax
mailing list