diff options
author | Karl Berry <karl@freefriends.org> | 2014-12-15 22:38:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-12-15 22:38:58 +0000 |
commit | ade183f85a77d940bb5e7c38dbe0d5ffbd025858 (patch) | |
tree | 7d83cc7d98b7403b42719174d42978e519a62fb0 | |
parent | 01d6be75dbb4b3d42fd1076315469a432172627b (diff) |
handout (15dec14)
git-svn-id: svn://tug.org/texlive/trunk@35834 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf | bin | 11475 -> 11480 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf | bin | 11468 -> 11474 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf | bin | 12758 -> 12760 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf | bin | 16967 -> 16962 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf | bin | 19775 -> 19763 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf | bin | 25254 -> 25208 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf | bin | 39216 -> 39157 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/handout.pdf | bin | 68391 -> 68368 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/handout.tex | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/handout/handout.sty | 31 |
10 files changed, 27 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf b/Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf Binary files differindex b4c31342397..5793227463b 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf b/Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf Binary files differindex fe08055acc7..4d95a7e8360 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf b/Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf Binary files differindex e05dae61bc8..3416c2fe31e 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf b/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf Binary files differindex 555bf483d63..64c2472d025 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf b/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf Binary files differindex 1dd0b592ece..8eb0195de32 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf b/Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf Binary files differindex 8da5fb3ec05..65f2f57ddf5 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf diff --git a/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf b/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf Binary files differindex 0353df8fdd1..89b68a2ac76 100644 --- a/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf +++ b/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf diff --git a/Master/texmf-dist/doc/latex/handout/handout.pdf b/Master/texmf-dist/doc/latex/handout/handout.pdf Binary files differindex b8436b76f5e..6998f308ffb 100644 --- a/Master/texmf-dist/doc/latex/handout/handout.pdf +++ b/Master/texmf-dist/doc/latex/handout/handout.pdf diff --git a/Master/texmf-dist/doc/latex/handout/handout.tex b/Master/texmf-dist/doc/latex/handout/handout.tex index 92ed361da58..b3e66aef1c4 100644 --- a/Master/texmf-dist/doc/latex/handout/handout.tex +++ b/Master/texmf-dist/doc/latex/handout/handout.tex @@ -16,8 +16,8 @@ subtitle={to prepare your speech}, email={maieul <at> maieul <dot> net}, author={Maïeul Rouquette}, - revision={1.0.0}, - date={20/03/2014}, + revision={1.1.0}, + date={15/12/2014}, url={https://github.com/maieul/handout}} @@ -128,6 +128,8 @@ See \LaTeX\ documentation on counter's appearance. The package's option \opt{disabled} allows to disable the handout generation. +\label{enablehandout}You can also disable it for only some parts of the text: use \cmd{disablehandout} to disable handout's generation from the current point and \cmd{enablehandout} to enable it from the current point. + \section{Advanced use} \subsection{Conditional code} @@ -168,6 +170,10 @@ Note that the citation tracker is automatically reset at the beginning of the ha \begin{changelog} +\begin{release}{1.1.0}{2014-12-15} +\item Add \cmd{enablehandout} and \cmd{disablehandout}. \see{enablehandout} +\end{release} + \begin{release}{1.0.1}{2014-05-23} \item Disable indexing in handout also when using multiple index. \end{release} diff --git a/Master/texmf-dist/tex/latex/handout/handout.sty b/Master/texmf-dist/tex/latex/handout/handout.sty index ae947b845e3..3431b2ea531 100644 --- a/Master/texmf-dist/tex/latex/handout/handout.sty +++ b/Master/texmf-dist/tex/latex/handout/handout.sty @@ -13,11 +13,14 @@ % The Current Maintainer of this work is Maïeul Rouquette % This work consists of the files handout.sty and example and documentation files. -\ProvidesPackage{handout}[2014/05/23 1.0.1 Handout package] +\ProvidesPackage{handout}[2014/12/15 1.1.0 Handout package] \RequirePackage{kvoptions,etoolbox} % Options \DeclareBoolOption[false]{disabled} +\let\disablehandout\handout@disabledtrue +\let\enablehandout\handout@disabledfalse + \DeclareBoolOption[false]{numbering} \DeclareBoolOption[false]{sectioning} @@ -51,7 +54,9 @@ \newcommand{\nothandout}[1]{#1} \newcommand{\onlyhandout}[1]{} \newcommand{\forhandout}[1]{% - \immediate\write\@handout{\noexpand #1}% + \ifhandout@disabled\else% + \immediate\write\@handout{\noexpand #1}% + \fi% } % The command written in the .handout file @@ -67,20 +72,22 @@ \ifhandout@sectioning%Only if needed by option \apptocmd{\@sect}{% - \immediate\write\@handout{\string\csuse{#1}{\unexpanded{#8}}}% + \ifhandout@disabled\else% + \immediate\write\@handout{\string\csuse{#1}{\unexpanded{#8}}}% + \fi% }{}{\handout@warning{Can't patch sectioning commands}} \fi % Call the handout file at the end, if need -\ifhandout@disabled\else - - \AtEndDocument{% - \immediate\closeout\@handout% - \before@handout% - \ifdef{\beforehandout}{\beforehandout}{\handout@warning{No command defined to be run before handout}} - \input\jobname.handout% - } -\fi + +\AtEndDocument{% + \ifhandout@disabled\else + \immediate\closeout\@handout% + \before@handout% + \ifdef{\beforehandout}{\beforehandout}{\handout@warning{No command defined to be run before handout}} + \input\jobname.handout% + \fi +} % Standard command before handout \newcommand{\before@handout}{% |