item emph and message action environments

This commit is contained in:
Jan Benda 2021-03-05 00:10:28 +01:00
parent 8dbec2da53
commit 68e2279f3a
7 changed files with 87 additions and 10 deletions

View File

@ -49,19 +49,19 @@
\setbeamercolor{enumerate subitem}{parent={normal text}} \setbeamercolor{enumerate subitem}{parent={normal text}}
\setbeamercolor{block title}{fg=white, bg=blue} \setbeamercolor{block title}{fg=white, bg=blue}
\setbeamercolor{block body}{fg=normal text.fg, bg=blue!20} \setbeamercolor{block body}{fg=normal text.fg, bg=black!15}
\setbeamercolor{block line top}{fg=} \setbeamercolor{block line top}{fg=}
\setbeamercolor{block line middle}{fg=blue} \setbeamercolor{block line middle}{fg=blue}
\setbeamercolor{block line bottom}{fg=blue} \setbeamercolor{block line bottom}{fg=blue}
\setbeamercolor{block title alerted}{parent={block title}, bg=red} \setbeamercolor{block title alerted}{parent={block title}, bg=red}
\setbeamercolor{block body alerted}{fg=red, bg=red!15} \setbeamercolor{block body alerted}{fg=red, bg=black!15}
\setbeamercolor{block line alerted top}{fg=} \setbeamercolor{block line alerted top}{fg=}
\setbeamercolor{block line alerted middle}{fg=red} \setbeamercolor{block line alerted middle}{fg=red}
\setbeamercolor{block line alerted bottom}{fg=red} \setbeamercolor{block line alerted bottom}{fg=red}
\setbeamercolor{block title example}{parent={block title}, bg=lightgreen} \setbeamercolor{block title example}{parent={block title}, bg=lightgreen}
\setbeamercolor{block body example}{fg=normal text.fg, bg=lightgreen!40} \setbeamercolor{block body example}{fg=normal text.fg, bg=black!15}
\setbeamercolor{block line example top}{fg=} \setbeamercolor{block line example top}{fg=}
\setbeamercolor{block line example middle}{fg=lightgreen} \setbeamercolor{block line example middle}{fg=lightgreen}
\setbeamercolor{block line example bottom}{fg=lightgreen} \setbeamercolor{block line example bottom}{fg=lightgreen}
@ -76,6 +76,8 @@
\setbeamercolor{message line top}{fg=} \setbeamercolor{message line top}{fg=}
\setbeamercolor{message line bottom}{fg=} \setbeamercolor{message line bottom}{fg=}
\setbeamercolor{message symbol}{fg=} \setbeamercolor{message symbol}{fg=}
\setbeamercolor{message item}{fg=red}
\setbeamercolor{message item symbol}{fg=red}
\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}}

View File

@ -77,6 +77,8 @@
\setbeamercolor{message symbol}{fg=utgold} \setbeamercolor{message symbol}{fg=utgold}
\setbeamercolor{message line top}{fg=} \setbeamercolor{message line top}{fg=}
\setbeamercolor{message line bottom}{fg=} \setbeamercolor{message line bottom}{fg=}
\setbeamercolor{message item}{fg=utred}
\setbeamercolor{message item symbol}{fg=utgold}
\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}}

View File

