my initial lines beamer themes
This commit is contained in:
parent
e2b072bad6
commit
e6c5c3dcfc
66
beamercolorthemeaptero.sty
Normal file
66
beamercolorthemeaptero.sty
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
% 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{beamercolorthemelines}[2021/02/28 color theme for lines inner and outer beamer theme]
|
||||||
|
|
||||||
|
\colorlet{darkred}{red!70!black}
|
||||||
|
\colorlet{darkblue}{blue!70!black}
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
% inner colors:
|
||||||
|
|
||||||
|
\setbeamercolor{normal text}{fg=black, bg=}
|
||||||
|
\setbeamercolor{math text}{parent={normal text}}
|
||||||
|
|
||||||
|
\setbeamercolor{structure}{fg=darkblue}
|
||||||
|
\setbeamercolor{alerted text}{fg=darkred}
|
||||||
|
|
||||||
|
\setbeamercolor{titlelike}{parent={normal text}}
|
||||||
|
|
||||||
|
\setbeamercolor{frametitle}{parent={titlelike}}
|
||||||
|
\setbeamercolor{frametitle line}{fg=darkblue}
|
||||||
|
|
||||||
|
\setbeamercolor{item}{parent={normal text}}
|
||||||
|
|
||||||
|
\setbeamercolor{block title}{fg=white, bg=black!70}
|
||||||
|
\setbeamercolor{block body}{fg=normal text.fg, bg=black!10}
|
||||||
|
|
||||||
|
\setbeamercolor{block title example}{parent={block title}, bg=darkblue}
|
||||||
|
\setbeamercolor{block body example}{parent={block body}}
|
||||||
|
|
||||||
|
\setbeamercolor{block title alerted}{parent={block title}, bg=darkred}
|
||||||
|
\setbeamercolor{block body alerted}{parent={block body}, fg=darkred}
|
||||||
|
|
||||||
|
\setbeamercolor{section in toc}{parent={normal text}}
|
||||||
|
\setbeamercolor{subsection in toc}{parent={normal text}}
|
||||||
|
|
||||||
|
\setbeamercolor{title}{parent={titlelike}, fg=darkred}
|
||||||
|
\setbeamercolor{author}{parent={normal text}}
|
||||||
|
\setbeamercolor{institute}{parent={normal text}}
|
||||||
|
|
||||||
|
\setbeamercolor{title page}{parent={normal text}}
|
||||||
|
\setbeamercolor{title page line}{fg=darkred}
|
||||||
|
|
||||||
|
\setbeamercolor{section name}{parent={titlelike}}
|
||||||
|
\setbeamercolor{section name separator}{parent={section name}, fg=darkblue}
|
||||||
|
\setbeamercolor{section title}{parent={titlelike}}
|
||||||
|
|
||||||
|
% outer colors:
|
||||||
|
|
||||||
|
\setbeamercolor{background}{bg=}
|
||||||
|
|
||||||
|
\setbeamercolor{footline}{fg=black!75, bg=}
|
||||||
|
\setbeamercolor{footline line}{parent={footline}}
|
||||||
|
\setbeamercolor{footline separator}{parent={footline}}
|
||||||
|
|
||||||
|
% hyper ref colors:
|
||||||
|
|
||||||
|
\hypersetup{colorlinks=true, allcolors=black, urlcolor=darkblue}
|
||||||
|
|
||||||
|
\mode
|
||||||
|
<all>
|
33
beamerfontthemelines.sty
Normal file
33
beamerfontthemelines.sty
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
% 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{beamerfontthemelines}[2021/02/28 font theme for the lines inner and outer beamer themes]
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
% font:
|
||||||
|
|
||||||
|
\RequirePackage[scaled]{helvet}
|
||||||
|
\RequirePackage{sfmath}
|
||||||
|
\renewcommand{\familydefault}{\sfdefault}
|
||||||
|
|
||||||
|
% inner fonts:
|
||||||
|
|
||||||
|
\setbeamerfont{frametitle}{size=\LARGE}
|
||||||
|
|
||||||
|
\setbeamerfont{title}{size=\LARGE, shape=\bfseries}
|
||||||
|
\setbeamerfont{author}{size=\Large}
|
||||||
|
\setbeamerfont{institute}{size=\normalsize}
|
||||||
|
|
||||||
|
\setbeamerfont*{section title}{size=\Huge}
|
||||||
|
\setbeamerfont*{section name}{size=\Huge}
|
||||||
|
|
||||||
|
% outer fonts:
|
||||||
|
|
||||||
|
\setbeamerfont{footline}{size=\footnotesize}
|
||||||
|
|
||||||
|
\mode<all>
|
125
beamerinnerthemelines.sty
Normal file
125
beamerinnerthemelines.sty
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
% 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{beamerinnerthemelines}[2021/02/28 inner theme for beamer with lines in title page]
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
\RequirePackage{tikz}
|
||||||
|
|
||||||
|
|
||||||
|
% itemize and enumerate symbols:
|
||||||
|
\defbeamertemplate{itemize item}{arrow}{%
|
||||||
|
\begin{tikzpicture}
|
||||||
|
\draw[line width=0.2ex] (0ex, 0ex) -- (0.7ex,0.7ex) -- (0ex, 1.4ex);
|
||||||
|
\end{tikzpicture}}
|
||||||
|
|
||||||
|
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball
|
||||||
|
\setbeamertemplate{enumerate item}[default] % default, circle, square, ball
|
||||||
|
|
||||||
|
|
||||||
|
% block environments:
|
||||||
|
\setbeamertemplate{blocks}[default]
|
||||||
|
|
||||||
|
|
||||||
|
%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
\defbeamertemplate{title page line}{default}[1][1ex]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{title page line}{}{%
|
||||||
|
\nointerlineskip%
|
||||||
|
\begin{beamercolorbox}[wd=1\textwidth,dp=0pt,ht=#1,sep=0pt]{title page line}%
|
||||||
|
\rule{1\linewidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{title page line}[default][1.5ex]
|
||||||
|
|
||||||
|
\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}{line}{\def\beamer@andtitle{$\;\;\vert\;\;\;$}}
|
||||||
|
\defbeamertemplate{title page author and}{and}{\def\beamer@andtitle{$\;$\&$\;\;$}}
|
||||||
|
|
||||||
|
\setbeamertemplate{title page author and}[line]
|
||||||
|
|
||||||
|
\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}{line}{\def\beamer@andinst{$\;\;\vert\;\;\;$}}
|
||||||
|
|
||||||
|
\setbeamertemplate{title page institute and}[line]
|
||||||
|
|
||||||
|
% title page: lines
|
||||||
|
\defbeamertemplate*{title page}{lines}
|
||||||
|
{
|
||||||
|
\vbox{}
|
||||||
|
\includegraphics[height=6ex]{UT_MNF_RGB}\\[1.2ex]
|
||||||
|
\usebeamertemplate{frametitle line}%
|
||||||
|
\vspace{1ex}
|
||||||
|
{\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}
|
||||||
|
\usebeamertemplate{title page line}%
|
||||||
|
\vfill\vfill\vfill
|
||||||
|
\begin{beamercolorbox}{title}
|
||||||
|
\usebeamerfont{title}\inserttitle\par%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\vfill\vfill
|
||||||
|
\begin{beamercolorbox}{author}
|
||||||
|
\usebeamertemplate{title page author and}%
|
||||||
|
\usebeamerfont{author}\insertauthor
|
||||||
|
\end{beamercolorbox}
|
||||||
|
\vfill
|
||||||
|
\begin{beamercolorbox}{institute}
|
||||||
|
\usebeamertemplate{title page institute and}%
|
||||||
|
\usebeamerfont{institute}\insertinstitute
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{title page}[lines]
|
||||||
|
|
||||||
|
|
||||||
|
%%%%% section page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
% section page separator: space
|
||||||
|
|
||||||
|
\defbeamertemplate{section name separator}{space}{}
|
||||||
|
|
||||||
|
% section page separator: text
|
||||||
|
|
||||||
|
\defbeamertemplate{section name separator}{text}[1][1pt]%
|
||||||
|
{
|
||||||
|
{\usebeamercolor[fg]{section name separator}
|
||||||
|
\rule[-0.5ex]{#1}{2.4ex}}
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{section name separator}[text][1pt]
|
||||||
|
|
||||||
|
% section page: left
|
||||||
|
|
||||||
|
\defbeamertemplate{section page}{left}%
|
||||||
|
{
|
||||||
|
\begin{columns}[t,onlytextwidth]
|
||||||
|
\begin{column}{0.1\textwidth}
|
||||||
|
\usebeamerfont{section name}%
|
||||||
|
\raggedleft{\usebeamercolor[fg]{section name}%
|
||||||
|
\makebox[0.5\linewidth][r]{\insertsectionnumber}%
|
||||||
|
\makebox[0.5\linewidth][c]{\usebeamertemplate{section name separator}}}%
|
||||||
|
\end{column}
|
||||||
|
\begin{column}{0.9\textwidth}
|
||||||
|
\usebeamerfont{section title}%
|
||||||
|
{\usebeamercolor[fg]{section title} \insertsection}%
|
||||||
|
\end{column}
|
||||||
|
\end{columns}
|
||||||
|
}
|
||||||
|
|
||||||
|
% start each section with a special slide:
|
||||||
|
\AtBeginSection{
|
||||||
|
\frame[plain,c]{\sectionpage}
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{section page}[left]
|
||||||
|
|
||||||
|
\mode<all>
|
194
beamerouterthemelines.sty
Normal file
194
beamerouterthemelines.sty
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
% 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{beamerouterthemelines}[2021/02/28 outer theme for beamer with a line below the frame title]
|
||||||
|
|
||||||
|
\newif\if@beamer@footline@author
|
||||||
|
\newif\if@beamer@footline@institute
|
||||||
|
\newif\if@beamer@footline@date
|
||||||
|
\newif\if@beamer@footline@title
|
||||||
|
\newif\if@beamer@footline@page
|
||||||
|
\newif\if@beamer@footline@logo
|
||||||
|
|
||||||
|
\DeclareOptionBeamer{author}{\@beamer@footline@authortrue}
|
||||||
|
\DeclareOptionBeamer{hideauthor}{\@beamer@footline@authorfalse}
|
||||||
|
\DeclareOptionBeamer{institute}{\@beamer@footline@institutetrue}
|
||||||
|
\DeclareOptionBeamer{hideinstitute}{\@beamer@footline@institutefalse}
|
||||||
|
\DeclareOptionBeamer{date}{\@beamer@footline@datetrue}
|
||||||
|
\DeclareOptionBeamer{hidedate}{\@beamer@footline@datefalse}
|
||||||
|
\DeclareOptionBeamer{title}{\@beamer@footline@titletrue}
|
||||||
|
\DeclareOptionBeamer{hidetitle}{\@beamer@footline@titlefalse}
|
||||||
|
\DeclareOptionBeamer{page}{\@beamer@footline@pagetrue}
|
||||||
|
\DeclareOptionBeamer{hidepage}{\@beamer@footline@pagefalse}
|
||||||
|
\DeclareOptionBeamer{logo}{\@beamer@footline@logotrue}
|
||||||
|
\DeclareOptionBeamer{hidelogo}{\@beamer@footline@logofalse}
|
||||||
|
|
||||||
|
\ExecuteOptionsBeamer{author}
|
||||||
|
\ExecuteOptionsBeamer{hideinstitute}
|
||||||
|
\ExecuteOptionsBeamer{hidedate}
|
||||||
|
\ExecuteOptionsBeamer{hidetitle}
|
||||||
|
\ExecuteOptionsBeamer{page}
|
||||||
|
\ExecuteOptionsBeamer{hidelogo}
|
||||||
|
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
|
||||||
|
\mode<presentation>
|
||||||
|
|
||||||
|
% margins:
|
||||||
|
\setbeamersize{text margin left=1em,text margin right=1em}
|
||||||
|
|
||||||
|
% no navigation symbols:
|
||||||
|
\defbeamertemplate{navigation symbols}{empty}{}
|
||||||
|
\setbeamertemplate{navigation symbols}[empty]
|
||||||
|
|
||||||
|
% no side bars:
|
||||||
|
\setbeamertemplate{sidebar left}[default]
|
||||||
|
|
||||||
|
\defbeamertemplate{sidebar right}{empty}{}
|
||||||
|
\setbeamertemplate{sidebar right}[empty]
|
||||||
|
|
||||||
|
% no headline:
|
||||||
|
\setbeamertemplate{headline}[default]
|
||||||
|
|
||||||
|
% footline line:
|
||||||
|
\defbeamertemplate{footline line}{text}[1][1pt]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{footline line}{}{%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
|
||||||
|
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline line}%
|
||||||
|
\rule{1\linewidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\nointerlineskip%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
\defbeamertemplate{footline line}{page}[1][1pt]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{footline line}{}{%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
|
||||||
|
leftskip=0pt,rightskip=0pt]{footline line}%
|
||||||
|
\rule{1\paperwidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\nointerlineskip%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{footline line}[text][0.5pt]
|
||||||
|
|
||||||
|
|
||||||
|
% footline separator:
|
||||||
|
\defbeamertemplate{footline separator}{text}[1][1pt]{%
|
||||||
|
{\usebeamercolor[fg]{footline separator}$\;\;$\rule[-0.55ex]{#1}{2.3ex}$\;$}}
|
||||||
|
\defbeamertemplate{footline separator}{full}[1][1pt]{%
|
||||||
|
{\usebeamercolor[fg]{footline separator}$\;\;$\rule[-1.2ex]{#1}{4ex}$\;$}}
|
||||||
|
\defbeamertemplate{footline separator}{space}{%
|
||||||
|
{\usebeamercolor[fg]{footline separator}$\;\;\;$}}
|
||||||
|
|
||||||
|
\setbeamertemplate{footline separator}[text][0.5pt]
|
||||||
|
%\setbeamertemplate{footline separator}[space]
|
||||||
|
|
||||||
|
% footline:
|
||||||
|
\defbeamertemplate{footline}{lines}{%
|
||||||
|
\usebeamerfont{footline}%
|
||||||
|
\usebeamertemplate{footline line}%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=2.8ex,sep=0pt,colsep=0pt,colsep*=0pt,%
|
||||||
|
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{footline}
|
||||||
|
\hypersetup{allcolors=.}%
|
||||||
|
\newif\if@tempsep%
|
||||||
|
\@tempsepfalse%
|
||||||
|
% author:
|
||||||
|
\if@beamer@footline@author
|
||||||
|
\insertshortauthor
|
||||||
|
\@tempseptrue
|
||||||
|
\fi
|
||||||
|
% institute:
|
||||||
|
\if@beamer@footline@institute
|
||||||
|
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
|
||||||
|
\insertshortinstitute
|
||||||
|
\@tempseptrue
|
||||||
|
\fi
|
||||||
|
% date:
|
||||||
|
\if@beamer@footline@date
|
||||||
|
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
|
||||||
|
\insertshortdate
|
||||||
|
\@tempseptrue
|
||||||
|
\fi
|
||||||
|
% title:
|
||||||
|
\if@beamer@footline@title
|
||||||
|
\if@tempsep\usebeamertemplate{footline separator}\hskip0.6ex\fi
|
||||||
|
\insertshorttitle
|
||||||
|
\@tempseptrue
|
||||||
|
\fi
|
||||||
|
\hfill
|
||||||
|
% page:
|
||||||
|
\if@beamer@footline@page
|
||||||
|
\usebeamertemplate{footline separator}
|
||||||
|
\insertframenumber
|
||||||
|
\fi
|
||||||
|
% logo:
|
||||||
|
\if@beamer@footline@logo%
|
||||||
|
\ifx\insertlogo\@empty\else\quad \raisebox{-1ex}{\insertlogo}\fi%
|
||||||
|
\fi
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{footline}[lines]
|
||||||
|
|
||||||
|
% frametitle line:
|
||||||
|
\defbeamertemplate{frametitle line}{text}[1][1pt]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{frametitle line}{}{%
|
||||||
|
\nointerlineskip%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
|
||||||
|
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{frametitle line}%
|
||||||
|
\rule{1\linewidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
\defbeamertemplate{frametitle line}{page}[1][1pt]%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[fg]{frametitle line}{}{%
|
||||||
|
\nointerlineskip%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=0pt,ht=#1,sep=0pt,%
|
||||||
|
leftskip=0pt,rightskip=0pt]{frametitle line}%
|
||||||
|
\rule{1\paperwidth}{#1}%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{frametitle line}[text][0.5pt]
|
||||||
|
|
||||||
|
|
||||||
|
% frametitle:
|
||||||
|
\defbeamertemplate{frametitle}{boxline}%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
|
||||||
|
\usebeamerfont{frametitle}%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=3.2ex,sep=0pt,%
|
||||||
|
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{frametitle}
|
||||||
|
\insertframetitle\strut
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\usebeamertemplate{frametitle line}%
|
||||||
|
}
|
||||||
|
\defbeamertemplate{frametitle}{boxlinelogo}%
|
||||||
|
{
|
||||||
|
\ifbeamercolorempty[bg]{frametitle}{}{\nointerlineskip}%
|
||||||
|
\usebeamerfont{frametitle}%
|
||||||
|
\begin{beamercolorbox}[wd=1\paperwidth,dp=1.2ex,ht=3.2ex,sep=0pt,%
|
||||||
|
leftskip=1\beamer@leftmargin,rightskip=1\beamer@rightmargin]{frametitle}
|
||||||
|
\insertframetitle\strut%
|
||||||
|
\ifx\insertlogo\@empty%
|
||||||
|
\else%
|
||||||
|
\hfill \raisebox{-0.7ex}{\insertlogo}%
|
||||||
|
\fi%
|
||||||
|
\end{beamercolorbox}%
|
||||||
|
\usebeamertemplate{frametitle line}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\setbeamertemplate{frametitle}[boxlinelogo]
|
||||||
|
|
||||||
|
\mode<all>
|
Loading…
Reference in New Issue
Block a user