Skip to content

Commit

Permalink
Fixes #46 -- vfilleditems respects grouped overlay settings 🎉
Browse files Browse the repository at this point in the history
But note that the overlay specification is different to `itemize`!
  • Loading branch information
kai-tub authored Oct 23, 2020
1 parent 6965f14 commit 374a56f
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 20 deletions.
2 changes: 1 addition & 1 deletion beamerfontthemepureminimalistic.sty
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
\RequirePackage{silence}
% I have no clue how I can fix this warning
\WarningFilter{latex}{Font shape declaration has incorrect series value}

% TODO: #52 Maybe use different font for math mode; Doesn't look clean
\ifthenelse{\boolean{helvetica}}{%
% If Helvetica overwrites the fira fonts settings
\RequirePackage[T1]{fontenc}
Expand Down
27 changes: 22 additions & 5 deletions beamerinnerthemepureminimalistic.sty
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,29 @@
\mode<presentation>

\def\itemsymbol{\raisebox{0.3ex}{\small$\bullet$}}
% Save the \item makro to \svitem
\let\svitem\item
\newenvironment{vfilleditems}{%
\begin{itemize} %
\let\olditem\item
\renewcommand\item[1][\itemsymbol]{\vfill\svitem[##1]}}%
{\end{itemize}\vfill}
\makeatletter
\newenvironment<>{vfilleditems}{%
\begin{itemize}[#1]%
\let\olditem\item
\renewcommand\item[1][\itemsymbol]{
\ifnum\@itemdepth=1\relax
\vfill
\else
\ifnum\@itemdepth=2\relax
\setlength\itemsep{0.5ex}
\else
\ifnum\@itemdepth=3\relax
\setlength\itemsep{0.25ex}
\fi\fi\fi
\svitem[##1]
}
}{
\end{itemize}\vfill
}
\makeatother


\defbeamertemplate*{section in toc}{pureminimalistic}{%
\hspace{0.5em} \inserttocsectionnumber.~\inserttocsection
Expand Down
51 changes: 37 additions & 14 deletions beamertheme-pure-minimalistic-demo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ \section{Aspect ratio}
\end{frame}

\section{vfilleditems}
\begin{frame}{Using itemize}
\begin{itemize}
\item I like it to have my bullet points
\item evenly spaced from one another
\item then few bullet points, are not crammed on
the upper part of the slide
like it is right now with itemize
\end{itemize}
\end{frame}

\begin{frame}[fragile]{Using vfilleditems}
\begin{verbatim}
Use the provided \vfilleditems environment
Expand All @@ -90,6 +100,19 @@ \section{vfilleditems}
\end{vfilleditems}
\end{frame}

\begin{frame}{Using vfilleditems}
\begin{vfilleditems}
\item Note that the overlay specification
is a bit different to \emph{itemize}
\item For grouped overlay specifications, simply add it
directly after the environment:
\begin{vfilleditems}
\item \texttt{\textbackslash{}begin\{vfilleditems\}<+->}
\end{vfilleditems}
\end{vfilleditems}
\end{frame}


\section{Fonts}
\begin{frame}[fragile]{Fonts}
Fonts:
Expand Down Expand Up @@ -157,16 +180,16 @@ \section{Color}
\section{Graphics}
\begin{frame}{Logos}
Commands setting the logos:
\begin{vfilleditems}
\begin{itemize}
\item \texttt{\textbackslash{}logotitle} -- Command used for the title page.
Here \texttt{\textbackslash{}linewidth} corresponds to the entire paper width.
Here \texttt{\textbackslash{}linewidth} corresponds to the entire paper width.
\item \texttt{\textbackslash{}logoheader} -- Command used for the header.
Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
as the horizontal space is shared with the title.
Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
as the horizontal space is shared with the title.
\item \texttt{\textbackslash{}logofooter} -- Command used for the footer.
Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
as the horizontal space is shared with the footer text.
\end{vfilleditems}
Here \texttt{\textbackslash{}linewidth} corresponds to a smaller box,
as the horizontal space is shared with the footer text.
\end{itemize}
\end{frame}

\begin{frame}[fragile]{Logos -- Load own logo}
Expand Down Expand Up @@ -278,16 +301,16 @@ \section*{Backup Slides}
\end{frame}

\begin{frame}{What happened to the page numbering?}
\begin{vfilleditems}
\begin{itemize}
\item I've used the \texttt{appendixnumberbeamer}
package, which resets the frame counting after calling
\texttt{\textbackslash{}appendix}
package, which resets the frame counting after calling
\texttt{\textbackslash{}appendix}
\item Depending on the used pdf viewer, the total
count of frames shouldn't include the backup slides and
won't demotivate the audience.
count of frames shouldn't include the backup slides and
won't demotivate the audience.
\item Usually, I would use a \texttt{plain} frame
for the backup slides.
\end{vfilleditems}
for the backup slides.
\end{itemize}
\end{frame}

\end{document}

0 comments on commit 374a56f

Please sign in to comment.