diff --git a/doc/moloch.tex b/doc/moloch.tex index 160fd96..f9f9e98 100644 --- a/doc/moloch.tex +++ b/doc/moloch.tex @@ -346,6 +346,8 @@ of \themename specific colors, which can also be redefined to your liking. \setbeamercolor{progress bar in section page}{ ... } \end{lstlisting} +\subsubsection{Themes} + For low-light situations \themename it might be helpful to use the |moloch-highcontrast| color theme. It is enabled like any other color theme: @@ -353,6 +355,14 @@ For low-light situations \themename it might be helpful to use the \usecolortheme{moloch-highcontrast} \end{lstlisting} +There is also a theme based on the +\href{tomorrow color theme}{https://github.com/chriskempson/tomorrow-theme}, +which you can enable like this: + +\begin{lstlisting} +\usecolortheme{moloch-tomorrow} +\end{lstlisting} + \subsection{Commands} \subsubsection{Standout Frames} diff --git a/examples/colortheme-tomorrow/.gitignore b/examples/colortheme-tomorrow/.gitignore new file mode 100644 index 0000000..3c230bd --- /dev/null +++ b/examples/colortheme-tomorrow/.gitignore @@ -0,0 +1 @@ +moloch-tomorrow.pdf diff --git a/examples/colortheme-tomorrow/moloch-logo.pdf b/examples/colortheme-tomorrow/moloch-logo.pdf new file mode 100644 index 0000000..93b633e Binary files /dev/null and b/examples/colortheme-tomorrow/moloch-logo.pdf differ diff --git a/examples/colortheme-tomorrow/moloch-tomorrow.tex b/examples/colortheme-tomorrow/moloch-tomorrow.tex new file mode 100644 index 0000000..da30313 --- /dev/null +++ b/examples/colortheme-tomorrow/moloch-tomorrow.tex @@ -0,0 +1,95 @@ +\documentclass[10pt]{beamer} + +\usepackage[T1]{fontenc} + +\usetheme{moloch} +\usecolortheme{moloch-tomorrow} +\usepackage{lmodern} + +\setbeamertemplate{page number in head/foot}[appendixframenumber] +\setbeamertemplate{section in toc}[sections numbered] + +\usepackage{booktabs} + +\usepackage{xspace} + +\newcommand{\themename}{\textbf{moloch}\xspace} + +\title{Moloch} +\subtitle{A Minimal Beamer Theme} +\date{\today} +\author{The Author} +\institute{Some Institution, Some University} +\titlegraphic{\hfill\includegraphics[width=3.5cm]{moloch-logo.pdf}} + +\begin{document} + +\maketitle + +\begin{frame}{Table of Contents} + \tableofcontents[hideallsubsections] +\end{frame} + +\section{Introduction} + +\begin{frame}[fragile]{Moloch} + + The \themename theme is a Beamer theme with minimal visual noise. It is a fork of the + \href{https://github.com/matze/mtheme}{metropolis theme} by Matthias Vogelgesang, which in + turn was inspired by by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{hsrm + theme} by Benjamin Weiss. \medskip + + Enable the theme by calling + \begin{verbatim}\documentclass{beamer} +\usetheme{moloch}\end{verbatim} +\end{frame} +\begin{frame}[fragile]{Sections} + Sections group slides of the same topic by introducing a section page between them. A progress bar is shown which indicates how far along in the presentation you are. + + \begin{verbatim}\section{Title Formats}\end{verbatim} +\end{frame} + +\begin{frame}[fragile]{Blocks} + Three different block environments are pre-defined: \verb|block|, \verb|alertblock|, + and \verb|exampleblock|. They can be styled using the option + \verb|block|, which takes values \verb|transparent| (default, left column) and \verb|fill| (right column). + + \begin{columns}[T] + \begin{column}{0.45\textwidth} + \begin{block}{Default} + Block content. + \end{block} + + \begin{alertblock}{Alert} + Block content. + \end{alertblock} + + \begin{exampleblock}{Example} + Block content. + \end{exampleblock} + \end{column} + \begin{column}{0.45\textwidth} + { + \molochset{block=fill} + + \begin{block}{Default} + Block content. + \end{block} + + \begin{alertblock}{Alert} + Block content. + \end{alertblock} + + \begin{exampleblock}{Example} + Block content. + \end{exampleblock} + } + \end{column} + \end{columns} +\end{frame} + +\begin{frame}[standout] + Questions? +\end{frame} + +\end{document} diff --git a/src/beamercolorthememoloch-tomorrow.dtx b/src/beamercolorthememoloch-tomorrow.dtx new file mode 100644 index 0000000..24ffc83 --- /dev/null +++ b/src/beamercolorthememoloch-tomorrow.dtx @@ -0,0 +1,51 @@ +% \iffalse meta-comment ------------------------------------------------------- +% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of +% contributors can be found at +% +% https://github.com/matze/mtheme/graphs/contributors +% +% and the original template was based on the HSRM theme by Benjamin Weiss. +% +% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 +% International License (https://creativecommons.org/licenses/by-sa/4.0/). +%% --------------------------------------------------------------------------- +%% Copyright 2024 Johan Larsson and contributors +% ------------------------------------------------------------------------- \fi +% \iffalse +%<*package> +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamercolorthememoloch-tomorrow}[2024-10-30 v0.5.0 Moloch color theme] % x-release-please-version +% +% \fi +% \CheckSum{0} +% \StopEventually{} +% \iffalse +%<*package> +% ------------------------------------------------------------------------- \fi +% +\usecolortheme{moloch} + +\definecolor{tomorrowForeground}{HTML}{1d1f21} +\definecolor{tomorrowBackground}{RGB}{255,255,255} +\definecolor{tomorrowHeader}{HTML}{1d1f21} +\definecolor{tomorrowAlert}{HTML}{cc6666} +\definecolor{tomorrowExample}{HTML}{4271ae} +\definecolor{tomorrowProgress}{HTML}{8959a8} + +\setbeamercolor{normal text}{fg=tomorrowForeground,bg=tomorrowBackground} +\setbeamercolor{moloch accent}{fg=tomorrowAccent} +\setbeamercolor{frametitle}{bg=tomorrowHeader} +\setbeamercolor{alerted text}{fg=tomorrowAlert} +\setbeamercolor{example text}{fg=tomorrowExample} +\setbeamercolor{progress bar}{fg=tomorrowProgress} + +% +% \begin{macrocode} +\mode +% \end{macrocode} +% +% \iffalse +% +% \fi +% \Finale +\endinput diff --git a/src/beamerthememoloch.ins b/src/beamerthememoloch.ins index c7d3c3e..2c25abc 100644 --- a/src/beamerthememoloch.ins +++ b/src/beamerthememoloch.ins @@ -25,5 +25,7 @@ \generate{\file{beamerouterthememoloch.sty}{\from{beamerouterthememoloch.dtx}{package}}} \generate{\file{beamerfontthememoloch.sty}{\from{beamerfontthememoloch.dtx}{package}}} \generate{\file{beamercolorthememoloch.sty}{\from{beamercolorthememoloch.dtx}{package}}} +\generate{\file{beamercolorthememoloch-tomorrow.sty}{% + \from{beamercolorthememoloch-tomorrow.dtx}{package}}} \endbatchfile