[OS X TeX] Weird page size problem using XeLaTeX

Peter Dyballa Peter_Dyballa at Web.DE
Tue Dec 20 12:28:05 CET 2005


Am 20.12.2005 um 11:57 schrieb Martin Buchmann:

> kind of a problem if i want to use the eso-pic package and a landscape  
> a5paper

It's the same problem as with latex -> DVI + dvips -> ps: the  
intermediate XDV (DVI) file from xelatex (latex) has not recorded its  
size and orientation so that the final xdv2pdf uses the default A4  
portrait size.

Try to write a xelatex A5 landscape engine with two steps:

	xelatex -no-pdf <LaTeX source without extension>
	xdv2pdf -p a5:landscape <LaTeX source without extension>

The value of <LaTeX source without extension> can be obtained by  
'basename $1 .tex' as you can find in the other engine files in  
~/Library/TeXShop/Engines.

pete 345 /\ xdv2pdf --help
xdv2pdf: invalid option -- -
usage: xdv2pdf [-m mag] [-p papersize[:landscape]] [-v] [-o pdfFile]  
xdvFile
     papersize values:  
a0/a1/a2/a3/a4/a5/a6/a7/a8/a9/a10/b0/b1/b2/b3/b4/b5/b6/b7/b8/b9/b10/c0/ 
c1/c2/c3/c4/c5/c6/c7/c8/c9/c10/jb0/jb1/jb2/jb3/jb4/jb5/jb6/jb7/jb8/jb9/ 
jb10/letter/legal/tabloid/ledger/wd,ht [in 'big' points or with  
explicit units]

There's also 'xelatex --help'. One of the options is:  
"-papersize=STRING       set PDF media size to STRING" -- could be it  
already fixes all for a one step compilation ...

--
Mit friedvollen Grüßen

   Pete

Es ist, glaub' ich, nichts so heiß, wie's gerne scheinen möchte.

------------------------- 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