From dc3182c8bf813d4fd702ddb4b06873a455ca0d22 Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Mon, 8 Mar 2021 09:45:10 +0100 Subject: [PATCH] author and institute and template --- lines-example.tex | 85 +++++++++++++++++++++++------------------------ 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/lines-example.tex b/lines-example.tex index 98c5a50..55ff87e 100644 --- a/lines-example.tex +++ b/lines-example.tex @@ -454,8 +454,8 @@ \setbeamercolor{block title}{fg=#1, bg=#2} \setbeamercolor{block body}{fg=#3, bg=#4} \begin{small} - \texttt{\textbackslash setbeamercolor{block title}\{fg=#1, bg=#2\}}\\ - \texttt{\textbackslash setbeamercolor{block body}\{fg=#3, bg=#4\}}\\ + \texttt{\textbackslash setbeamercolor\{block title\}\{fg=#1, bg=#2\}}\\ + \texttt{\textbackslash setbeamercolor\{block body\}\{fg=#3, bg=#4\}}\\ \end{small} \blockdemo \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} @@ -476,8 +476,8 @@ \setbeamertemplate{block begin}[lines]{0pt}{0pt} \setbeamertemplate{block end}[lines]{0pt} \begin{small} - \texttt{\textbackslash setbeamerfont{block title}\{size=\textbackslash #1\}}\\ - \texttt{\textbackslash setbeamerfont{block body}\{size=\textbackslash #1\}}\\ + \texttt{\textbackslash setbeamerfont\{block title\}\{size=\textbackslash #1\}}\\ + \texttt{\textbackslash setbeamerfont\{block body\}\{size=\textbackslash #1\}}\\ \end{small} \blockdemo \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} @@ -503,9 +503,9 @@ \setbeamercolor{block line middle}{fg=#2} \setbeamercolor{block line bottom}{fg=#3} \begin{small} - \texttt{\textbackslash setbeamercolor{block line top}\{fg=#1\}}\\ - \texttt{\textbackslash setbeamercolor{block line middle}\{fg=#2\}}\\ - \texttt{\textbackslash setbeamercolor{block line bottom}\{fg=#3\}} + \texttt{\textbackslash setbeamercolor\{block line top\}\{fg=#1\}}\\ + \texttt{\textbackslash setbeamercolor\{block line middle\}\{fg=#2\}}\\ + \texttt{\textbackslash setbeamercolor\{block line bottom\}\{fg=#3\}} \end{small} \blockdemo \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} @@ -577,7 +577,7 @@ Here we even start a second paragraph. \end{quotation} \vfill - Quote something else of somebody else: + Quote something else of somebody else without indentation: \begin{quote}[Me And Myself] A \verb!quote! environment. There is a lot to talk about and it really takes a lot of words to express this. Most likely this @@ -938,55 +938,52 @@ \end{block} \end{frame} -% \newcommand{\titlepageauthorsdemo}[1]{ -% \setbeamertemplate{title page author and}[#1] -% \begin{small} -% \texttt{\textbackslash setbeamertemplate\{title page author and\}[#1]} -% \end{small} -% \par -% \insertauthor -% \setbeamertemplate{title page author and}[space] -% \vfill -% } +\newcommand{\titlepageauthorsdemo}[1]{ + \setbeamertemplate{title page author and}[#1] + \usebeamertemplate{title page author and} + \author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}} + \begin{small} + \texttt{\textbackslash setbeamertemplate\{title page author and\}[#1]} + \end{small} + \par + \insertauthor + \setbeamertemplate{title page author and}[line] + \vfill +} \begin{frame}[fragile]{Title page authors} \begin{block}{In preamble} \strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}! \end{block} - % \author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}} - % \titlepageauthorsdemo{space} - % \titlepageauthorsdemo{comma} - % \titlepageauthorsdemo{line} - % \titlepageauthorsdemo{and} - \begin{block}{Author separator} - \verb!\setbeamertemplate{title page author and}[line]! - \end{block} - One of - \begin{itemize} - \item \verb!space! - \item \verb!comma! - \item \verb!line! (a vertical line) - \item \verb!and! (an '\&') - \end{itemize} + \titlepageauthorsdemo{space} + \titlepageauthorsdemo{comma} + \titlepageauthorsdemo{line} + \titlepageauthorsdemo{and} \begin{block}{Color/Font} \verb!\setbeamercolor{author}{fg=black}! \end{block} \end{frame} +\newcommand{\titlepageinstitutedemo}[1]{ + \setbeamertemplate{title page institute and}[#1] + \usebeamertemplate{title page institute and} + \institute{\inst{1}University \and \inst{2}Scripps} + \begin{small} + \texttt{\textbackslash setbeamertemplate\{title page institute and\}[#1]} + \end{small} + \par + \insertinstitute + \setbeamertemplate{title page institute and}[line] + \vfill +} + \begin{frame}[fragile]{Title page institutes} \begin{block}{In preamble} - \strut\verb!\institute{\inst{1}Somewhere \and \inst{2}Somewhere else}! - \end{block} - \begin{block}{Institutes separator} - \verb!\setbeamertemplate{title page institute and}[line]! + \strut\verb!\institute{\inst{1}University \and \inst{2}Scripps}! \end{block} - One of - \begin{itemize} - \item \verb!default! (a linebreak) - \item \verb!space! - \item \verb!comma! - \item \verb!line! (a vertical line) - \end{itemize} + \titlepageinstitutedemo{space} + \titlepageinstitutedemo{comma} + \titlepageinstitutedemo{line} \begin{block}{Color/Font} \verb!\setbeamercolor{institute}{fg=black}! \end{block}