summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-02-23 22:34:45 +0000
committerKarl Berry <karl@freefriends.org>2021-02-23 22:34:45 +0000
commit7389bb9fb813a0f5e8654431dacfcb81d1f116e4 (patch)
tree71607dc600cbacc3bad0fd9bf4264a336ee76445
parent73338f8d255841f32c4ca13a612b330014d2e35c (diff)
overlays (23feb21)
git-svn-id: svn://tug.org/texlive/trunk@57861 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/overlays/ChangeLog11
-rw-r--r--Master/texmf-dist/doc/latex/overlays/README4
-rw-r--r--Master/texmf-dist/doc/latex/overlays/overlays.pdfbin36666 -> 36910 bytes
-rw-r--r--Master/texmf-dist/doc/latex/overlays/overlays.tex9
-rw-r--r--Master/texmf-dist/doc/latex/overlays/sample.pdfbin64888 -> 67977 bytes
-rw-r--r--Master/texmf-dist/doc/latex/overlays/sample.tex22
-rw-r--r--Master/texmf-dist/tex/latex/overlays/overlays.sty22
7 files changed, 55 insertions, 13 deletions
diff --git a/Master/texmf-dist/doc/latex/overlays/ChangeLog b/Master/texmf-dist/doc/latex/overlays/ChangeLog
index 652cd5be757..a3c1eda3013 100644
--- a/Master/texmf-dist/doc/latex/overlays/ChangeLog
+++ b/Master/texmf-dist/doc/latex/overlays/ChangeLog
@@ -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
diff --git a/Master/texmf-dist/doc/latex/overlays/README b/Master/texmf-dist/doc/latex/overlays/README
index 3f49c9bfedb..7227cd51043 100644
--- a/Master/texmf-dist/doc/latex/overlays/README
+++ b/Master/texmf-dist/doc/latex/overlays/README
@@ -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".
diff --git a/Master/texmf-dist/doc/latex/overlays/overlays.pdf b/Master/texmf-dist/doc/latex/overlays/overlays.pdf
index 6a854129b64..c53c6b925ae 100644
--- a/Master/texmf-dist/doc/latex/overlays/overlays.pdf
+++ b/Master/texmf-dist/doc/latex/overlays/overlays.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/overlays/overlays.tex b/Master/texmf-dist/doc/latex/overlays/overlays.tex
index e06f581ce39..a75341076dc 100644
--- a/Master/texmf-dist/doc/latex/overlays/overlays.tex
+++ b/Master/texmf-dist/doc/latex/overlays/overlays.tex
@@ -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 @@ See below for known limitations regarding the series name.
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
diff --git a/Master/texmf-dist/doc/latex/overlays/sample.pdf b/Master/texmf-dist/doc/latex/overlays/sample.pdf
index 49f1c38abc3..d72a2835a52 100644
--- a/Master/texmf-dist/doc/latex/overlays/sample.pdf
+++ b/Master/texmf-dist/doc/latex/overlays/sample.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/overlays/sample.tex b/Master/texmf-dist/doc/latex/overlays/sample.tex
index 515ee1ae997..2d469873c0f 100644
--- a/Master/texmf-dist/doc/latex/overlays/sample.tex
+++ b/Master/texmf-dist/doc/latex/overlays/sample.tex
@@ -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 @@ the content of these commands.}
\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}.
diff --git a/Master/texmf-dist/tex/latex/overlays/overlays.sty b/Master/texmf-dist/tex/latex/overlays/overlays.sty
index c9efe7af7bd..a36eb71693e 100644
--- a/Master/texmf-dist/tex/latex/overlays/overlays.sty
+++ b/Master/texmf-dist/tex/latex/overlays/overlays.sty
@@ -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@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@yspecb
\overl@yspeca=0\i\relax
- \pgfmathtruncatemacro\result{(#1>=\overl@yspeca) && (#1<=\overl@yspecb)}%
+ \pgfmathtruncatemacro\result{and((#1>=\overl@yspeca),(#1<=\overl@yspecb))}%
\ifnum\result=1\relax
\breakforeach
\global\let\inoverl@yspec\@firstoftwo
@@ -186,3 +186,11 @@
\newcommand{\psalert}[2]{\overl@y{#1}{{\psset@lertcolor
{#2}}}{#2}}
+
+\newcommand{\alertsoff}{\renewcommand{\alert}[2]{##2}%
+ \renewcommand{\psalert}[2]{##2}}
+
+\newcommand{\overlaysoff}{\RenewEnviron{overlays}[1]%
+ {\maxoverl@y=##1%
+ \curoverl@y=##1%
+ \BODY}}