diff options
author | Karl Berry <karl@freefriends.org> | 2015-01-07 22:55:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-01-07 22:55:21 +0000 |
commit | bea41f5e2c2a13912cb3e946f8939964e5dd5857 (patch) | |
tree | 01e9271973e4aafa1fa81a14e92ae8228819dba9 /Master | |
parent | e9fbb4ed6dce2e5d9b76bb70d72d9c575da9d5a6 (diff) |
handout (7jan15)
git-svn-id: svn://tug.org/texlive/trunk@35986 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example1-minimal.pdf | bin | 11480 -> 11481 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example2-cancel-quotation.pdf | bin | 11474 -> 11477 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example3-defined-path.pdf | bin | 12760 -> 12762 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example4-sectioning.pdf | bin | 16962 -> 16963 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example5-numbering.pdf | bin | 19763 -> 19764 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example6-not-and-only.pdf | bin | 25208 -> 25204 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/examples/example7-biblatex.pdf | bin | 39157 -> 39157 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/handout.pdf | bin | 68368 -> 69130 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/handout/handout.tex | 10 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/handout/handout.sty | 32 |
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 Binary files differindex 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 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 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 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 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 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 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 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 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 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 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 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 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 diff --git a/Master/texmf-dist/doc/latex/handout/handout.pdf b/Master/texmf-dist/doc/latex/handout/handout.pdf Binary files differindex 6998f308ffb..d6ce38bf3ca 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 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 |