diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-27 22:12:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-27 22:12:01 +0000 |
commit | a65852350dd289d0de23e9b5019613e89de47a4e (patch) | |
tree | 8f6ed8413f7d533fae3467714a32b0a1f24de2f9 /Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty | |
parent | 8242aaa29f30ed9c3abea253edf12970cc50634c (diff) |
beamer2thesis (27aug12)
git-svn-id: svn://tug.org/texlive/trunk@27539 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty b/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty index b482e5f4823..878734d3be6 100644 --- a/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty +++ b/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% Copyright 2011 by Fiandrino Claudio +% Copyright 2011-2012 by Fiandrino Claudio % % This file may be distributed and/or modified % @@ -12,7 +12,7 @@ \mode<presentation> % Options -\DeclareOptionBeamer{language}{\PassOptionsToPackage{language=#1}{beamerinnerthemetorinoth}} +\DeclareOptionBeamer{language}{\PassOptionsToPackage{language=#1}{beamerinnerthemetorinoth}\def\beamer@torinoth@language{#1}} \DeclareOptionBeamer{titlepagelogo}{\PassOptionsToPackage{titlepagelogo=#1}{beamerinnerthemetorinoth}} \DeclareOptionBeamer{bullet}{\PassOptionsToPackage{bullet=#1}{beamerinnerthemetorinoth}} \DeclareOptionBeamer{pageofpages}{\PassOptionsToPackage{pageofpages=#1}{beamerouterthemetorinoth}} @@ -44,23 +44,46 @@ \RequirePackage[\beamer@torinoth@coding]{inputenc}% \fi +% Disable insertshorttitle link +\renewcommand\insertshorttitle[1][]{% + \beamer@setupshort{#1}% + \let\thanks=\@gobble% + \beamer@insertshort{\beamer@shorttitle}% + } + % Language +\def\beamer@torinoth@subject{}% \def\beamer@torinoth@italiantext{italian}% +\def\beamer@torinoth@englishtext{english}% \ifx\beamer@torinoth@language\beamer@torinoth@italiantext% - \def\beamer@torinoth@subject{Presentazione Tesi di Laurea}% + \renewcommand\beamer@torinoth@subject{Presentazione Tesi di Laurea}% \ifxetex \setmainlanguage{italian}% \else \RequirePackage[italian]{babel}% \fi - \else% - \def\beamer@torinoth@subject{Thesis Presentation}% + \fi% + + \ifx\beamer@torinoth@language\beamer@torinoth@englishtext% + \renewcommand\beamer@torinoth@subject{Thesis Presentation}% \ifxetex \setmainlanguage[variant=british]{english}% \else \RequirePackage[english]{babel}% - \fi -\fi% + \fi% + \else% + \def\setsubject#1{\gdef\@setsubject{#1}}% + \def\@setsubject{\PackageError{Beamer2Thesis}% + {\protect\setsubject\space not given. Please insert it}% + {Example in english: \protect\setsubject{Thesis Presentation}} + } + \renewcommand\beamer@torinoth@subject{\@setsubject}% + \ifxetex + \setmainlanguage{\beamer@torinoth@language}% + \else + \RequirePackage[\beamer@torinoth@language]{babel}% + \fi% + \fi% % General settings \useinnertheme{torinoth} @@ -82,17 +105,16 @@ } % Highlight a single word -\newcommand{\highlight}[1]{{\it{\color{\beamer@torinoth@color}{#1}}}} -\newcommand{\highlightbf}[1]{{\bf\color{\beamer@torinoth@color}{#1}}} +\newcommand{\highlight}[1]{{\it{\color{alerted text.fg}{#1}}}} +\newcommand{\highlightbf}[1]{{\bf\color{alerted text.fg}{#1}}} % Define hypersetup \hypersetup{% colorlinks=true, hyperindex=true, - pdfpagelabels, plainpages=false, - urlcolor=\beamer@torinoth@color, - linkcolor=\beamer@torinoth@color, + urlcolor=alerted text.fg, + linkcolor=alerted text.fg, pdfinfo={% Title={\inserttitle},% Author={\insertauthor},% |