summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-05-27 19:53:28 +0000
committerKarl Berry <karl@freefriends.org>2021-05-27 19:53:28 +0000
commit9048d944ab6ec471ddf644230af23ee813966457 (patch)
treedee1624658030e4e3f09745dec52b81c9a3fa235 /Master/texmf-dist/tex
parentff9e525061732b32a2ae3df2c2187834852e8bc1 (diff)
beamer (27may21)
git-svn-id: svn://tug.org/texlive/trunk@59368 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamer.cls5
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerarticle.sty2
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty47
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty2
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty13
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerouterthemeinfolines.sty11
6 files changed, 62 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamer.cls b/Master/texmf-dist/tex/latex/beamer/beamer.cls
index 7854b07b04a..135969d9978 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamer.cls
+++ b/Master/texmf-dist/tex/latex/beamer/beamer.cls
@@ -12,7 +12,7 @@
% See the file doc/licenses/LICENSE for more details.
\ProvidesClass{beamer}
- [2021/03/19 v3.62 A class for typesetting presentations]
+ [2021/05/26 v3.63 A class for typesetting presentations]
% Setup modes and check for article option
% Also loads packages required by both beamer and beamerarticle
@@ -74,6 +74,7 @@
\newcount\beamer@currentsubsection
\newcount\beamer@coveringdepth
\newcount\beamer@sectionadjust
+\newcount\beamer@toclastsection
\newcount\beamer@tocsectionnumber
\newif\ifbeamer@sansmath
@@ -250,7 +251,7 @@
bookmarksopen=true,%
pdfborder={0 0 0},%
pdfhighlight={/N},%
- linkbordercolor={.5 .5 .5}}{hyperref}
+ linkbordercolor=[rgb]{0.5,0.5,0.5}}{hyperref}
\DeclareOptionBeamer{pgf}{\PassOptionsToPackage{#1}{pgf}}
\DeclareOptionBeamer{hyperref}{\PassOptionsToPackage{#1}{hyperref}}
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerarticle.sty b/Master/texmf-dist/tex/latex/beamer/beamerarticle.sty
index f855632e28d..195e49a0e3d 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerarticle.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerarticle.sty
@@ -12,7 +12,7 @@
% See the file doc/licenses/LICENSE for more details.
\ProvidesPackage{beamerarticle}
- [2021/03/19 v3.62 beamer input in article mode]
+ [2021/05/26 v3.63 beamer input in article mode]
% Setup modes and check for article option
% Also loads packages required by both beamer and beamerarticle
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty b/Master/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty
index 37256614625..28cfebc8863 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbaseauxtemplates.sty
@@ -185,8 +185,16 @@
% (sub-)section in toc: sections numbered
-\defbeamertemplate{section in toc}{sections numbered}
-{\leavevmode\inserttocsectionnumber. \inserttocsection\par}
+\defbeamertemplate{section in toc}{sections numbered}{%
+ \leavevmode%
+ % prevents the period to be printed with the first/last section option
+ \ifnum\beamer@tempcount>\beamer@toclastsection
+ \else
+ \ifnum\beamer@tempcount>0
+ \inserttocsectionnumber.
+ \fi\fi%
+ \inserttocsection\par%
+}
\defbeamertemplate{subsection in toc}{sections numbered}
{\leavevmode\leftskip=2.5em\inserttocsubsection\par}
@@ -554,22 +562,43 @@
{\hskip\Gm@lmargin\hbox to\@tempdima{\textwidth=\@tempdima\hsize=\textwidth\relax#1\hfil}\hskip\Gm@rmargin}
% Framenumbers in footline
-\defbeamertemplate{page number in head/foot}{framenumber}{\insertframenumber}
+\defbeamertemplate{page number in head/foot}{framenumber}{%
+ \setbox\beamer@tempbox=\hbox{\inserttotalframenumber}%
+ \beamer@tempdim=\wd\beamer@tempbox%
+ \makebox[\beamer@tempdim][r]{\insertframenumber}%
+}
-\defbeamertemplate{page number in head/foot}{totalframenumber}{\insertframenumber\,/\,\inserttotalframenumber}
+\defbeamertemplate{page number in head/foot}{totalframenumber}{%
+ \setbox\beamer@tempbox=\hbox{\inserttotalframenumber\,/\,\inserttotalframenumber}%
+ \beamer@tempdim=\wd\beamer@tempbox%
+ \makebox[\beamer@tempdim][r]{\insertframenumber\,/\,\inserttotalframenumber}%
+}
\defbeamertemplate{page number in head/foot}{appendixframenumber}{%
+ \ifnum\insertappendixframenumber<\insertmainframenumber%
+ \setbox\beamer@tempbox=\hbox{\insertmainframenumber\,/\,\insertmainframenumber}%
+ \else%
+ \setbox\beamer@tempbox=\hbox{\insertappendixframenumber\,/\,\insertappendixframenumber}%
+ \fi%
+ \beamer@tempdim=\wd\beamer@tempbox%
\ifbeamer@inappendix%
- \insertframenumberinappendix\,/\,\insertappendixframenumber%
+ \makebox[\beamer@tempdim][r]{\insertframenumberinappendix\,/\,\insertappendixframenumber}%
\else%
- \insertframenumber\,/\,\insertmainframenumber%
+ \makebox[\beamer@tempdim][r]{\insertframenumber\,/\,\insertmainframenumber}%
\fi%
}
-\defbeamertemplate{page number in head/foot}{pagenumber}{\insertpagenumber}
-
-\defbeamertemplate{page number in head/foot}{totalpagenumber}{\insertpagenumber\,/\,\insertpresentationendpage}
+\defbeamertemplate{page number in head/foot}{pagenumber}{%
+ \setbox\beamer@tempbox=\hbox{\insertpresentationendpage}%
+ \beamer@tempdim=\wd\beamer@tempbox%
+ \makebox[\beamer@tempdim][r]{\insertpagenumber}%
+}
+\defbeamertemplate{page number in head/foot}{totalpagenumber}{%
+ \setbox\beamer@tempbox=\hbox{\insertpresentationendpage\,/\,\insertpresentationendpage}%
+ \beamer@tempdim=\wd\beamer@tempbox%
+ \makebox[\beamer@tempdim][r]{\insertpagenumber\,/\,\insertpresentationendpage}%
+}
% Footline
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
index 75050cfcab3..17ac0b45f01 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
@@ -107,7 +107,7 @@
<article>
{
\IfFormatAtLeastTF{2020-10-01}
- {\AddToHook{env/begin/document}[beamer]{\beamer@lastminutepatches}}
+ {\AddToHook{begindocument/end}[beamer]{\beamer@lastminutepatches}}
{%
\let\beamer@origdocument\document
\def\document{%
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
index 9b39d707e07..0ea5318a594 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasetoc.sty
@@ -63,6 +63,7 @@
\define@key{beamertoc}{part}{\beamer@showpartnumber=#1\relax}
\define@key{beamertoc}{sections}{\beamer@parsetocsections#1[]}
\define@key{beamertoc}{firstsection}{\beamer@sectionadjust=-#1\relax\advance\beamer@sectionadjust by 1\relax}
+\define@key{beamertoc}{lastsection}{\beamer@toclastsection=#1}
\def\beamer@parsetocsections{\@ifnextchar<\beamer@@parsetocsections\beamer@@@parsetocsections}
\def\beamer@@parsetocsections#1[]{\def\beamer@tocsections{#1}}
\def\beamer@@@parsetocsections#1[]{\def\beamer@tocsections{<all:#1>}}
@@ -105,6 +106,10 @@
\def\beamer@hidetext{hide}
+% initialize count with something large
+\beamer@toclastsection=\maxdimen
+\multiply\beamer@toclastsection by 2
+
\def\sectionintoc{}
\def\beamer@sectionintoc#1#2#3#4#5{%
\ifnum\c@tocdepth>0%
@@ -116,8 +121,12 @@
\expandafter\only\beamer@tocsections{\gdef\beamer@todo{%
\beamer@tempcount=#5\relax%
\advance\beamer@tempcount by\beamer@sectionadjust%
- \ifnum\beamer@tempcount>0
- \edef\inserttocsectionnumber{\the\beamer@tempcount}%
+ \ifnum\beamer@tempcount>0
+ \ifnum\beamer@tempcount>\beamer@toclastsection
+ \def\inserttocsectionnumber{}%
+ \else
+ \edef\inserttocsectionnumber{\the\beamer@tempcount}%
+ \fi
\else
\def\inserttocsectionnumber{}%
\fi%
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeinfolines.sty b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeinfolines.sty
index e7bae709365..be53727f33a 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeinfolines.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeinfolines.sty
@@ -30,9 +30,14 @@
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
- \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
- \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
- \usebeamercolor[fg]{page number in head/foot}\usebeamerfont{page number in head/foot}\usebeamertemplate{page number in head/foot}\hspace*{2ex}
+ \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,leftskip=2ex,rightskip=2ex,sep=0pt]{date in head/foot}%
+ \hfill%
+ \usebeamerfont{date in head/foot}%
+ \insertshortdate{}%
+ \hfill%
+ \usebeamercolor[fg]{page number in head/foot}%
+ \usebeamerfont{page number in head/foot}%
+ \usebeamertemplate{page number in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}