summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdfbin11475 -> 11480 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdfbin11468 -> 11474 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdfbin12758 -> 12760 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdfbin16967 -> 16962 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdfbin19775 -> 19763 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdfbin25254 -> 25208 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdfbin39216 -> 39157 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/handout.pdfbin68391 -> 68368 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/handout.tex10
-rw-r--r--Master/texmf-dist/tex/latex/handout/handout.sty31
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
index 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
Binary files differ
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
index 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
Binary files differ
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
index 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
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf b/Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf
index 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
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf b/Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf
index 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
Binary files differ
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
index 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
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf b/Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf
index 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
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/handout/handout.pdf b/Master/texmf-dist/doc/latex/handout/handout.pdf
index b8436b76f5e..6998f308ffb 100644
--- a/Master/texmf-dist/doc/latex/handout/handout.pdf
+++ b/Master/texmf-dist/doc/latex/handout/handout.pdf
Binary files differ
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}{%