27 May
2005
27 May
'05
10:28 a.m.
I use the following macro to produce one-page ,-------- | \newbox\epdfbox | | % mkepdf{hmargin}{vmargin}{text} | \long\def\mkepdf#1#2#3{% | \pdfhorigin=1sp | \advance \pdfhorigin #1 | \pdfvorigin=1sp | \advance \pdfvorigin #2 | \setbox\epdfbox=\vbox{#3} | \pdfpagewidth=\wd\epdfbox | \advance \pdfpagewidth 2\pdfhorigin | \pdfpageheight=\ht\epdfbox | \advance \pdfpageheight \dp\epdfbox | \advance \pdfpageheight 2\pdfvorigin | \shipout\box\epdfbox | } `-------- Usage: \mkepdf{1bp}{1bp}{\hbox{Hello, world!}} or \mkepdf{1bp}{1bp}{% \hsize=3in \input foo.tex \par } HTH, Thanh