diff options
author | Karl Berry <karl@freefriends.org> | 2011-09-19 23:49:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-09-19 23:49:39 +0000 |
commit | a2e40347ce33680ff47dd43b61a93e38559de7e6 (patch) | |
tree | de96f7fdc1f71b65d150a30f8c89fbbe25463de1 /Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty | |
parent | d033dd6b59e70d2daf205b3a285f3aad2228b96f (diff) |
beamer2thesis (19sep11)
git-svn-id: svn://tug.org/texlive/trunk@24026 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty | 54 |
1 files changed, 41 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty b/Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty index 03c388aff44..1c6af1ce283 100644 --- a/Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty +++ b/Master/texmf-dist/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty @@ -14,20 +14,33 @@ % String used between the current page and the total page count. \def\beamer@torinoth@pageofpages{of} \DeclareOptionBeamer{pageofpages}{\def\beamer@torinoth@pageofpages{#1}} +\ExecuteOptionsBeamer{pageofpages=of} % Show a line below the frame title. -\DeclareOptionBeamer{titleline}[true]{\def\beamer@torinoth@titleline{#1}} +\DeclareOptionBeamer{titleline}[false]{\def\beamer@torinoth@titleline{#1}} -\ExecuteOptionsBeamer{titleline=false} +% Option to not show the author in the footer +\DeclareOptionBeamer{notshowauthor}[true]{\def\beamer@torinoth@notshowauthor{#1}} +\ExecuteOptionsBeamer{notshowauthor=false} + +\ExecuteOptionsBeamer{titleline=true} \ProcessOptionsBeamer % Lengths \newlength{\headerheight} -\setlength{\headerheight}{.05\paperheight} +\setlength{\headerheight}{.045\paperheight} \newlength{\beamer@torinoth@line} \setlength{\beamer@torinoth@line}{.03\paperheight} \newlength{\beamer@torinoth@box} -\setlength{\beamer@torinoth@box}{.01\paperheight} +\newlength{\beamer@torinoth@textbox} +\setlength{\beamer@torinoth@textbox}{\widthof{Evaluation text to be compared with the title}} +\newlength{\beamer@torinoth@titlelength} +\setlength{\beamer@torinoth@titlelength}{\widthof{\string\inserttitle}} +\ifdim\beamer@torinoth@titlelength>\beamer@torinoth@textbox + \setlength{\beamer@torinoth@box}{.02\paperheight} +\else + \setlength{\beamer@torinoth@box}{.015\paperheight} +\fi % Footer \defbeamertemplate*{footline}{torinoth theme} @@ -42,18 +55,35 @@ \hbox{% \begin{beamercolorbox}[wd=.85\paperwidth,ht=0ex,dp=0ex]{}% \end{beamercolorbox}% - \begin{beamercolorbox}[wd=.075\paperwidth,ht=.2ex,dp=0ex,center,rounded=true,shadow=true,draw]{frame number}% + \begin{beamercolorbox}[wd=.075\paperwidth,ht=.2ex,dp=0ex,center,rounded=true,shadow=true]{frame number}% \usebeamerfont{frame number}\insertframenumber{} \beamer@torinoth@pageofpages{} \inserttotalframenumber{}% \end{beamercolorbox}% } % % Second line. \hbox{% - \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}% - \end{beamercolorbox}% \def\beamer@torinoth@separator{-}% - \begin{beamercolorbox}[wd=.6\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}% - \usebeamerfont{footnote}\insertauthor{} \beamer@torinoth@separator{} \inserttitle % Here is inserted author-title: manage different cases - \end{beamercolorbox}% + % Check if there are two candidates + \def\beamer@torinoth@secondcandtext{true}% + \ifx\beamer@torinoth@secondcandidateoption\beamer@torinoth@secondcandtext% + \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}% + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.6\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}% + \usebeamerfont{footnote}\inserttitle \par% + \end{beamercolorbox}% + \else% + \begin{beamercolorbox}[wd=.15\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}% + \end{beamercolorbox}% + \def\beamer@torinoth@notshowauthortext{true}% + \ifx\beamer@torinoth@notshowauthor\beamer@torinoth@notshowauthortext% + \begin{beamercolorbox}[wd=.65\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}% + \usebeamerfont{footnote} \inserttitle \par% + \end{beamercolorbox}% + \else + \begin{beamercolorbox}[wd=.65\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}% + \usebeamerfont{footnote}\insertauthor{} \beamer@torinoth@separator{} \inserttitle \par% + \end{beamercolorbox}% + \fi% + \fi% \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@torinoth@box,dp=0pt]{}% \end{beamercolorbox}% } % @@ -63,7 +93,6 @@ \insertslidenavigationsymbol \end{beamercolorbox}% } % - } % Header @@ -82,8 +111,7 @@ \hbox{% \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@torinoth@line]{second header}% \end{beamercolorbox}% - } % - \vskip0pt% + } } \defbeamertemplate*{frametitle}{torinoth theme}[1][left] |