home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texextr2 / !TeX / Misc / LaTeX / doc / bk10 < prev    next >
Text File  |  1992-01-16  |  17KB  |  417 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, the
  30. % document style defines \@normalsize instead of \normalsize .  This
  31. % is done only for \normalsize, not for any other size-changing
  32. % commands.
  33.  
  34. \def\@normalsize{\@setsize\normalsize{12pt}\xpt\@xpt
  35. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  36. \belowdisplayskip \abovedisplayskip
  37. \abovedisplayshortskip  \z@ plus3\p@   
  38. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  39. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  40.  
  41.  
  42. \def\small{\@setsize\small{11pt}\ixpt\@ixpt
  43. \abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
  44. \belowdisplayskip \abovedisplayskip
  45. \abovedisplayshortskip \z@ plus2\p@
  46. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  47. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  48. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  49. \itemsep \parsep}}
  50.  
  51. \def\footnotesize{\@setsize\footnotesize{9.5pt}\viiipt\@viiipt
  52. \abovedisplayskip 6\p@ plus2\p@ minus4\p@
  53. \belowdisplayskip \abovedisplayskip
  54. \abovedisplayshortskip \z@ plus\p@
  55. \belowdisplayshortskip 3\p@ plus\p@ minus2\p@
  56. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  57. \topsep 3\p@ plus\p@ minus\p@\parsep 2\p@ plus\p@ minus\p@
  58. \itemsep \parsep}}
  59.  
  60. \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
  61. \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
  62. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  63. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  64. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  65. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  66. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  67.  
  68. \normalsize  % Choose the normalsize font.
  69.  
  70.  
  71. %  ****************************************
  72. %  *            PAGE LAYOUT               *
  73. %  ****************************************
  74. %
  75. % All margin dimensions measured from a point one inch from top and side
  76. % of page.  
  77.  
  78. % SIDE MARGINS:
  79. \oddsidemargin .5in      % Left margin on odd-numbered pages.
  80. \evensidemargin 1.5in      % Left margin on even-numbered pages.
  81.  
  82. \marginparwidth .75in    %   Width of marginal notes.
  83. \marginparsep 7pt        % Horizontal space between outer margin and 
  84.                          % marginal note
  85.  
  86.  
  87. % VERTICAL SPACING:        
  88.                          % Top of page:
  89. \topmargin .75in         %    Nominal distance from top of page to top
  90.                          %    of box containing running head.
  91. \headheight 12pt         %    Height of box containing running head.
  92. \headsep   .25in         %    Space between running head and text.
  93. \topskip = 10pt          %    '\baselineskip' for first line of page.
  94.                          % Bottom of page:
  95. \footskip .35in          %    Distance from baseline of box containing
  96.                          %    foot to baseline of last line of text.
  97.  
  98.  
  99. % DIMENSION OF TEXT:
  100. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  101. % roundoff.  The value of the multiplier was calculated as the floor
  102. % of the old \textheight minus \topskip, divided by \baselineskip for
  103. % \normalsize.  The old value of \textheight was 504pt.  \textheight
  104. % is the height of text (including footnotes and figures, excluding
  105. % running head and foot).
  106.  
  107. \textheight = 41\baselineskip
  108. \advance\textheight by \topskip
  109.  
  110. \textwidth 4.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 6.65pt   % 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 9pt plus 4pt minus 2pt  % Space between last line of text
  125.                                       % and top of first footnote.
  126.  
  127. % FLOATS: (a float is something like a figure or table)
  128. %
  129. %  FOR FLOATS ON A TEXT PAGE:
  130. %
  131. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  132. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats
  133.                                          % moved to top or bottom of
  134.                                          % text page.
  135. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  136.                                          % floats at top or bottom of
  137.                                          % page.
  138. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures
  139.                                          % and text.
  140. \@maxsep 20pt                            % The maximum of \floatsep, 
  141.                                          % \textfloatsep and \intextsep
  142.                                          % (minus the stretch and
  143.                                          % shrink).
  144. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  145. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for
  146.                                          % double-column figures in
  147.                                          % two-column mode.
  148. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  149.                                          % double-column  floats.
  150. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  151.                                          % and \dbltexfloatsep.
  152.  
  153. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  154. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  155. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  156.                          % be 0pt plus ...)
  157. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
  158. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must
  159.                          % be 0pt plus ... )
  160.  
  161. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  162. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt
  163.                          % plus ...)
  164. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  165. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be
  166.                          % 0pt plus ... )
  167. % MARGINAL NOTES:
  168. %
  169. \marginparpush 5pt       % Minimum vertical separation between two
  170.                          % marginal notes.
  171.  
  172.  
  173. %  ****************************************
  174. %  *           PARAGRAPHING               *
  175. %  ****************************************
  176. %
  177. \parskip 0pt plus 1pt              % Extra vertical space between
  178.                                    % paragraphs.
  179. \parindent 15pt                    % Width of paragraph indentation.
  180. %\topsep 8pt plus 2pt minus 4pt    % Extra vertical space, in addition
  181.                                    % to \parskip, added above and below
  182.                                    % list and paragraphing environments.
  183. \partopsep 2pt plus 1pt minus 1pt  % Extra vertical space, in addition
  184.                                    % to \parskip and \topsep, added when
  185.                                    % user leaves blank line before
  186.                                    % environment.
  187. %\itemsep 4pt plus 2pt minus 1pt   % Extra vertical space, in addition
  188.                                    % to \parskip, added between list
  189.