Debian Codegraph @

texmf-dist/doc/texlive/texlive-en/archive/tex-live.sty-2003

raw
1 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
2 \ProvidesPackage{tex-live}[2003/09/01 v1.0 TeX Live documentation style]
3 %
4 \RequirePackage{alltt}
5 \RequirePackage{array}
6 \RequirePackage{colortbl}
7 \RequirePackage{graphicx}
8 \RequirePackage{here}
9 \RequirePackage{longtable}
10 \RequirePackage{pslatex}
11 \RequirePackage{shortvrb}
12 \RequirePackage[normalem]{ulem}
13 \RequirePackage[obeyspaces]{url}
14 \RequirePackage{xspace}
15 \usepackage[T1]{fontenc}
16 \usepackage[latin1]{inputenc}
17 %\usepackage[textcomp]{lmodern}
18 %
19 \RequirePackage{europs}
20 \let\euro\EUR
21 %
22 \RequirePackage{mflogo}
23 \def\MP{MetaPost}
24 \let\mf\MF
25 %
26 % for a proper \acro command (even in the context of the definition in
27 % ltugboat -- \DRC overrides without checking)
28 \RequirePackage{relsize}
29 \DeclareRobustCommand{\acro}[1]{\textsmaller{#1}\@}
30 %
31 \RequirePackage{fancyvrb}
32 \DefineVerbatimEnvironment{verbatim}{Verbatim}{fontsize=\normalsize}
33 \DefineVerbatimEnvironment{fverbatim}{Verbatim}{fontsize=\footnotesize}
34 \DefineVerbatimEnvironment{sverbatim}{Verbatim}{fontsize=\small}
35 \DefineVerbatimEnvironment{boxedverbatim}
36 {Verbatim}{fontsize=\scriptsize,frame=single}
37 \DefineVerbatimEnvironment{Verbatim}{Verbatim}{fontsize=\normalsize}
38 \def\verbatiminput#1{\VerbatimInput[fontsize=\scriptsize]{#1}}
39 \def\boxedverbatiminput#1{\VerbatimInput[frame=single,fontsize=\scriptsize]{#1}}
40 \def\listinginput#1#2{\VerbatimInput[fontsize=\scriptsize,firstnumber=#1,numbers=left]{#2}}
41 \MakeShortVerb\|
42 %
43 %
44 % Done with packages.
45 %
46 % Page layout.
47 \advance\textwidth by 1.1in
48 \advance\oddsidemargin by -.55in
49 \advance\evensidemargin by -.55in
50 %
51 \advance\textheight by 1in
52 \advance\topmargin by -.5in
53 \advance\footskip by -.5in
54 \pagestyle{headings}
55 %
56 % LaTeX parameters.
57 \renewcommand{\topfraction}{0.85}
58 \renewcommand{\floatpagefraction}{0.86}
59 \renewcommand{\textfraction}{0.1}
60 \renewcommand{\belowcaptionskip}{4pt}
61 \setcounter{tocdepth}{2}
62 \setcounter{topnumber}{5}
63 \setcounter{totalnumber}{5}
64 %
65 % linebreaking, etc.
66 \pretolerance=1000
67 \tolerance=1500
68 \hbadness=3000
69 \vbadness=3000
70 \hyphenpenalty=400
71 \emergencystretch=.1\hsize
72 \relpenalty=500
73 %
74 % fonts
75 \let\sl\it
76 \let\slfamily\itfamily
77 \let\textsl\textit
78 %\def\ttdefault{cmtt}
79 \def\ttdefault{lmtt}
80 %
81 % various sorts of names
82 \newcommand*{\pkgname}[1]{\textsf{#1}}% package name
83 \newcommand*{\optname}[1]{\texttt{#1}}% (package,class) option name
84 \newcommand*{\cmdname}[1]{\textsf{#1}}% command name
85 \newcommand*{\colname}[1]{\emph{#1}}% collection name
86 \newcommand*{\dirname}[1]{\path{#1}}% directory name
87 \newcommand*{\filename}[1]{\path{#1}}% file name
88 \newcommand*{\envname}[1]{\texttt{#1}}% environment variable name
89 \newcommand{\code}[1]{\texttt{#1}}
90 \newcommand{\file}[1]{\texttt{#1}}
91 \newcommand{\prog}[1]{\texttt{#1}}
92 \newcommand{\samp}[1]{`\texttt{#1}'}
93 \newcommand{\var}[1]{\emph{#1}}
94 \newcommand{\ttvar}[1]{\texttt{\var{#1}}}
95 %
96 % underlined command input.
97 \def\Ucom#1{%
98 \uline{\rule[-.2\baselineskip]{0pt}{.9\baselineskip}\ttfamily #1}}
99 \def\OnCD#1{\href{../../../../#1}{\path{#1}}}
100 %
101 % GUI menu/button/tab sequence:
102 \def\guiseq#1{\textsf{#1}}
103 \def\arw{\unskip$\rightarrow$\ignorespaces}
104 %
105 % Special names.
106 \def\dpi{$\,$dpi\xspace}
107 \def\bs{{\protect\normalfont\ttfamily\char'134}}
108 \DeclareRobustCommand{\cs}[1]{{\normalfont\ttfamily\char`\\#1}}
109 \def\Q#1{\par\vskip6pt\leftline{#1}\par}
110 \def\hyph{-}
111 %
112 % many abbreviations.
113 \newcommand{\CS}{$\mathcal{C}\kern-.1667em\lower.5ex%
114 \hbox{$\mathcal{S}$}\kern-.075em $}
115 \def\AFMtoTFM{\cmdname{AFM2TFM}\null}
116 \def\bv{\emph{Baskerville}}
117 \let\BV=\bv
118 \def\Dash{\unskip\nobreak\thinspace---\thinspace\ignorespaces}
119 \def\dvicopy{\cmdname{dvicopy}}
120 \def\dvidvi{\cmdname{dvidvi}}
121 \def\dvips{\cmdname{dvips}}
122 \def\eTeX{$\varepsilon$-\TeX}
123 \def\fpTeX{\textrm{fp}\TeX\xspace}
124 \def\GFtoDVI{\cmdname{GFtoDVI}\null}
125 \def\GFtoPK{\cmdname{GFtoPK}\null}
126 \def\GFtype{\cmdname{GFtype}}
127 \def\KPS{Kpathsea}
128 \def\La{La}
129 \def\OMEGA{$\Omega$}
130 \def\OzMF{OzMF}
131 \def\OzMP{OzMP}
132 \def\OzTeX{O\kern-.03em z\kern-.15em\TeX}
133 \def\PKtype{\cmdname{PKtype}}
134 \def\PLtoTF{\cmdname{PLtoTF}\null}
135 \def\teTeX{\textrm{te}\TeX\xspace}
136 \def\TeXLive{\TeX{} Live\xspace}
137 \def\TFtoPL{\cmdname{TFtoPL}\null}
138 \def\TK{\textsf{\TeX-Collection}}
139 \def\TypeI{Type~1}
140 \def\VFtoVP{\cmdname{VFtoVP}\null}
141 \def\VPtoVF{\cmdname{VPtoVF}\null}
142 \def\XEmTeX{\textrm{XEm}\TeX\xspace}
143 \def\XEmacs{\textrm{XEmacs}\xspace}
144 \def\Webc{Web2C}
145 \providecommand*{\CD}{\acro{CD}\xspace}
146 \providecommand*{\CTAN}{\acro{CTAN}\xspace}
147 \providecommand*{\DVD}{\acro{DVD}\xspace}
148 \providecommand*{\HTML}{\acro{HTML}\xspace}
149 \providecommand*{\MacOSX}{Mac\,\acro{OS\,X}\xspace}
150 \providecommand*{\PS}{Post\-Script\xspace}
151 \providecommand*{\TDS}{\acro{TDS}\xspace}
152 \providecommand*{\dvi}{\acro{DVI}\xspace}
153 \providecommand*{\web}{\texttt{web}\xspace}
154 %
155 % description-like environment that uses tt instead of bf, and doesn't
156 % go to the left margin. Without the \hfil, get an underfull box.
157 % Don't why \descriptionlabel doesn't.
158 \newenvironment{ttdescription}
159 {\begin{list}{label must be supplied}{%
160 \itemsep=0pt % these lists tend to have short descriptions
161 \let\makelabel=\ttdescriptionlabel}}%
162 {\end{list}}
163 \newcommand*\ttdescriptionlabel[1]{\hspace\labelsep
164 \normalfont\ttfamily #1\hfil}
165 %
166 % Likewise, for commands using sans serif.
167 \newenvironment{cmddescription}
168 {\begin{list}{label must be supplied}{%
169 \itemsep=0pt
170 \let\makelabel=\cmddescriptionlabel}}%
171 {\end{list}}
172 \newcommand*\cmddescriptionlabel[1]{\hspace\labelsep
173 \normalfont\sffamily #1\hfil}
174 %
175 \newsavebox{\wbox}
176 \newenvironment{warningbox}
177 {\begin{lrbox}{\wbox}
178 \begin{minipage}{.95\textwidth}}
179 {\end{minipage}\end{lrbox}\fbox{\usebox{\wbox}}}
180 %
181 % lrbox is used as a representation marking. I changed it to
182 % lrBox in tne source file, to get closer to logical marking
183 \newsavebox{\mylrbox}
184 \newenvironment{lrBox}
185 {\begin{lrbox}{\mylrbox}}
186 {\end{lrbox}}
187 %
188 %
189 % output setup
190 %
191 \newif\ifSingleColumn
192 \providecommand{\Status}{0}
193 %\typeout{Status is \Status}
194 %
195 % By default, we won't be creating hyperlinks.
196 \def\href#1#2{#2}
197 \def\hypertarget#1#2{}
198 \def\email#1{\href{mailto:#1}{\path{#1}}} % \path comes from url
199 %
200 %
201 \ifcase\Status
202 % \Status = 0
203 \typeout{TeX Live documentation for printing}
204 \SingleColumntrue
205 \newenvironment{multicols}[1]{}{}
206 \or
207 % \Status = 1
208 \typeout{TeX Live documentation in PDF format}
209 \RequirePackage[colorlinks,bookmarksopen,
210 pdfstartview={FitBH -320000},hyperindex]{hyperref}
211 \SingleColumntrue
212 \newenvironment{multicols}[1]{}{}
213 \or
214 % \Status = 2
215 \typeout{TeX Live documentation in HTML format}
216 \RequirePackage[latex4ht]{tex4ht}
217 \or
218 % \Status = 3
219 \typeout{TeX Live documentation as a Baskerville issue}
220 \@ifundefined{Fonts}%
221 {\RequirePackage{ae}}%
222 {\RequirePackage[T1]{\Fonts}}
223 \RequirePackage{bvoutln}% outline of baskerville
224 \RequirePackage{multicol}
225 \SingleColumnfalse
226 \or
227 % \Status = 4
228 \typeout{TeX Live documentation as a TUB article}
229 \@ifundefined{Fonts}%
230 {\RequirePackage{ae}}%
231 {\RequirePackage[T1]{\Fonts}}
232 \SingleColumnfalse
233 \newenvironment{multicols}[1]{}{}
234 \fi
235 %
236 \ifnum \Status=4
237 \else
238 \RequirePackage{texnames}
239 \providecommand\TeXXeT{\TeX-{}-%
240 \kern-.1emX\kern-.125em\lower.5ex\hbox{E}\kern-.1667emT\@}
241 \fi
242 %
243 % hacking at sections etc., to pay attention to baskerville status
244 \newcommand{\@condend@multicols}{%
245 \ifSingleColumn
246 \else
247 \def\@tempa{multicols}%
248 \ifx\@tempa\@currenvir
249 \end{multicols}%
250 \fi
251 \fi
252 }
253 \let\Section\section
254 \renewcommand{\section}{%
255 \@ifstar
256 {\Section*}%
257 {%
258 \@condend@multicols
259 \@dblarg\@full@section
260 }%
261 }
262 \def\@full@section[#1]#2{%
263 \Section[#1]{#2}%
264 \ifSingleColumn\else\begin{multicols}{2}\fi
265 }
266 \let\SubSection\subsection
267 \renewcommand{\subsection}{%
268 \@ifstar{\SubSection*}%
269 {%
270 \@condend@multicols
271 \@dblarg\@full@subsection
272 }
273 }
274 \def\@full@subsection[#1]#2{%
275 \SubSection[#1]{#2}%
276 \ifSingleColumn\else\begin{multicols}{2}\fi
277 }
278
279 % calm things down a bit if we're in a multiple-column version
280 \ifSingleColumn
281 \else
282 \def\@listI{\leftmargin\leftmargini
283 \parsep \z@
284 \topsep 2\p@ \@plus 1\p@ \@minus 1\p@
285 \itemsep \z@ \@plus .1\p@
286 }
287 \let\@listi\@listI
288 \@listi
289 \def\@listii{\leftmargin\leftmarginii
290 \labelwidth\leftmarginii\advance\labelwidth-\labelsep
291 \topsep 2\p@ \@plus 1\p@ \@minus 1\p@
292 \parsep \z@
293 \itemsep \z@ \@plus .1\p@
294 }
295 \def\@listiii{\leftmargin\leftmarginiii
296 \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
297 \topsep 1\p@ \@plus 1\p@ \@minus 1\p@
298 \parsep \z@
299 \partopsep \z@
300 \itemsep \topsep
301 }
302 \def\@listiv{\leftmargin\leftmarginiv
303 \labelwidth\leftmarginiv\advance\labelwidth-\labelsep
304 }
305 \def\@listv{\leftmargin\leftmarginv
306 \labelwidth\leftmarginv\advance\labelwidth-\labelsep
307 }
308 \def\@listvi{\leftmargin\leftmarginvi
309 \labelwidth\leftmarginvi\advance\labelwidth-\labelsep
310 }
311 \fi
312 %
313 % array package stuff
314 \def\arraybackslash{\let\\=\@arraycr}
315 \newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}}
316 %
317 % shaded rows (using facilities of colortbl)
318 %
319 \definecolor{pale}{gray}{.9}
320 \newcount\colrow
321 \gdef\RowColor{pale}
322 \def\SetRowColor{%
323 \rowcolor{\RowColor}%
324 \global\advance\colrow by1\relax
325 \ifodd\colrow
326 \gdef\RowColor{pale}%
327 \else
328 \gdef\RowColor{white}%
329 \fi
330 }
331 % redefine to hack up a reference even though we don't need it...
332 \renewcommand\@bibitem[1]{\if@filesw \immediate\write\@auxout
333 {\string\bibcite{#1}{?}}\fi\ignorespaces}
334 %
335 % \unknownTeXlive is a dummy texlive entry for the biblio
336 \newcommand\unknownTeXlive[2][\relax]{\textbf{\textsc{unknown}}%
337 \global\@all@unknown\expandafter{\the\@all@unknown{#2}}%
338 }
339 \newtoks\@all@unknown
340 \global\@all@unknown{}
341 \AtEndDocument{\@message@unknowns}
342 \def\@message@unknowns{\edef\@tempa{\the\@all@unknown}%
343 \ifx\@tempa\@empty
344 \else
345 \def\@tempa{*** TeX live package location of }%
346 \expandafter\@output@unknowns\the\@all@unknown\@empty
347 \fi
348 }
349 \def\@output@unknowns#1{\edef\@tempb{#1}%
350 \ifx\@tempb\@empty
351 \typeout{ unknown}%
352 \else
353 \message{\@tempa#1,}%
354 \def\@tempa{}%
355 \expandafter\@output@unknowns
356 \fi
357 }
358 %
359 % a hack for the bibliography
360 \bibliographystyle{tex-live}
361 \newif\iffirstbibentry
362 \global\firstbibentrytrue
363 \let\@@bibitem\bibitem
364 \renewcommand\bibitem{\iffirstbibentry
365 \global\firstbibentryfalse
366 \else
367 \\\SetRowColor
368 \fi
369 \@@bibitem
370 }
371
372
373 % for \Dings
374 \RequirePackage{pifont}
375 % available for inter-article dinglines
376 \def\Dings{\nopagebreak{\footnotesize\dingline{167}}}
377
378 \endinput