home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / programs / amiga / pastex / macros / latex2e / inputs / ltnews.cls < prev    next >
Text File  |  1994-06-10  |  12KB  |  436 lines

  1. % \iffalse meta-comment
  2. %
  3. % Copyright 1994 the LaTeX3 project and the individual authors.
  4. % All rights reserved. For further copyright information see the file
  5. % legal.txt, and any other copyright indicated in this file.
  6. % This file is part of the LaTeX2e system.
  7. % ----------------------------------------
  8. %  This system is distributed in the hope that it will be useful,
  9. %  but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. %  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. % IMPORTANT NOTICE:
  12. % For error reports in case of UNCHANGED versions see bugs.txt.
  13. % Please do not request updates from us directly.  Distribution is
  14. % done through Mail-Servers and TeX organizations.
  15. % You are not allowed to change this file.
  16. % You are allowed to distribute this file under the condition that
  17. % it is distributed together with all files mentioned in manifest.txt.
  18. % If you receive only some of these files from someone, complain!
  19. % You are NOT ALLOWED to distribute this file alone.  You are NOT
  20. % ALLOWED to take money for the distribution or use of either this
  21. % file or a changed version, except for a nominal charge for copying
  22. % etc.
  23. % \fi
  24. % Filename: ltnews.cls
  25. % Author: Alan Jeffrey
  26. % Version: 0.05
  27.  
  28. % This is the LaTeX2e document class for the `LaTeX News' information 
  29. % sheet which comes with every LaTeX release.  It may be useful for 
  30. % newsletters, or as an example of how simple newsletters can be set with 
  31. % LaTeX.  The changes log is at the end of the file.
  32.  
  33. % Copyright 1994 Alan Jeffrey and the LaTeX3 project.  All rights reserved.
  34.  
  35. % This is a LaTeX2e document class.
  36.  
  37. \NeedsTeXFormat{LaTeX2e}
  38.  
  39. \ProvidesClass{ltnews}[1994/05/31 Standard LaTeX class]
  40.  
  41. % The configuration file, used for passing options.
  42.  
  43. \InputIfFileExists{ltnews.cfg}{%
  44.    \ClassInfo{ltnews}{Using local configuration file}%
  45. }{%
  46.    \ClassInfo{ltnews}{No local configuration file}%
  47. }
  48.  
  49. % The lw35fonts option uses the fonts:
  50. %
  51. %    Adobe Palatino          (main text)
  52. %    Adobe Helvetica Bold    (headings)
  53. %    Courier                 (program listings)
  54. %    Mathptm math italic     (2e logo)
  55. %    Mathptm symbol font     (AMS logo)
  56. %
  57. % The type1fonts option uses the fonts:
  58. %    Adobe Utopia            (main text)
  59. %    URW Grotesk-T Bold      (headings)
  60. %    Lucida Sans typewriter  (program listings)
  61. %    Mathptm math italic     (2e logo)
  62. %    Mathptm symbol font     (AMS logo)
  63.  
  64. % The Adobe Palatino fonts:
  65.  
  66. \DeclareFontFamily{OT1}{ppl}{}
  67. \DeclareFontShape{OT1}{ppl}{m}{n}{<-> pplr7t}{}
  68. \DeclareFontShape{OT1}{ppl}{m}{sc}{<-> pplrc7t}{}
  69. \DeclareFontShape{OT1}{ppl}{m}{it}{<-> pplri7t}{}
  70.  
  71. % The Adobe Helvetica fonts:
  72.  
  73. \DeclareFontFamily{OT1}{phv}{}
  74. \DeclareFontShape{OT1}{phv}{b}{n}{<-> phvb7t}{}
  75.  
  76. % The Adobe Courier fonts:
  77.  
  78. \DeclareFontFamily{OT1}{pcr}{\hyphenchar\font=-1}
  79. \DeclareFontShape{OT1}{pcr}{m}{n}{<-> pcrr7t}{}
  80.  
  81. % The Utopia fonts:
  82.  
  83. \DeclareFontFamily{OT1}{put}{}
  84. \DeclareFontShape{OT1}{put}{m}{n}{<-> putr7t}{}
  85. \DeclareFontShape{OT1}{put}{m}{sc}{<-> putrc7t}{}
  86. \DeclareFontShape{OT1}{put}{m}{it}{<-> putri7t}{}
  87.  
  88. % The URW Grotesk fonts:
  89.  
  90. \DeclareFontFamily{OT1}{ugq}{}
  91. \DeclareFontShape{OT1}{ugq}{b}{n}{<-> ugqb7t}{}
  92.  
  93. % The Lucida Sans Typewriter fonts:
  94.  
  95. \DeclareFontFamily{OT1}{hlct}{\hyphenchar\font=-1}
  96. \DeclareFontShape{OT1}{hlct}{m}{n}{<-> hlct7t}{}
  97.  
  98. % The mathptm math italic:
  99.  
  100. \DeclareFontFamily{OML}{ptmcm}{\skewchar\font=127}
  101. \DeclareFontShape{OML}{ptmcm}{m}{it}{<-> zptmcmrm}{}
  102.  
  103. % The mathptm symbol font:
  104.  
  105. \DeclareFontFamily{OMS}{pzccm}{}
  106. \DeclareFontShape{OMS}{pzccm}{m}{n}{<-> zpzccmry}{}
  107.  
  108. % The TeX logo for use with Palatino.
  109.  
  110. \def\pplTeX{T\kern-.15em\lower.4ex\hbox{E}\kern-.1emX\@}
  111.  
  112. % The LaTeX logo for use with Palatino.
  113.  
  114. \DeclareRobustCommand{\pplLaTeX}{L\kern-.3em
  115.         {\setbox0\hbox{T}%
  116.          \vbox to\ht0{\hbox{%
  117.                             \csname S@\f@size\endcsname
  118.                             \fontsize\sf@size\z@
  119.                             \math@fontsfalse\selectfont
  120.                             A}%
  121.                       \vss}%
  122.         }%
  123.         \kern-.07em
  124.         \TeX}
  125.  
  126. % The TeX logo for use with Utopia.
  127.  
  128. \def\putTeX{T\kern-.1667em\lower.4ex\hbox{E}\kern-.075emX\@}
  129.  
  130. % The LaTeX logo for use with Utopia.
  131.  
  132. \DeclareRobustCommand{\putLaTeX}{L\kern-.2em
  133.         {\setbox0\hbox{T}%
  134.          \vbox to\ht0{\hbox{%
  135.                             \csname S@\f@size\endcsname
  136.                             \fontsize\sf@size\z@
  137.                             \math@fontsfalse\selectfont
  138.                             A}%
  139.                       \vss}%
  140.         }%
  141.         \kern-.05em
  142.         \TeX}
  143.  
  144. % The TeX logo for use with Helvetica.
  145.  
  146. \def\phvTeX{T\kern-.1em\lower.4ex\hbox{E}\kern-.05emX\@}
  147.  
  148. % The LaTeX logo for use with Helvetica.
  149.  
  150. \DeclareRobustCommand{\phvLaTeX}{L\kern-.3em
  151.         {\calculate@math@sizes
  152.          \setbox0\hbox{T}%
  153.          \vbox to\ht0{\hbox{%
  154.                             \csname S@\f@size\endcsname
  155.                             \fontsize\sf@size\z@
  156.                             \math@fontsfalse\selectfont
  157.                             A}%
  158.                       \vss}%
  159.         }%
  160.         \kern-.05em
  161.         \TeX}
  162.  
  163. % The TeX logo for use with Grotesk.
  164.  
  165. \def\ugqTeX{T\kern-.1em\lower.4ex\hbox{E}\kern-.05emX\@}
  166.  
  167. % The LaTeX logo for use with Grotesk.
  168.  
  169. \DeclareRobustCommand{\ugqLaTeX}{L\kern-.15em
  170.         {\calculate@math@sizes
  171.          \setbox0\hbox{T}%
  172.          \vbox to\ht0{\hbox{%
  173.                             \csname S@\f@size\endcsname
  174.                             \fontsize\sf@size\z@
  175.                             \math@fontsfalse\selectfont
  176.                             A}%
  177.                       \vss}%
  178.         }%
  179.         \kern-.01em
  180.         \TeX}
  181.  
  182. % The TeX logo for use with CMSS.
  183.  
  184. \def\cmssTeX{T\kern-.2em\lower.4ex\hbox{E}\kern-.05emX\@}
  185.  
  186. % The LaTeX logo for use with CMSS.
  187.  
  188. \DeclareRobustCommand{\cmssLaTeX}{L\kern-.22em
  189.         {\setbox0\hbox{T}%
  190.          \vbox to\ht0{\hbox{%
  191.                             \csname S@\f@size\endcsname
  192.                             \fontsize\sf@size\z@
  193.                             \math@fontsfalse\selectfont
  194.                             A}%
  195.                       \vss}%
  196.         }%
  197.         \kern-.17em
  198.         \TeX}
  199.  
  200. % Switch off some of the article options.
  201.  
  202. \DeclareOption{a4paper}{\OptionNotUsed}
  203. \DeclareOption{a5paper}{\OptionNotUsed}
  204. \DeclareOption{b5paper}{\OptionNotUsed}
  205. \DeclareOption{letterpaper}{\OptionNotUsed}
  206. \DeclareOption{legalpaper}{\OptionNotUsed}
  207. \DeclareOption{executivepaper}{\OptionNotUsed}
  208. \DeclareOption{landscape}{\OptionNotUsed}
  209. \DeclareOption{twoside}{\OptionNotUsed}
  210. \DeclareOption{titlepage}{\OptionNotUsed}
  211. \DeclareOption{onecolumn}{\OptionNotUsed}
  212.  
  213. % The CM fonts
  214.  
  215. \newcommand{\@titlefont}{\normalfont\Huge}
  216. \newcommand{\@indiciafont}{\normalfont\footnotesize}
  217. \newcommand{\@headingfont}{%
  218.    \large\sffamily\slshape
  219.    \let\LaTeX\cmssLaTeX\let\TeX\cmssTeX
  220. }
  221.  
  222. % The LW 35 fonts option
  223.  
  224. \DeclareOption{lw35fonts}{%
  225.    \renewcommand{\rmdefault}{ppl}%
  226.    \renewcommand{\ttdefault}{pcr}%
  227.    \renewcommand{\sfdefault}{phv}%
  228.    \renewcommand{\@titlefont}{%
  229.       \fontsize{50}{60}\fontfamily{phv}\fontseries{b}\selectfont
  230.       \let\LaTeX\phvLaTeX\let\TeX\phvTeX
  231.    }%
  232.    \renewcommand{\@indiciafont}{%
  233.       \fontsize{8}{10}\fontfamily{ppl}\fontshape{it}\selectfont
  234.    }%
  235.    \renewcommand{\@headingfont}{%
  236.       \fontsize{12}{14}\fontfamily{phv}\fontseries{b}\selectfont
  237.       \let\LaTeX\phvLaTeX\let\TeX\phvTeX
  238.    }%
  239.    \DeclareSymbolFont{letters}{OML}{ptmcm}{m}{it}%
  240.    \DeclareSymbolFont{symbols}{OMS}{pzccm}{m}{n}%
  241.    \let\LaTeX\pplLaTeX
  242.    \let\TeX\pplTeX
  243. }
  244.  
  245. % The type 1 fonts option
  246.  
  247. \DeclareOption{type1fonts}{%
  248.    \renewcommand{\rmdefault}{put}%
  249.    \renewcommand{\ttdefault}{hlct}%
  250.    \renewcommand{\sfdefault}{ugq}%
  251.    \renewcommand{\@titlefont}{%
  252.       \fontsize{50}{60}\fontfamily{ugq}\fontseries{b}\selectfont
  253.       \let\LaTeX\ugqLaTeX\let\TeX\ugqTeX
  254.    }%
  255.    \renewcommand{\@indiciafont}{%
  256.       \fontsize{8}{10}\fontfamily{put}\fontshape{it}\selectfont
  257.    }%
  258.    \renewcommand{\@headingfont}{%
  259.       \fontsize{12}{14}\fontfamily{ugq}\fontseries{b}\selectfont
  260.       \let\LaTeX\ugqLaTeX\let\TeX\ugqTeX
  261.    }%
  262.    \renewcommand{\verbatim@font}{%
  263.       \fontsize{9}{12}\fontfamily{hlct}\selectfont
  264.    }%
  265.    \De