@ -81,7 +81,7 @@
\c@tmp@numslides=\numexpr\beamer@endpageofframe-\beamer@startpageofframe\relax% \c@tmp@numslides=\numexpr\beamer@endpageofframe-\beamer@startpageofframe\relax%
\makebox[2.5ex][r]{\ifnum\c@tmp@numslides>0 -- \insertslidenumber{}\fi}}} \makebox[2.5ex][r]{\ifnum\c@tmp@numslides>0 -- \insertslidenumber{}\fi}}}
\setbeamertemplate{page number in head/foot}[slides] \setbeamertemplate{page number in head/foot}[frames]
%%%%% footline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% footline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -308,11 +308,16 @@
\newcommand{\itemarrow}{\tikz[baseline]{% \newcommand{\itemarrow}{\tikz[baseline]{%
\draw[line width=0.2ex] (0ex, 0.2ex) -- (0.45ex,0.7ex) -- (0ex, 1.2ex);}} \draw[line width=0.2ex] (0ex, 0.2ex) -- (0.45ex,0.7ex) -- (0ex, 1.2ex);}}
\newcommand{\itemfilledarrow}{\tikz[baseline]{%
\filldraw[line width=0.2ex] (0ex, 0.2ex) -- (0.5ex,0.7ex) -- (0ex, 1.2ex) -- cycle;}}
\newcommand{\itemdash}{\tikz[baseline]{% \newcommand{\itemdash}{\tikz[baseline]{%
\draw[line width=0.2ex] (0ex, 0.7ex) -- (0.9ex,0.7ex);}} \draw[line width=0.2ex] (0ex, 0.7ex) -- (0.9ex,0.7ex);}}
\defbeamertemplate{itemize item}{arrow}{\itemarrow} \defbeamertemplate{itemize item}{arrow}{\itemarrow}
\defbeamertemplate{itemize item}{filledarrow}{\itemfilledarrow}
\defbeamertemplate{itemize item}{dash}{\itemdash} \defbeamertemplate{itemize item}{dash}{\itemdash}
\defbeamertemplatealias{itemize item}{emph}{filledarrow}
\defbeamertemplatealias{itemize item}{message}{arrow}
\defbeamertemplate{itemize subitem}{arrow}{\itemarrow} \defbeamertemplate{itemize subitem}{arrow}{\itemarrow}
\defbeamertemplate{itemize subitem}{dash}{\itemdash} \defbeamertemplate{itemize subitem}{dash}{\itemdash}
@ -320,6 +325,14 @@
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, dash \setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, dash
\setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, dash \setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, dash
%%%%% emph item:
\newenvironment{emphenv}{\only{\setbeamertemplate{itemize item}[emph]}}{}
%%%%% message like item:
\newenvironment{messageenv}{\only{\setbeamertemplate{itemize item}[message]\setbeamercolor{itemize item}{use={message item symbol},fg=message item symbol.fg}\usebeamerfont{message item}\usebeamercolor[fg]{message item}}}{}
%%%%% enumerate style: %%%%% enumerate style:
@ -509,7 +522,6 @@
\usebeamertemplate*{message}} \usebeamertemplate*{message}}
} }
%%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% title page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% title page graphic line: %%%%% title page graphic line:
@ -780,6 +792,7 @@
\setbeamerfont{theorem body}{parent={block body}} \setbeamerfont{theorem body}{parent={block body}}
\setbeamerfont{message}{parent={normal text}, size=\large} \setbeamerfont{message}{parent={normal text}, size=\large}
\setbeamerfont{message item}{parent={normal text}, size=\large}
\setbeamerfont*{section title}{size=\huge} \setbeamerfont*{section title}{size=\huge}
\setbeamerfont*{section name}{size=\huge} \setbeamerfont*{section name}{size=\huge}

View File

@ -43,8 +43,10 @@
\setbeamertemplate{footline line}[page][0.3pt] % text, page \setbeamertemplate{footline line}[page][0.3pt] % text, page
\setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space \setbeamertemplate{footline separator}[text][0.3pt] % text, full, dash, space
\setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, dash \setbeamertemplate{itemize item}[arrow] % default, triangle, circle, square, ball, arrow, filledarrow, dash
\setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, dash \setbeamertemplate{itemize subitem}[dash] % default, triangle, circle, square, ball, arrow, filledarrow, dash
\defbeamertemplatealias{itemize item}{emph}{filledarrow}
\defbeamertemplatealias{itemize item}{message}{arrow}
\setbeamertemplate{enumerate item}[arabic] % default, circle, square, ball, alph, Alph, arabic, roman, Roman \setbeamertemplate{enumerate item}[arabic] % default, circle, square, ball, alph, Alph, arabic, roman, Roman
\setbeamertemplate{enumerate subitem}[alph] % default, circle, square, ball, alph, arabic, roman \setbeamertemplate{enumerate subitem}[alph] % default, circle, square, ball, alph, arabic, roman
@ -75,6 +77,7 @@
\setbeamerfont{footline}{size=\tiny} \setbeamerfont{footline}{size=\tiny}
\setbeamerfont{message}{size=\normalsize, series=\bfseries} \setbeamerfont{message}{size=\normalsize, series=\bfseries}
\setbeamerfont{message item}{parent={normal text}, size=\normalsize, series=\bfseries}
\usecolortheme{ut} \usecolortheme{ut}

