[XeTeX] landscape mode with XeLaTeX
Daniel Greenhoe
dgreenhoe at yahoo.com
Mon May 12 13:36:43 CEST 2008
--- On Mon, 5/12/08, Ulrike Fischer <news2 at nililand.de> wrote:
> E.g. with \usepackage[a4paper,landscape]{geometry}
--- On Mon, 5/12/08, Bruno Voisin <bvoisin at mac.com> wrote:
> xelatex -output-driver="xdvipdfmx -q -E -p a4 -l" filename
Thank you Ulrike and Bruno for your fast help. I did use the
xelatex -output-driver="xdvipdfmx -q -E -p a4 -l" filename
solution and this works for me.
I use this solution at this time because it is very similar to what I used to do when I used latex+dvipdfm (before I started using xelatex). If I have more problems, I will try the geometry package.
Thanks a lot!!!!
Dan
--- On Mon, 5/12/08, Ulrike Fischer <news2 at nililand.de> wrote:
> From: Ulrike Fischer <news2 at nililand.de>
> Subject: Re: [XeTeX] landscape mode with XeLaTeX
> To: xetex at tug.org
> Date: Monday, May 12, 2008, 5:41 PM
> Am Mon, 12 May 2008 01:07:51 -0700 (PDT) schrieb Daniel
> Greenhoe:
>
> > Hi everyone,
> >
> > How can I produce a pdf with landscape orientation
> using XeLaTeX. Here is what I have tried so far
> > xelatex -papersize=landscape filename
> > xelatex -papersize="a4 -l" filename
> > xelatex -papersize=a4:landscape filename
> >
> > These give me the following error messages:
> > ** ERROR ** Unrecognized paper format: landscape
> > ** ERROR ** Unrecognized paper format: a4 -l
> > ** ERROR ** Unrecognized paper format: a4:landscape
> >
> > I am running Miktex 2.7 on a Windows XP platform.
> >
> > Many thanks in advance,
> > Dan
>
> E.g. with \usepackage[a4paper,landscape]{geometry} or
> \usepackage[dvips,a4paper,landscape]{geometry} in your
> document (the
> second works only if geometry use the newest geometry.cfg).
>
>
> If you are using the KOMA-classes the option pagesize
> should work too.
>
>
> --
> Ulrike Fischer
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
--- On Mon, 5/12/08, Bruno Voisin <bvoisin at mac.com> wrote:
> From: Bruno Voisin <bvoisin at mac.com>
> Subject: Re: [XeTeX] landscape mode with XeLaTeX
> To: dgreenhoe at yahoo.com, "Unicode-based TeX for Mac OS X and other platforms" <xetex at tug.org>
> Date: Monday, May 12, 2008, 5:43 PM
> Le 12 mai 08 à 10:07, Daniel Greenhoe a écrit :
>
> > How can I produce a pdf with landscape orientation
> using XeLaTeX.
> > Here is what I have tried so far
> > xelatex -papersize=landscape filename
> > xelatex -papersize="a4 -l" filename
> > xelatex -papersize=a4:landscape filename
> >
> > These give me the following error messages:
> > ** ERROR ** Unrecognized paper format: landscape
> > ** ERROR ** Unrecognized paper format: a4 -l
> > ** ERROR ** Unrecognized paper format: a4:landscape
> >
> > I am running Miktex 2.7 on a Windows XP platform.
>
> Not sure how to make this work. "xetex -help"
> says
>
> -papersize=STRING set PDF media size to STRING
>
> but gives no detail on the syntax or allowed values for
> STRING.
>
> The syntax a4:landscape seems to be one for the
> Mac-specific XDVI-to-
> PDF driver xdv2pdf. For it, "xdv2pdf -h" returns
>
> 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]
>
> But on other platforms, the XDVI-to-PDF driver is xdvipdfmx
> for which
> "xdvipdfmx -h" returns
>
> -l Landscape mode
> [...]
> -p papersize Set papersize [a4]
>
> Hence you might try something like
>
> xelatex -output-driver="xdvipdfmx -p a4 -l"
> filename
>
> or even better (given the -q and -E options are also used
> by default,
> on the Mac at least)
>
> xelatex -output-driver="xdvipdfmx -q -E -p a4 -l"
> filename
>
> That said, there are also the primitives \pdfpageheight
> and
> \pdfpagewidth which can be used in the XeLaTeX input
> file. Hence,
>
> \setlength{\pdfpageheight}{210mm}
> \setlength{\pdfpagewidth} {297mm}
>
> might do the trick as well, I've never tried.
>
> Hope this helps,
>
> Bruno Voisin
More information about the XeTeX
mailing list