%% LaTeX2e package for the GELLMU edition of the UKTUG FAQ %% Hacked from: ctan:/tex-archive/usergrps/uktug/faq/faq.sty 2000/07/07 %% Mainly we need the logo code %% % This is a LaTeX2e package for the UKTUG FAQ document. % \ProvidesPackage{lfaq}[2000/06/21 UK TUG package for TeX FAQ] % % uses production LaTeX 2e commands \NeedsTeXFormat{LaTeX2e}[1994/06/01]% at least! % % version 0.1 RF 1994/09/26 % 0.2 RF 1994/10/09-15 % 0.3 RF 1994/10/16 (after suggestions from Alan Jeffrey) % 0.4 RF 1994/10/22 % \def\fileversion{2.1} \def\filedate{2000/06/21} % \typeout{UK TUG FAQ macros v\fileversion, \filedate} % \newif\ifpublicversion \publicversiontrue % code for handling logo font \RequirePackage{ifthen} \RequirePackage{mflogo} \ifpublicversion \renewcommand{\MP}{Meta\-Post} \let\faq@@MF\MF \def\faq@bx{bx} \DeclareRobustCommand{\MF}{{% \ifx\f@series\faq@bx \expandafter\textmd% \fi {\faq@@MF}% }% } \fi % % get texnames package (as amended) \RequirePackage{texnames} % % the Baskerville and other logos and abbreviations \providecommand\BV{\emph{Baskerville}} \providecommand\DANTE{\acro{DANTE}\@} \providecommand\MSDOS{\acro{MS-DOS}\@} \providecommand\CDROM{\acro{CD-ROM}\@} \providecommand\TeXXeT{\TeX-{}-X\lower.5ex\hbox{E}\kern-.1667emT\@} \providecommand\MLTeX{ML-\TeX} \def\careof{\leavevmode\hbox{\raise.75ex\hbox{c}\kern-.15em /\kern-.125em\smash{\lower.3ex\hbox{o}}}} %% This next stuff supports \acro, which GELLMU bypasses in lfaq.glm, %% but some of the logos use it. \DeclareRobustCommand\SMC{% \ifx\@currsize\normalsize\small\else \ifx\@currsize\small\footnotesize\else \ifx\@currsize\footnotesize\scriptsize\else \ifx\@currsize\large\normalsize\else \ifx\@currsize\Large\large\else \ifx\@currsize\LARGE\Large\else \ifx\@currsize\scriptsize\tiny\else \ifx\@currsize\tiny\tiny\else \ifx\@currsize\huge\LARGE\else \ifx\@currsize\Huge\huge\else \small\SMC@unknown@warning \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi } \newcommand\SMC@unknown@warning{\PackageWarning{faq}{Unknown text font size command -- using \string\small}} \DeclareRobustCommand\textSMC[1]{{\SMC #1}} \DeclareRobustCommand\acro[1]{\textSMC{#1}\@} %\TUGboat (effectively) takes arguments {}vol(issue) \DeclareRobustCommand\TUGboat[1]{\expandafter\@TUGboat\ignorespaces} \def\@TUGboat#1(#2){\textsl{TUGboat} \textbf{#1}(#2)} % % The NTS and eTeX (and for consistency Eplain) logos \DeclareRobustCommand\NTS{$\mathcal{N}$\lower.5ex\hbox {$\mathcal{T}$}$\mathcal{S}$\@} \DeclareRobustCommand\eTeX{{$\varepsilon$}-\TeX} \DeclareRobustCommand\Eplain{Eplain} \DeclareRobustCommand\PDFTeX{\acro{PDF}\TeX} \DeclareRobustCommand\PDFLaTeX{\acro{PDF}\LaTeX} \DeclareRobustCommand\CONTeXT{CON\TeX{}T} \DeclareRobustCommand\TeXsis{\TeX{}sis} % % Other odds and ends (appear differently in TeX and http or plain % text \DeclareRobustCommand\WYSIWYG{\textsc{wysiwyg}} % % Command for doing `square one' :-} \newcommand\sqfbox[1]{\framebox{\makebox[\totalheight]{#1\/}}} % % Here's a \fullline macro that works in lists and so on \newcommand\fullline[1]{\@tempdima\hsize\relax \advance\@tempdima-\leftmargin\relax \advance\@tempdima-\rightmargin\relax \hb@xt@\@tempdima{#1}} % % for tidy expression of things with parentheses around them: \newcommand\parens[1]{(#1)} \newcommand\oparen{(}%)( [footling around to match brackety things in emacs] \newcommand\cparen{)} % % 2e's LaTeX logo sets the A in scripstyle jammed up to the top of the T; it % also has the advantage that it's set in the same font as the % surrounding text. However, the esteemed bbeeton says the logo looks % "squidge awful" in italic text (I agree; and the same is true of its % behaviour in slanted text) % % So here's a version that allows for the slant of the leading L \DeclareRobustCommand{\LaTeX}{L% {\setbox0\hbox{T}% \setbox\@tempboxa\hbox{$\m@th$% \csname S@\f@size\endcsname \fontsize\sf@size\z@ \math@fontsfalse\selectfont A}% \@tempdima\ht0 \advance\@tempdima-\ht\@tempboxa \@tempdima\strip@pt\fontdimen1\font\@tempdima \advance\@tempdima-.36em \kern\@tempdima \vbox to\ht0{\box\@tempboxa \vss}% }% \kern-.15em \TeX} % % Ditto for \AllTeX (as used in TUGboat) \DeclareRobustCommand{\AllTeX}{(L% {\setbox0\hbox{T}% \setbox\@tempboxa\hbox{$\m@th$% \csname S@\f@size\endcsname \fontsize\sf@size\z@ \math@fontsfalse\selectfont A}% \@tempdima\ht0 \advance\@tempdima-\ht\@tempboxa \@tempdima\strip@pt\fontdimen1\font\@tempdima \advance\@tempdima-.36em \kern\@tempdima \vbox to\ht0{\box\@tempboxa \vss}% }\kern-.075em)% \kern-.075em\TeX} % % A similar game is used in defining an `all LaTeX' sort of thing: \DeclareRobustCommand\twee{2$_{\textstyle\varepsilon}$} % % it proves that, for Alan's stuff, the following needs to have been % done _before_ we define the macros %%% Does GELLMU actually use any of that which follows ?? % another little oddity (from doc.sty originally, iirc) \newcommand\meta[1]{\ensuremath{\langle}\emph{#1}\ensuremath{\rangle}} % % ISBN references \def\ISBN#1{\mbox{\acro{ISBN}}~#1} % a slight variation of description for lists of book titles \newcommand{\booklabel}[1]{\hspace\labelsep\normalfont\itshape #1} \newenvironment{booklist}{\begin{list}{}% {\labelwidth\z@ \itemindent-\leftmargin \let\makelabel\booklabel}}% {\end{list}} % % proglist is the same as booklist if we're using italics for program % names, but will need hacking otherwise \newenvironment{proglist}{\begin{booklist}}{\end{booklist}} % %% Remainder of code from faq.sty removed