summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdfbin11480 -> 11481 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdfbin11474 -> 11477 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdfbin12760 -> 12762 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdfbin16962 -> 16963 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdfbin19763 -> 19764 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdfbin25208 -> 25204 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdfbin39157 -> 39157 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/handout.pdfbin68368 -> 69130 bytes
-rw-r--r--Master/texmf-dist/doc/latex/handout/handout.tex10
-rw-r--r--Master/texmf-dist/tex/latex/handout/handout.sty32
10 files changed, 30 insertions, 12 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 5793227463b..bbd20c7c733 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 4d95a7e8360..9332d6edeec 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 3416c2fe31e..d5416208c08 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 64c2472d025..7414aa482a9 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 8eb0195de32..714467861d0 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 65f2f57ddf5..a17b0291402 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 89b68a2ac76..84a03afe080 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 6998f308ffb..d6ce38bf3ca 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 b3e66aef1c4..956bdcfadb8 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.1.0},
- date={15/12/2014},
+ revision={1.2.0},
+ date={06/01/2015},
url={https://github.com/maieul/handout}}
@@ -130,6 +130,8 @@ 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.
+\label{printing} You can also use \opt{printing=false}, which makes \LaTeX\ not printing the handout BUT numbering the examples.
+
\section{Advanced use}
\subsection{Conditional code}
@@ -169,6 +171,10 @@ Note that the citation tracker is automatically reset at the beginning of the ha
\begin{changelog}
+\begin{release}{1.2.0}{2015-01-06}
+\item Add new option printing. \see{printing}
+\item Optimize performances.
+\end{release}
\begin{release}{1.1.0}{2014-12-15}
\item Add \cmd{enablehandout} and \cmd{disablehandout}. \see{enablehandout}
diff --git a/Master/texmf-dist/tex/latex/handout/handout.sty b/Master/texmf-dist/tex/latex/handout/handout.sty
index 3431b2ea531..41655ac69cc 100644
--- a/Master/texmf-dist/tex/latex/handout/handout.sty
+++ b/Master/texmf-dist/tex/latex/handout/handout.sty
@@ -13,7 +13,7 @@
% 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/12/15 1.1.0 Handout package]
+\ProvidesPackage{handout}[2015/01/06 1.2.0 Handout package]
\RequirePackage{kvoptions,etoolbox}
% Options
@@ -24,6 +24,8 @@
\DeclareBoolOption[false]{numbering}
\DeclareBoolOption[false]{sectioning}
+\DeclareBoolOption[true]{printing}
+
\DeclareStringOption[.]{dir}
\ProcessKeyvalOptions*
@@ -43,7 +45,9 @@
\stepcounter{handoutnumber}%
\handoutnumberintxt{\thehandoutnumber}%
\fi%
- \immediate\write\@handout {\string\csuse{handout@input}{#1}}%
+ \ifhandout@printing%
+ \immediate\write\@handout {\string\handout@input{#1}}%
+ \fi%
\fi%
\input{\handout@dir/#1}% Add the handout
}
@@ -55,7 +59,9 @@
\newcommand{\onlyhandout}[1]{}
\newcommand{\forhandout}[1]{%
\ifhandout@disabled\else%
- \immediate\write\@handout{\noexpand #1}%
+ \ifhandout@printing%
+ \immediate\write\@handout{\noexpand #1}%
+ \fi%
\fi%
}
@@ -73,7 +79,9 @@
\apptocmd{\@sect}{%
\ifhandout@disabled\else%
- \immediate\write\@handout{\string\csuse{#1}{\unexpanded{#8}}}%
+ \ifhandout@printing%
+ \immediate\write\@handout{\string\csuse{#1}{\unexpanded{#8}}}%
+ \fi%
\fi%
}{}{\handout@warning{Can't patch sectioning commands}}
@@ -81,12 +89,16 @@
% Call the handout file at the end, if need
\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
+ \ifhandout@printing%
+ \ifhandout@disabled\else
+ \immediate\closeout\@handout%
+ \before@handout%
+ \ifdef{\beforehandout}{\beforehandout}{\handout@warning{No command defined to be run before handout}}
+ \makeatletter%
+ \input\jobname.handout%
+ \makeatother%
+ \fi%
+ \fi%
}
% Standard command before handout