multiline messagebox
This commit is contained in:
parent
9609c70bcf
commit
a8068f2fce
@ -73,8 +73,10 @@
|
|||||||
\setbeamercolor{theorem line middle}{fg=utorange}
|
\setbeamercolor{theorem line middle}{fg=utorange}
|
||||||
\setbeamercolor{theorem line bottom}{fg=utorange}
|
\setbeamercolor{theorem line bottom}{fg=utorange}
|
||||||
|
|
||||||
\setbeamercolor{message}{fg=white, bg=utred}
|
\setbeamercolor{message}{fg=utred, bg=utgold}
|
||||||
\setbeamercolor{message symbol}{fg=utgold}
|
\setbeamercolor{message symbol}{fg=utblack}
|
||||||
|
\setbeamercolor{message line top}{fg=}
|
||||||
|
\setbeamercolor{message line bottom}{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}}
|
||||||
|
@ -345,22 +345,22 @@
|
|||||||
\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,ht=#2]{block line#1 top}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{block line#1 top}
|
||||||
\rule{\columnwidth}{#2}
|
\rule{\linewidth}{#2}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip%
|
\nointerlineskip%
|
||||||
}
|
}
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{block title#1}
|
\begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{block title#1}
|
||||||
\strut\insertblocktitle
|
\strut\insertblocktitle
|
||||||
\end{beamercolorbox}}
|
\end{beamercolorbox}}
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\ifbeamercolorempty[fg]{block line#1 middle}{}{%
|
\ifbeamercolorempty[fg]{block line#1 middle}{}{%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#3]{block line#1 middle}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#3]{block line#1 middle}
|
||||||
\rule{\columnwidth}{#3}
|
\rule{\linewidth}{#3}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip}%
|
\nointerlineskip}%
|
||||||
\usebeamerfont{block body#1}%
|
\usebeamerfont{block body#1}%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,colsep=2mm]{block body#1}
|
\begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{block body#1}
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\block@lines@end}[2]{%
|
\newcommand{\block@lines@end}[2]{%
|
||||||
@ -368,8 +368,8 @@
|
|||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\ifbeamercolorempty[fg]{block line#1 bottom}{}{%
|
\ifbeamercolorempty[fg]{block line#1 bottom}{}{%
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#2]{block line#1 bottom}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{block line#1 bottom}
|
||||||
\rule{\columnwidth}{#2}
|
\rule{\linewidth}{#2}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
@ -408,22 +408,22 @@
|
|||||||
\usebeamerfont{#1 title}%
|
\usebeamerfont{#1 title}%
|
||||||
\ifbeamercolorempty[fg]{#1 line top}{}{%
|
\ifbeamercolorempty[fg]{#1 line top}{}{%
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#2]{#1 line top}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{#1 line top}
|
||||||
\rule{\columnwidth}{#2}
|
\rule{\linewidth}{#2}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip%
|
\nointerlineskip%
|
||||||
}
|
}
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{#1 title}
|
\begin{beamercolorbox}[wd=\linewidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{#1 title}
|
||||||
\strut \insertblocktitle
|
\strut \insertblocktitle
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\ifbeamercolorempty[fg]{#1 line middle}{}{%
|
\ifbeamercolorempty[fg]{#1 line middle}{}{%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#3]{#1 line middle}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#3]{#1 line middle}
|
||||||
\rule{\columnwidth}{#3}
|
\rule{\linewidth}{#3}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip}%
|
\nointerlineskip}%
|
||||||
\usebeamerfont{#1 body}%
|
\usebeamerfont{#1 body}%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,colsep=2mm]{#1 body}
|
\begin{beamercolorbox}[wd=\linewidth,colsep=2mm]{#1 body}
|
||||||
}
|
}
|
||||||
|
|
||||||
\newcommand{\theorem@lines@end}[2]{%
|
\newcommand{\theorem@lines@end}[2]{%
|
||||||
@ -431,8 +431,8 @@
|
|||||||
\end{beamercolorbox}%
|
\end{beamercolorbox}%
|
||||||
\ifbeamercolorempty[fg]{#1 line bottom}{}{%
|
\ifbeamercolorempty[fg]{#1 line bottom}{}{%
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#2]{#1 line bottom}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{#1 line bottom}
|
||||||
\rule{\columnwidth}{#2}
|
\rule{\linewidth}{#2}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}%
|
}%
|
||||||
}
|
}
|
||||||
@ -459,18 +459,29 @@
|
|||||||
%%%%% new message box command:
|
%%%%% new message box command:
|
||||||
|
|
||||||
\defbeamertemplate{message symbol}{default}{}
|
\defbeamertemplate{message symbol}{default}{}
|
||||||
\defbeamertemplate{message symbol}{circle}{\raisebox{0.1ex}{$\bullet$}\thickspace}
|
\defbeamertemplate{message symbol}{circle}{\raisebox{0.1ex}{$\bullet$}}
|
||||||
\defbeamertemplate{message symbol}{arrow}{\itemarrow\thickspace}
|
\defbeamertemplate{message symbol}{arrow}{\itemarrow}
|
||||||
|
|
||||||
\setbeamertemplate{message symbol}[circle]
|
\setbeamertemplate{message symbol}[circle]
|
||||||
|
|
||||||
|
\newcommand{\message@box@body}{
|
||||||
|
\begin{beamercolorbox}[wd=\linewidth,colsep=1mm,leftskip=1mm,rightskip=1mm]{message}
|
||||||
|
\setbox0=\hbox{\usebeamertemplate{message symbol}\unskip}%
|
||||||
|
\ifdim\wd0=0pt%
|
||||||
|
\strut\insertmessage
|
||||||
|
\else
|
||||||
|
\usebeamercolor[fg]{message symbol}
|
||||||
|
\parbox[t][][t]{1.8ex}{\usebeamertemplate{message symbol}}%
|
||||||
|
\usebeamercolor[fg]{message}
|
||||||
|
\parbox[t][][t]{\dimexpr\hsize-3.5ex\relax}{\raggedright\insertmessage}
|
||||||
|
\fi
|
||||||
|
\end{beamercolorbox}
|
||||||
|
}
|
||||||
|
|
||||||
\defbeamertemplate{message}{default}{%
|
\defbeamertemplate{message}{default}{%
|
||||||
\par\vskip\medskipamount%
|
\par\vskip\medskipamount%
|
||||||
\usebeamerfont{message}%
|
\usebeamerfont{message}%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{message}
|
\message@box@body
|
||||||
{\usebeamercolor[fg]{message symbol}\usebeamertemplate{message symbol}}%
|
|
||||||
\strut\insertmessage
|
|
||||||
\end{beamercolorbox}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
\defbeamertemplate{message}{lines}[2]{%
|
\defbeamertemplate{message}{lines}[2]{%
|
||||||
@ -478,18 +489,15 @@
|
|||||||
\usebeamerfont{message}%
|
\usebeamerfont{message}%
|
||||||
\ifbeamercolorempty[fg]{message line top}{}{%
|
\ifbeamercolorempty[fg]{message line top}{}{%
|
||||||
\nointerlineskip
|
\nointerlineskip
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#1]{message line top}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#1]{message line top}
|
||||||
\rule{\columnwidth}{#1}
|
\rule{\linewidth}{#1}
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
\nointerlineskip}%
|
\nointerlineskip}%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=2.4ex,dp=0.9ex,leftskip=2mm,rightskip=2mm]{message}
|
\message@box@body
|
||||||
{\usebeamercolor[fg]{message symbol}\usebeamertemplate{message symbol}}%
|
|
||||||
\strut\insertmessage
|
|
||||||
\end{beamercolorbox}
|
|
||||||
\ifbeamercolorempty[fg]{message line bottom}{}{%
|
\ifbeamercolorempty[fg]{message line bottom}{}{%
|
||||||
\nointerlineskip%
|
\nointerlineskip%
|
||||||
\begin{beamercolorbox}[wd=\columnwidth,ht=#2]{message line bottom}
|
\begin{beamercolorbox}[wd=\linewidth,ht=#2]{message line bottom}
|
||||||
\rule{\columnwidth}{#2}
|
\rule{\linewidth}{#2}
|
||||||
\end{beamercolorbox}}%
|
\end{beamercolorbox}}%
|
||||||
\medskip
|
\medskip
|
||||||
}
|
}
|
||||||
|
@ -68,12 +68,13 @@
|
|||||||
\setbeamertemplate{title page institute and}[line] % default, space, comma, line
|
\setbeamertemplate{title page institute and}[line] % default, space, comma, line
|
||||||
|
|
||||||
\setbeamertemplate{message symbol}[arrow] % default, circle, arrow
|
\setbeamertemplate{message symbol}[arrow] % default, circle, arrow
|
||||||
\setbeamertemplate{message}[lines]{0.5pt}{0.5pt} % default, lines
|
\setbeamertemplate{message}[lines]{0.5pt}{0.5pt} % default, lines
|
||||||
|
|
||||||
\setbeamertemplate{section name separator}[text][2pt] % space, text
|
\setbeamertemplate{section name separator}[text][2pt] % space, text
|
||||||
\setbeamertemplate{subsection name separator}[text][2pt] % space, text
|
\setbeamertemplate{subsection name separator}[text][2pt] % space, text
|
||||||
|
|
||||||
\setbeamerfont{footline}{size=\tiny}
|
\setbeamerfont{footline}{size=\tiny}
|
||||||
|
\setbeamerfont{message}{size=\normalsize}
|
||||||
|
|
||||||
\usecolortheme{ut}
|
\usecolortheme{ut}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user