summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/faq.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-04-07 22:47:28 +0000
committerKarl Berry <karl@freefriends.org>2010-04-07 22:47:28 +0000
commit3f1971c9b7717818766692c9aa497e20e7472f2c (patch)
tree678de0190b6643b1b21fd9441fa1387bce180726 /Master/texmf-dist/doc/generic/FAQ-en/faq.sty
parentc7c3b090320a234149dbe23315e2a15a2773ac79 (diff)
FAQ-en 3.19d (7apr10)
git-svn-id: svn://tug.org/texlive/trunk@17742 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/faq.sty')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/faq.sty12
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/faq.sty b/Master/texmf-dist/doc/generic/FAQ-en/faq.sty
index ff33448b021..8e8e47fb805 100644
--- a/Master/texmf-dist/doc/generic/FAQ-en/faq.sty
+++ b/Master/texmf-dist/doc/generic/FAQ-en/faq.sty
@@ -170,11 +170,15 @@
\ifpdf
\includecomment{pdfversion}
\includecomment{wideversion}
+ \includecomment{hyperversion}
+ \excludecomment{flatversion}
\excludecomment{dviversion}
\excludecomment{narrowversion}
\else
\excludecomment{pdfversion}
\excludecomment{wideversion}
+ \excludecomment{hyperversion}
+ \includecomment{flatversion} % non-hyper
\includecomment{dviversion}
\includecomment{narrowversion}
\fi
@@ -628,12 +632,16 @@
\newcounter{CTAN@replabs}%
%
% the command itself
-\DeclareRobustCommand{\CTANref}[1]{\@ifundefined{ctan-#1}{%
+\newcommand{\CTANref}[1]{\@ifundefined{ctan-#1}{%
\PackageWarning{CTAN}{Undefined reference: #1}%
\stepcounter{CTAN@unrefs}%
}{%
\csname ctan-#1\endcsname
-}}
+}\futurelet\@let@token\faq@check@trailing@opt}
+\newcommand\faq@check@trailing@opt{\ifx\@let@token[%
+ \expandafter\@gobble@opt\fi
+}
+\def\@gobble@opt[#1]{}
%
% href to a ctan package
\ifpdf