summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/xpackages/xtras
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-23 23:52:38 +0000
committerKarl Berry <karl@freefriends.org>2010-05-23 23:52:38 +0000
commit6e411d4c9dba73649f1ca5e25984ae667d57997a (patch)
tree020927d5513315116fc4add60a559f733765de21 /Master/texmf-dist/source/latex/xpackages/xtras
parent120f7e4c07269238a49d6bf82cdd01e0be96f2a7 (diff)
xpackages update (23may10)
git-svn-id: svn://tug.org/texlive/trunk@18440 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/xpackages/xtras')
-rw-r--r--Master/texmf-dist/source/latex/xpackages/xtras/l3keys2e-demo.tex46
1 files changed, 0 insertions, 46 deletions
diff --git a/Master/texmf-dist/source/latex/xpackages/xtras/l3keys2e-demo.tex b/Master/texmf-dist/source/latex/xpackages/xtras/l3keys2e-demo.tex
deleted file mode 100644
index a00531e0741..00000000000
--- a/Master/texmf-dist/source/latex/xpackages/xtras/l3keys2e-demo.tex
+++ /dev/null
@@ -1,46 +0,0 @@
-% !TEX encoding = ISO-8859-1
-% !TEX program = pdflatex
-%
-% This file demonstrates the use of the l3keys2e module to allow
-% LaTeX3 keyvals (created using l3keys) to be used as LaTeX2e
-% package or class options.
-%
-
-% First, create a class
-\begin{filecontents}{l3keys2e-class.cls}
- \LoadClass{article}
- \RequirePackage{l3keys2e}
- \ProvidesExplClass{l3keys2e-class}{0000/00/00}{0.0}{test}
- \keys_define:nn { test1 } {
- option1 .code:n = {\wlog{You~gave~`#1'~for~option1}}
- }
- \ProcessKeysOptions { test1 }
-\end{filecontents}
-
-% Load the class with some options.
-% The class itself recognises `option1', leaving `option2' and
-% `option3' as global optons which are not yet used.
-\documentclass[option1=check,option2=more stuff,option3=unused]
- {l3keys2e-class}
-
-%Now create a package
-\begin{filecontents}{l3keys2e-package.sty}
- \RequirePackage{l3keys2e}
- \ProvidesExplPackage{l3keys2e-package}{0000/00/00}{0.0}{test}
- \keys_define:nn { test2 } {
- option1 .code:n = {\wlog{You~gave~`#1'~for~option1~(again)}},
- option2 .code:n = {\wlog{You~gave~`#1'~for~option2}},
- option4 .code:n = {\wlog{You~gave~`#1'~for~option4}},
- }
- \ProcessKeysOptions { test2 }
-\end{filecontents}
-
-% Load the package.
-\usepackage[option4={extra stuff},option5=undefined!]
- {l3keys2e-package}
-
-\begin{document}
-% The log should show that option3 is an unused global option, and that
-% option5 is not known by the l3keys2e-demo package. Everything else
-% should simply be listed in the log.
-\end{document}