[latex3-commits] [git/LaTeX3-latex3-latex2e] doc-ifnot: add test (1759790a)
David Carlisle
d.p.carlisle at gmail.com
Wed Jun 22 21:34:20 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : doc-ifnot
Link : https://github.com/latex3/latex2e/commit/1759790ac2ee18020858b470bdedd5a1ec10d7fe
>---------------------------------------------------------------
commit 1759790ac2ee18020858b470bdedd5a1ec10d7fe
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Wed Jun 22 20:34:20 2022 +0100
add test
>---------------------------------------------------------------
1759790ac2ee18020858b470bdedd5a1ec10d7fe
base/testfiles/github-0872.lvt | 26 ++++++++++++++++++++++++++
base/testfiles/github-0872.tlg | 16 ++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/base/testfiles/github-0872.lvt b/base/testfiles/github-0872.lvt
new file mode 100644
index 00000000..725c81a5
--- /dev/null
+++ b/base/testfiles/github-0872.lvt
@@ -0,0 +1,26 @@
+\documentclass{article}
+\input{test2e}
+\usepackage[noprint,hyperref=false,multicol]{doc}
+\newcommand\tst[1]{\typeout{\string#1: \meaning#1}}
+\begin{document}
+
+\makeatletter
+\START
+\typeout{===}
+\tst\ifdoc at noprint
+\tst\ifdoc at hyperref
+\tst\ifdoc at multicol
+\tst\ifdoc at debugshow
+\tst\doc at idxtype
+\tst\ifdoc at toplevel
+
+\SetKeys[doc]{toplevel=false,idxtype=abc,debugshow}
+\typeout{===}
+\tst\ifdoc at noprint
+\tst\ifdoc at hyperref
+\tst\ifdoc at multicol
+\tst\ifdoc at debugshow
+\tst\doc at idxtype
+\tst\ifdoc at toplevel
+
+\END
diff --git a/base/testfiles/github-0872.tlg b/base/testfiles/github-0872.tlg
new file mode 100644
index 00000000..afa1de2d
--- /dev/null
+++ b/base/testfiles/github-0872.tlg
@@ -0,0 +1,16 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+===
+\ifdoc at noprint: \iftrue
+\ifdoc at hyperref: \iffalse
+\ifdoc at multicol: \iftrue
+\ifdoc at debugshow: \iffalse
+\doc at idxtype: macro:->env.
+\ifdoc at toplevel: \iftrue
+===
+\ifdoc at noprint: \iftrue
+\ifdoc at hyperref: \iffalse
+\ifdoc at multicol: \iftrue
+\ifdoc at debugshow: \iftrue
+\doc at idxtype: macro:->abc
+\ifdoc at toplevel: \iffalse
More information about the latex3-commits
mailing list.