Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
On 2010-07-02 07:22:18 -0700, Ulrike Fischer ne...@nililand.de said: But if you set \pdfpagewidth you should also set \pdfpageheight. At least on my system (miktex 2.7) xetex will otherwise \pdfpagewidth setting. \documentclass{article} \pdfpagewidth=20cm %\pdfpageheight=15cm %needed too. IMO this should be reported as a bug. But what do I know... does this the same thing happen in pdftex? (Sorry, recovering from jetlag so can't test for myself right now.) W -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
Am Sun, 4 Jul 2010 23:52:24 -0700 schrieb Will Robertson: But if you set \pdfpagewidth you should also set \pdfpageheight. At least on my system (miktex 2.7) xetex will otherwise \pdfpagewidth setting. \documentclass{article} \pdfpagewidth=20cm %\pdfpageheight=15cm %needed too. IMO this should be reported as a bug. But what do I know... does this the same thing happen in pdftex? I would say it is more a feature ;-) For pdftex \pdfpagewidth and \pdfpageheight are set in pdftexconfig.tex to sensible default values e.g. A4paper. But the initial values of \pdfpagewidth and \pdfpageheight are 0pt in xetex. Changing only \pdfpagewidth means that \pdfpageheight has still the value 0pt - so it is quite good that xetex ignores this page size and falls back to the default setting from dvipdfmx.cfg. -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
Dear Colleagues -- Studying http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf I can see no mention of page width. What is the XeTeX method for setting the page width, analogous to PdfTeX's \pdfpagewidth, please ? (Of course, I will also want to set the page height !). Philip Taylor After looking at what geometry does, it seems that it works like in dvips, i.e., by writing a \special in the xdv file. Line 1016 of geometry.sty says \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}} and, of course, you can set as you prefer the two parameters. If you compile \documentclass{amsart} \usepackage{lipsum} \paperwidth=10cm \paperheight=20cm \textwidth=.8\paperwidth \textheight=.8\paperheight \calclayout \AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}} \begin{document} \lipsum[1-50] \end{document} (which exploits the \calclayout macro of amsart, just to avoid computing parameters), you'll see that everything is OK. With amsart one can also use geometry, of course. With this package, \pdfpaperwidth and \pdfpaperheight are defined to be the same as \paperwidth and \paperheight. (Xe)LaTeX users would take care of non standard page sizes with geometry, anyway. Plain TeX addicts should simply say \special{papersize=width,height} Ciao Enrico -- Enrico Gregorio + Dipartimento di Informatica + Tel: +39 045 8027937 enrico.grego...@univr.it + Università degli Studi di Verona + (grego...@math.unipd.it) + Strada le Grazie 15 / I-37134 Verona + Fax: +39 045 8027928 -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
Hi Philip, I can see no mention of page width. What is the XeTeX method for setting the page width, analogous to PdfTeX's \pdfpagewidth, please ? (Of course, I will also want to set the page height !). Try the same ones: \pdfpagewidth and \pdfpageheight. Best, Akira -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
On Jul 2, 2010, at 8:09 AM, Philip Taylor (Webmaster, Ret'd) wrote: I can see no mention of page width. What is the XeTeX method for setting the page width, analogous to PdfTeX's \pdfpagewidth, please ? (Of course, I will also want to set the page height !). On Aug 3, 2007, at 10:31 AM, Jonathan Kew wrote: \pdfpage{width,height} were implemented to provide pdfTeX compatibility for specifying page sizes So using a package like geometry should ``just work'' --- if you're using Plain TeX it's bit more involved. Depending on how you're doing this and for what purposes, you may need to add a couple of specials manually (I have to do that to get the pdf trim, crop and bleed boxes set just so for pre-press). William -- William Adams senior graphic designer Fry Communications Sphinx of black quartz, judge my vow. -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
Am Fri, 02 Jul 2010 13:09:36 +0100 schrieb Philip Taylor (Webmaster, Ret'd): Dear Colleagues -- Studying http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf I can see no mention of page width. What is the XeTeX method for setting the page width, analogous to PdfTeX's \pdfpagewidth, please ? \pdfpagewidth ;-) or \special{papersize=width,height} But if you set \pdfpagewidth you should also set \pdfpageheight. At least on my system (miktex 2.7) xetex will otherwise \pdfpagewidth setting. \documentclass{article} \pdfpagewidth=20cm %\pdfpageheight=15cm %needed too. \begin{document} abc \end{document} -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] XeTeX equivalent to \pdfpagewidth ?
I now see that the necessary primitives are referenced on p.~54; it was clearly unfortunate that I searched for page width and not for the corresponding PdfTeX primitive in the first place ! Philip Taylor (Webmaster, Ret'd) wrote: Dear Colleagues -- Studying http://xml.web.cern.ch/XML/lgc2/xetexmain.pdf I can see no mention of page width. What is the XeTeX method for setting the page width, analogous to PdfTeX's \pdfpagewidth, please ? Philip Taylor -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex