From 13e73007c6d29989684aa228f7f74d3bdcce526f Mon Sep 17 00:00:00 2001 From: Johan Larsson <13087841+jolars@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:21:29 +0100 Subject: [PATCH] feat: add new color theme based on the tomorrow color theme --- doc/moloch.tex | 10 ++ examples/colortheme-tomorrow/.gitignore | 1 + examples/colortheme-tomorrow/moloch-logo.pdf | Bin 0 -> 1847 bytes .../colortheme-tomorrow/moloch-tomorrow.tex | 95 ++++++++++++++++++ src/beamercolorthememoloch-tomorrow.dtx | 51 ++++++++++ src/beamerthememoloch.ins | 2 + 6 files changed, 159 insertions(+) create mode 100644 examples/colortheme-tomorrow/.gitignore create mode 100644 examples/colortheme-tomorrow/moloch-logo.pdf create mode 100644 examples/colortheme-tomorrow/moloch-tomorrow.tex create mode 100644 src/beamercolorthememoloch-tomorrow.dtx 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 0000000000000000000000000000000000000000..93b633e612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kSmM%rXR|IA4#SQe4JNW~m3${}?{xCGw#h-9(c#k)e!hE-49&c6q)p6A zUpBg5&YWDacK?cIzi+yc(Zwr7qh4sPT+1l;Iq=Ma@-O>}CaYv-B&L>LId$}y*x!Fo zle#ZScdb3;zg$K4&|^oPgzKtbzbdqpZP&~_)%t~F?@VIJuZP3*eq&)T<0*4jM%Fr)O{(&c&Vnb-GiS+-8$ytCk|(;aQw zGQ6*xx)ho?#cF#6>%D6?!irx-J=h+$Bk~;6lBvx17Z`61eUWhC?46*1pQoSo&HFO{ zZcJ6B(b3R8xlhM*ubltH?9USEtoe&uEwoDyGb+I`0*y;!BO_R38X{LAkVF;{l$r*P zBxn*dgQY9Xv;<1Z!I@R53Wkt44p)daR4`I7iUsQr%Fi!RFf@Xv1kb#*d<8>8Fdw-h zN=``l@qd12{nUhnln3lWXZ|V}mI=Jpose*nT~Jq`v`3+d(`AFfrbtHB k8%&ZC49b0MGMN4>E=epZsVD+^!O+amoJ&>J)!&T^01tTkKmY&$ literal 0 HcmV?d00001 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