author and institute and template

This commit is contained in:
Jan Benda 2021-03-08 09:45:10 +01:00
parent cc74b8a429
commit dc3182c8bf

View File

@ -454,8 +454,8 @@
\setbeamercolor{block title}{fg=#1, bg=#2} \setbeamercolor{block title}{fg=#1, bg=#2}
\setbeamercolor{block body}{fg=#3, bg=#4} \setbeamercolor{block body}{fg=#3, bg=#4}
\begin{small} \begin{small}
\texttt{\textbackslash setbeamercolor{block title}\{fg=#1, bg=#2\}}\\ \texttt{\textbackslash setbeamercolor\{block title\}\{fg=#1, bg=#2\}}\\
\texttt{\textbackslash setbeamercolor{block body}\{fg=#3, bg=#4\}}\\ \texttt{\textbackslash setbeamercolor\{block body\}\{fg=#3, bg=#4\}}\\
\end{small} \end{small}
\blockdemo \blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
@ -476,8 +476,8 @@
\setbeamertemplate{block begin}[lines]{0pt}{0pt} \setbeamertemplate{block begin}[lines]{0pt}{0pt}
\setbeamertemplate{block end}[lines]{0pt} \setbeamertemplate{block end}[lines]{0pt}
\begin{small} \begin{small}
\texttt{\textbackslash setbeamerfont{block title}\{size=\textbackslash #1\}}\\ \texttt{\textbackslash setbeamerfont\{block title\}\{size=\textbackslash #1\}}\\
\texttt{\textbackslash setbeamerfont{block body}\{size=\textbackslash #1\}}\\ \texttt{\textbackslash setbeamerfont\{block body\}\{size=\textbackslash #1\}}\\
\end{small} \end{small}
\blockdemo \blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
@ -503,9 +503,9 @@
\setbeamercolor{block line middle}{fg=#2} \setbeamercolor{block line middle}{fg=#2}
\setbeamercolor{block line bottom}{fg=#3} \setbeamercolor{block line bottom}{fg=#3}
\begin{small} \begin{small}
\texttt{\textbackslash setbeamercolor{block line top}\{fg=#1\}}\\ \texttt{\textbackslash setbeamercolor\{block line top\}\{fg=#1\}}\\
\texttt{\textbackslash setbeamercolor{block line middle}\{fg=#2\}}\\ \texttt{\textbackslash setbeamercolor\{block line middle\}\{fg=#2\}}\\
\texttt{\textbackslash setbeamercolor{block line bottom}\{fg=#3\}} \texttt{\textbackslash setbeamercolor\{block line bottom\}\{fg=#3\}}
\end{small} \end{small}
\blockdemo \blockdemo
\setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt} \setbeamertemplate{block begin}[lines]{0.5pt}{0.5pt}
@ -577,7 +577,7 @@
Here we even start a second paragraph. Here we even start a second paragraph.
\end{quotation} \end{quotation}
\vfill \vfill
Quote something else of somebody else: Quote something else of somebody else without indentation:
\begin{quote}[Me And Myself] \begin{quote}[Me And Myself]
A \verb!quote! environment. There is a lot to talk about and 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 it really takes a lot of words to express this. Most likely this
@ -938,55 +938,52 @@
\end{block} \end{block}
\end{frame} \end{frame}
% \newcommand{\titlepageauthorsdemo}[1]{ \newcommand{\titlepageauthorsdemo}[1]{
% \setbeamertemplate{title page author and}[#1] \setbeamertemplate{title page author and}[#1]
% \begin{small} \usebeamertemplate{title page author and}
% \texttt{\textbackslash setbeamertemplate\{title page author and\}[#1]} \author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}
% \end{small} \begin{small}
% \par \texttt{\textbackslash setbeamertemplate\{title page author and\}[#1]}
% \insertauthor \end{small}
% \setbeamertemplate{title page author and}[space] \par
% \vfill \insertauthor
% } \setbeamertemplate{title page author and}[line]
\vfill
}
\begin{frame}[fragile]{Title page authors} \begin{frame}[fragile]{Title page authors}
\begin{block}{In preamble} \begin{block}{In preamble}
\strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}! \strut\verb!\author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}}!
\end{block} \end{block}
% \author{Mary Hagedorn\inst{1} \and Walter Heiligenberg\inst{2}} \titlepageauthorsdemo{space}
% \titlepageauthorsdemo{space} \titlepageauthorsdemo{comma}
% \titlepageauthorsdemo{comma} \titlepageauthorsdemo{line}
% \titlepageauthorsdemo{line} \titlepageauthorsdemo{and}
% \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}
\begin{block}{Color/Font} \begin{block}{Color/Font}
\verb!\setbeamercolor{author}{fg=black}! \verb!\setbeamercolor{author}{fg=black}!
\end{block} \end{block}
\end{frame} \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{frame}[fragile]{Title page institutes}
\begin{block}{In preamble} \begin{block}{In preamble}
\strut\verb!\institute{\inst{1}Somewhere \and \inst{2}Somewhere else}! \strut\verb!\institute{\inst{1}University \and \inst{2}Scripps}!
\end{block}
\begin{block}{Institutes separator}
\verb!\setbeamertemplate{title page institute and}[line]!
\end{block} \end{block}
One of \titlepageinstitutedemo{space}
\begin{itemize} \titlepageinstitutedemo{comma}
\item \verb!default! (a linebreak) \titlepageinstitutedemo{line}
\item \verb!space!
\item \verb!comma!
\item \verb!line! (a vertical line)
\end{itemize}
\begin{block}{Color/Font} \begin{block}{Color/Font}
\verb!\setbeamercolor{institute}{fg=black}! \verb!\setbeamercolor{institute}{fg=black}!
\end{block} \end{block}