|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T l
Length: 7168 (0x1c00)
Types: TextFile
Names: »layout.tex«
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
└─⟦this⟧ »latex-style/layout.tex«
% This file makes pictures showing LaTeX page layouts and the parameters
% you can tweak and what they affect.
% Just run through LaTeX and look at the pretty diagrams.
% by Nelson Beebe (U of Utah)
%
% -*-LaTeX-*-
% <BEEBE.F77ANA>PAGE.LTX.22, 16-Oct-86 14:13:02, Edit by BEEBE
% <BEEBE.F77ANA>PAGE.LTX.1, 13-Oct-86 17:04:39, Edit by BEEBE
% Make pictures showing LaTeX page layouts
%-----------------------------------------------------------------------
% EVERYTHING TO THE RIGHT OF A % IS A REMARK TO YOU AND IS IGNORED BY
% LaTeX.
%
% WARNING! DO NOT TYPE ANY OF THE FOLLOWING 10 CHARACTERS AS NORMAL TEXT
% CHARACTERS:
% & $ # % _ { } ^ ~ \
%
% The following seven are printed by typing a backslash in front of them:
% \$ \& \# \% \_ \{ and \}.
%-----------------------------------------------------------------------
\newcommand{\X}[1]{{#1}\index{{#1}}}
\documentstyle[draft,ifthen]{article}
% ----------------------------------------------------------------------
%
% TIME OF DAY
%
\newcount\hh
\newcount\mm
\mm=\time
\hh=\time
\divide\hh by 60
\divide\mm by 60
\multiply\mm by 60
\mm=-\mm
\advance\mm by \time
\def\hhmm{\number\hh:\ifnum\mm<10{}0\fi\number\mm}
% NB: For computed dimension parameters, we cannot use
% \newcommand{}, because this expands to a TeX \def which does
% not evaluate the definition before assigning it to the control
% sequence name; we use \xdef directly to force evaluation
\newcount\T % temporary counter for arithmetic calculations
\T=0
% **********************************************************************
% WARNING: Do not insert ANY aditional whitespace in these
% macros--otherwise it ends up in the TeX boxes and ruins the
% positioning, sigh....
% **********************************************************************
% NAMEBOX{x}{y}{dx}{dy}{width}{height}{pos}{label} -- framed label with
% box lower-left corner at (x+dx,y+dy)
\newcommand{\NAMEBOX}[8]{\put(#1,#2){\begin{picture}(0,0)(-#3,-#4)\ignorespaces
\framebox(#5,#6)[#7]{#8}\end{picture}}}
% HARROW{x}{y}{dx}{dy}{length}{side}{pos}{label} -- horizontal
% labeled arrow with left point at (x+dx,y+dy), label on bottom
% (side=b) or top (side=t) of arrow, in makebox[pos]
\newcommand{\HARROW}[8]{\put(#1,#2){\begin{picture}(0,0)(-#3,-#4)\ignorespaces
\put(0,0){\vector(1,0){#5}}\ignorespaces
\put(#5,0){\vector(-1,0){#5}}\ignorespaces
\ifthenelse{\equal{#6}{b}}{\ignorespaces
\put(0,-\TAD){\makebox(#5,0)[#7]{#8}}
}{\ignorespaces
\ifthenelse{\equal{#6}{t}}{}{\ignorespaces
\typeout{Side #6 must be ``b'' or ``t''--``t'' assumed}}\ignorespaces
\put(0,\TAD){\makebox(#5,0)[#7]{#8}}
}
\end{picture}}}
% VARROW{x}{y}{dx}{dy}{length}{side}{pos}{label} -- vertical
% labeled arrow with left point at (x+dx,y+dy), label on left
% (side=l) or right (side=r) of arrow, in makebox[pos]
\newcommand{\VARROW}[8]{\put(#1,#2){\begin{picture}(0,0)(-#3,-#4)\ignorespaces
\put(0,0){\vector(0,1){#5}}\ignorespaces
\put(0,#5){\vector(0,-1){#5}}\ignorespaces
\ifthenelse{\equal{#6}{l}}{\ignorespaces
\put(-\TAD,0){\makebox(0,#5)[#7]{#8}}
}{\ignorespaces
\ifthenelse{\equal{#6}{r}}{}{\ignorespaces
\typeout{Side #6 must be ``r'' or ``l''--``r'' assumed}}\ignorespaces
\put(\TAD,0){\makebox(0,#5)[#7]{#8}}
}
\end{picture}}}
% VRULE{x}{y}{dx}{dy}{length}{side}{pos}{label} -- vertical
% rule with left point at (x+dx,y+dy), label on left
% (side=l) or right (side=r) of rule, in makebox[pos]
\newcommand{\VRULE}[8]{\put(#1,#2){\begin{picture}(0,0)(-#3,-#4)\ignorespaces
\put(0,0){\line(0,1){#5}}\ignorespaces
\ifthenelse{\equal{#6}{l}}{\ignorespaces
\put(0,0){\makebox(0,#5)[#7]{$\rightarrow${}#8}}
}{\ignorespaces
\ifthenelse{\equal{#6}{r}}{}{\ignorespaces
\typeout{Side #6 must be ``r'' or ``l''--``r'' assumed}}\ignorespaces
\put(0,0){\makebox(0,#5)[#7]{$\leftarrow${}#8}}
}
\end{picture}}}
% **********************************************************************
% If you wish to change any of these values:
% * definitions are mostly in alphabetical order
% * remember units are in centipoints for accurate
% positioning
% * most parameters are taken directly from values in
% BK11.STY, but in order to improve the appearance of the
% figure, a few have been increased to avoid overlap of
% labels and/or boxes, or to loosen up the figure
% * ALL parameters which depend on others are defined by
% computation and \xdef's below; they must NEVER be
% changed
%
% For 11pt BOOK style, \textwidth / \pagewidth(8.5in) = 0.5294
% Anything larger than this will generate an overfull box. We
% choose 0.50 since that makes scaling trivial for the reader
\newcommand{\UNITLENGTH}{0.005pt}
\newcommand{\SCALEFACTOR}{50\%}
%
% US papersize...
%
\newcommand{\PAGEHEIGHT}{79497} % 11in in centipoints
\newcommand{\PAGEWIDTH}{61430} % 8.5in in centipoints
%
% Typical dimensions from BK10.DOC
%
\newcommand{\BASELINESKIP}{2000} % really 1000, but this is
% too tight for the figure
\newcommand{\COLUMNSEP}{1000}
\newcommand{\COLUMNSEPRULE}{0}
% DVI drivers put top left corner at (1in,1in) from physical page
% left corner
\newcommand{\DVIXOFFSET}{7227}
\newcommand{\DVIYOFFSET}{7227}
\newcommand{\EVENSIDEMARGIN}{10841}
\newcommand{\FOOTHEIGHT}{2400} % really 1200, but too tight
\newcommand{\FOOTNOTESEP}{665}
\newcommand{\FOOTSKIP}{4207} % really 2529, but too tight; for symmetry,
% make FOOTSKIP=HEADSEP+FOOTHEIGHT
\newcommand{\HEADHEIGHT}{2400} % really 1200, but too tight
\newcommand{\HEADSEP}{1807}
\newcommand{\MARGINPARPUSH}{2000} % really 500, but too tight
\newcommand{\MARGINPARSEP}{2800} % really 700, but too tight
\newcommand{\MARGINPARWIDTH}{7227}
\newcommand{\MARGINNOTEHEIGHT}{4000} % arbitrary value (holds
% ``Margin Note A'' on
% 2 lines)
\newcommand{\ODDSIDEMARGIN}{3613}
%
% Upper left page corner (0,0) is at (1in,1in) on physical page
% for DVI drivers. Position the LOWER left corner at
% (\PAGEXORIGIN,\PAGEYORIGIN), where \PAGEYORIGIN is computed
% below
\newcommand{\PAGEXORIGIN}{\DVIXOFFSET}
\newcommand{\TAD}{800} % how far to move labels from their arrows
\newcommand{\TEXTHEIGHT}{50400}
\newcommand{\TEXTWIDTH}{32522}
\newcommand{\TOPMARGIN}{5420}
% **********************************************************************
% DO NOT CHANGE any of these computed parameters
%
%
\T=\TEXTWIDTH
\advance\T by -\COLUMNSEP
\divide\T by 2
\xdef\COLUMNWIDTH{\the\T}
\T=\TEXTWIDTH
\divide\T by 2
\advance\T by \ODDSIDEMARGIN
\xdef\COLUMNXMIDDLE{\the\T} % 0.5*TEXTWIDTH+ODDSIDEMARGIN
\T=\COLUMNWIDTH
\advance\T by \ODDSIDEMARGIN
\advance\T by \COLUMNSEP
\xdef\COLUMNTWOX{\the\T} % COLUMNWIDTH+COLUMNSEP+ODDSIDEMARGIN
\T=\FOOTSKIP
\advance\T by \TEXTHEIGHT
\advance\T by \HEADSEP
\xdef\HEADYORIGIN{\the\T} % FOOTSKIP+TEXTHEIGHT+HEADSEP
%
% Inner TeX page dimens