[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-v3beta: offer nohyperref and nomulticol as shorthand options (I hate having to write hyperref=false) (4d410897)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Nov 17 16:45:00 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : doc-v3beta
Link       : https://github.com/latex3/latex2e/commit/4d41089703c9653031370e83f23f4a4bcb03e132

>---------------------------------------------------------------

commit 4d41089703c9653031370e83f23f4a4bcb03e132
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Nov 17 16:45:00 2021 +0100

    offer nohyperref and nomulticol as shorthand options (I hate having to write hyperref=false)


>---------------------------------------------------------------

4d41089703c9653031370e83f23f4a4bcb03e132
 base/doc.dtx | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/base/doc.dtx b/base/doc.dtx
index 3c4cea3b..c7137469 100644
--- a/base/doc.dtx
+++ b/base/doc.dtx
@@ -421,18 +421,22 @@
 % Starting with version~3 the \DOC package now offers a small number
 % of package options to modify its overall behavior. These are:
 % \DescribeOption[noprint]{multicol}
+% \DescribeOption[noprint]{nomulticol}
 % \DescribeOption[noprint]{hyperref}
+% \DescribeOption[noprint]{nohyperref}
 % \DescribeOption[noprint]{debugshow}
 % \DescribeOption[noprint]{noindex}
 % \DescribeOption[noprint]{noprint}
 % \begin{description}
-% \item[\opt{hyperref}] Boolean (default \texttt{true}). Load the
+% \item[\opt{hyperref}, \opt{nohyperref}] Boolean (default \texttt{true}). Load the
 %    \pkg{hyperref} package and make index references to code lines
-%    and pages and other items clickable links.
+%    and pages and other items clickable links. \opt{nohyperref} is
+%    the complementary key.
 %
-% \item[\opt{multicol}] Boolean (default \texttt{true}). Load the
+% \item[\opt{multicol}, \opt{nomulticol}] Boolean (default \texttt{true}). Load the
 %    \pkg{multicol} package for use in typesetting the index and the
-%    list of changes.
+%    list of changes. \opt{nomulticol} is
+%    the complementary key.
 %
 % \item[\opt{debugshow}] Boolean (default \texttt{false}). Provide
 %    various tracing information at the terminal and in the transcript
@@ -1940,10 +1944,18 @@
     hyperref / true  .code:n = { \legacy_if_set_true:n  { doc at hyperref } },
     hyperref / false .code:n = { \legacy_if_set_false:n { doc at hyperref } },
     hyperref  .default:n = { true },
+    hyperref  .choice:,
+    nohyperref / true  .code:n = { \legacy_if_set_false:n  { doc at hyperref } },
+    nohyperref / false .code:n = { \legacy_if_set_true:n { doc at hyperref } },
+    nohyperref  .default:n = { true },
     multicol  .choice:,
     multicol / true  .code:n = { \legacy_if_set_true:n  { doc at multicol } },
     multicol / false .code:n = { \legacy_if_set_false:n { doc at multicol } },
     multicol  .default:n = { true },
+    nomulticol  .choice:,
+    nomulticol / true  .code:n = { \legacy_if_set_false:n  { doc at multicol } },
+    nomulticol / false .code:n = { \legacy_if_set_true:n { doc at multicol } },
+    multicol  .default:n = { true },
     debugshow  .choice:,
     debugshow / true  .code:n = { \legacy_if_set_true:n  { doc at debugshow } },
     debugshow / false .code:n = { \legacy_if_set_false:n { doc at debugshow } },





More information about the latex3-commits mailing list.