summaryrefslogtreecommitdiff
path: root/Master/texmf-doc/doc/english/FAQ-en/faq.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-doc/doc/english/FAQ-en/faq.sty')
-rw-r--r--Master/texmf-doc/doc/english/FAQ-en/faq.sty44
1 files changed, 40 insertions, 4 deletions
diff --git a/Master/texmf-doc/doc/english/FAQ-en/faq.sty b/Master/texmf-doc/doc/english/FAQ-en/faq.sty
index f855d6af3d8..e9acef465a4 100644
--- a/Master/texmf-doc/doc/english/FAQ-en/faq.sty
+++ b/Master/texmf-doc/doc/english/FAQ-en/faq.sty
@@ -154,7 +154,7 @@
\newcommand\AMSLaTeX{AMS\LaTeX}
\newcommand\BibTeX{Bib\TeX}
\newcommand\PiCTeX{PiC\TeX}
-\newcommand\texlive{\TeX-live}
+\newcommand\texlive{\TeX{} Live}
%
% ifthenelse for the undefined references
\RequirePackage{ifthen}
@@ -203,6 +203,7 @@
\providecommand\elatex{e-LaTeX}
\providecommand\miktex{MiKTeX}
\providecommand\xetex{XeTeX}
+\providecommand\plaintex{Plain \TeX{}}
%
%% \providecommand\TeXXeT{\TeX-{}-X\lower.5ex\hbox{E}\kern-.1667emT\@}
%\providecommand\MLTeX{ML-\TeX}
@@ -810,13 +811,13 @@
\def\annot@label{#1}%
\def\annot@question{#2}%
\fi
+ \edef\l@stl@bel{\@gobbletwo#1}%
\qu@stion{#2}%
\def\reserved@a{#1}%
\ifx\reserved@a\@empty
\PackageWarning{faq}{Question "#2" has no label}%
\else
\Qlabel{#1}%
-% \addtocontents{lab}{\protect\QuestionLabel{#1}{#2}{\thepage}}%
\fi
}
\newcommand\qu@stion{\@startsection{question}%
@@ -835,6 +836,30 @@
\newcommand*\questionmark[1]{}
\newcommand*\l@question{\@dottedtocline{2}{2.0em}{2.3em}}
%
+% alias questions make a little perl script to set up a hash array
+% that takes one from old question to current one.
+\newcount\aliasfile
+\aliasfile=-1
+\newcommand\AliasQuestion[1]{%
+ \ifnum\aliasfile<0
+ \newwrite\aliasfile
+ \immediate\openout\aliasfile aliasquestion.list
+ \immediate\write\aliasfile {\faq@percent old_label_to_new = (}%)
+ \AtEndDocument{%(
+ \immediate\write\aliasfile{);}%
+ \immediate\write\aliasfile{1;}%
+ }%
+ \else
+ \immediate\write\aliasfile {,}% finish previous line
+ \fi
+ \immediate\write\aliasfile{"\@gobbletwo#1","\l@stl@bel"}%
+}
+{%
+ \catcode`\!=\the\catcode`\%%
+ \catcode`\%=\the\catcode`\+!
+ \gdef\faq@percent{%}!
+}
+%
\long\def\@ReturnAfterFi#1\fi{\fi#1}%
\ifpdf
\newcommand*\toclevel@question{3}%
@@ -1045,12 +1070,19 @@
\futurelet\@let@token\@cmdinvoke
}
\def\@cmdinvoke{\ifx\@let@token\bgroup
- \expandafter\@cmdinvoke@lbrace
+ \let\@tempb\@cmdinvoke@lbrace
\else
\ifx\@let@token[% ]
- \expandafter\expandafter\expandafter\@cmdinvoke@lbrack
+ \let\@tempb\@cmdinvoke@lbrack
+ \else
+ \ifx\@let@token(% )
+ \let\@tempb\@cmdinvoke@lparen
+ \else
+ \let\@tempb\@empty
+ \fi
\fi
\fi
+ \@tempb
}
\def\@cmdinvoke@lbrace#1{\penalty0\hskip0pt\relax
\texttt{\symbol{123}\@tempa{#1}\symbol{125}}%
@@ -1060,6 +1092,10 @@
\texttt{[\@tempa{#1}]}%
\futurelet\@let@token\@cmdinvoke
}
+\def\@cmdinvoke@lparen(#1){\penalty-150\hskip0pt\relax
+ \texttt{(\@tempa{#1})}%
+ \futurelet\@let@token\@cmdinvoke
+}
%
% for writing \cmdinvoke out by hand (in titles)
\def\marg#1{\texttt{\symbol{123}{#1}\symbol{125}}}