summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-09-19 23:49:39 +0000
committerKarl Berry <karl@freefriends.org>2011-09-19 23:49:39 +0000
commita2e40347ce33680ff47dd43b61a93e38559de7e6 (patch)
treede96f7fdc1f71b65d150a30f8c89fbbe25463de1 /Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
parentd033dd6b59e70d2daf205b3a285f3aad2228b96f (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/beamerthemeTorinoTh.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty77
1 files changed, 72 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty b/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
index 408c919a830..ee3e3e589a7 100644
--- a/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
+++ b/Master/texmf-dist/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
@@ -11,20 +11,58 @@
\mode<presentation>
-\RequirePackage[utf8x]{inputenc}
+% Packages
+\RequirePackage{ifxetex}%
+\RequirePackage{pifont}%
+ \RequirePackage{calc,ifthen}%
+\ifxetex
+ \RequirePackage{fontspec}%
+ \defaultfontfeatures{Mapping=tex-text}%
+ \RequirePackage{xunicode}%
+ \RequirePackage{xltxtra}%
+ \RequirePackage{metalogo}%
+ \RequirePackage{xkeyval}%
+ \RequirePackage{polyglossia}%
+\else
+ \RequirePackage[utf8x]{inputenc}%
+\fi
-\DeclareOptionBeamer{language}[italian]{\PassOptionsToPackage{language=#1}{beamerinnerthemetorinoth}}
+
+% Language
+\DeclareOptionBeamer{language}[italian]{\def\beamer@torinoth@language{#1}}%
+\ExecuteOptionsBeamer{language=english}%
+
+\def\beamer@torinoth@italiantext{italian}%
+ \ifx\beamer@torinoth@language\beamer@torinoth@italiantext%
+ \def\beamer@torinoth@subject{Presentazione Tesi di Laurea}%
+ \ifxetex
+ \setmainlanguage{italian}%
+ \else
+ \RequirePackage[italian]{babel}%
+ \fi
+ \else%
+ \def\beamer@torinoth@subject{Thesis Presentation}%
+ \ifxetex
+ \setmainlanguage[variant=british]{english}%
+ \else
+ \RequirePackage[english]{babel}%
+ \fi
+\fi%
+
+% Options
\DeclareOptionBeamer{titlepagelogo}{\PassOptionsToPackage{titlepagelogo=#1}{beamerinnerthemetorinoth}}
\DeclareOptionBeamer{bullet}{\PassOptionsToPackage{bullet=#1}{beamerinnerthemetorinoth}}
\DeclareOptionBeamer{pageofpages}{\PassOptionsToPackage{pageofpages=#1}{beamerouterthemetorinoth}}
-\DeclareOptionBeamer{titleline}[true]{\PassOptionsToPackage{titleline=#1}{beamerouterthemetorinoth}}
+\DeclareOptionBeamer{titleline}[false]{\PassOptionsToPackage{titleline=#1}{beamerouterthemetorinoth}}
\DeclareOptionBeamer{color}{\PassOptionsToPackage{color=#1}{beamercolorthemetorinoth}}
\DeclareOptionBeamer{secondcandidate}[true]{\PassOptionsToPackage{secondcandidate=#1}{beamerinnerthemetorinoth}}
\DeclareOptionBeamer{secondlogo}[true]{\PassOptionsToPackage{secondlogo=#1}{beamerinnerthemetorinoth}}
-
-
+\DeclareOptionBeamer{thirdlogo}[true]{\PassOptionsToPackage{thirdlogo=#1}{beamerinnerthemetorinoth}}
+\DeclareOptionBeamer{assistantsupervisor}[true]{\PassOptionsToPackage{assistantsupervisor=#1}{beamerinnerthemetorinoth}}
+\DeclareOptionBeamer{notshowauthor}[true]{\PassOptionsToPackage{notshowauthor=#1}{beamerouterthemetorinoth}}
\ProcessOptionsBeamer
+% General settings
\useinnertheme{torinoth}
\useoutertheme{torinoth}
\usecolortheme{torinoth}
@@ -36,5 +74,34 @@
\newenvironment{tframe}{
\begin{frame}[t]}{\end{frame}}
+% Titleapageframe command
+\newcommand{\titlepageframe}{
+\begin{frame}[plain]
+\titlepage
+\end{frame}
+}
+
+% Highlight a single word
+\newcommand{\highlight}[1]{{\it{\color{\beamer@torinoth@color}{#1}}}}
+\newcommand{\highlightbf}[1]{{\bf\color{\beamer@torinoth@color}{#1}}}
+
+% Define hypersetup
+\hypersetup{%
+ colorlinks=true,
+ hyperindex=true,
+ pdfpagelabels,
+ plainpages=false,
+ urlcolor=\beamer@torinoth@color,
+ linkcolor=\beamer@torinoth@color,
+ pdfinfo={%
+ Title={\inserttitle},%
+ Author={\insertauthor},%
+ Subject={\beamer@torinoth@subject},%
+ }
+}
+
+% Blocks
+\setbeamertemplate{blocks}[rounded][shadow=true]
+
\mode
<all>