blob: 4c2652e31274983ab32c99d7bca31b027d7c7938 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
\RequirePackage{xspace}
\IfFileExists{relsize.sty}%
{\RequirePackage{relsize}}%
{\providecommand\textsmaller[1]{{\small##1}}}
%
\IfFileExists{url.sty}%
{\RequirePackage{url}%
\let\Newsgroup\url}%
{}
\@ifundefined{Newsgroup}{%
\def\Newsgroup|#1|{\texttt{#1}}%
}{}
%
\setcounter{secnumdepth}{-1}
%
\providecommand\acro[1]{\textsmaller{#1}\@}
\providecommand\Dash{\nobreak\thinspace---\thinspace}
\providecommand\dash{\nobreak\thinspace--\thinspace}
\providecommand\tub{\textsl{TUGboat}}
\providecommand\BV{\emph{Baskerville}}
\providecommand\uktug{\textsc{uk}\acro{TUG}}
\providecommand\LaTeXo{\LaTeX\,2.09}
\providecommand\CDROM{\acro{CD}-\acro{ROM}}
\providecommand\FAQ{\acro{FAQ}}
%
% Create the Article environment (if it doesn't already exist) on the
% ground
\@ifundefined{Article}{%
\newenvironment{Article}{\maketitle}{}%
\let\BV@@title\title
\renewcommand\title[2][]{\BV@@title{#2}}}%
{}
%
% commands to typeset commands
%
% just the cs name
\@ifundefined{cs}{%
\DeclareRobustCommand\cs[1]{%
\texttt{%
\expandafter\string\csname#1\endcsname}}%
}{}
%
% a command with its formal parameters
\@ifundefined{cmd}{%
\DeclareRobustCommand\cmd{%
\begingroup
\ttfamily\selectfont
\makeatletter
\BV@cmd@arg
}
\newcommand\BV@cmd@arg[1]{%
\string#1%
\futurelet\@tempa\BV@cmd@a
}
\def\BV@cmd@a{%
\ifx\@tempa\bgroup
\expandafter\BV@cmd@marg
\else
\ifx\@tempa[% ]
\expandafter\BV@cmd@oarg
\else
\expandafter\endgroup
\fi
\fi
}
\def\BV@cmd@marg#1{%
\char`\{%
{%
\rmfamily\itshape\selectfont
#1%
}%
\char`\}
\futurelet\@tempa\BV@cmd@a
}
\def\BV@cmd@oarg[#1]{%
\char`\[%
{%
\rmfamily\itshape\selectfont
#1%
}%
\char`\]%
\futurelet\@tempa\BV@cmd@a
}
}% \cmd undefined
{}
%
% define a poor-man's version of the \meta used in doc.sty. Perhaps
% some day we'll need the full McCoy...
\providecommand\meta[1]{%
\ensuremath{\langle}\emph{#1}\ensuremath{\rangle}}
|