texlive[57861] Master/texmf-dist: overlays (23feb21)
commits+karl at tug.org
commits+karl at tug.org
Tue Feb 23 23:34:46 CET 2021
Revision: 57861
http://tug.org/svn/texlive?view=revision&revision=57861
Author: karl
Date: 2021-02-23 23:34:45 +0100 (Tue, 23 Feb 2021)
Log Message:
-----------
overlays (23feb21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/overlays/ChangeLog
trunk/Master/texmf-dist/doc/latex/overlays/README
trunk/Master/texmf-dist/doc/latex/overlays/overlays.pdf
trunk/Master/texmf-dist/doc/latex/overlays/overlays.tex
trunk/Master/texmf-dist/doc/latex/overlays/sample.pdf
trunk/Master/texmf-dist/doc/latex/overlays/sample.tex
trunk/Master/texmf-dist/tex/latex/overlays/overlays.sty
Modified: trunk/Master/texmf-dist/doc/latex/overlays/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/overlays/ChangeLog 2021-02-23 22:34:26 UTC (rev 57860)
+++ trunk/Master/texmf-dist/doc/latex/overlays/ChangeLog 2021-02-23 22:34:45 UTC (rev 57861)
@@ -1,3 +1,14 @@
+2021-02-23:
+ * "\alertsoff" command for switching alerts off
+ * bump version to 2.12
+
+2021-02-22:
+ * "\overlaysoff" command for typesetting the last overlay only
+ * bump version to 2.11
+
+2018-01-15:
+ * bug fix for "tabular"-style environments
+
2017-12-21:
* support the "graphics" package in addition to the "graphicx" package
* bump version to 2.10
Modified: trunk/Master/texmf-dist/doc/latex/overlays/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/overlays/README 2021-02-23 22:34:26 UTC (rev 57860)
+++ trunk/Master/texmf-dist/doc/latex/overlays/README 2021-02-23 22:34:45 UTC (rev 57861)
@@ -1,7 +1,7 @@
-The "overlays" LaTeX package (version 2.10)
+The "overlays" LaTeX package (version 2.12)
-------------------------------------------
-The "overlay" package allows to write presentations with dynamic slides. It does
+The "overlays" package allows to write presentations with dynamic slides. It does
not presuppose any specific document class. Rather, it is a lightweight
alternative to full-fledged presentation classes like "beamer".
Modified: trunk/Master/texmf-dist/doc/latex/overlays/overlays.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/overlays/overlays.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/overlays/overlays.tex 2021-02-23 22:34:26 UTC (rev 57860)
+++ trunk/Master/texmf-dist/doc/latex/overlays/overlays.tex 2021-02-23 22:34:45 UTC (rev 57861)
@@ -9,7 +9,7 @@
\begin{document}
\title{\textsf{overlays} -- incremental slides}
\author{Andreas Nolda}
-\date{2017/12/21 (v.\,2.10)}
+\date{2021/02/23 (v.\,2.12)}
\maketitle
\noindent The \textsf{overlay} package allows to write presentations with
@@ -91,6 +91,13 @@
The |\savecountersbetweenoverlays| and |\saveseriesbetweenoverlays| commands
are typically used in the preamble.
+\DescribeMacro{\overlaysoff}
+\DescribeMacro{\alertsoff}
+Use the |\overlaysoff| command in the preamble in order to switch overlay
+processing off, effectively typesetting only the last overlay of each
+incremental slide. In addition, highlights in |alert| color can be switched off
+by means of the |\alertsoff| command.
+
\section{Known limitations}
The |\alert|, |\visible|, and |\only| commands must not contain verbatim
Modified: trunk/Master/texmf-dist/doc/latex/overlays/sample.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/overlays/sample.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/overlays/sample.tex 2021-02-23 22:34:26 UTC (rev 57860)
+++ trunk/Master/texmf-dist/doc/latex/overlays/sample.tex 2021-02-23 22:34:45 UTC (rev 57861)
@@ -32,9 +32,9 @@
{\Large \textbf{The \textrm{overlays} package} \\
\textit{A sample presentation}} \\[\baselineskip]
Andreas Nolda \\
-\url{http://andreas.nolda.org}}\vfill
-{\small Version 2.10 \\
-21 December 2017}
+\url{https://andreas.nolda.org}}\vfill
+{\small Version 2.12 \\
+23 February 2021}
\clearpage
\begin{fragileoverlays}{6}
@@ -194,6 +194,22 @@
\clearpage
\begin{overlays}{3}
+\subsubsection*{Non-interactive versions}
+Overlay processing can be switched off by means of the command
+\alert{1}{\texttt{\textbackslash{}overlaysoff}}. If used in the preamble, this
+command typesets only the last overlay of each incremental slide in the
+presentation.
+
+\visible{2-}{Similarly, the command
+\alert{2}{\texttt{\textbackslash{}alertsoff}} removes highlights in
+\texttt{alert} color.}
+
+\visible{3}{Both commands may be useful for non-interactive versions of a
+presentation, such as a presentation provided as a download.}
+\end{overlays}
+\clearpage
+
+\begin{overlays}{3}
\subsubsection*{Credits}
The code of the \textrm{overlays} package is inspired by Matthias Meister's
\href{http://www.ctan.org/pkg/present}{\textrm{present} package}.
Modified: trunk/Master/texmf-dist/tex/latex/overlays/overlays.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/overlays/overlays.sty 2021-02-23 22:34:26 UTC (rev 57860)
+++ trunk/Master/texmf-dist/tex/latex/overlays/overlays.sty 2021-02-23 22:34:45 UTC (rev 57861)
@@ -1,14 +1,14 @@
-\ProvidesPackage{overlays}[2017/12/21 v2.10 Incremental slides]
+\ProvidesPackage{overlays}[2021/02/23 v2.12 Incremental slides]
-% Copyright (C) 2017 Andreas Nolda
+% Copyright (C) 2021 Andreas Nolda
% Author: Andreas Nolda <andreas at nolda.org>
-% Version: 2.10
+% Version: 2.12
% This work may be distributed and/or modified under the conditions of the LaTeX
-% Project Public License, either version 1.3 of this license or (at your option)
-% any later version. The latest version of this license is in
-% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all
+% Project Public License, either version 1.3c of this license or (at your
+% option) any later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt and version 1.3c or later is part of all
% distributions of LaTeX version 2005/12/01 or later.
% The following code is inspired by Matthias Meister's "present" package. It
@@ -139,7 +139,7 @@
\foreach \i in {#2}
{\afterassignment\getoverl at yspecb
\overl at yspeca=0\i\relax
- \pgfmathtruncatemacro\result{(#1>=\overl at yspeca) && (#1<=\overl at yspecb)}%
+ \pgfmathtruncatemacro\result{and((#1>=\overl at yspeca),(#1<=\overl at yspecb))}%
\ifnum\result=1\relax
\breakforeach
\global\let\inoverl at yspec\@firstoftwo
@@ -186,3 +186,11 @@
\newcommand{\psalert}[2]{\overl at y{#1}{{\psset at lertcolor
{#2}}}{#2}}
+
+\newcommand{\alertsoff}{\renewcommand{\alert}[2]{##2}%
+ \renewcommand{\psalert}[2]{##2}}
+
+\newcommand{\overlaysoff}{\RenewEnviron{overlays}[1]%
+ {\maxoverl at y=##1%
+ \curoverl at y=##1%
+ \BODY}}
More information about the tex-live-commits
mailing list.