I have been putting together a new beamer template and cannot solve a few last problems. A minimal working example that highlights these problems is the following (it doesn't look minimal but I feel it is):
\documentclass{beamer}
\makeatletter
\def\th@mystyle{
\normalfont
\setbeamercolor{block title example}{bg=orange,fg=white}
\setbeamercolor{block body example}{bg=orange!20,fg=black}
\def\inserttheoremblockenv{exampleblock}
}
\makeatother
\theoremstyle{mystyle}
\newtheorem{que}{Question}
\usepackage{fontspec}
\setmainfont{Verdana}
\begin{document}
\section{Boxes}
\frame{
\frametitle{Boxes}
\fontspec{Cambria}
\setbeamercolor{postit}{fg=black,bg=orange!20} \begin{beamercolorbox}[rounded=false,shadow=true]{postit} How to inflate these two boxes such that their size... \end{beamercolorbox}
\setbeamercolor{postit}{fg=black,bg=green}
\begin{beamercolorbox}[rounded=false,shadow=true]{postit}...is precisely consistent with that of the third box?\end{beamercolorbox}
~\\
\begin{que}[About this box]
How to get such a box with arbitrary content, i.e. basically without it being a kind of theorem/definition? (Right now, the title is at least ``Question ()'')
\end{que}
~\\
\begin{que}[About the font]
How to apply the font change visible in the first two boxes to the whole presentation or at least the whole frame?
\end{que}
}
\end{document}
I now have three questions:
The theorem boxes include some margin around the text, which I prefer. How can I adapt the margins so that all boxes are perfectly consistent?
Since the "Question"-boxes correspond to theorem-environments, I cannot freely fill the upper part ("block title"), which I would like. Of course, this would in some sense be equivalent to glueing together the first two boxes or change color settings within one box. How can I do that?
I would expect this to be easily fixed, but nothing I found so far did the job: I'd like the font change to apply to the whole presentation (i.e. all text except titles). How can I do that?
exampleblock
. It seems what you want to do is to directly use this environment ? (or directly theblock
environment?) For the font issue, I believe a quick look at thefontspec
package documentation would solve your problem.