home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texextr2 / !TeX / Misc / LaTeX / doc / bk12 < prev    next >
Text File  |  1992-01-16  |  17KB  |  415 lines

  1. % BOOK 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{14.5pt}\xiipt\@xiipt
  35. \abovedisplayskip 12\p@ plus3\p@ minus7\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.  
  42. \def\small{\@setsize\small{13.6pt}\xipt\@xipt
  43. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  44. \belowdisplayskip \abovedisplayskip
  45. \abovedisplayshortskip  \z@ plus3\p@   
  46. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  47. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  48. \parsep 4.5\p@ plus2\p@ minus\p@
  49.             \itemsep \parsep
  50.             \topsep 9\p@ plus3\p@ minus5\p@}}
  51.  
  52. \def\footnotesize{\@setsize\footnotesize{12pt}\xpt\@xpt
  53. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  54. \belowdisplayskip \abovedisplayskip
  55. \abovedisplayshortskip  \z@ plus3\p@   
  56. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  57. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  58. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  59. \itemsep \parsep}}
  60.  
  61. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  62. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  63. \def\large{\@setsize\large{18pt}\xivpt\@xivpt}
  64. \def\Large{\@setsize\Large{22pt}\xviipt\@xviipt}
  65. \def\LARGE{\@setsize\LARGE{25pt}\xxpt\@xxpt}
  66. \def\huge{\@setsize\huge{30pt}\xxvpt\@xxvpt}
  67. \let\Huge=\huge
  68.  
  69. \normalsize  % Choose the normalsize font.
  70.  
  71.  
  72. %  ****************************************
  73. %  *            PAGE LAYOUT               *
  74. %  ****************************************
  75. %
  76. % All margin dimensions measured from a point one inch from top and side
  77. % of page.  
  78.  
  79. % SIDE MARGINS:
  80. \oddsidemargin .25in      % Left margin on odd-numbered pages.
  81. \evensidemargin 1.25in      % Left margin on even-numbered pages.
  82.  
  83. \marginparwidth 1in    %   Width of marginal notes.
  84. \marginparsep 7pt        % Horizontal space between outer margin and 
  85.                          % marginal note
  86.  
  87.  
  88. % VERTICAL SPACING:        
  89.                          % Top of page:
  90. \topmargin .73in         %    Nominal distance from top of page to top
  91.                          %    of box containing running head.
  92. \headheight 12pt         %    Height of box containing running head.
  93. \headsep .275in          %    Space between running head and text.
  94. \topskip = 12pt          %    '\baselineskip' for first line of page.
  95.                          % Bottom of page:
  96. \footskip 30pt           %    Distance from baseline of box containing
  97.                          %    foot to baseline of last line of text.
  98.  
  99.  
  100. % DIMENSION OF TEXT:
  101. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  102. % roundoff.  The value of the multiplier was calculated as the floor
  103. % of the old \textheight minus \topskip, divided by \baselineskip for
  104. % \normalsize.  The old value of \textheight was 536.5pt.  \textheight
  105. % is the height of text (including footnotes and figures, excluding
  106. % running head and foot).
  107.  
  108. \textheight = 36\baselineskip
  109. \advance\textheight by \topskip
  110. \textwidth 5in           % Width of text line.
  111.                          % For two-column mode: 
  112. \columnsep 10pt          %    Space between columns 
  113. \columnseprule 0pt       %    Width of rule between columns.
  114.  
  115. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  116. % natural height instead of being stretched to exactly \textheight.
  117.  
  118. % FOOTNOTES:
  119.  
  120. \footnotesep 8.4pt    % Height of strut placed at the beginning of every
  121.                       % footnote = height of normal \footnotesize strut,
  122.                       % so no extra space between footnotes.
  123.  
  124. \skip\footins 10.8pt plus 4pt minus 2pt  % Space between last line of
  125.                                          % text and top of first
  126.                                          % footnote.
  127.  
  128. % FLOATS: (a float is something like a figure or table)
  129. %
  130. %  FOR FLOATS ON A TEXT PAGE:
  131. %
  132. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  133. \floatsep 14pt plus 2pt minus 4pt        % Space between adjacent floats
  134.                                          % moved to top or bottom of
  135.                                          % text page.
  136. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  137.                                          % floats at top or bottom of
  138.                                          % page.
  139. \intextsep 14pt plus 4pt minus 4pt       % Space between in-text figures
  140.                                          % and text.
  141. \@maxsep 20pt                            % The maximum of \floatsep, 
  142.                                          % \textfloatsep and \intextsep
  143.                                          % (minus the stretch and
  144.                                          % shrink).
  145. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  146. \dblfloatsep 14pt plus 2pt minus 4pt     % Same as \floatsep for
  147.                                          % double-column figures in
  148.                                          % two-column mode.
  149. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  150.                                          % double-column floats.
  151. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  152.                                          % and \dbltexfloatsep.
  153.  
  154. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  155. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  156. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  157.                          % be 0pt plus ...)
  158. \@fpsep 10pt plus 2fil   % Space between floats on float page/column.
  159. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column.
  160.                          % (Must be 0pt plus ... )
  161.  
  162. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  163. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be
  164.                          % 0pt plus ...)
  165. \@dblfpsep 10pt plus 2fil% Space between floats on float page.
  166. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
  167.                          % 0pt plus ... )
  168. % MARGINAL NOTES:
  169. %
  170. \marginparpush 7pt       % Minimum vertical separation between two
  171.                          % marginal notes.
  172.  
  173.  
  174. %  ****************************************
  175. %  *           PARAGRAPHING               *
  176. %  ****************************************
  177. %
  178. \parskip 0pt plus 1pt              % Extra vertical space between
  179.                                    % paragraphs.
  180. \parindent 1.5em                   % Width of paragraph indentation.
  181. %\topsep 10pt plus 4pt minus 6pt   % Extra vertical space, in addition
  182.                                    % to \parskip, added above and below
  183.                                    % list and paragraphing environments.
  184. \partopsep 3pt plus 2pt minus 2pt  % Extra vertical space, in addition
  185.                                    % to \parskip and \topsep, added when
  186.                                    % list leaves blank line before
  187.                                    % environment.
  188. %\itemsep 5pt plus 2.5pt minus 1pt % Extra vertical space, in addit