summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/apptools
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-11-30 23:34:32 +0000
committerKarl Berry <karl@freefriends.org>2012-11-30 23:34:32 +0000
commit064124bb3133ed92ee926d214a617b8c8f7d89ca (patch)
treec24d594ee4866d68b7505181752c82db0b847631 /Master/texmf-dist/doc/latex/apptools
parent8ab66d606786573ed631ffed697b63fc1a48c54c (diff)
new latex package apptools (29nov12)
git-svn-id: svn://tug.org/texlive/trunk@28400 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/apptools')
-rw-r--r--Master/texmf-dist/doc/latex/apptools/apptools-test.tex69
-rw-r--r--Master/texmf-dist/doc/latex/apptools/apptools.pdfbin0 -> 82020 bytes
2 files changed, 69 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/apptools/apptools-test.tex b/Master/texmf-dist/doc/latex/apptools/apptools-test.tex
new file mode 100644
index 00000000000..33ec0662489
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/apptools/apptools-test.tex
@@ -0,0 +1,69 @@
+%%
+%% This is file `apptools-test.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% apptools.dtx (with options: `test')
+%%
+%% This is a generated file.
+%%
+%% Project: apptools
+%% Version: 2012/11/28 v1.0
+%%
+%% Copyright (c) 2012 by Sebastian Kuhnert <mail at sebastian-kuhnert.de>
+%%
+%% This work may be distributed and/or modified under the conditions of the LaTeX
+%% Project Public License, either version 1.3c of this license or (at your
+%% option) any later version. The latest version of this license is available at
+%% http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all
+%% distributions of LaTeX version 2008/05/04 or later.
+%%
+%% This work has the LPPL maintenance status `maintained', the Current Maintainer
+%% of this work is Sebastian Kuhnert.
+%%
+%% This work consists of the main source file apptools.dtx and the derived files
+%% apptools.sty, apptools.pdf, apptools.ins, apptools.drv, apptools-test.tex.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\nofiles
+\documentclass{article}
+\usepackage{apptools}[2012/11/28]
+\usepackage{qstest}
+\IncludeTests{*}
+\LogTests{log}{*}{*}
+
+\begin{document}
+\makeatletter
+
+\begin{qstest}{AtAppendix}{AtAppendix}
+ \def\defaulthook{\appendixtrue}
+ \Expect*{\meaning\defaulthook}*{\meaning\apptools@hook}
+ \g@addto@macro\defaulthook{\def\fooafterappendix{foo}}
+ \AtAppendix{\def\fooafterappendix{foo}}
+ \Expect*{\meaning\defaulthook}*{\meaning\apptools@hook}
+ \Expect*{\meaning\fooafterappendix}{undefined}
+\end{qstest}
+
+\begin{qstest}{ifbefore}{ifbefore}
+ \Expect{else}*{\ifappendix then\else else\fi}
+ \Expect{else}*{\IfAppendix{then}{else}}
+\end{qstest}
+
+\appendix
+
+\begin{qstest}{ifafter}{ifafter}
+ \Expect{then}*{\ifappendix then\else else\fi}
+ \Expect{then}*{\IfAppendix{then}{else}}
+\end{qstest}
+
+\begin{qstest}{hook}{hook}
+ \def\expected{foo}
+ \Expect*{\meaning\fooafterappendix}*{\meaning\expected}
+\end{qstest}
+
+\end{document}
+\@@end
+\endinput
+%%
+%% End of file `apptools-test.tex'.
diff --git a/Master/texmf-dist/doc/latex/apptools/apptools.pdf b/Master/texmf-dist/doc/latex/apptools/apptools.pdf
new file mode 100644
index 00000000000..634251c6789
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/apptools/apptools.pdf
Binary files differ