Binary file not shown.

View File

@ -9,8 +9,6 @@
\date[2021]{March 2021} \date[2021]{March 2021}
\setbeamerfont{block body}{size=\small} \setbeamerfont{block body}{size=\small}
\setbeamercolor{message line top}{fg=orange}
\setbeamercolor{message line bottom}{fg=}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -161,6 +159,7 @@
\verb!itemize! only: \verb!itemize! only:
\begin{itemize} \begin{itemize}
\item \verb!arrow! \item \verb!arrow!
\item \verb!filledarrow!
\item \verb!dash! \item \verb!dash!
\item \verb!triangle! \item \verb!triangle!
\end{itemize} \end{itemize}
@ -226,6 +225,35 @@
\end{minipage} \end{minipage}
\end{frame} \end{frame}
\begin{frame}[fragile]{Itemize with action items}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Itemize}
\verb!\begin{itemize}!\\
\verb!\item Apple!\\
\verb!\item<2-| alert@3> Orange!
\verb!\item<2-| emph@2> Lemon!
\verb!\item<3-| emph@1-> Banana!
\verb!\item<3-> Mango!
\verb!\item<4-| message@1-> Cherries!
\verb! \item<4-> Grapes!
\verb!\end{itemize}!
\end{block}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\begin{itemize}
\item Apple
\item<2-| alert@3> Orange
\item<2-| emph@2> Lemon
\item<3-| emph@1-> Banana
\item<3-> Mango
\item<4-| message@1-> Cherries
\item<4-> Grapes
\end{itemize}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile]{Alert and structure} \begin{frame}[fragile]{Alert and structure}
The \verb!\alert{}! command \alert{emphasizes} text. The \verb!\alert{}! command \alert{emphasizes} text.

View File

@ -1,7 +1,7 @@
\documentclass[aspectratio=169,t]{beamer} \documentclass[aspectratio=169,t]{beamer}
\usetheme[author,institute,date,title]{ut} \usetheme[author,institute,date,title]{ut}
\title{A beamer theme for the University of T\"ubingen} \title{A \LaTeX{} beamer theme for the University of T\"ubingen}
\author[Benda]{Jan Benda} \author[Benda]{Jan Benda}
\institute[T\"ubingen]{Neuroethology, University of T\"ubingen} \institute[T\"ubingen]{Neuroethology, University of T\"ubingen}
\date[2021]{March 2021} \date[2021]{March 2021}
@ -145,6 +145,35 @@
\end{minipage} \end{minipage}
\end{frame} \end{frame}
\begin{frame}[fragile]{Itemize with action items}
\begin{minipage}[t]{0.45\textwidth}
\vspace{-2ex}
\begin{block}{Itemize}
\verb!\begin{itemize}!\\
\verb!\item Apple!\\
\verb!\item<2-| alert@3> Orange!
\verb!\item<2-| emph@2> Lemon!
\verb!\item<3-| emph@1-> Banana!
\verb!\item<3-> Mango!
\verb!\item<4-| message@1-> Cherries!
\verb! \item<4-> Grapes!
\verb!\end{itemize}!
\end{block}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\begin{itemize}
\item Apple
\item<2-| alert@3> Orange
\item<2-| emph@2> Lemon
\item<3-| emph@1-> Banana
\item<3-> Mango
\item<4-| message@1-> Cherries
\item<4-> Grapes
\end{itemize}
\end{minipage}
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[fragile,c]{Alert and structure} \begin{frame}[fragile,c]{Alert and structure}
The \verb!\alert{}! command \alert{emphasizes} text. The \verb!\alert{}! command \alert{emphasizes} text.