[OS X TeX] pdf the size of printed text?

Ross Moore ross at ics.mq.edu.au
Wed Oct 4 00:51:23 CEST 2006

Hi David, Maarten, and others.

On 02/10/2006, at 4:41 PM, Maarten Sneep wrote:

> On 2-okt-2006, at 4:51, david craig wrote:
>> How do I persuade pdftex to produce output that is just as large  
>> as the are covered by the text and no larger, in the way that  
>> LaTeXiT does when you drag TeX'd output out of its output window??
> See http://mactextoolbox.sourceforge.net/articles/baseline.html for  
> various methods.

All these methods work, but are way more complicated than necessary.
  pdfTeX can do it directly.

See the PDF examples at:

These are multipage PDFs containing at least one page that
is sized to fit the content.

The examples also have a link to download the (La)TeX source.
There's about 10 lines of TeX coding towards the end
that does the \shipout of a box with the correct size and

Here are the relevant bits:


   ... your LaTeX material ...
   ... properly sized and boxed ...

     \framebox{\box\shipoutbox }%
     \kern1 truein}%
\dimen0\ht0 \advance\dimen0\dp0

That's it.
You can put as many of these into a document as you like.
Then you can use \includegraphics[page=<num>]{....}
to extract the pages as separate PDF images,
for use within other LaTeX documents.

> Maarten

Hope this helps,


Ross Moore                                         ross at maths.mq.edu.au
Mathematics Department                             office: E7A-419
Macquarie University                               tel: +61 +2 9850 8955
Sydney, Australia  2109                            fax: +61 +2 9850 8114

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list