summaryrefslogtreecommitdiff
path: root/usergrps/uktug/baskervi/8_1/bv-bits.sty
diff options
context:
space:
mode:
Diffstat (limited to 'usergrps/uktug/baskervi/8_1/bv-bits.sty')
-rw-r--r--usergrps/uktug/baskervi/8_1/bv-bits.sty91
1 files changed, 91 insertions, 0 deletions
diff --git a/usergrps/uktug/baskervi/8_1/bv-bits.sty b/usergrps/uktug/baskervi/8_1/bv-bits.sty
new file mode 100644
index 0000000000..4c2652e312
--- /dev/null
+++ b/usergrps/uktug/baskervi/8_1/bv-bits.sty
@@ -0,0 +1,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}}