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 / ART12.DOC < prev    next >
Text File  |  1992-03-19  |  15KB  |  350 lines

  1. % ARTICLE STANDARD DOCUMENT STYLE -- Released 14 Jan 1992
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1992 by Leslie Lamport
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size. (Actual 
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize.
  30. % This is done only for \normalsize, not for any other size-changing
  31. % commands.
  32.  
  33. \def\@normalsize{\@setsize\normalsize{14.5pt}\xiipt\@xiipt
  34. \abovedisplayskip 12\p@ plus3\p@ minus7\p@
  35. \belowdisplayskip \abovedisplayskip
  36. \abovedisplayshortskip  \z@ plus3\p@   
  37. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  38. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  39.  
  40.  
  41. \def\small{\@setsize\small{13.6pt}\xipt\@xipt
  42. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  43. \belowdisplayskip \abovedisplayskip
  44. \abovedisplayshortskip  \z@ plus3\p@   
  45. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  46. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  47.  \parsep 4.5\p@ plus2\p@ minus\p@ \itemsep \parsep
  48.             \topsep 9\p@ plus3\p@ minus5\p@}}
  49.  
  50. \def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
  51. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  52. \belowdisplayskip \abovedisplayskip
  53. \abovedisplayshortskip  \z@ plus3\p@   
  54. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  55. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  56. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\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{18pt}\xivpt\@xivpt}
  62. \def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
  63. \def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
  64. \def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
  65. \let\Huge=\huge
  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 21pt    %   Left margin on odd-numbered pages.
  80.    \evensidemargin 59pt   %   Left margin on even-numbered pages.
  81.    \marginparwidth 85pt   %   Width of marginal notes.
  82. \else                     % Values for one-sided printing:
  83.    \oddsidemargin 39.5pt  %   Note that \oddsidemargin = \evensidemargin
  84.    \evensidemargin 39.5pt
  85.    \marginparwidth 68pt 
  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
  94.                           %    of box containing running head.
  95. \headheight 12pt          %    Height of box containing running head.
  96. \headsep 25pt             %    Space between running head and text.
  97. \topskip = 12pt           %    '\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 of
  106. % the old \textheight minus \topskip, divided by \baselineskip for
  107. % \normalsize.  The old value of \textheight was 536.5pt.
  108. % \textheight is the height of text (including footnotes and figures, 
  109. % excluding running head and foot).
  110.  
  111. \textheight = 36\baselineskip
  112. \advance\textheight by \topskip
  113. \textwidth 390pt         % 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 8.4pt    % 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 10.8pt plus 4pt minus 2pt  % Space between last line of
  128.                                          % text and top of first
  129.                                          % footnote.
  130.  
  131. % FLOATS: (a float is something like a figure or table)
  132. %
  133. %  FOR FLOATS ON A TEXT PAGE:
  134. %
  135. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  136. \floatsep 14pt plus 2pt minus 4pt        % Space between adjacent floats
  137.                                          % moved to top or bottom of
  138.                                          % text page.
  139. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  140.                                          % floats at top or bottom of
  141.                                          % page.
  142. \intextsep 14pt plus 4pt minus 4pt       % Space between in-text figures
  143.                                          % and text.
  144. \@maxsep 20pt                            % The maximum of \floatsep, 
  145.                                          % \textfloatsep and \intextsep
  146.                                          % (minus the stretch and
  147.                                          % shrink).
  148. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  149. \dblfloatsep 14pt plus 2pt minus 4pt     % Same as \floatsep for
  150.                                          % double-column figures in
  151.                                          % two-column mode.
  152. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  153.                                          % double-column floats.
  154. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  155.                                          % and \dbltexfloatsep.
  156.  
  157. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  158. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  159. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  160.                          % be 0pt plus ...)
  161. \@fpsep 10pt plus 2fil   % Space between floats on float page/column.
  162. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must
  163.                          % be 0pt plus ... )
  164.  
  165. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  166. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt
  167.                          % plus ...)
  168. \@dblfpsep 10pt plus 2fil% Space between floats on float page.
  169. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
  170.                          % 0pt plus ... )
  171. % MARGINAL NOTES:
  172. %
  173. \marginparpush 7pt       % Minimum vertical separation between two
  174.                          % marginal notes.
  175.  
  176.  
  177. %  ****************************************
  178. %  *           PARAGRAPHING               *
  179. %  ****************************************
  180. %
  181. \parskip 0pt plus 1pt              % Extra vertical space between
  182.                                    % paragraphs.
  183. \parindent 1.5em                   % Width of paragraph indentation.
  184. %\topsep 10pt plus 4pt minus 6pt   % Extra vertical space, in addition
  185.                                    % to \parskip, added above and below
  186.                                    % list and paragraphing environments.
  187. \partopsep 3pt plus 2pt minus 2pt  % Extra vertical space, in addition
  188.                                    % to \parskip and \topsep, added when
  189.                                    % user leaves blank line before
  190.                                    % environment.
  191. %\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addition
  192.                                    % to \parskip, added between list
  193.                                    % items.
  194. % See \@listI for values of \topsep and \itemsep
  195. % (Change made 9 Jun 87)
  196.  
  197. % The following page-breaking penalties are defined
  198.  
  199. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  200. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  201. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  202.  
  203. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph
  204.                                    % environment.
  205. \@endparpenalty   -\@lowpenalty    % After a list or paragraph
  206.                                    % environment.
  207. \@itempenalty     -\@lowpenalty    % Between list items.
  208.  
  209. % \clubpenalty         % 'Club line'  at bottom of page.
  210. % \widowpenalty        % 'Widow line' at top of page.
  211. % \displaywidowpenalty % Math display widow line.
  212. % \predisplaypenalty   % Breaking before a math display.
  213. % \postdisplaypenalty  % Breaking after a math display.
  214. % \interlinepenalty    % Breaking at a line within a paragraph.
  215. % \brokenpenalty       % Breaking after a hyphenated line.
  216.  
  217.  
  218. %    ****************************************
  219. %    *             SECTIONS                 *
  220. %    ****************************************
  221. %
  222. %
  223. % FMi 91/03/30: \part moved to article.doc
  224. %
  225.  
  226. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  227. %            optional * [ALTHEADING]{HEADING}
  228. %    Generic command to start a section.  
  229. %    NAME       : e.g., 'subsection'
  230. %    LEVEL      : a number, denoting depth of section -- e.g.,
  231. %                 section=1, subsection = 2, etc.  A section number will
  232. %                 be printed if and only if LEVEL < or = the value of
  233. %                 the secnumdepth counter.
  234. %    INDENT     : Indentation of heading from left margin
  235. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  236. %                 If negative, then paragraph indent of text following 
  237. %                 heading is suppressed.
  238. %    AFTERSKIP  : if positive, then skip to leave below heading,
  239. %                       else - skip to leave to right of run-in heading.
  240. %    STYLE      : commands to set style
  241. %  If '*' missing, then increments the counter.  If it is present, then
  242. %  there should be no [ALTHEADING] argument.  A sectioning command
  243. %  is normally defined to \@startsection + its first six arguments.
  244.  
  245. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
  246.     -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bf}}
  247. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
  248.     minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bf}}
  249. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  250.  -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}}
  251. \def\paragraph{\@startsection
  252.      {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
  253.      \normalsize\bf}}
  254. \def\subparagraph{\@startsection
  255.      {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
  256.      .2ex}{-1em}{\reset@font\normalsize\bf}}
  257.  
  258.  
  259. % Default initializations of \...mark commands.  (See below for their
  260. % us in defining page styles.
  261. %
  262.  
  263. % \def\sectionmark#1{}           % Preloaded definitions
  264. % \def\subsectionmark#1{}
  265. % \def\subsubsectionmark#1{}
  266. % \def\paragraphmark#1{}
  267. % \def\subparagraphmark#1{}
  268.  
  269. % The value of the counter secnumdepth gives the depth of the
  270. % highest-level sectioning command that is to produce section numbers.
  271. %
  272.  
  273. \setcounter{secnumdepth}{3}
  274.  
  275. % APPENDIX
  276. %
  277. % The \appendix command must do the following:
  278. %    -- reset the section and subsection counters to zero
  279. %    -- redefine the section counter to produce appendix numbers
  280. %    -- redefine the \section command if appendix titles and headings
  281. %       are to look different from section titles and headings.
  282.  
  283. \def\appendix{\par
  284.   \setcounter{section}{0}
  285.   \setcounter{subsection}{0}
  286.   \def\thesection{\Alph{section}}}
  287.  
  288.  
  289. %    ****************************************
  290. %    *                LISTS                 *
  291. %    ****************************************
  292. %
  293.  
  294. % The following commands are used to set the default values for the list
  295. % environment's parameters. See the LaTeX manual for an explanation of
  296. % the meanings of the parameters.  Defaults for the list environment are
  297. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  298. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  299. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  300. % called for a third-level list.)  By convention, \@listK should set
  301. % \leftmargin to \leftmarginK.
  302. %
  303. % For efficiency, level-one list's values are defined at top level, and
  304. % \@listi is defined to set only \leftmargin.
  305.  
  306. \leftmargini 2.5em
  307. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  308. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  309. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  310. \leftmarginv 1em
  311. \leftmarginvi 1em
  312.  
  313. \leftmargin\leftmargini
  314. \labelsep .5em
  315. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  316. %\parsep 5pt plus 2.5pt minus 1pt   %(Removed 9 Jun 87)
  317.  
  318. % \@listI defines top level and \@listi values of
  319. % \leftmargin, \topsep, \parsep, and \itemsep
  320. % (Added 9 Jun 87)
  321. \def\@listI{\leftmargin\leftmargini \parsep 5\p@ plus2.5\p@ minus\p@
  322. \topsep 10\p@ plus4\p@ minus6\p@
  323. \itemsep 5\p@ plus2.5\p@ minus\p@}
  324.  
  325. \let\@listi\@listI
  326. \@listi 
  327.  
  328. \def\@listii{\leftmargin\leftmarginii
  329.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  330.    \topsep 5\p@ plus2.5\p@ minus\p@
  331.    \parsep 2.5\p@ plus\p@ minus\p@
  332.    \itemsep \parsep}
  333.  
  334. \def\@listiii{\leftmargin\leftmarginiii
  335.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  336.     \topsep 2.5\p@ plus\p@ minus\p@ 
  337.     \parsep \z@ \partopsep \p@ plus\z@ minus\p@
  338.     \itemsep \topsep}
  339.  
  340. \def\@listiv{\leftmargin\leftmarginiv
  341.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  342.  
  343. \def\@listv{\leftmargin\leftmarginv
  344.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  345.  
  346. \def\@listvi{\leftmargin\leftmarginvi
  347.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  348.  
  349. \endinput
  350.