some fixes

This commit is contained in:
Jan Benda 2021-03-04 14:35:43 +01:00
parent fcc56daa65
commit 6d6114e8ea
5 changed files with 75 additions and 58 deletions

View File

@ -73,8 +73,9 @@
\setbeamercolor{theorem line bottom}{fg=orange} \setbeamercolor{theorem line bottom}{fg=orange}
\setbeamercolor{message}{fg=white, bg=red} \setbeamercolor{message}{fg=white, bg=red}
\setbeamercolor{message line top}{fg=black} \setbeamercolor{message line top}{fg=}
\setbeamercolor{message line bottom}{fg=black} \setbeamercolor{message line bottom}{fg=}
\setbeamercolor{message symbol}{fg=}
\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

@ -50,7 +50,7 @@
\setbeamercolor{frametitle line}{fg=utgold} \setbeamercolor{frametitle line}{fg=utgold}
\setbeamercolor{block title}{fg=white, bg=utlightblue} \setbeamercolor{block title}{fg=white, bg=utlightblue}
\setbeamercolor{block body}{fg=normal text.fg, bg=utlightblue!15} \setbeamercolor{block body}{fg=normal text.fg, bg=utlightblue!20}
\setbeamercolor{block line top}{fg=} \setbeamercolor{block line top}{fg=}
\setbeamercolor{block line middle}{fg=utlightblue} \setbeamercolor{block line middle}{fg=utlightblue}
\setbeamercolor{block line bottom}{fg=utlightblue} \setbeamercolor{block line bottom}{fg=utlightblue}

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}[frames] \setbeamertemplate{page number in head/foot}[slides]
%%%%% footline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% footline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -345,7 +345,7 @@
\IfStrEq{\insertblocktitle}{}{}{% % IfStrEq does not work for theorems! \IfStrEq{\insertblocktitle}{}{}{% % IfStrEq does not work for theorems!
\ifbeamercolorempty[fg]{block line#1 top}{}{% \ifbeamercolorempty[fg]{block line#1 top}{}{%
\nointerlineskip \nointerlineskip
\begin{beamercolorbox}[wd=\columnwidth,hd=#2]{block line#1 top} \begin{beamercolorbox}[wd=\columnwidth,ht=#2]{block line#1 top}
\rule{\columnwidth}{#2} \rule{\columnwidth}{#2}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip% \nointerlineskip%
@ -355,7 +355,7 @@
\end{beamercolorbox}} \end{beamercolorbox}}
\nointerlineskip \nointerlineskip
\ifbeamercolorempty[fg]{block line#1 middle}{}{% \ifbeamercolorempty[fg]{block line#1 middle}{}{%
\begin{beamercolorbox}[wd=\columnwidth,hd=#3]{block line#1 middle} \begin{beamercolorbox}[wd=\columnwidth,ht=#3]{block line#1 middle}
\rule{\columnwidth}{#3} \rule{\columnwidth}{#3}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip}% \nointerlineskip}%
@ -368,7 +368,7 @@
\end{beamercolorbox}% \end{beamercolorbox}%
\ifbeamercolorempty[fg]{block line#1 bottom}{}{% \ifbeamercolorempty[fg]{block line#1 bottom}{}{%
\nointerlineskip \nointerlineskip
\begin{beamercolorbox}[wd=\columnwidth,hd=#2]{block line#1 bottom} \begin{beamercolorbox}[wd=\columnwidth,ht=#2]{block line#1 bottom}
\rule{\columnwidth}{#2} \rule{\columnwidth}{#2}
\end{beamercolorbox} \end{beamercolorbox}
}% }%
@ -408,7 +408,7 @@
\usebeamerfont{#1 title}% \usebeamerfont{#1 title}%
\ifbeamercolorempty[fg]{#1 line top}{}{% \ifbeamercolorempty[fg]{#1 line top}{}{%
\nointerlineskip \nointerlineskip
\begin{beamercolorbox}[wd=\columnwidth,hd=#2]{#1 line top} \begin{beamercolorbox}[wd=\columnwidth,ht=#2]{#1 line top}
\rule{\columnwidth}{#2} \rule{\columnwidth}{#2}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip% \nointerlineskip%
@ -418,7 +418,7 @@
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip \nointerlineskip
\ifbeamercolorempty[fg]{#1 line middle}{}{% \ifbeamercolorempty[fg]{#1 line middle}{}{%
\begin{beamercolorbox}[wd=\columnwidth,hd=#3]{#1 line middle} \begin{beamercolorbox}[wd=\columnwidth,ht=#3]{#1 line middle}
\rule{\columnwidth}{#3} \rule{\columnwidth}{#3}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip}% \nointerlineskip}%
@ -431,7 +431,7 @@
\end{beamercolorbox}% \end{beamercolorbox}%
\ifbeamercolorempty[fg]{#1 line bottom}{}{% \ifbeamercolorempty[fg]{#1 line bottom}{}{%
\nointerlineskip \nointerlineskip
\begin{beamercolorbox}[wd=\columnwidth,hd=#2]{#1 line bottom} \begin{beamercolorbox}[wd=\columnwidth,ht=#2]{#1 line bottom}
\rule{\columnwidth}{#2} \rule{\columnwidth}{#2}
\end{beamercolorbox} \end{beamercolorbox}
}% }%
@ -478,7 +478,7 @@
\usebeamerfont{message}% \usebeamerfont{message}%
\ifbeamercolorempty[fg]{message line top}{}{% \ifbeamercolorempty[fg]{message line top}{}{%
\nointerlineskip \nointerlineskip
\begin{beamercolorbox}[wd=\columnwidth,hd=#1]{message line top} \begin{beamercolorbox}[wd=\columnwidth,ht=#1]{message line top}
\rule{\columnwidth}{#1} \rule{\columnwidth}{#1}
\end{beamercolorbox} \end{beamercolorbox}
\nointerlineskip}% \nointerlineskip}%
@ -488,13 +488,13 @@
\end{beamercolorbox} \end{beamercolorbox}
\ifbeamercolorempty[fg]{message line bottom}{}{% \ifbeamercolorempty[fg]{message line bottom}{}{%
\nointerlineskip% \nointerlineskip%
\begin{beamercolorbox}[wd=\columnwidth,hd=#2]{message line bottom} \begin{beamercolorbox}[wd=\columnwidth,ht=#2]{message line bottom}
\rule{\columnwidth}{#2} \rule{\columnwidth}{#2}
\end{beamercolorbox}}% \end{beamercolorbox}}%
\medskip \medskip
} }
\setbeamertemplate{message}[lines]{0.5pt}{0.5pt} \setbeamertemplate{message}[lines]{1pt}{1pt}
\newcommand<>{\messagebox}[1]{% \newcommand<>{\messagebox}[1]{%
\only#2{\def\insertmessage{#1}% \only#2{\def\insertmessage{#1}%

View File

@ -9,6 +9,8 @@
\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=}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -83,7 +85,7 @@
\end{frame} \end{frame}
\begin{frame}[fragile]{Frame subtitle} \begin{frame}[fragile]{Frame subtitle}
\framesubtitle{I can not focus and add a subtitle} \framesubtitle{Here we have a subtitle}
\begin{block}{Frame environment with subtitle} \begin{block}{Frame environment with subtitle}
\verb!\begin{frame}!\\ \verb!\begin{frame}!\\
\verb! \frametitle{The title of my slide}!\\ \verb! \frametitle{The title of my slide}!\\
@ -276,7 +278,7 @@
\texttt{theorem} environment. \texttt{theorem} environment.
\end{theorem} \end{theorem}
\begin{definition} \begin{definition}
Definition block with content: \texttt{definition} environment.\\[1ex] \texttt{definition} environment.\\[1ex]
All theorem environments get the same color and font: All theorem environments get the same color and font:
\begin{itemize} \begin{itemize}
\item \texttt{theorem title} \item \texttt{theorem title}
@ -285,10 +287,10 @@
\end{itemize} \end{itemize}
\end{definition} \end{definition}
%\begin{example} %\begin{example}
% Example block with content: \texttt{example} environment. % \texttt{example} environment.
%\end{example} %\end{example}
\begin{proof} \begin{proof}
Proof block with content: \texttt{proof} environment.\\ \texttt{proof} environment.\\
Same colors and fonts as the \texttt{block} environment. Same colors and fonts as the \texttt{block} environment.
\end{proof} \end{proof}
\end{frame} \end{frame}
@ -297,10 +299,19 @@
\begin{block}{A new (non-beamer) command for highlighting messages} \begin{block}{A new (non-beamer) command for highlighting messages}
\verb!\messagebox{Take home message}! \verb!\messagebox{Take home message}!
\end{block} \end{block}
\vspace{5ex} \vfill
\messagebox{Take home message} \messagebox{Take home message}
\vspace{5ex} \vfill
Use it! Use it!
\vfill
\begin{block}{Colors/Fonts/Template}
\verb!\setbeamertemplate{message}[lines]{1pt}{1pt} % width top/bottom line!\\
\verb!\setbeamercolor{message}{fg=white, bg=red}!\\
\verb!\setbeamercolor{message line top}{fg=orange}!\\
\verb!\setbeamercolor{message line bottom}{fg=}!\\
\verb!\setbeamertemplate{message symbol}[circle] % default, circle, arrow!\\
\verb!\setbeamercolor{message symbol}{fg=white}!
\end{block}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -522,12 +533,14 @@
\frame[plain]{\subsectionpage} \frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Section page} \begin{frame}[fragile]{Section page}
Section commands between the frames, like\\ Section commands between the frames, like
\verb!\section{A new section}!\\ \begin{block}{}
\verb!\section{A new section}!
\end{block}
automaticallly create a special frame with section number and title. automaticallly create a special frame with section number and title.
\begin{block}{No automatic section pages} \begin{block}{No automatic section pages}
\verb!\AtBeginSection{}! \verb!\AtBeginSection{} % in preamble!
\end{block} \end{block}
\begin{block}{Manual insertion of a section page} \begin{block}{Manual insertion of a section page}
\verb!\frame[plain]{\sectionpage}! \verb!\frame[plain]{\sectionpage}!
@ -545,12 +558,15 @@
\begin{frame}[fragile]{Subsection pages} \begin{frame}[fragile]{Subsection pages}
After a subsection command\\ After a subsection command\\
\verb!\subsection{A new subsection}!\\ \begin{block}{}
\verb!\subsection{A new subsection}!
\end{block}
you may want to insert a subsection page displaying the current you may want to insert a subsection page displaying the current
section and subsection numbers and titles: section and subsection numbers and titles:
\begin{block}{Subsection page} \begin{block}{Subsection page}
\verb!\frame[plain]{\subsectionpage}! \verb!\frame[plain]{\subsectionpage}!
\end{block} \end{block}
\vfill
\begin{block}{Colors/Fonts} \begin{block}{Colors/Fonts}
\verb!\setbeamercolor{subsection name}{parent={titlelike}}! \verb!\setbeamercolor{subsection name}{parent={titlelike}}!
\verb!\setbeamercolor{subsection name separator}{parent={section name}}! \verb!\setbeamercolor{subsection name separator}{parent={section name}}!
@ -562,31 +578,34 @@
\section{Further reading} \section{Further reading}
\begin{frame}{Beamer user guide} \begin{frame}{Beamer user guide}
Read the beamer user guide at\\ Read the beamer user guide at
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}\\ \begin{block}{}
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}
\vspace{2ex} \end{block}
\vfill
In particular In particular
\begin{itemize} \begin{itemize}
\item the tutorial (section 3) \item the tutorial (section 3)
\item quite nice and independent of beamer are the ``guidelines for creating presentations'' (section 5) \item the ``guidelines for creating presentations'' (section 5) --- quite nice and independent of beamer!
\item ``creating overlays'' (section 9) \item ``creating overlays'' (section 9)
\item you find some fancy features in section 11 (hyperlinks and zooming) \item section 11 for some fancy features (hyperlinks and zooming)
\item ``local structure'' (section 12) for more infos on lists and blocks, etc. \item ``local structure'' (section 12) for more infos on lists and blocks, etc.
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Beamer templates} \begin{frame}{Beamer templates}
Templates are a powerful method of beamer that allow you to modify \begin{alertblock}{}
the appearance of your presentation. Templates are a powerful method of beamer that allow you to modify
the appearance of your presentation.
\bigskip \end{alertblock}
\vfill
Read in the beamer user guide Read in the beamer user guide
\begin{itemize} \begin{itemize}
\item section 16.3 ``Changing the Templates Used for Different Elements of a Presentation'' \item section 16.3 ``Changing the Templates Used for Different Elements of a Presentation''
\end{itemize} \end{itemize}
\bigskip \vfill
You find a nice summary of common beamer template/color/font names in the You find a nice summary of common beamer template/color/font names in the
\begin{block}{Beamer appearance cheat sheet} \begin{block}{Beamer appearance cheat sheet}
\url{http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf} \url{http://www.cpt.univ-mrs.fr/~masson/latex/Beamer-appearance-cheat-sheet.pdf}

View File

@ -208,9 +208,9 @@
\begin{block}{A new (non-beamer) command for highlighting messages} \begin{block}{A new (non-beamer) command for highlighting messages}
\verb!\messagebox{Take home message}! \verb!\messagebox{Take home message}!
\end{block} \end{block}
\vspace{5ex} \vfill
\messagebox{Take home message} \messagebox{Take home message}
\vspace{5ex} \vfill
Use it! Use it!
\end{frame} \end{frame}
@ -301,21 +301,19 @@
\frame[plain]{\subsectionpage} \frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Section page} \begin{frame}[fragile]{Section page}
Section commands between the frames, like\\ Section commands between the frames, like
\verb!\section{A new section}!\\ \begin{block}{}
\verb!\section{A new section}!
\end{block}
automaticallly create a special frame with section number and title. automaticallly create a special frame with section number and title.
\vfill
\begin{block}{No automatic section pages} \begin{block}{No automatic section pages}
\verb!\AtBeginSection{}! \verb!\AtBeginSection{} % in preamble!
\end{block} \end{block}
\vfill
\begin{block}{Manual insertion of a section page} \begin{block}{Manual insertion of a section page}
\verb!\frame[plain]{\sectionpage}! \verb!\frame[plain]{\sectionpage}!
\end{block} \end{block}
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{section name}{parent={titlelike}}!
\verb!\setbeamercolor{section name separator}{parent={section name}}!
\verb!\setbeamercolor{section title}{parent={titlelike}}!
\end{block}
\end{frame} \end{frame}
\subsection{Subsection page} \subsection{Subsection page}
@ -323,34 +321,33 @@
\frame[plain]{\subsectionpage} \frame[plain]{\subsectionpage}
\begin{frame}[fragile]{Subsection pages} \begin{frame}[fragile]{Subsection pages}
After a subsection command\\ After a subsection command
\verb!\subsection{A new subsection}!\\ \begin{block}{}
\verb!\subsection{A new subsection}!
\end{block}
you may want to insert a subsection page displaying the current you may want to insert a subsection page displaying the current
section and subsection numbers and titles: section and subsection numbers and titles:
\vfill
\begin{block}{Subsection page} \begin{block}{Subsection page}
\verb!\frame[plain]{\subsectionpage}! \verb!\frame[plain]{\subsectionpage}!
\end{block} \end{block}
\begin{block}{Colors/Fonts}
\verb!\setbeamercolor{subsection name}{parent={titlelike}}!
\verb!\setbeamercolor{subsection name separator}{parent={section name}}!
\verb!\setbeamercolor{subsection title}{parent={titlelike}}!
\end{block}
\end{frame} \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Further reading} \section{Further reading}
\begin{frame}{Beamer user guide} \begin{frame}{Beamer user guide}
Read the beamer user guide at\\ Read the beamer user guide at
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}\\ \begin{block}{}
\url{http://ftp.rrzn.uni-hannover.de/pub/mirror/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf}
\vspace{2ex} \end{block}
\vfill
In particular In particular
\begin{itemize} \begin{itemize}
\item the tutorial (section 3) \item the tutorial (section 3)
\item quite nice and independent of beamer are the ``guidelines for creating presentations'' (section 5) \item the ``guidelines for creating presentations'' (section 5) --- quite nice and independent of beamer!
\item ``creating overlays'' (section 9) \item ``creating overlays'' (section 9)
\item you find some fancy features in section 11 (hyperlinks and zooming) \item section 11 for some fancy features (hyperlinks and zooming)
\item ``local structure'' (section 12) for more infos on lists and blocks, etc. \item ``local structure'' (section 12) for more infos on lists and blocks, etc.
\end{itemize} \end{itemize}
\end{frame} \end{frame}