[XeTeX] paper size

William Adams will.adams at frycomm.com
Mon Aug 28 13:07:40 CEST 2006


On Aug 26, 2006, at 7:56 AM, Stephen Moye wrote:

> I tried your example and found that:
>
>      \setstocksize{9in}{6in}
>
> worked perfectly, whereas none of the others did. My assumption is
> that memoir takes complete control of setting that page size.

See the memoir manual.

You need to do something along these lines:

\setstocksize{846bp}{648bp}
\settrimmedsize{10.75in}{8in}{*}
\settrims{36bp}{36bp}
\settypeblocksize{600bp}{480bp}{*}
\setcolsepandrule{18bp}{0pt}
\setulmargins{111bp}{*}{*}
\setlrmargins{36bp}{*}{*}
\setheaderspaces{*}{54bp}{*}
\setheadfoot{18bp}{21bp}
\setmarginnotes{1bp}{1bp}{1bp}
\checkandfixthelayout

You might also enjoy adding something like this:

\usepackage{calc}
\newcounter{hours}\newcounter{minutes}
\newcommand{\printtime}{\setcounter{hours}{\time/60}%
	\setcounter{minutes}{\time-\value{hours}*60}%
	\thehours:\theminutes}
\renewcommand{\tmarktl}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(-36,0){\line(1,0){24}}
     \put(0,12){\line(0,1){24}}
     \put(3,27){\ttfamily\fontsize{8bp}{10bp}\selectfont\jobname\ \  
\today\ \ \printtime\ \ Page \thepage}
   \end{picture}}}
\renewcommand{\tmarktm}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(-24,24){\line(1,0){48}}
     \put(0,12){\line(0,1){24}}
     \put(0,24){\oval(12,12)}
   \end{picture}}}
\renewcommand{\tmarktr}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(12,0){\line(1,0){24}}
     \put(0,12){\line(0,1){24}}
   \end{picture}}}
\renewcommand{\tmarkmr}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(12,0){\line(1,0){24}}
     \put(24,-24){\line(0,1){48}}
     \put(24,0){\oval(12,12)}
   \end{picture}}}
\renewcommand{\tmarkbr}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(12,0){\line(1,0){24}}
     \put(0,-36){\line(0,1){24}}
   \end{picture}}}
\renewcommand{\tmarkbm}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(-24,-24){\line(1,0){48}}
     \put(0,-36){\line(0,1){24}}
     \put(0,-24){\oval(12,12)}
   \end{picture}}}
\renewcommand{\tmarkbl}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(-36,0){\line(1,0){24}}
     \put(0,-36){\line(0,1){24}}
   \end{picture}}}
\renewcommand{\tmarkml}{\registrationColour{%
   \begin{picture}(0,0)
     \setlength{\unitlength}{1bp}\thicklines
     \put(-36,0){\line(1,0){24}}
     \put(-24,-24){\line(0,1){48}}
     \put(-24,0){\oval(12,12)}
   \end{picture}}}
\makeatletter
\renewcommand*{\trimmarks}{\special{papersize=\the\stockwidth,\the 
\stockheight}{%
   \vbox to \z@{\vskip-1in \vskip\trimtop % top of logical page
     \hb at xt@\z@{\hskip-1in
       \ifodd\c at page
         \hskip\stockwidth \hskip-\trimedge \hskip-\paperwidth
       \else
         \if at twoside
           \hskip\trimedge  % left of logical page
         \else
           \hskip\stockwidth \hskip-\trimedge \hskip-\paperwidth
         \fi
       \fi
       \vbox to \paperheight{%
         \let\protect\relax        % <- v1.4 addition
         \hb at xt@\paperwidth{\tmarktl\hfil\tmarktm\hfil\tmarktr}%
         \vfil
         \hb at xt@\paperwidth{\tmarkml\hfil\tmarkmr}%
         \vfil
         \hb at xt@\paperwidth{\tmarkbl\hfil\tmarkbm\hfil\tmarkbr}}%
     \hss}%
   \vss}}
}
\makeatother

which gives one crops and register marks which look pretty much like  
Quark XPress makes.

William

-- 
William Adams
senior graphic designer
Fry Communications



This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage,  dissemination, disclosure, or
action taken in  reliance on it is prohibited.  The reliability of  this
method of communication cannot be guaranteed.  Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.


More information about the XeTeX mailing list