Re: [MiKTeX] Custom PDF output size with pdf(la)tex
MiKTeX source code moved to GitHub
Brought to you by:
csc
From: Alexander G. <A....@fz...> - 2008-04-15 08:47:47
|
On Tue, Apr 15, 2008 at 10:29:40AM +0200, Ulrike Fischer wrote: >am Dienstag, 15. April 2008 um 10:10 schrieb Alexander Grahn: > > > > >> %redim the page >> \usepackage[papersize={\the\grwd,\the\grht},scale=1]{geometry} >> \ifpdf >> \setlength{\pdfpagewidth}{\the\grwd} >> \setlength{\pdfpageheight}{\the\grht} >> \else >> \special{papersize=\the\grwd,\the\grht} >> \fi > >Why don't you use simply > >\usepackage[dvips,papersize={\the\grwd,\the\grht},scale=1]{geometry} or better \ifpdf \usepackage[pdftex,papersize={\the\grwd,\the\grht},scale=1]{geometry} \else \usepackage[dvips,papersize={\the\grwd,\the\grht},scale=1]{geometry} \fi to make it dvips/pdfLaTeX compatible. I wasn't aware of the dvips/pdftex options of `geometry' which would insert the necessary specials, so I have done this myself so far. Thanks for this hint. Alexander |