diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-06 21:41:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-06 21:41:37 +0000 |
commit | 8cb1f8bb85c22a13ea39018c68cb89d47ff968c5 (patch) | |
tree | 709a6308eff7384575fad551a29bc603c210e614 /Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty | |
parent | d5df7052a33beffe86acc5a220f0e23d895e8901 (diff) |
beamer 3.08 (6jun10)
git-svn-id: svn://tug.org/texlive/trunk@18777 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty | 98 |
1 files changed, 68 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty index ec26409280e..64ef3e35945 100644 --- a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty +++ b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty @@ -1,5 +1,5 @@ -% Copyright 2007 by Till Tantau -% (tiny change, Feb 2010, by Vladimir Lomov and Karl Berry, for geometry 5.0) +% Copyright 2003--2007 by Till Tantau +% Copyright 2010 by Vedran Mileti\'c % % This file may be distributed and/or modified % @@ -8,9 +8,10 @@ % % See the file doc/licenses/LICENSE for more details. -\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/base/beamerbasecompatibility.sty,v 1.63 2007/01/28 20:48:20 tantau Exp $ +\ProvidesPackageRCS $Header: /home/vedran/bitbucket/beamer/base/beamerbasecompatibility.sty,v efa082c6111d 2010/05/01 13:27:03 rivanvx $ -\mode<presentation> +\mode +<presentation> % % @@ -40,10 +41,10 @@ \def\document{% \beamer@firstminutepatches% \endgroup% - - \AtBeginDocument{% fix spanish.ldf's meddling with < and > + + \AtBeginDocument{% fix spanish.ldf's meddling with < and > % - % Fix spanish.ldf's meddling with < and > + % Fix spanish.ldf's meddling with < and > % \@ifundefined{deactivatequoting}{}{\deactivatequoting} @@ -60,7 +61,7 @@ \let\list\beamer@list \let\@trivlist\beamer@@trivlist% \catcode`<=12\catcode`>=12} - + \begingroup\beamer@origdocument% \beamer@lastminutepatches% \ifbeamer@ignorenonframe% @@ -78,13 +79,13 @@ \g@addto@macro\beamer@lastminutepatches{% \ifbeamer@articleactive \else - \catcode`<=12\catcode`>=12 - \fi + \catcode`<=12\catcode`>=12 + \fi } } -\AtBeginDocument{\def\es@itemize#1#2#3#4{}}% fix spanish.ldf's with \itemize +\AtBeginDocument{\def\es@itemize#1#2#3#4{}}% fix spanish.ldf's with \itemize @@ -93,7 +94,7 @@ % Fix for older versions of geometry % We used to test \ifGm@compatii, % but as of geometry v5.0, it is no longer provided. -% +% \ifx\Gm@lmargin\@undefined \def\Gm@lmargin{\Geom@lmargin}\def\Gm@rmargin{\Geom@rmargin} \else @@ -120,6 +121,43 @@ \def\phantomsection{} % +% Heiko's fix for correct generation of section* and subsection* bookmarks +% +\g@addto@macro\beamer@lastminutepatches{% + \long\def\@LongEmpty{} + \newcommand*{\org@beamer@section}{} + \let\org@beamer@section\beamer@section{}% + \long\def\beamer@section[#1]#2{% + \let\org@writebookmark\Hy@writebookmark{}% + \long\def\@secname{#1}% + \ifx\@secname\@LongEmpty{}% + \def\Hy@writebookmark##1##2##3##4##5{}% + \fi + \long\def\@secname{#2}% + \ifx\@secname\@LongEmpty{}% + \def\Hy@writebookmark##1##2##3##4##5{}% + \fi + \org@beamer@section[{#1}]{#2}% + \let\Hy@writebookmark\org@writebookmark{}% + } + \newcommand*{\org@beamer@subsection}{} + \let\org@beamer@subsection\beamer@subsection{}% + \long\def\beamer@subsection[#1]#2{% + \let\org@writebookmark\Hy@writebookmark{}% + \long\def\@secname{#1}% + \ifx\@secname\@LongEmpty{}% + \def\Hy@writebookmark##1##2##3##4##5{}% + \fi + \long\def\@secname{#2}% + \ifx\@secname\@LongEmpty{}% + \def\Hy@writebookmark##1##2##3##4##5{}% + \fi + \org@beamer@subsection[{#1}]{#2}% + \let\Hy@writebookmark\org@writebookmark{}% + } +} + +% % Bugfix for old versions of pdfmark % \begingroup @@ -138,7 +176,7 @@ % % -% Fix for babel +% Fix for babel % % \providecommand\textlatin{} @@ -149,6 +187,12 @@ \providecommand\l@part{} \providecommand\l@chapter{} +% +% Fix for subfig +% +\providecommand\ext@table{} +\providecommand\ext@figure{} + @@ -171,7 +215,7 @@ \define@key{beamerverb}{colored}[true]{\def\beamer@colorsup{}} \define@key{beamerverb}{width}{\def\beamer@verbwidth{#1}} - + \newcommand{\defverbatim}[2][]{% \def\beamer@colorsup{\def\set@color{}\def\reset@color{}}% \setkeys{beamerverb}{width=\textwidth}% @@ -257,8 +301,7 @@ \def\usetitlepagetemplate{\setbeamertemplate{title page}} \def\usepartpagetemplate{\setbeamertemplate{part page}} \mode -<all> -{\def\useframetitletemplate{\setbeamertemplate{frametitle}}} +<all>{\def\useframetitletemplate{\setbeamertemplate{frametitle}}} \def\useitemizeitemtemplate{\setbeamertemplate{itemize item}} \def\usesubitemizeitemtemplate{\setbeamertemplate{itemize subitem}} \def\usesubsubitemizeitemtemplate{\setbeamertemplate{itemize subsubitem}} @@ -348,7 +391,7 @@ \newcommand{\ExampleInline}[1]{{\usebeamercolor[fg]{example text}\translate{Example}: \ignorespaces#1}} \def\usenavigationsymbolstemplate{\setbeamertemplate{navigation symbols}} \def\insertnavigationsymbols{\usebeamertemplate***{navigation symbols}} -\def\beamersetaveragebackground#1{\setbeamercolor{normal text}{bg=#1}} +\def\beamersetaveragebackground#1{\setbeamercolor{normal text}{bg={#1}}} \def\useminislidetemplate#1#2#3#4#5{% \setbeamertemplate{mini frame}{#1}% \setbeamertemplate{mini frame in current subsection}{#2}% @@ -394,7 +437,7 @@ \usebeamercolor{mini frames}{use=structure,fg=white,bg=structure.bg}} \def\beamertemplatesphereminiframe{\beamertemplatecircleminiframe} \def\beamertemplatesphereminiframeinverted{\beamertemplatecircleminiframeinverted} -\def\beamertemplatelightsectionheads{\usesectionheadtemplate{\hfill\insertsectionhead}{\hfill\color{fg!50!bg}\insertsectionhead} +\def\beamertemplatelightsectionheads{\usesectionheadtemplate{\hfill\insertsectionhead}{\hfill\color{fg!50!bg}\insertsectionhead} \usesubsectionheadtemplate{\insertsubsectionhead}{\color{fg!50!bg}\insertsubsectionhead}} \let\beamertemplatedarksectionheads=\beamertemplatedefaultsectionheads \def\usecontinuationtemplate{\setbeamertemplate{frametitle continuation}} @@ -436,13 +479,13 @@ \setbeamersize{sidebar width #1=#2} \setbeamertemplate{sidebar #1}{#3} } -\newcommand\beamertemplatesidebarcolor[2][left]{\setbeamercolor{sidebar #1}{bg=#2}} +\newcommand\beamertemplatesidebarcolor[2][left]{\setbeamercolor{sidebar #1}{bg={#2}}} \def\beamertemplaterightsidebarlogonavigation{\setbeamertemplate{sidebar right}[default] \setbeamersize{sidebar width right=0pt}} \newcommand{\beamertemplatesidebarverticalshading}[3][left]{% - \setbeamertemplate{sidebar canvas #1}[vertical shading][top=#3,bottom=#2]} + \setbeamertemplate{sidebar canvas #1}[vertical shading][top={#3},bottom={#2}]} \newcommand{\beamertemplatesidebarhorizontalshading}[3][left]{% - \setbeamertemplate{sidebar canvas #1}[vertical shading][right=#3,left=#2]} + \setbeamertemplate{sidebar canvas #1}[vertical shading][right={#3},left={#2}]} \define@key{beamer@margin}{descriptionwidth}{% \beamer@descriptionwidth=#1\relax% } @@ -458,7 +501,7 @@ \def\beamersetrightmargin#1{\setbeamersize{text margin right=#1}} \long\def\useframetemplate#1#2{\setbeamertemplate{frame begin}{#1}\setbeamertemplate{frame end}{#2}} \def\usebackgroundtemplate{\setbeamertemplate{background canvas}} - \def\beamertemplatesolidbackgroundcolor#1{\setbeamercolor{normal text}{bg=#1}} + \def\beamertemplatesolidbackgroundcolor#1{\setbeamercolor{normal text}{bg={#1}}} \long\def\useblocktemplate#1#2{% \setbeamertemplate{block begin}{#1}% \setbeamertemplate{block end}{#2}} @@ -468,14 +511,14 @@ \long\def\useexampleblocktemplate#1#2{% \setbeamertemplate{block example begin}{#1}% \setbeamertemplate{block example end}{#2}} - \newcommand{\beamertemplategridbackground}[1][]{\setbeamertemplate{background}[grid][step=#1]} - \newcommand{\beamertemplateshadingbackground}[2]{\setbeamertemplate{background canvas}[vertical shading][bottom=#1,top=#2]} + \newcommand{\beamertemplategridbackground}[1][]{\setbeamertemplate{background}[grid][step={#1}]} + \newcommand{\beamertemplateshadingbackground}[2]{\setbeamertemplate{background canvas}[vertical shading][bottom={#1},top={#2}]} \newcommand\usealerttemplate[2]{\setbeamertemplate{alerted text begin}{#1}\setbeamertemplate{alerted text end}{#2}} \newcommand\usestructuretemplate[2]{\setbeamertemplate{structure begin}{#1}\setbeamertemplate{structure end}{#2}} \newcommand{\beamertemplatebookbibitems}{\setbeamertemplate{bibliography item}[book]} \newcommand{\beamertemplatearticlebibitems}{\setbeamertemplate{bibliography item}[article]} \newcommand{\beamertemplatetextbibitems}{\setbeamertemplate{bibliography item}[text]} - \newcommand{\beamertemplatearrowbibitems}{\setbeamertemplate{bibliography item}[triangle]} + \newcommand{\beamertemplatearrowbibitems}{\setbeamertemplate{bibliography item}[triangle]} \def\beamertemplatetransparentcovereddynamic{\setbeamercovered{highly dynamic}} \def\beamertemplatetransparentcovereddynamicmedium{\setbeamercovered{dynamic}} @@ -488,8 +531,3 @@ \mode <all> - -%%% Local Variables: -%%% mode: latex -%%% TeX-master: ../examples/beamerexample1.tex -%%% End: |