home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emtex04.zip / LATEXDOC.ZIP / EMTEX / TEXINPUT / REP11.DOC < prev    next >
Text File  |  1992-03-19  |  18KB  |  419 lines

  1. % REPORT STANDARD DOCUMENT STYLE -- Released 14 Jan 1992
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1992 by Leslie Lamport
  4.  
  5.  
  6. %  ****************************************
  7. %  *               FONTS                  *
  8. %  ****************************************
  9. %
  10.  
  11. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  12. \normallineskip 1pt
  13. \def\baselinestretch{1}
  14.  
  15. % Each size-changing command \SIZE executes the command
  16. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  17. % where:
  18. %   BASELINESKIP = Normal value of \baselineskip for that size. (Actual
  19. %                  value will be \baselinestretch * BASELINESKIP.)
  20. %
  21. %  \FONTSIZE     = Name of font-size command.  The currently available
  22. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  23. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  24. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  25. %  \@FONTSIZE    = The same as the font-size command except with an
  26. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  27. %                  \@FONTSIZE = \@xivpt.
  28. %
  29. % For reasons of efficiency that needn't concern the designer,
  30. % the document style defines \@normalsize instead of \normalsize.
  31. % This is done only for \normalsize, not for any other size-changing
  32. % commands.
  33.  
  34. \def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
  35. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  36. \belowdisplayskip \abovedisplayskip
  37. \abovedisplayshortskip  \z@ plus3\p@   
  38. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  39. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  40.  
  41. \def\small{\@setsize\small{12pt}\xpt\@xpt
  42. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  43. \belowdisplayskip \abovedisplayskip
  44. \abovedisplayshortskip  \z@ plus3\p@   
  45. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  46. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  47. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  48. \itemsep \parsep}}
  49.  
  50. \def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
  51. \abovedisplayskip 8\p@ plus2\p@ minus4\p@
  52. \belowdisplayskip \abovedisplayskip
  53. \abovedisplayshortskip \z@ plus\p@
  54. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  55. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  56. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  57. \itemsep \parsep}}
  58.  
  59. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  60. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  61. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  62. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  63. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  64. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  65. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  66.  
  67. \normalsize  % Choose the normalsize font.
  68.  
  69.  
  70. %  ****************************************
  71. %  *            PAGE LAYOUT               *
  72. %  ****************************************
  73. %
  74. % All margin dimensions measured from a point one inch from top and side
  75. % of page.  
  76.  
  77. % SIDE MARGINS:
  78. \if@twoside               % Values for two-sided printing:
  79.    \oddsidemargin 36pt    %   Left margin on odd-numbered pages.
  80.    \evensidemargin 74pt   %   Left margin on even-numbered pages.
  81.    \marginparwidth 100pt  %   Width of marginal notes.
  82. \else                     % Values for one-sided printing:
  83.    \oddsidemargin 54pt    %   Note that \oddsidemargin = \evensidemargin
  84.    \evensidemargin 54pt
  85.    \marginparwidth 83pt 
  86. \fi
  87. \marginparsep 10pt        % Horizontal space between outer margin and 
  88.                           % marginal note
  89.  
  90.  
  91. % VERTICAL SPACING:        
  92.                         % Top of page:
  93. \topmargin 27pt         %    Nominal distance from top of page to top of
  94.                         %    box containing running head.
  95. \headheight 12pt        %    Height of box containing running head.
  96. \headsep 25pt           %    Space between running head and text.
  97. \topskip = 11pt         %    '\baselineskip' for first line of page.
  98.                         % Bottom of page:
  99. \footskip 30pt          %    Distance from baseline of box containing
  100.                         %    foot to baseline of last line of text.
  101.  
  102.  
  103. % DIMENSION OF TEXT:
  104. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  105. % roundoff.  The value of the multiplier was calculated as the floor
  106. % of the old \textheight minus \topskip, divided by \baselineskip for
  107. % \normalsize.  The old value of \textheight was 530.4pt.  \textheight
  108. % is the height of text (including footnotes and figures, excluding
  109. % running head and foot).
  110.  
  111. \textheight = 38\baselineskip
  112. \advance\textheight by \topskip
  113. \textwidth 360pt         % Width of text line.
  114.                          % For two-column mode: 
  115. \columnsep 10pt          %    Space between columns 
  116. \columnseprule 0pt       %    Width of rule between columns.
  117.  
  118. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  119. % natural height instead of being stretched to exactly \textheight.
  120.  
  121. % FOOTNOTES:
  122.  
  123. \footnotesep 7.7pt    % Height of strut placed at the beginning of every
  124.                       % footnote = height of normal \footnotesize strut,
  125.                       % so no extra space between footnotes.
  126.  
  127. \skip\footins 10pt plus 4pt minus 2pt  % Space between last line of text
  128.                                        % and top of first footnote.
  129.  
  130. % FLOATS: (a float is something like a figure or table)
  131. %
  132. %  FOR FLOATS ON A TEXT PAGE:
  133. %
  134. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  135. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats
  136.                                          % moved to top or bottom of
  137.                                          % text page.
  138. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  139.                                          % floats at top or bottom of
  140.                                          % page.
  141. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures
  142.                                          % and text.
  143. \@maxsep 20pt                            % The maximum of \floatsep, 
  144.                                          % \textfloatsep and \intextsep
  145.                                          % (minus the stretch and
  146.                                          % shrink).
  147. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  148. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for
  149.                                          % double-column figures in
  150.                                          % two-column mode.
  151. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  152.                                          % double-column floats.
  153. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  154.                                          % and \dbltexfloatsep.
  155.  
  156. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  157. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  158. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  159.                          % be 0pt plus ...)
  160. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
  161. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must
  162.                          % be 0pt plus ... )
  163.  
  164. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  165. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt
  166.                          % plus ...)
  167. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  168. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be 
  169.                          % 0pt plus ... )
  170. % MARGINAL NOTES:
  171. %
  172. \marginparpush 5pt       % Minimum vertical separation between two
  173.                          % marginal notes.
  174.  
  175.  
  176. %  ****************************************
  177. %  *           PARAGRAPHING               *
  178. %  ****************************************
  179. %
  180. \parskip 0pt plus 1pt              % Extra vertical space between
  181.                                    % paragraphs.
  182. \parindent 17pt                    % Width of paragraph indentation.
  183. %\topsep 9pt plus 3pt minus 5pt    % Extra vertical space, in addition
  184.                                    % to \parskip, added above and below
  185.                                    % list and paragraphing environments.
  186. \partopsep 3pt plus 1pt minus 2pt  % Extra vertical space, in addition
  187.                                    % to \parskip and \topsep, added when
  188.                                    % user leaves blank line before
  189.                                    % environment.
  190. %\itemsep 4.5pt plus 2pt minus 1pt % Extra vertical space, in addition
  191.                                    % to \parskip, added between list
  192.                                    % items.
  193. % See \@listI for values of \topsep and \itemsep
  194. % (Change made 9 Jun 87)
  195.  
  196. % The following page-breaking penalties are defined
  197.  
  198. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  199. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  200. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  201.  
  202. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph
  203.                                    % environment.
  204. \@endparpenalty   -\@lowpenalty    % After a list or paragraph
  205.                                    % environment.
  206. \@itempenalty     -\@lowpenalty    % Between list items.
  207.  
  208. % \clubpenalty         % 'Club line'  at bottom of page.
  209. % \widowpenalty        % 'Widow line' at top of page.
  210. % \displaywidowpenalty % Math display widow line.
  211. % \predisplaypenalty   % Breaking before a math display.
  212. % \postdisplaypenalty  % Breaking after a math display.
  213. % \interlinepenalty    % Breaking at a line within a paragraph.
  214. % \brokenpenalty       % Breaking after a hyphenated line.
  215.  
  216.  
  217. %    ****************************************
  218. %    *        CHAPTERS AND SECTIONS         *
  219. %    ****************************************
  220. %
  221.  
  222. % Definition of \part moved to report.doc  19 Jan 88
  223.  
  224. % \@makechapterhead {TEXT} : Makes the heading for the \chapter
  225. % command.
  226. %
  227.  
  228. \def\@makechapterhead#1{%           % Heading for \chapter command
  229.   \vspace*{50\p@}%                  % Space at top of text page.
  230.   {\parindent \z@ \raggedright 
  231.     \ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1 THEN
  232.       \huge\bf \@chapapp{} \thechapter %Print '\chaptername' and number.
  233.     \par 
  234.     \vskip 20\p@ \fi                % Space between number and title.
  235.     \Huge \bf                       % Title.
  236.     #1\par 
  237.     \nobreak                        % TeX penalty to prevent page break.
  238.     \vskip 40\p@                    % Space between title and text.
  239.   }}
  240.  
  241. % \@makeschapterhead {TEXT} : Makes the heading for the \chapter*
  242. % command.
  243. %
  244.  
  245. \def\@makeschapterhead#1{%          % Heading for \chapter* command
  246.   \vspace*{50\p@}%                  % Space at top of page.
  247.   {\parindent \z@ \raggedright 
  248.     \Huge \bf                       % Title.
  249.     #1\par 
  250.     \nobreak                        % TeX penalty to prevent page break.
  251.     \vskip 40\p@                    % Space between title and text.
  252.   }}
  253.  
  254. % \secdef{UNSTARCMDS}{STARCMDS} :
  255. %    When defining a \chapter or \section command without using
  256. %    \@startsection, you can use \secdef as follows:
  257. %       \def\chapter { ... \secdef \CMDA \CMDB }
  258. %       \def\CMDA    [#1]#2{ ...   % Command to define
  259. %                                  % \chapter[...]{...}
  260. %       \def\CMDB    #1{ ...       % Command to define
  261. %                                  % \chapter*{...}
  262.  
  263. \def\chapter{\clearpage      % Starts new page.
  264.    \thispagestyle{plain}%    % Page style of chapter page is 'plain'
  265.    \global\@topnum\z@        % Prevents figures from going
  266.                              % at top of page.
  267.    \@afterindentfalse        % Suppresses indent in first paragraph.
  268.    \secdef\@chapter\@schapter}   % Change to \@afterindenttrue to
  269.                                  % have indent.
  270.  
  271. \def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
  272.         \refstepcounter{chapter}%
  273.         \typeout{\@chapapp\space\thechapter.}%
  274.         \addcontentsline{toc}{chapter}{\protect
  275.         \numberline{\thechapter}#1}\else
  276.       \addcontentsline{toc}{chapter}{#1}\fi
  277.    \chaptermark{#1}%
  278.    \addtocontents{lof}%
  279.        {\protect\addvspace{10\p@}} % Adds between-chapter space
  280.    \addtocontents{lot}%
  281.        {\protect\addvspace{10\p@}} % to lists of figs & tables.
  282.    \if@twocolumn                   % Tests for two-column mode.  
  283.            \@topnewpage[\@makechapterhead{#2}]%
  284.      \else \@makechapterhead{#2}%
  285.            \@afterheading          % Routine called after chapter and
  286.      \fi}                          % section heading.
  287.  
  288. \def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}]%
  289.         \else \@makeschapterhead{#1}%
  290.               \@afterheading\fi}
  291.  
  292. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  293. %            optional * [ALTHEADING]{HEADING}
  294. %    Generic command to start a section.  
  295. %    NAME       : e.g., 'subsection'
  296. %    LEVEL      : a number, denoting depth of section -- e.g.,
  297. %                 chapter=1, section = 2, etc.  A section number will be
  298. %                 printed if and only if LEVEL < or = the value of the
  299. %                 secnumdepth counter.
  300. %    INDENT     : Indentation of heading from left margin
  301. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  302. %                 If negative, then paragraph indent of text following 
  303. %                 heading is suppressed.
  304. %    AFTERSKIP  : if positive, then skip to leave below heading,
  305. %                       else - skip to leave to right of run-in heading.
  306. %    STYLE      : commands to set style
  307. %  If '*' missing, then increments the counter.  If it is present, then
  308. %  there should be no [ALTHEADING] argument.  A sectioning command
  309. %  is normally defined to \@startsection + its first six arguments.
  310.  
  311. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
  312.     -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bf}}
  313. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
  314.     minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bf}}
  315. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  316.     -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}}
  317. \def\paragraph{\@startsection
  318.     {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
  319.     \normalsize\bf}}
  320. \def\subparagraph{\@startsection
  321.      {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
  322.      .2ex}{-1em}{\reset@font\normalsize\bf}}
  323.  
  324. % Default initializations of \...mark commands.  (See below for their
  325. % us in defining page styles.
  326. %
  327.  
  328. \def\chaptermark#1{}
  329. % \def\sectionmark#1{}           % Preloaded definitions
  330. % \def\subsectionmark#1{}
  331. % \def\subsubsectionmark#1{}
  332. % \def\paragraphmark#1{}
  333. % \def\subparagraphmark#1{}
  334.  
  335. % The value of the counter secnumdepth gives the depth of the
  336. % highest-level sectioning command that is to produce section numbers.
  337. %
  338.  
  339. \setcounter{secnumdepth}{2}
  340.  
  341. % APPENDIX
  342. %
  343. % The \appendix command must do the following:
  344. %    -- reset the chapter counter to zero
  345. %    -- set \@chapapp to Appendix (for messages)
  346. %    -- redefine the chapter counter to produce appendix numbers
  347. %    -- reset the section counter to zero
  348. %    -- redefine the \chapter command if appendix titles and headings
  349. %       are to look different from chapter titles and headings.
  350.  
  351. \def\appendix{\par
  352.   \setcounter{chapter}{0}%
  353.   \setcounter{section}{0}%
  354.   \def\@chapapp{\appendixname}%
  355.   \def\thechapter{\Alph{chapter}}}
  356.  
  357.  
  358. %    ****************************************
  359. %    *                LISTS                 *
  360. %    ****************************************
  361. %
  362.  
  363. % The following commands are used to set the default values for the list
  364. % environment's parameters. See the LaTeX manual for an explanation of
  365. % the meanings of the parameters.  Defaults for the list environment are
  366. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  367. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  368. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  369. % called for a third-level list.)  By convention, \@listK should set
  370. % \leftmargin to \leftmarginK.
  371. %
  372. % For efficiency, level-one list's values are defined at top level, and
  373. % \@listi is defined to set only \leftmargin.
  374.  
  375. \leftmargini 2.5em
  376. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  377. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  378. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  379. \leftmarginv 1em
  380. \leftmarginvi 1em
  381.  
  382. \leftmargin\leftmargini
  383. \labelsep .5em
  384. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  385. %\parsep 4.5pt plus 2pt minus 1pt  %(Removed 9 Jun 87)
  386.  
  387. % \@listI defines top level and \@listi values of
  388. % \leftmargin, \topsep, \parsep, and \itemsep
  389. % (Added 9 Jun 87)
  390. \def\@listI{\leftmargin\leftmargini \parsep 4.5\p@ plus2\p@ minus\p@
  391. \topsep 9\p@ plus3\p@ minus5\p@
  392. \itemsep 4.5\p@ plus2\p@ minus\p@}
  393.  
  394. \let\@listi\@listI
  395. \@listi 
  396.  
  397. \def\@listii{\leftmargin\leftmarginii
  398.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  399.    \topsep 4.5\p@ plus2\p@ minus\p@
  400.    \parsep 2\p@ plus\p@ minus\p@
  401.    \itemsep \parsep}
  402.  
  403. \def\@listiii{\leftmargin\leftmarginiii
  404.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  405.     \topsep 2\p@ plus\p@ minus\p@ 
  406.     \parsep \z@ \partopsep \p@ plus\z@ minus\p@
  407.     \itemsep \topsep}
  408.  
  409. \def\@listiv{\leftmargin\leftmarginiv
  410.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  411.  
  412. \def\@listv{\leftmargin\leftmarginv
  413.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  414.  
  415. \def\@listvi{\leftmargin\leftmarginvi
  416.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  417.  
  418. \endinput
  419.