summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-04-20 23:19:14 +0000
committerKarl Berry <karl@freefriends.org>2017-04-20 23:19:14 +0000
commit787388896aeca25d78e2f4932817031eb24b7b8b (patch)
tree4e1e50d0b4f9814afb7250c8009a98af2b2e2cfd /Master/texmf-dist/doc/pdftex/tests/02-pdfmatch
parentf68f64a36015d78e5a860d201ad2accc23d5cc40 (diff)
pdftex doc update for 1.40.18 (TL17)
git-svn-id: svn://tug.org/texlive/trunk@43951 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/tests/02-pdfmatch')
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile10
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex22
2 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile
new file mode 100644
index 00000000000..06943375d0f
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/Makefile
@@ -0,0 +1,10 @@
+# $Id: Makefile 758 2016-06-12 16:54:10Z karl $
+# Public domain.
+
+include ../Common.mak
+
+testpdfmatch:
+ $(prog) test-pdfmatch.tex
+
+clean:
+ $(clean)
diff --git a/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex
new file mode 100644
index 00000000000..f6d55fe587c
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/02-pdfmatch/test-pdfmatch.tex
@@ -0,0 +1,22 @@
+% $Id: test-pdfmatch.tex 759 2016-06-12 18:11:28Z karl $
+% This file public domain. Bug report of \pdflastmatch crash:
+% http://tug.org/pipermail/tex-live/2016-June/038664.html
+%
+\catcode`\{=1 \catcode`\}=2 \catcode`^=7 \newlinechar=`^^J
+%
+\message{^^Jpdflastmatch0 before any match: \pdflastmatch0}
+\message{^^J}%
+%
+\message{^^Jmatch a to b: \pdfmatch{a}{b}}
+\message{^^J}%
+\message{pdflastmatch0: \pdflastmatch0}
+\message{^^J}%
+%
+\message{^^Jmatch example: \pdfmatch subcount 3 {ab(cd)*ef(gh)(ij)}{abefghij}}
+\message{^^J}%
+\message{pdflastmatch0 (0->abefghij): \pdflastmatch0 ^^J}
+\message{pdflastmatch1 (-1->): \pdflastmatch1 ^^J}
+\message{pdflastmatch2 (4->gh): \pdflastmatch2 ^^J}
+\message{pdflastmatch3 (-1->): \pdflastmatch3}
+\message{^^J}%
+\end