added theme style
This commit is contained in:
parent
e6c5c3dcfc
commit
b91cf27a3f
@ -4,11 +4,27 @@
|
|||||||
%
|
%
|
||||||
% 1. under the LaTeX Project Public License and/or
|
% 1. under the LaTeX Project Public License and/or
|
||||||
% 2. under the GNU Public License.
|
% 2. under the GNU Public License.
|
||||||
|
%
|
||||||
\ProvidesPackage{beamercolorthemelines}[2021/02/28 color theme for lines inner and outer beamer theme]
|
% "aptero" is a nick name for "Apteronotus" - a genus of weakly electric fish.
|
||||||
|
|
||||||
\colorlet{darkred}{red!70!black}
|
\ProvidesPackage{beamercolorthemeaptero}[2021/02/28 color theme for lines inner and outer beamer theme]
|
||||||
\colorlet{darkblue}{blue!70!black}
|
|
||||||
|
% muted colors:
|
||||||
|
\definecolor{red}{rgb}{0.753,0.153,0.090}
|
||||||
|
\definecolor{orange}{rgb}{0.969,0.502,0.090}
|
||||||
|
\definecolor{yellow}{rgb}{0.941,0.843,0.188}
|
||||||
|
\definecolor{lightgreen}{rgb}{0.667,0.718,0.106}
|
||||||
|
\definecolor{green}{rgb}{0.251,0.502,0.125}
|
||||||
|
\definecolor{darkgreen}{rgb}{0.000,0.439,0.188}
|
||||||
|
\definecolor{cyan}{rgb}{0.251,0.655,0.529}
|
||||||
|
\definecolor{lightblue}{rgb}{0.000,0.529,0.592}
|
||||||
|
\definecolor{blue}{rgb}{0.125,0.376,0.655}
|
||||||
|
\definecolor{purple}{rgb}{0.325,0.216,0.608}
|
||||||
|
\definecolor{magenta}{rgb}{0.529,0.216,0.439}
|
||||||
|
\definecolor{pink}{rgb}{0.816,0.188,0.314}
|
||||||
|
\definecolor{white}{rgb}{1.000,1.000,1.000}
|
||||||
|
\definecolor{gray}{rgb}{0.627,0.627,0.627}
|
||||||
|
\definecolor{black}{rgb}{0.000,0.000,0.000}
|
||||||
|
|
||||||
\mode<presentation>
|
\mode<presentation>
|
||||||
|
|
||||||
@ -17,37 +33,46 @@
|
|||||||
\setbeamercolor{normal text}{fg=black, bg=}
|
\setbeamercolor{normal text}{fg=black, bg=}
|
||||||
\setbeamercolor{math text}{parent={normal text}}
|
\setbeamercolor{math text}{parent={normal text}}
|
||||||
|
|
||||||
\setbeamercolor{structure}{fg=darkblue}
|
\setbeamercolor{structure}{fg=blue}
|
||||||
\setbeamercolor{alerted text}{fg=darkred}
|
\setbeamercolor{alerted text}{fg=red}
|
||||||
|
|
||||||
\setbeamercolor{titlelike}{parent={normal text}}
|
\setbeamercolor{titlelike}{parent={normal text}, fg=blue}
|
||||||
|
|
||||||
\setbeamercolor{frametitle}{parent={titlelike}}
|
\setbeamercolor{frametitle}{parent={titlelike}}
|
||||||
\setbeamercolor{frametitle line}{fg=darkblue}
|
\setbeamercolor{frametitle line}{fg=blue}
|
||||||
|
|
||||||
\setbeamercolor{item}{parent={normal text}}
|
\setbeamercolor{item}{parent={normal text}}
|
||||||
|
|
||||||
\setbeamercolor{block title}{fg=white, bg=black!70}
|
\setbeamercolor{block title}{fg=white, bg=blue}
|
||||||
\setbeamercolor{block body}{fg=normal text.fg, bg=black!10}
|
\setbeamercolor{block body}{fg=normal text.fg, bg=black!10}
|
||||||
|
|
||||||
\setbeamercolor{block title example}{parent={block title}, bg=darkblue}
|
\setbeamercolor{block title alerted}{parent={block title}, bg=red}
|
||||||
|
\setbeamercolor{block body alerted}{parent={block body}, fg=red}
|
||||||
|
|
||||||
|
\setbeamercolor{block title example}{parent={block title}, bg=lightgreen}
|
||||||
\setbeamercolor{block body example}{parent={block body}}
|
\setbeamercolor{block body example}{parent={block body}}
|
||||||
|
|
||||||
\setbeamercolor{block title alerted}{parent={block title}, bg=darkred}
|
\addtobeamertemplate{proof begin}{%
|
||||||
\setbeamercolor{block body alerted}{parent={block body}, fg=darkred}
|
\setbeamercolor{block title}{fg=white, bg=green}
|
||||||
|
}{}
|
||||||
|
|
||||||
|
\addtobeamertemplate{theorem begin}{%
|
||||||
|
\setbeamercolor{block title}{fg=white, bg=orange}
|
||||||
|
}{}
|
||||||
|
|
||||||
\setbeamercolor{section in toc}{parent={normal text}}
|
\setbeamercolor{section in toc}{parent={normal text}}
|
||||||
\setbeamercolor{subsection in toc}{parent={normal text}}
|
\setbeamercolor{subsection in toc}{parent={normal text}}
|
||||||
|
|
||||||
\setbeamercolor{title}{parent={titlelike}, fg=darkred}
|
\setbeamercolor{title}{parent={titlelike}, fg=red}
|
||||||
\setbeamercolor{author}{parent={normal text}}
|
\setbeamercolor{author}{parent={normal text}}
|
||||||
\setbeamercolor{institute}{parent={normal text}}
|
\setbeamercolor{institute}{parent={normal text}}
|
||||||
|
|
||||||
\setbeamercolor{title page}{parent={normal text}}
|
\setbeamercolor{title page}{parent={normal text}}
|
||||||
\setbeamercolor{title page line}{fg=darkred}
|
\setbeamercolor{title page graphic line}{fg=red}
|
||||||
|
\setbeamercolor{title page title line}{fg=red}
|
||||||
|
|
||||||
\setbeamercolor{section name}{parent={titlelike}}
|
\setbeamercolor{section name}{parent={titlelike}}
|
||||||
\setbeamercolor{section name separator}{parent={section name}, fg=darkblue}
|
\setbeamercolor{section name separator}{parent={section name}}
|
||||||
\setbeamercolor{section title}{parent={titlelike}}
|
\setbeamercolor{section title}{parent={titlelike}}
|
||||||
|
|
||||||
% outer colors:
|
% outer colors:
|
||||||
@ -60,7 +85,7 @@
|
|||||||
|
|
||||||
% hyper ref colors:
|
% hyper ref colors:
|
||||||
|
|
||||||
\hypersetup{colorlinks=true, allcolors=black, urlcolor=darkblue}
|
\hypersetup{colorlinks=true, allcolors=black, urlcolor=blue}
|
||||||
|
|
||||||
\mode
|
\mode
|
||||||
<all>
|
<all>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
\setbeamerfont{frametitle}{size=\LARGE}
|
\setbeamerfont{frametitle}{size=\LARGE}
|
||||||
|
|
||||||
\setbeamerfont{title}{size=\LARGE, shape=\bfseries}
|
\setbeamerfont{title}{size=\LARGE, shape=\bfseries}
|
||||||
|
\setbeamerfont{subtitle}{size=\Large, shape=\bfseries}
|
||||||
\setbeamerfont{author}{size=\Large}
|
\setbeamerfont{author}{size=\Large}
|
||||||
\setbeamerfont{institute}{size=\normalsize}
|
\setbeamerfont{institute}{size=\normalsize}
|
||||||
|
|
||||||
|
@ -7,10 +7,17 @@
|
|||||||
|
|
||||||
\ProvidesPackage{beamerinnerthemelines}[2021/02/28 inner theme for beamer with lines in title page]
|
\ProvidesPackage{beamerinnerthemelines}[2021/02/28 inner theme for beamer with lines in title page]
|
||||||
|
|
||||||
\mode<presentation>
|
|
||||||
|
|
||||||
\RequirePackage{tikz}
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
|
% \titlelogo command:
|
||||||
|
\mode<all>{
|
||||||
|
\newcommand\titlelogo[1]{\def\inserttitlelogo{#1}}
|
||||||
|
\titlelogo{}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
|
||||||
% itemize and enumerate symbols:
|
% itemize and enumerate symbols:
|
||||||
\defbeamertemplate{itemize item}{arrow}{%
|
\defbeamertemplate{itemize item}{arrow}{%
|
||||||
@ -28,17 +35,29 @@
|
|||||||
|
|
||||||
%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\defbeamertemplate{title page line}{default}[1][1ex]%
|
\defbeamertemplate{title page graphic line}{default}[1][1ex]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{title page graphic line}{}{%
|
||||||
|
\nointerlineskip%
|
||||||
|
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page graphic line}%
|
||||||
|
\rule{1\linewidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{title page graphic line}[default][1.5ex]
|
||||||
|
|
||||||
|
\defbeamertemplate{title page title line}{default}[1][1ex]%
|
||||||
{
|
{
|
||||||
\ifbeamercolorempty[fg]{title page line}{}{%
|
\ifbeamercolorempty[fg]{title page title line}{}{%
|
||||||
\nointerlineskip%
|
\nointerlineskip%
|
||||||
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page line}%
|
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page title line}%
|
||||||
\rule{1\linewidth}{#1}%
|
\rule{1\linewidth}{#1}%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
|
|
||||||
\setbeamertemplate{title page line}[default][1.5ex]
|
\setbeamertemplate{title page title line}[default][0.2ex]
|
||||||
|
|
||||||
\defbeamertemplate{title page author and}{space}{\def\beamer@andtitle{\quad}}
|
\defbeamertemplate{title page author and}{space}{\def\beamer@andtitle{\quad}}
|
||||||
\defbeamertemplate{title page author and}{comma}{\def\beamer@andtitle{,\quad}}
|
\defbeamertemplate{title page author and}{comma}{\def\beamer@andtitle{,\quad}}
|
||||||
@ -47,38 +66,114 @@
|
|||||||
|
|
||||||
\setbeamertemplate{title page author and}[line]
|
\setbeamertemplate{title page author and}[line]
|
||||||
|
|
||||||
|
\defbeamertemplate{title page institute and}{default}{}
|
||||||
\defbeamertemplate{title page institute and}{space}{\def\beamer@andinst{\quad}}
|
\defbeamertemplate{title page institute and}{space}{\def\beamer@andinst{\quad}}
|
||||||
\defbeamertemplate{title page institute and}{comma}{\def\beamer@andinst{,\quad}}
|
\defbeamertemplate{title page institute and}{comma}{\def\beamer@andinst{,\quad}}
|
||||||
\defbeamertemplate{title page institute and}{line}{\def\beamer@andinst{$\;\;\vert\;\;\;$}}
|
\defbeamertemplate{title page institute and}{line}{\def\beamer@andinst{$\;\;\vert\;\;\;$}}
|
||||||
|
|
||||||
\setbeamertemplate{title page institute and}[line]
|
\setbeamertemplate{title page institute and}[line]
|
||||||
|
|
||||||
% title page: lines
|
% title page: leftlines
|
||||||
\defbeamertemplate*{title page}{lines}
|
\defbeamertemplate*{title page}{leftlines}
|
||||||
{
|
{
|
||||||
\vbox{}
|
\vbox{}
|
||||||
\includegraphics[height=6ex]{UT_MNF_RGB}\\[1.2ex]
|
% title logo with line:
|
||||||
\usebeamertemplate{frametitle line}%
|
\ifx\inserttitlelogo\@empty\else%
|
||||||
\vspace{1ex}
|
\begin{beamercolorbox}[wd=\linewidth]{titlelogo}
|
||||||
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
|
\inserttitlelogo%
|
||||||
\usebeamertemplate{title page line}%
|
\end{beamercolorbox}%
|
||||||
|
\vspace{1.2ex}
|
||||||
|
\usebeamertemplate{frametitle line}%
|
||||||
|
\vspace{1ex}
|
||||||
|
\fi
|
||||||
|
% title graphic:
|
||||||
|
\ifx\inserttitlegraphic\@empty\else%
|
||||||
|
\begin{beamercolorbox}[wd=\linewidth]{titlegraphic}
|
||||||
|
\inserttitlegraphic%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\usebeamertemplate{title page graphic line}%
|
||||||
|
\fi%
|
||||||
\vfill\vfill\vfill
|
\vfill\vfill\vfill
|
||||||
|
% title:
|
||||||
\begin{beamercolorbox}{title}
|
\begin{beamercolorbox}{title}
|
||||||
\usebeamerfont{title}\inserttitle\par%
|
\usebeamerfont{title}\inserttitle\par%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\vfill\vfill
|
% subtitle:
|
||||||
|
\ifx\insertsubtitle\@empty\else%
|
||||||
|
\vspace{1ex}
|
||||||
|
\begin{beamercolorbox}{subtitle}
|
||||||
|
\usebeamerfont{subtitle}\insertsubtitle\par%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\fi%
|
||||||
|
\vfill
|
||||||
|
\usebeamertemplate{title page title line}%
|
||||||
|
\vfill
|
||||||
|
% author:
|
||||||
\begin{beamercolorbox}{author}
|
\begin{beamercolorbox}{author}
|
||||||
\usebeamertemplate{title page author and}%
|
\usebeamertemplate{title page author and}%
|
||||||
\usebeamerfont{author}\insertauthor
|
\usebeamerfont{author}\insertauthor
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\vfill
|
\vfill
|
||||||
|
% institute and date:
|
||||||
\begin{beamercolorbox}{institute}
|
\begin{beamercolorbox}{institute}
|
||||||
\usebeamertemplate{title page institute and}%
|
\usebeamertemplate{title page institute and}%
|
||||||
\usebeamerfont{institute}\insertinstitute
|
\usebeamerfont{institute}\insertinstitute
|
||||||
|
\hfill
|
||||||
|
\usebeamerfont{date}\insertdate
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
|
||||||
|
% title page: centerlines
|
||||||
|
\defbeamertemplate*{title page}{centerlines}
|
||||||
|
{
|
||||||
|
\vbox{}
|
||||||
|
% title logo with line:
|
||||||
|
\ifx\inserttitlelogo\@empty\else%
|
||||||
|
\begin{beamercolorbox}[wd=\linewidth,center]{titlelogo}
|
||||||
|
\inserttitlelogo%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\vspace{1.2ex}
|
||||||
|
\usebeamertemplate{frametitle line}%
|
||||||
|
\vspace{1ex}
|
||||||
|
\fi
|
||||||
|
% title graphic:
|
||||||
|
\ifx\inserttitlegraphic\@empty\else%
|
||||||
|
\begin{beamercolorbox}[wd=\linewidth,center]{titlegraphic}
|
||||||
|
\inserttitlegraphic%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\usebeamertemplate{title page graphic line}%
|
||||||
|
\fi%
|
||||||
|
\vfill\vfill\vfill
|
||||||
|
% title:
|
||||||
|
\begin{beamercolorbox}[center]{title}
|
||||||
|
\usebeamerfont{title}\inserttitle\par%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
% subtitle:
|
||||||
|
\ifx\insertsubtitle\@empty\else%
|
||||||
|
\vspace{1ex}
|
||||||
|
\begin{beamercolorbox}[center]{subtitle}
|
||||||
|
\usebeamerfont{subtitle}\insertsubtitle\par%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\fi%
|
||||||
|
\vfill
|
||||||
|
\usebeamertemplate{title page title line}%
|
||||||
|
\vfill
|
||||||
|
% author:
|
||||||
|
\begin{beamercolorbox}[center]{author}
|
||||||
|
\usebeamertemplate{title page author and}%
|
||||||
|
\usebeamerfont{author}\insertauthor
|
||||||
|
\end{beamercolorbox}
|
||||||
|
\vfill
|
||||||
|
% institute and date:
|
||||||
|
\begin{beamercolorbox}[center]{institute}
|
||||||
|
\usebeamertemplate{title page institute and}%
|
||||||
|
\usebeamerfont{institute}\insertinstitute
|
||||||
|
\hfill
|
||||||
|
\usebeamerfont{date}\insertdate
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
|
|
||||||
\setbeamertemplate{title page}[lines]
|
\setbeamertemplate{title page}[leftlines]
|
||||||
|
|
||||||
|
|
||||||
%%%%% section page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%% section page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
@ -110,7 +205,7 @@
|
|||||||
\end{column}
|
\end{column}
|
||||||
\begin{column}{0.9\textwidth}
|
\begin{column}{0.9\textwidth}
|
||||||
\usebeamerfont{section title}%
|
\usebeamerfont{section title}%
|
||||||
{\usebeamercolor[fg]{section title} \insertsection}%
|
{\usebeamercolor[fg]{section title}\hypersetup{allcolors=.}\insertsection}%
|
||||||
\end{column}
|
\end{column}
|
||||||
\end{columns}
|
\end{columns}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,6 @@
|
|||||||
{\usebeamercolor[fg]{footline separator}$\;\;\;$}}
|
{\usebeamercolor[fg]{footline separator}$\;\;\;$}}
|
||||||
|
|
||||||
\setbeamertemplate{footline separator}[text][0.5pt]
|
\setbeamertemplate{footline separator}[text][0.5pt]
|
||||||
%\setbeamertemplate{footline separator}[space]
|
|
||||||
|
|
||||||
% footline:
|
% footline:
|
||||||
\defbeamertemplate{footline}{lines}{%
|
\defbeamertemplate{footline}{lines}{%
|
||||||
@ -173,6 +172,7 @@
|
|||||||
\insertframetitle\strut
|
\insertframetitle\strut
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\usebeamertemplate{frametitle line}%
|
\usebeamertemplate{frametitle line}%
|
||||||
|
\vspace{-1ex}
|
||||||
}
|
}
|
||||||
\defbeamertemplate{frametitle}{boxlinelogo}%
|
\defbeamertemplate{frametitle}{boxlinelogo}%
|
||||||
{
|
{
|
||||||
@ -187,6 +187,7 @@
|
|||||||
\fi%
|
\fi%
|
||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\usebeamertemplate{frametitle line}%
|
\usebeamertemplate{frametitle line}%
|
||||||
|
\vspace{-1ex}
|
||||||
}
|
}
|
||||||
|
|
||||||
\setbeamertemplate{frametitle}[boxlinelogo]
|
\setbeamertemplate{frametitle}[boxlinelogo]
|
||||||
|
34
beamerthemelines.sty
Normal file
34
beamerthemelines.sty
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
% Copyright 2021 by Jan Benda
|
||||||
|
%
|
||||||
|
% This file may be distributed and/or modified
|
||||||
|
%
|
||||||
|
% 1. under the LaTeX Project Public License and/or
|
||||||
|
% 2. under the GNU Public License.
|
||||||
|
|
||||||
|
\ProvidesPackage{beamerthemelines}[2021/02/28 theme for beamer with lines]
|
||||||
|
|
||||||
|
% pass options to outer lines theme:
|
||||||
|
\DeclareOptionBeamer{author}{\PassOptionsToPackage{author}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hideauthor}{\PassOptionsToPackage{hideauthor}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{institute}{\PassOptionsToPackage{}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hideinstitute}{\PassOptionsToPackage{}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{date}{\PassOptionsToPackage{date}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hidedate}{\PassOptionsToPackage{hidedate}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{title}{\PassOptionsToPackage{title}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hidetitle}{\PassOptionsToPackage{hidetitle}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{page}{\PassOptionsToPackage{page}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hidepage}{\PassOptionsToPackage{hidepage}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{logo}{\PassOptionsToPackage{logo}{beamerouterthemelines}}
|
||||||
|
\DeclareOptionBeamer{hidelogo}{\PassOptionsToPackage{hidelogo}{beamerouterthemelines}}
|
||||||
|
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\useinnertheme{lines}
|
||||||
|
\useoutertheme{lines}
|
||||||
|
\usefonttheme{lines}
|
||||||
|
\usecolortheme{aptero}
|
||||||
|
|
||||||
|
\mode<all>
|
Loading…
Reference in New Issue
Block a user