Compare commits

..

No commits in common. "main" and "v0.1.0" have entirely different histories.
main ... v0.1.0

44 changed files with 948 additions and 8523 deletions

5
.envrc
View File

@ -1,5 +0,0 @@
# shellcheck shell=bash
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
fi
use flake

View File

@ -11,13 +11,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27 - uses: teatimeguest/setup-texlive-action@v3
with: with:
github_access_token: ${{ secrets.GITHUB_TOKEN }} packages: scheme-full
- name: document - name: document
run: nix develop --command l3build-wrapped doc run: l3build doc
- name: build - name: build
run: nix develop --command l3build-wrapped ctan -q -H --show-log-on-error run: l3build ctan -q -H --show-log-on-error
release: release:
if: ${{ github.ref == 'refs/heads/main' }} if: ${{ github.ref == 'refs/heads/main' }}
permissions: permissions:
@ -27,6 +27,6 @@ jobs:
- build-and-test - build-and-test
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: googleapis/release-please-action@v4 - uses: google-github-actions/release-please-action@v4
with: with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} token: ${{ secrets.RELEASE_PLEASE_TOKEN }}

14
.gitignore vendored
View File

@ -302,19 +302,9 @@ TSWLatexianTemp*
# Ignore sty files generated from dtx # Ignore sty files generated from dtx
*.sty *.sty
doc/moloch.pdf doc/molochtheme.pdf
demo/demo.pdf
build/ build/
.latex-cache .latex-cache
*-ctan.zip *-ctan.zip
.oc .oc
*.curlopt
*.zip
# nix -----------------------------------------------
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*
# Ignore direnv folder
.direnv/

View File

@ -1,3 +1,3 @@
{ {
".": "1.0.1" ".": "0.1.0"
} }

View File

@ -1,105 +1,5 @@
# Changelog # Changelog
## [1.0.1](https://github.com/jolars/moloch/compare/v1.0.0...v1.0.1) (2025-04-01)
### Bug Fixes
* add missing files for updating version tags ([ba01d33](https://github.com/jolars/moloch/commit/ba01d33b1993d4992372420f25f6390c5e4baa91))
* use proper package names ([0c4d38e](https://github.com/jolars/moloch/commit/0c4d38e3c2e2b0b93bfc1b6c1abe6bf0a3a01311))
## [1.0.0](https://github.com/jolars/moloch/compare/v0.6.0...v1.0.0) (2025-04-01)
### Features
* add customization of bar line width ([#42](https://github.com/jolars/moloch/issues/42)) ([be0d8f2](https://github.com/jolars/moloch/commit/be0d8f23c72b9760baeb31a58d2e9988cba5d19a))
* support `\thanks` in title page ([#45](https://github.com/jolars/moloch/issues/45)) ([de3db5e](https://github.com/jolars/moloch/commit/de3db5e517c06d1b8793b3a1c134b9bf4ad8b189))
## [0.6.0](https://github.com/jolars/moloch/compare/v0.5.0...v0.6.0) (2025-01-17)
### Features
* add back highcontrast theme from metropolis ([3039994](https://github.com/jolars/moloch/commit/3039994e27a01d54d7a3cfa696318413161f5e15))
* add new color theme based on the tomorrow color theme ([13e7300](https://github.com/jolars/moloch/commit/13e73007c6d29989684aa228f7f74d3bdcce526f))
* add option to customize frame numbering of standout pages ([d6d0e3c](https://github.com/jolars/moloch/commit/d6d0e3c61565f06d1987c275e2460c9b61ef8ae3)), closes [#33](https://github.com/jolars/moloch/issues/33)
* deprecate `\mreducelistspacing` ([3d87ec2](https://github.com/jolars/moloch/commit/3d87ec2d8d4a81c09d13083aa61af2a36ce6dd1d))
* redesign section and subsection pages ([#30](https://github.com/jolars/moloch/issues/30)) ([5a98c69](https://github.com/jolars/moloch/commit/5a98c69a3f07b5b36d5d2c5e5a117e25c472ad22))
* use golden rule in top-bottom spacing of title page ([85eabc7](https://github.com/jolars/moloch/commit/85eabc7beef4296dcc7a7ac53eb0f7a785fe8c35))
### Reverts
* "feat: deprecate `\mreducelistspacing`" ([eb4bf54](https://github.com/jolars/moloch/commit/eb4bf54e734a64936903d18dbb6d1668d769fa01))
* "test: remove standoutnumbering test" ([ce7540d](https://github.com/jolars/moloch/commit/ce7540d71caf490cbd3129345cd778b1519394d9))
## [0.5.0](https://github.com/jolars/moloch/compare/v0.4.0...v0.5.0) (2024-10-30)
### Features
* replace `\vfill` with `\vfil` in title frame ([8f2a59e](https://github.com/jolars/moloch/commit/8f2a59e239cf0ae32f1a5c8fbf6ad739fa1cd328))
* switch from fill to fil ([#21](https://github.com/jolars/moloch/issues/21)) ([873ae15](https://github.com/jolars/moloch/commit/873ae154824ed10d45f05c6efe4c4cc73eca1a22))
### Bug Fixes
* remove duplicated footnote color specifications ([#26](https://github.com/jolars/moloch/issues/26)) ([1306af5](https://github.com/jolars/moloch/commit/1306af5a73e0a030ece2ad9825496cc28507ad54))
* remove extra space below progressbar section pages ([#27](https://github.com/jolars/moloch/issues/27)) ([e5be480](https://github.com/jolars/moloch/commit/e5be4806ab9b975be8e8f67434c80fd2155e30b2))
* set use=block title in block body for fill ([e8921a6](https://github.com/jolars/moloch/commit/e8921a69642166ef22b9b27cd3633a735c22f153)), closes [#28](https://github.com/jolars/moloch/issues/28)
* tag files with date ([28003e7](https://github.com/jolars/moloch/commit/28003e7502ce420a0e24b96e27ba3d30b9b0ecbc))
## [0.4.0](https://github.com/jolars/moloch/compare/v0.3.0...v0.4.0) (2024-07-09)
### Features
* add a small amount of vertical space before subtitle ([b224a9b](https://github.com/jolars/moloch/commit/b224a9b5067187e64a7669b61aee029447535729))
* support memoize package (closes [#16](https://github.com/jolars/moloch/issues/16)) ([1ca26e8](https://github.com/jolars/moloch/commit/1ca26e857a331fcb29296c4987b69aea0db90fae))
* support title format modifications ([#18](https://github.com/jolars/moloch/issues/18)) ([46a4f49](https://github.com/jolars/moloch/commit/46a4f49e8bb95798c2d6f3b69a1b96128d95cb8b))
### Bug Fixes
* add % at the end of some commands ([33b9833](https://github.com/jolars/moloch/commit/33b9833f21d3e0654fe2452d0b8ac8e8eb3a47bb))
* convert raw command in manual to text ([ac305e9](https://github.com/jolars/moloch/commit/ac305e9b547ce44e0573f333adc4e6684eb88b68))
## [0.3.0](https://github.com/jolars/moloch/compare/v0.2.0...v0.3.0) (2024-03-06)
### Features
* bring back the `numbering` option and deprecate it ([9a013e4](https://github.com/jolars/moloch/commit/9a013e4d46e1c009f058862525c4d92983c4103c))
* make `framenumber` slide numbering the default ([54e0fce](https://github.com/jolars/moloch/commit/54e0fce68b39a10aabf646c000ffa6656dede748))
* redesign title page ([9e6506e](https://github.com/jolars/moloch/commit/9e6506eccdf1a55ac88540df3bf792b88f07fc7a))
* reinstate support for `block` option ([bf63dcd](https://github.com/jolars/moloch/commit/bf63dcd17922277a198465485931f414a9426636))
* remove custom linespread setting ([6a85ef4](https://github.com/jolars/moloch/commit/6a85ef4ecd170550411cd00e65fe1e1a8d88b80b)), closes [#8](https://github.com/jolars/moloch/issues/8)
* remove parskip setting ([5477051](https://github.com/jolars/moloch/commit/54770512988927ab3c8264c7fce592cd0a4e32f8)), closes [#9](https://github.com/jolars/moloch/issues/9)
* support subtitles ([1c49957](https://github.com/jolars/moloch/commit/1c499577ea8f8aadf2403bdbd4efa603cf5a64d6))
### Bug Fixes
* apply upstream beamer fix for empty shortauthor ([b8b2d10](https://github.com/jolars/moloch/commit/b8b2d1090da3082a8b0370ef3411f70cc6c6fc1f))
* improve vertical centering of title slide ([6a14981](https://github.com/jolars/moloch/commit/6a149812409ce9072b785677fe562c5c80af22d4))
* remove extraneous line space after minipage ([c0b9826](https://github.com/jolars/moloch/commit/c0b98267ac70d75d69c5114e93b15722849fe712))
* remove extraneous space in frametitle continuation template ([66f7d83](https://github.com/jolars/moloch/commit/66f7d833a9e9e55626f38b2d3bc50303317a6b1c))
* remove font configuration for bibliography; closes [#5](https://github.com/jolars/moloch/issues/5) ([ccd19fe](https://github.com/jolars/moloch/commit/ccd19fe2dd20f40813e07c96a88700d5844b6e5d))
## [0.2.0](https://github.com/jolars/moloch/compare/v0.1.0...v0.2.0) (2024-01-23)
### ⚠ BREAKING CHANGES
* remove titleformat configuration
* use beamer's own frame numbering template
### Features
* remove titleformat configuration ([e19f93c](https://github.com/jolars/moloch/commit/e19f93c40a92ae28f5e7bf26cc48b68675501c89))
* use beamer's own frame numbering template ([01b698c](https://github.com/jolars/moloch/commit/01b698c7838d2e09057a240054c3acb3c75be8dc))
## 0.1.0 (2024-01-15) ## 0.1.0 (2024-01-15)

View File

@ -1,39 +1,24 @@
# Moloch <a href="https://ctan.org/pkg/moloch"><img src="https://github.com/jolars/moloch/raw/main/assets/moloch-logo.svg" align="right" width="140" /></a> ## Moloch
[![CTAN](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fctan.org%2Fjson%2F2.0%2Fpkg%2Fmoloch&query=%24.version.number&logo=latex&label=CTAN)](https://ctan.org/pkg/moloch)
[![CI](https://github.com/jolars/moloch/actions/workflows/ci.yml/badge.svg)](https://github.com/jolars/moloch/actions/workflows/ci.yml) [![CI](https://github.com/jolars/moloch/actions/workflows/ci.yml/badge.svg)](https://github.com/jolars/moloch/actions/workflows/ci.yml)
Moloch is a simple Beamer theme suitable for anyone to use. It is Moloch is a simple Beamer theme suitable for anyone to use. It is
a fork of the [Metropolis Theme](https://github.com/matze/mtheme). a fork of the [Moloch Theme](https://github.com/matze/mtheme).
The fork was created for the following reasons: The fork was created for the following reasons:
- To fix some outstanding issues that had not been addressed for a long time. - To fix some outstanding issues that had not been addressed for a long time.
- To remove some of the more opinionated design choices, such as special handling of the Fira family of fonts. - To remove some of the more opinionated design choices, such as special handling of the Fira family of fonts.
- To strip away some features that added complexity to the code base without achieving valuable functionality for the majority of users, such as special code block designs and the pgfplots theme. - To strip away some features that ad complexity to the code base without achieving valuable functionality for the majority of users, such as special code block designs and the pgfplots theme.
[Here's a blog post](https://jolars.co/blog/2024-05-30-moloch/) in which I introduce the theme and write in more detail about the changes with respect to Metropolis.
Also see the [demo](examples/demo/demo.pdf) for a quick introduction to the theme.
Do not expect this theme to be backwards compatible with the Metropolis theme. Do not expect this theme to be backwards compatible with the Metropolis theme.
![Screenshot](https://raw.githubusercontent.com/jolars/moloch/main/assets/screenshot.svg)
## Installation ## Installation
Moloch is on [CTAN](https://ctan.org/pkg/moloch), so you can install it using your favorite LaTeX package manager. For example, with `tlmgr`: A CTAN release is planned, but for now you can install the theme manually from source. You need a working LaTeX installation with `l3build` installed. Then just follow these steps:
```bash 1. Clone the repository: `git clone https://github.com/jolars/moloch.git`
tlmgr install moloch 2. Install the package: `l3build install`
```
You can also install the theme from source, in which case you need a working LaTeX installation with `l3build` installed. Then just follow these steps:
```bash
git clone https://github.com/jolars/moloch.git
cd moloch
l3build install
```
## Usage ## Usage
@ -73,10 +58,3 @@ Also, when writing commit messages, please use the [conventional commits format]
## Versioning ## Versioning
The project uses [semantic versioning](https://semver.org). The project uses [semantic versioning](https://semver.org).
## Acknowledgments
Almost all of **moloch** is a result of Mathias Vogelgesang's (@matze) hard work on the
**metropolis theme** (of which **moloch** is a fork).
Thanks to @samcarter for the logo!

Binary file not shown.

View File

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg width="188" height="101.33" version="1.1" viewBox="0 0 188 101.33" xmlns="http://www.w3.org/2000/svg">
<g>
<path transform="scale(1.3333)" d="m79.086 17.234c-5.797 0-10.5 4.711-10.5 10.508 0 5.805 4.703 10.508 10.5 10.508 5.793 0 10.496-4.707 10.496-10.508s-4.703-10.508-10.496-10.508zm0.848 3.637c3.523 0 6.394 2.848 6.394 6.375s-2.871 6.399-6.394 6.399c-3.524 0-6.372-2.872-6.372-6.399s2.852-6.375 6.372-6.375z" fill-rule="evenodd"/>
<path transform="scale(1.3333)" d="m43.648 22.578c-6.347 0-11.492 4.758-11.492 10.633 0 5.871 5.145 10.633 11.492 10.633 6.344 0 11.489-4.762 11.489-10.633 0-5.875-5.145-10.633-11.489-10.633zm-0.836 3.004c4.266 0 7.719 3.18 7.719 7.125s-3.453 7.145-7.719 7.145c-4.261 0-7.722-3.2-7.722-7.145 0-3.941 3.461-7.125 7.722-7.125z" fill-rule="evenodd"/>
<g>
<path transform="scale(1.3333)" d="m108.53 49.102c-1.437-0.805-2.941-1.821-4.504-3.043-1.57-1.211-3.082-2.524-4.531-3.946-1.426-1.414-2.711-2.867-3.851-4.359-1.141-1.512-2-2.965-2.582-4.356-0.555-1.386-0.758-2.656-0.61-3.816 0.153-1.176 1.367-3.547 4.031-6.082 5.133-3.852 12.657-4.02 12.657-4.02l-0.352 6.387s-4.437 0.891-6.004 1.672c-1.539 0.766-2.683 1.711-3.429 2.836-0.719 1.113-1.047 2.375-0.989 3.785 0.082 1.418 0.524 2.934 1.317 4.543 0.8 1.606 1.941 3.285 3.422 5.039 1.484 1.77 3.293 3.555 5.425 5.36z"/>
<path transform="scale(1.3333)" d="M 16.688,43.844 11.555,34.125 0,76 6.098,8.902 17.395,30.051 23.234,19.547 40.566,64.777 21.949,33.336 Z"/>
<path transform="scale(1.3333)" d="m84.738 49.539-29.851 1.137 7.633-50.676 3.371 25.039-8.457 22.832 34.957-7.508z"/>
<path transform="scale(1.3333)" d="m112.37 17.773-2.004 40.805 6.039-19.652 12.578 5.015-1.433 24.508 13.453-43.996-10.953-2.664-0.676 15.543-11.863-2.125 4.738-15z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 174 KiB

View File

@ -3,50 +3,23 @@
module = "moloch" module = "moloch"
sourcefiledir = "src" sourcefiledir = "src"
docfiledir = "doc" typesetfiles = { "doc/moloch.tex" }
typesetfiles = { "*.tex" }
textfiles = { "*.md", "LICENSE" }
checkengines = { "pdftex" } checkengines = { "pdftex" }
checksuppfiles = { "*.tex" } checksuppfiles = { "*.tex" }
packtdszip = false
maxprintline = 9999 maxprintline = 9999
uploadconfig = {
pkg = "moloch",
version = "1.0.1", -- x-release-please-version
author = "Johan Larsson",
uploader = "Johan Larsson",
license = "cc-by-sa-4",
summary = "A clean and simple beamer theme",
description = "Moloch is a clean and simple beamer theme. "
.. "It is a fork of the Metropolis theme, but has a "
.. "more minimalistic and slightly less opinionated design.",
ctanPath = "/macros/latex/contrib/beamer-contrib/themes/moloch",
repository = "https://github.com/jolars/moloch",
bugtracker = "https://github.com/jolars/moloch/issues",
support = "https://github.com/jolars/moloch/discussions",
topic = "presentation",
announcement_file = "ctan_announcement.txt",
}
function update_tag(file, content, tagname, tagdate) function update_tag(file, content, tagname, tagdate)
if string.match(file, "%.dtx$") then if string.match(file, "%.dtx$") then
local pattern = "\\ProvidesPackage{(.-)}%[([^%]]-) v([^%]]-) ([^%]]-)%]" local pattern = "\\ProvidesPackage{(.-)}%[([^%]]-) v([^%]]-) ([^%]]-)%]"
return content:gsub( return content:gsub(
pattern, pattern,
function(package_name, old_date, old_version, description) function(package_name, old_date, old_version, description)
-- if tagdate is nil, use old_date
if tagname == nil then
tagname = old_version
end
return string.format( return string.format(
"\\ProvidesPackage{%s}[%s v%s %s]", "\\ProvidesPackage{%s}[%s v%s %s]",
package_name, package_name,
tagdate, tagdate,
tagname, old_version,
description description
) )
end end

View File

@ -1,19 +0,0 @@
This release of Moloch adds support for `\thanks` in the title page and allows
customization of the bar line width. The 1.0.0 version was not released
on CTAN due to a couple of small issues, which were then fixed in 1.0.1.
See below fro detailed changes.
## [1.0.1](https://github.com/jolars/moloch/compare/v1.0.0...v1.0.1) (2025-04-01)
### Bug Fixes
* add missing files for updating version tags ([ba01d33](https://github.com/jolars/moloch/commit/ba01d33b1993d4992372420f25f6390c5e4baa91))
* use proper package names ([0c4d38e](https://github.com/jolars/moloch/commit/0c4d38e3c2e2b0b93bfc1b6c1abe6bf0a3a01311))
## [1.0.0](https://github.com/jolars/moloch/compare/v0.6.0...v1.0.0) (2025-04-01)
### Features
* add customization of bar line width ([#42](https://github.com/jolars/moloch/issues/42)) ([be0d8f2](https://github.com/jolars/moloch/commit/be0d8f23c72b9760baeb31a58d2e9988cba5d19a))
* support `\thanks` in title page ([#45](https://github.com/jolars/moloch/issues/45)) ([de3db5e](https://github.com/jolars/moloch/commit/de3db5e517c06d1b8793b3a1c134b9bf4ad8b189))

View File

@ -1,17 +1,16 @@
\documentclass[10pt]{beamer} \documentclass[10pt]{beamer}
\usepackage[T1]{fontenc}
\usetheme{moloch} \usetheme{moloch}
\setbeamertemplate{page number in head/foot}[appendixframenumber] \usepackage[T1]{fontenc}
\setbeamertemplate{section in toc}[sections numbered]
\usepackage{appendixnumberbeamer}
\usepackage{booktabs} \usepackage{booktabs}
\usepackage[scale=2]{ccicons} \usepackage[scale=2]{ccicons}
\usepackage[semibold,light]{FiraSans} \usepackage[medium,light]{FiraSans}
\usepackage{FiraMono} \usepackage[medium]{FiraMono}
\usepackage{xspace} \usepackage{xspace}
@ -20,35 +19,31 @@
\title{Moloch} \title{Moloch}
\subtitle{A Minimal Beamer Theme} \subtitle{A Minimal Beamer Theme}
\date{\today} \date{\today}
\author{The Author} \author{Johan Larsson}
\institute{Some Institution, Some University} \institute{The Department of Statistics, Lund University}
\titlegraphic{\hfill\includegraphics[width=3.5cm]{moloch-logo.pdf}}
\begin{document} \begin{document}
\maketitle \maketitle
\begin{frame} \begin{frame}{Table of Contents}
\frametitle{Table of Contents} \setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections] \tableofcontents[hideallsubsections]
\end{frame} \end{frame}
\section{Introduction} \section{Introduction}
\begin{frame}[fragile] \begin{frame}[fragile]{Moloch}
\frametitle{Moloch}
The \themename theme is a Beamer theme with minimal visual noise. It is a fork of the 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 \href{https://github.com/matze/mtheme}{metropolis theme} by Matthias Vogelgesang, which in turn was inspired by
turn was inspired by by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{hsrm by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{hsrm theme} by Benjamin Weiss.
theme} by Benjamin Weiss. \medskip
Enable the theme by calling Enable the theme by calling
\begin{verbatim}\documentclass{beamer} \begin{verbatim}\documentclass{beamer}
\usetheme{moloch}\end{verbatim} \usetheme{moloch}\end{verbatim}
\end{frame} \end{frame}
\begin{frame}[fragile] \begin{frame}[fragile]{Sections}
\frametitle{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. 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} \begin{verbatim}\section{Title Formats}\end{verbatim}
@ -56,60 +51,48 @@
\section{Title Formats} \section{Title Formats}
\begin{frame}[fragile] \begin{frame}[fragile]{Moloch Title Formats}
\frametitle{Moloch Title Formats}
\themename supports four different title formats: \themename supports four different title formats:
\begin{itemize} \begin{itemize}
\item \texttt{regular} (Regular) \item Regular
\item \texttt{smallcaps} (\textsc{Small Caps}) \item \textsc{Small Caps}
\item \texttt{allsmallcaps} (\textsc{all small caps}) \item \textsc{All Small Caps}
\item \texttt{allcaps} (ALL CAPS) \item ALL CAPS
\end{itemize} \end{itemize}
They can either be set globally for every frame or used locally just for the current frame They can either be set globally for every frame or used locally just for the current frame and onwards by using
and onwards by using
\begin{verbatim}\molochset{titleformat frame=<option>}\end{verbatim} \begin{verbatim}\molochset{titleformat frame=<option>}\end{verbatim}
\end{frame} \end{frame}
{ {
\molochset{titleformat frame=smallcaps} \molochset{titleformat frame=smallcaps}
\begin{frame} \begin{frame}{Small Caps}
\frametitle{Small Caps} This frame uses the \texttt{smallcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
Be aware that not every font supports small caps. If you use the Computer (or Latin) Modern Sans Serif font, for instance, text in small caps will just be typeset in a normal font. Be aware that not every font supports small caps. If for example you typeset your presentation with pdfTeX and the Computer Modern Sans Serif font, every text in small caps will be typeset with the Computer Modern Serif font instead.
\end{alertblock} \end{alertblock}
\end{frame} \end{frame}
} }
{ {
\molochset{titleformat frame=allsmallcaps} \molochset{titleformat frame=allsmallcaps}
\begin{frame} \begin{frame}{All Small Caps}
\frametitle{All Small Caps}
This frame uses the \texttt{allsmallcaps} title format. This frame uses the \texttt{allsmallcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
This title format also uses small caps, so you face the same problems as with the \texttt{smallcaps} title format. As this title format also uses small caps you face the same problems as with the \texttt{smallcaps} title format. Additionally this format can cause some other problems. Please refer to the documentation if you consider using it.
\medskip \medskip
In addition, note that numbers and math will be unaffected by this setting and will match As a rule of thumb: just use it for plaintext-only titles.
poorly with text as a result. For that reason, we suggest you make sure titles are all
plain text if you use this option.
\medskip
Finally, observe that the height of the frame title box will be modified to account for the
decreased text height since there are no capital letters. This too means that numbers and
math will not work well.
\end{alertblock} \end{alertblock}
\end{frame} \end{frame}
} }
{ {
\molochset{titleformat frame=allcaps} \molochset{titleformat frame=allcaps}
\begin{frame} \begin{frame}{All Caps}
\frametitle{All Caps}
This frame uses the \texttt{allcaps} title format. This frame uses the \texttt{allcaps} title format.
\begin{alertblock}{Potential Problems} \begin{alertblock}{Potential Problems}
@ -120,8 +103,7 @@
\section{Elements} \section{Elements}
\begin{frame}[fragile] \begin{frame}[fragile]{Typography}
\frametitle{Typography}
\begin{verbatim}The theme provides sensible defaults to \begin{verbatim}The theme provides sensible defaults to
\emph{emphasize} text, \alert{accent} parts or show \emph{emphasize} text, \alert{accent} parts or show
\textbf{bold} results.\end{verbatim} \textbf{bold} results.\end{verbatim}
@ -132,8 +114,7 @@
\alert{accent} parts or show \textbf{bold} results. \alert{accent} parts or show \textbf{bold} results.
\end{frame} \end{frame}
\begin{frame} \begin{frame}{Font Features Test}
\frametitle{Font Features Test}
\begin{itemize} \begin{itemize}
\item Regular \item Regular
\item \textit{Italic} \item \textit{Italic}
@ -148,8 +129,7 @@
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame} \begin{frame}{Lists}
\frametitle{Lists}
\begin{columns}[T,onlytextwidth] \begin{columns}[T,onlytextwidth]
\column{0.3\textwidth} \column{0.3\textwidth}
Items Items
@ -165,21 +145,19 @@
\column{0.33\textwidth} \column{0.33\textwidth}
Descriptions Descriptions
\begin{description}[PowerPoint] \begin{description}
\item[PowerPoint] Meeh. \item[Beamer] Yeeeha. \item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
\end{description} \end{description}
\end{columns} \end{columns}
\end{frame} \end{frame}
\begin{frame} \begin{frame}{Animation}
\frametitle{Animation}
\begin{itemize}[<+- | alert@+>] \begin{itemize}[<+- | alert@+>]
\item \alert<4>{This is\only<4>{ really} important} \item \alert<4>{This is\only<4>{ really} important}
\item Now this \item Now this
\item And now this \item And now this
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame} \begin{frame}{Figures}
\frametitle{Figures}
\begin{figure} \begin{figure}
\newcounter{density} \newcounter{density}
\setcounter{density}{20} \setcounter{density}{20}
@ -205,10 +183,7 @@
\href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.} \href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
\end{figure} \end{figure}
\end{frame} \end{frame}
\begin{frame}{Tables}
\begin{frame}
\frametitle{Tables}
\framesubtitle{Largest cities in the world}
\begin{table} \begin{table}
\caption{Largest cities in the world (source: Wikipedia)} \caption{Largest cities in the world (source: Wikipedia)}
\begin{tabular}{@{} lr @{}} \begin{tabular}{@{} lr @{}}
@ -223,96 +198,30 @@
\end{tabular} \end{tabular}
\end{table} \end{table}
\end{frame} \end{frame}
\begin{frame}[fragile] \begin{frame}{Blocks}
\frametitle{Blocks} Three different block environments are pre-defined.
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{block}{Default}
\begin{column}{0.45\textwidth} Block content.
\begin{block}{Default} \end{block}
Block content.
\end{block}
\begin{alertblock}{Alert} \begin{alertblock}{Alert}
Block content. Block content.
\end{alertblock} \end{alertblock}
\begin{exampleblock}{Example} \begin{exampleblock}{Example}
Block content. Block content.
\end{exampleblock} \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} \end{frame}
\begin{frame}[c] \begin{frame}{Math}
\frametitle{Progress Bars}
A prominent feature of \themename is the use of progress bars to
visualize the progress of the presentation. \medskip
By default bars are shown on section pages, but this can be toggled
through \texttt{sectionpage=progressbar|simple|none} and also enabled for
subsection pages through \texttt{subsectionpage=progressbar}.\medskip
Finally, you can enable progress bars on frames by setting
\texttt{progressbar=none|head|frametitle|foot} (depending on where
you'd like the bar to be placed).\medskip
\end{frame}
\begin{frame}[c,fragile]
\frametitle{Progress Bar Customization}
You can customize the width of the bars using
\texttt{progressbar linewidth=<length>}.\medskip
On the following pages, we have set
\begin{verbatim}\molochset{
progressbar=frametitle,
progressbar linewidth=1pt
}
\end{verbatim}
to enable progress bars below the frame title and set its width to 1pt.
\end{frame}
\molochset{progressbar=frametitle,progressbar linewidth=1pt}
\begin{frame}[c,fragile]
\frametitle{The Title Page}
There is only very little customization available of the title page at the
time of writing.\medskip
But you can at least modify the line width of the title separator
by setting \texttt{titleseparator linewidth=<length>}
\end{frame}
\begin{frame}
\frametitle{Math}
\begin{equation*} \begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*} \end{equation*}
\end{frame} \end{frame}
\begin{frame} \begin{frame}{Quotes}
\frametitle{Quotes}
\begin{quote} \begin{quote}
Verily, I say unto you, the days spoken of in the Apocalypse are nigh! Verily, I say unto you, the days spoken of in the Apocalypse are nigh!
\end{quote} \end{quote}
@ -320,22 +229,19 @@
{% {%
\setbeamertemplate{frame footer}{My custom footer} \setbeamertemplate{frame footer}{My custom footer}
\begin{frame}[fragile] \begin{frame}[fragile]{Frame Footer}
\frametitle{Frame Footer}
\themename defines a custom beamer template to add a text to the footer. It can be set via \themename defines a custom beamer template to add a text to the footer. It can be set via
\begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim} \begin{verbatim}\setbeamertemplate{frame footer}{My custom footer}\end{verbatim}
\end{frame} \end{frame}
} }
\begin{frame}[fragile] \begin{frame}[fragile]{References}
\frametitle{References}
Here are some references~\cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} to showcase \verb+[allowframebreaks]+. Here are some references~\cite{Knuth92,ConcreteMath,Simpson,Er01,greenwade93} to showcase \verb+[allowframebreaks]+.
\end{frame} \end{frame}
\section{Conclusion} \section{Conclusion}
\begin{frame} \begin{frame}{Summary}
\frametitle{Summary}
Get the source of this theme and the demo presentation from Get the source of this theme and the demo presentation from
\begin{center} \begin{center}
@ -343,8 +249,7 @@
\end{center} \end{center}
The theme is licensed under the The theme is licensed under the
\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons Attribution-ShareAlike 4.0 International License}.
Attribution-ShareAlike 4.0 International License}.
\begin{center} \begin{center}
\ccbysa \ccbysa
@ -358,9 +263,21 @@
\appendix \appendix
\begin{frame}[fragile]{Backup Slides}
To add slides at the end of your presentation for reference during audience questions, you just need to
\begin{enumerate}
\item include the "appendixnumberbeamer" package in your preamble, and
\item call \verb+\appendix+ command before your backup slides.
\end{enumerate}
By doing this, the \themename theme will automatically disable slide numbering and progress bars for the slides in the appendix.
\end{frame}
\begin{frame}[allowframebreaks]{References} \begin{frame}[allowframebreaks]{References}
\bibliography{demo} \bibliography{demo}
\bibliographystyle{abbrv} \bibliographystyle{abbrv}
\end{frame} \end{frame}
\end{document} \end{document}

View File

@ -9,22 +9,15 @@
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 %% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/). %% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% --------------------------------------------------------------------------- %% ---------------------------------------------------------------------------
%% Copyright 2024 Johan Larsson and contributors
%% ---------------------------------------------------------------------------
\PassOptionsToPackage{unicode,pdfusetitle}{hyperref}
\PassOptionsToPackage{hyphens}{xurl}
\PassOptionsToPackage{dvipsnames}{xcolor}
\documentclass{ltxdoc} \documentclass{ltxdoc}
\usepackage{parskip} \usepackage{parskip}
\usepackage{setspace} \usepackage{setspace}
\usepackage{xspace} \usepackage{xspace}
\usepackage{xurl} \onehalfspacing
\usepackage{lmodern} \usepackage{etoolbox}
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
\usepackage{enumitem} \usepackage{enumitem}
\setlist[itemize]{noitemsep} \setlist[itemize]{noitemsep}
@ -41,8 +34,8 @@
\lstset{% \lstset{%
language=[LaTeX]{TeX}, language=[LaTeX]{TeX},
basicstyle=\ttfamily, basicstyle=\ttfamily,
keywordstyle=\color{MidnightBlue}\bfseries, keywordstyle=\color{mLightBrown}\bfseries,
commentstyle=\color{Periwinkle}, commentstyle=\color{mLightGreen},
stringstyle=\color{mLightGreen}, stringstyle=\color{mLightGreen},
backgroundcolor=\color{mBackground}, backgroundcolor=\color{mBackground},
numbers=none, numbers=none,
@ -64,54 +57,46 @@
xrightmargin=0em, xrightmargin=0em,
aboveskip=1em, aboveskip=1em,
belowskip=1em, belowskip=1em,
morekeywords={ morekeywords={usetheme,institute,maketitle,@moloch@titleformat,%
usetheme, plain,setbeamercolor,molochset,setsansfont,setmonofont},
institute,
maketitle,
@moloch@titleformat,
%plain,
setbeamercolor,
molochset,
setsansfont,
setmonofont
},
} }
\lstMakeShortInline| \lstMakeShortInline|
\usepackage{metalogo} \usepackage{metalogo}
\usepackage[colorlinks=true,linkcolor=MidnightBlue,urlcolor=MidnightBlue]{hyperref} \usepackage[colorlinks=true,
linkcolor=mLightBrown,
menucolor=mLightBrown,
pagecolor=mLightBrown,
urlcolor=mLightBrown]{hyperref}
\newcommand{\DescribeOption}[4]{ \newcommand{\DescribeOption}[4]{
\DescribeMacro{#1} \DescribeMacro{#1}
\begin{minipage}[t]{\textwidth} \begin{minipage}[t]{\textwidth}
\textit{\textbf{\textcolor{JungleGreen}{#2}}}\dotfill\,#3\par \textit{\textbf{\textcolor{mLightGreen}{#2}}}\dotfill\,#3\par
\begingroup \begingroup
\vspace{0.5em}#4\par \vspace{0.5em}#4\par
\endgroup \endgroup
\end{minipage} \end{minipage}
} }
\newcommand{\themename}{\textsf{moloch}\xspace} \newcommand{\themename}{\textbf{moloch}\xspace}
\def\molochversion{1.0.1} % x-release-please-version
\usepackage{readprov} \usepackage{readprov}
% \ReadPackageInfos{beamerthememoloch}
\title{The \themename Package (v\molochversion)} \title{Modern Beamer Presentations with the \themename package}
\author{Johan Larsson \and Matthias Vogelgesang\footnote{Matthias wrote the original version of this manual for the Metropolis theme, which has since been modified by Johan Larsson.}} \author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
\date{\today} \date{\fileversion~---~\filedate}
\begin{document} \begin{document}
\maketitle \maketitle
\hypersetup{linkcolor=black}
\tableofcontents \tableofcontents
\hypersetup{linkcolor=MidnightBlue}
\section{Introduction} \section{Introduction}
Beamer is a great way to make presentations with LaTeX, but its theme Beamer is an awesome way to make presentations with LaTeX, but its theme
selection is surprisingly sparse. The stock themes share an aesthetic that can selection is surprisingly sparse. The stock themes share an aesthetic that can
be a little cluttered, while the few distinctive custom themes available are be a little cluttered, while the few distinctive custom themes available are
often specialized for a particular corporate or institutional brand. often specialized for a particular corporate or institutional brand.
@ -121,14 +106,12 @@ for anyone to use. It tries to minimize noise and maximize space for content;
the only visual flourish it offers is an (optional) progress bar added to each the only visual flourish it offers is an (optional) progress bar added to each
slide or to the section slides. slide or to the section slides.
\themename's codebase is maintained at \url{https://github.com/jolars/moloch}. \themename's codebase is maintained on \href{https://github.com/matze/mtheme}
If you have any issues, find mistakes in the manual or want to help make {GitHub}. If you have issues, find mistakes in the manual or want to help make
the theme even better, please get in touch there. the theme even better, please get in touch there. The
\href{https://github.com/matze/mtheme/graphs/contributors}
{full list of contributors} already contains over a dozen names!
\themename is a fork of the popular Metropolis theme by Matthias Vogelgesang.
The motivation for the fork was to fix some longstanding bugs in Metropolis
and also simplify the codebase to make it easier to maintain and less
fragile to changes in the underlying Beamer code.
\section{Getting Started} \section{Getting Started}
@ -156,19 +139,43 @@ Mac\TeX\ on OS X also provides a graphical interface for |tlmgr| called
For any other distribution please refer to its documentation on how to update For any other distribution please refer to its documentation on how to update
your packages. your packages.
\subsection{Installing from Source} \subsection{Installing from GitHub}
If you want to use the development version of \themename, you can If you want to use the cutting-edge development version of \themename, you can
install it manually. You only need a recent \LaTeX\ distribution install it manually. Like any \LaTeX\ package, this involves four easy steps:
which includes \textbf{l3build}. Then simply follow the steps below.
\begin{description} \begin{description}
\item[Download the source] with a |git clone| of \item[Download the source] with a |git clone| of the
\url{https://github.com/jolars/moloch} \href{https://github.com/matze/mtheme}{\themename repository} or as a
\href{https://github.com/matze/mtheme/archive/master.zip}{zip archive}
of the latest development version.
\item[Install the package] by running |l3build install| inside the downloaded \item[Compile the style files] by running |make sty| inside the downloaded
directory. directory. (Or run \LaTeX{} directly on |source/molochtheme.ins|.)
\item[Move the resulting |*.sty| files] to the folder containing your
presentation. To use \themename with many presentations, run
|make install| or move the |*.sty| files to a folder in your \TeX{} path
instead.
\item[Use the theme for your presentation] by declaring
|\usetheme{moloch}| in the preamble of your Beamer document.
\end{description} \end{description}
\themename uses the Make build system to offer the following installation
options for advanced users:
\begin{description}
\item[|make sty|] builds the theme style files.
\item[|make doc|] builds this documentation manual.
\item[|make demo|] builds a demo presentation to test the features of
\themename.
\item[|make all|] builds the theme and manual.
\item[|make clean|] removes the files generated by |make all|.
\item[|make install|] installs the theme into your local texmf folder.
\item[|make uninstall|] removes the theme from your local texmf folder.
\end{description}
\subsection{A Minimal Example} \subsection{A Minimal Example}
The following code shows a minimal example of a Beamer presentation using The following code shows a minimal example of a Beamer presentation using
@ -176,11 +183,11 @@ The following code shows a minimal example of a Beamer presentation using
\begin{lstlisting} \begin{lstlisting}
\documentclass{beamer} \documentclass{beamer}
\usetheme{moloch} \usetheme{moloch} % Use moloch theme
\title{A Minimal Example} \title{A minimal example}
\date{\today} \date{\today}
\author{Johan Larsson} \author{Matthias Vogelgesang}
\institute{Some University} \institute{Centre for Modern Beamer Themes}
\begin{document} \begin{document}
\maketitle \maketitle
\section{First Section} \section{First Section}
@ -190,6 +197,7 @@ The following code shows a minimal example of a Beamer presentation using
\end{document} \end{document}
\end{lstlisting} \end{lstlisting}
\subsection{Dependencies} \subsection{Dependencies}
\themename depends on the |beamer| class and the following standard packages: \themename depends on the |beamer| class and the following standard packages:
@ -208,12 +216,13 @@ To use this theme with \href{http://johnmacfarlane.net/pandoc/}{Pandoc}-based
presentations, you can run the following command presentations, you can run the following command
\begin{lstlisting} \begin{lstlisting}
$ pandoc -t beamer -V theme:moloch -o output.pdf input.md $ pandoc -t beamer --latex-engine=xelatex -V theme:moloch -o output.pdf input.md
\end{lstlisting} \end{lstlisting}
\section{Customization} \section{Customization}
\subsection{Package Options} \subsection{Package options}
The theme provides a number of options, which can be set using a key=value The theme provides a number of options, which can be set using a key=value
interface. The primary way to set options is to provide a comma-separated list interface. The primary way to set options is to provide a comma-separated list
@ -222,7 +231,7 @@ of option-value pairs when loading \themename in the preamble:
\usetheme[option1=value1, option2=value2, ...]{moloch} \usetheme[option1=value1, option2=value2, ...]{moloch}
\end{lstlisting} \end{lstlisting}
Options can be changed at any time---even mid-presentation---with the Options can be changed at any time --- even mid-presentation! --- with the
|\molochset| macro. |\molochset| macro.
\begin{lstlisting} \begin{lstlisting}
\molochset{option1=newvalue1, option2=newvalue2, ...} \molochset{option1=newvalue1, option2=newvalue2, ...}
@ -234,7 +243,8 @@ The list of options is structured as shown in the following example.
A short description of the option. A short description of the option.
} }
\subsubsection{Main Theme}
\subsubsection{Main theme}
\DescribeOption{titleformat}% \DescribeOption{titleformat}%
{regular, smallcaps, allsmallcaps, allcaps} {regular, smallcaps, allsmallcaps, allcaps}
@ -242,9 +252,8 @@ The list of options is structured as shown in the following example.
Changes the format of titles, subtitles, section titles, frame titles, and Changes the format of titles, subtitles, section titles, frame titles, and
the text on ``standout'' frames. The available options produce the text on ``standout'' frames. The available options produce
Regular, \textsc{SmallCaps}, \textsc{\MakeLowercase{AllSmallCaps}}, or Regular, \textsc{SmallCaps}, \textsc{\MakeLowercase{AllSmallCaps}}, or
\MakeUppercase{AllCaps} titles. Note that these commands do not \MakeUppercase{AllCaps} titles. Please refer to
affect math and numbers, so may not work as you expect if your titles Section~\ref{sec:titleformats} for known issues with these options.
contain these.
} }
\DescribeOption{titleformat plain}% \DescribeOption{titleformat plain}%
@ -253,7 +262,8 @@ The list of options is structured as shown in the following example.
Changes the format of ``standout'' frames (see |titleformat|, above). Changes the format of ``standout'' frames (see |titleformat|, above).
} }
\subsubsection{Inner Theme}
\subsubsection{Inner theme}
\DescribeOption{sectionpage}{none, simple, progressbar}{progressbar}{ \DescribeOption{sectionpage}{none, simple, progressbar}{progressbar}{
Adds a slide at the start of each section (|simple|) with an optional thin Adds a slide at the start of each section (|simple|) with an optional thin
@ -270,20 +280,10 @@ The list of options is structured as shown in the following example.
on the section structure of your presentation. on the section structure of your presentation.
} }
\DescribeOption{standoutnumbering}{none, hide, show}{none}{
This option decides whether or not to count standout pages as
frames if frame counting. Option |none| (the default) means that
the standout frames are not counted. |hide| means that they are
counted but that there won't be any footer showing a frame number.
|show| means that they are counted and that the frame number
count is shown in the same fashion as for regular frames.
}
\subsubsection{Outer Theme} \subsubsection{Outer theme}
\DescribeOption{numbering}{none, counter, fraction}{}{ \DescribeOption{numbering}{none, counter, fraction}{counter}{
\emph{This option is deprecated and will be removed in a future version.
Please use Beamer's |page number in head/foot| template instead.}
Controls whether the frame number at the bottom right of each slide is Controls whether the frame number at the bottom right of each slide is
omitted (|none|), shown (|counter|) or displayed as a fraction of the total omitted (|none|), shown (|counter|) or displayed as a fraction of the total
number of frames (|fraction|). number of frames (|fraction|).
@ -295,19 +295,15 @@ The list of options is structured as shown in the following example.
(|frametitle|). (|frametitle|).
} }
\subsubsection{Color Theme} \subsubsection{Color theme}
\DescribeOption{block}{transparent, fill}{transparent}{
Optionally adds a light grey background to block environments like |theorem|
and |example|.
}
\DescribeOption{background}{dark, light}{light}{ \DescribeOption{background}{dark, light}{light}{
Provides the option to have a dark background and light foreground instead Provides the option to have a dark background and light foreground instead
of the reverse. of the reverse.
} }
\subsubsection{Font Theme}
\subsubsection{Font theme}
\DescribeMacro{titleformat title} \DescribeMacro{titleformat title}
\DescribeMacro{titleformat subtitle} \DescribeMacro{titleformat subtitle}
@ -319,6 +315,7 @@ The list of options is structured as shown in the following example.
frame titles (see |titleformat|, above). frame titles (see |titleformat|, above).
} }
\subsection{Color Customization} \subsection{Color Customization}
The included \themename color theme is used by default, but its colors can be The included \themename color theme is used by default, but its colors can be
@ -346,8 +343,6 @@ of \themename specific colors, which can also be redefined to your liking.
\setbeamercolor{progress bar in section page}{ ... } \setbeamercolor{progress bar in section page}{ ... }
\end{lstlisting} \end{lstlisting}
\subsubsection{Themes}
For low-light situations \themename it might be helpful to use the For low-light situations \themename it might be helpful to use the
|moloch-highcontrast| color theme. It is enabled like any other color theme: |moloch-highcontrast| color theme. It is enabled like any other color theme:
@ -355,20 +350,13 @@ For low-light situations \themename it might be helpful to use the
\usecolortheme{moloch-highcontrast} \usecolortheme{moloch-highcontrast}
\end{lstlisting} \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} \subsection{Commands}
\subsubsection{Standout Frames} \subsubsection{Standout frames}
The \themename inner theme offers a custom frame format with large, centered The \themename inner theme offers a custom frame format with large, centered
text and an inverted background---perfect for focusing attention on text and an inverted background --- perfect for focusing attention on
single sentence or image. To use it, add the key |standout| to the frame: single sentence or image. To use it, add the key |standout| to the frame:
\begin{lstlisting} \begin{lstlisting}
@ -377,21 +365,54 @@ single sentence or image. To use it, add the key |standout| to the frame:
\end{frame} \end{frame}
\end{lstlisting} \end{lstlisting}
\section{Tips \& Tricks}
\subsection{Backup Slides}
Speakers will often include extra slides at the end of their presentation to
refer to during audience questions. One easy way to do this is to include the
\verb|appendixnumberbeamer| package in your preamble and call \verb|\appendix| before your backup slides.
\themename will automatically turn off slide numbering and progress bars for
slides in the appendix.
\section{Known Issues} \section{Known Issues}
\subsection{Title Formats} \subsection{Title formats}
\label{sec:titleformats}
Be aware that not every font supports small caps, so the |smallcaps| or Be aware that not every font supports small caps, so the |smallcaps| or
|allsmallcaps| options may not work for all fonts. |allsmallcaps| options may not work for all fonts.
In particular, the Computer Modern sans-serif typeface, which is used In particular, the Computer Modern sans-serif typeface, which is used when
by default when \themename is compiled with pdf\LaTeX, does not have a \themename is compiled with pdf\LaTeX, does not have a small-caps variant.
small-caps variant.
Note that title format options |allsmallcaps| and |allcaps| do not The title format options |allsmallcaps| and |allcaps| are quite nice from an
affect the sizes of numerals, punctuation, and math symbol, and are aesthetic point of view, but their use of |\MakeLowercase| and
probably best avoided if your titles contain these characters. |\MakeUppercase| can cause unexpected problems. For example:
\subsection{Interactions with Other Color Themes} \begin{itemize}
\item Some commands, like |\\|, do not work inside |\MakeLowercase| and
|\MakeUppercase|. (See \href{https://github.com/matze/mtheme/issues/125}
{\#125})
\item Only alphabetic characters are affected by |\MakeLowercase|, so
numerals and punctuation remain at full height. This can spoil some of the
aesthetic benefits of |allsmallcaps|. (See
\href{https://github.com/matze/mtheme/issues/33}{\#33})
\item |\MakeLowercase| and |\MakeUppercase| apply to math mode and
|\scshape| does not. This can easily introduce mathematical errors that
are hard to catch.
\item It is impossible to typeset symbols which are encoded as uppercase
letters in a different font. In particular, |\mathbb| and |\mathcal|
letters will be replaced by other math glyphs. (See
\href{https://github.com/matze/mtheme/issues/153}{\#153})
\end{itemize}
The |allsmallcaps| and |allcaps| options are safe to use if your titles contain
only alphabetic characters and do not require the expansion of any macros.
\subsection{Interactions with other color themes}
\themename can be used along with any other Beamer color theme, such as \themename can be used along with any other Beamer color theme, such as
|crane| or |seahorse|. If you wish to do this, it is usually best to include |crane| or |seahorse|. If you wish to do this, it is usually best to include
@ -399,11 +420,11 @@ the \themename subpackages individually so the \themename color theme is
never loaded. This will prevent conflicts between the \themename color theme never loaded. This will prevent conflicts between the \themename color theme
and your preferred theme. and your preferred theme.
For example, overriding the color theme as follows may not work as expected For example, overriding the color theme as follows may not work as expected because |\usetheme{moloch}| loads the \themename color theme, which
because |\usetheme{moloch}| loads the \themename color theme, which defines a defines a relationship between the frametitle background and the primary
relationship between the frametitle background and the primary palette of the palette of the theme. Since |seahorse| assumes a different relationship
theme. Since |seahorse| assumes a different relationship between its palettes, between its palettes, the result is a grey, rather than periwinkle,
the result is a grey, rather than periwinkle, frametitle background. frametitle background.
\begin{lstlisting} \begin{lstlisting}
\usetheme{moloch} \usetheme{moloch}
@ -425,7 +446,8 @@ favourite Beamer color theme. In particular, \themename does not set a
background color for the title; this will cause issues when using color themes background color for the title; this will cause issues when using color themes
like |whale| which set a white foreground for the title. like |whale| which set a white foreground for the title.
\subsection{Notes on Second Screen}
\subsection{Notes on second screen}
If you use the \verb+[show notes on second screen]+ option built in to Beamer and If you use the \verb+[show notes on second screen]+ option built in to Beamer and
compile with \XeLaTeX, text on slides following the first section slide may compile with \XeLaTeX, text on slides following the first section slide may
@ -439,13 +461,14 @@ on each slide.
\makeatletter \makeatletter
\def\beamer@framenotesbegin{% at beginning of slide \def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{normal text} \usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}% \gdef\beamer@noteitems{}%
\gdef\beamer@notes{}% \gdef\beamer@notes{}%
} }
\makeatother \makeatother
\end{lstlisting} \end{lstlisting}
\subsection{Standout Frames with Labels}
\subsection{Standout frames with labels}
Because the |standout| frame option creates a group to restrict the colour Because the |standout| frame option creates a group to restrict the colour
change to a single slide, labels defined after calling |standout| will stay change to a single slide, labels defined after calling |standout| will stay
@ -461,7 +484,7 @@ To fix this problem, change the order of the keys in the frame.
\begin{lstlisting} \begin{lstlisting}
\begin{frame}[label=conclusion, standout]{Conclusion} \begin{frame}[label=conclusion, standout]{Conclusion}
Awesome slide Awesome slide
\end{frame} \end{frame}
\end{lstlisting} \end{lstlisting}
@ -477,12 +500,14 @@ solution for Org mode users, using |org-set-property|.
:END: :END:
\end{lstlisting} \end{lstlisting}
\subsection{Standout Frames with Pandoc}
With Pandoc versions prior to 1.17.2 it was not possible to create standout frames \subsection{Standout frames with Pandoc}
With Pandoc versions prior 1.17.2 it was not possible to create standout frames
because Pandoc only supported a specific list of frame attributes thus ignoring because Pandoc only supported a specific list of frame attributes thus ignoring
additional attributes such as |{.standout}|. additional attributes such as |{.standout}|.
\section{License} \section{License}
\themename is licensed under a \themename is licensed under a
@ -492,6 +517,7 @@ This means that if you change the theme and re-distribute it, you must retain
the copyright notice header and license it under the same CC-BY-SA license. the copyright notice header and license it under the same CC-BY-SA license.
This does not affect any presentations that you create with the theme. This does not affect any presentations that you create with the theme.
\section{Implementation} \section{Implementation}
\DocInput{beamerthememoloch.dtx} \DocInput{beamerthememoloch.dtx}

View File

@ -1 +0,0 @@
moloch-tomorrow.pdf

View File

@ -1,82 +0,0 @@
\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}
\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
\section{Introduction}
\begin{frame}[fragile]
\frametitle{Moloch}
This small demo shows how the
\href{https://github.com/chriskempson/tomorrow-theme}{tomorrow color theme}
for moloch looks.\bigskip
Enable the color theme by calling
\begin{verbatim}
\usecolortheme{moloch-tomorrow}\end{verbatim}
\end{frame}
\begin{frame}[fragile]
\frametitle{Tomorrow Color Theme}
The tomorrow color theme has a higher contrast than the standard moloch theme, and uses
different colors for alerts and examples.
\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}
\section{A Section Just to Showcase Progress Bar Color}
\begin{frame}[standout]
Questions?
\end{frame}
\end{document}

Binary file not shown.

Binary file not shown.

View File

@ -1,64 +0,0 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": [
"systems"
]
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1737003892,
"narHash": "sha256-RCzJE9wKByLCXmRBp+z8LK9EgdW+K+W/DXnJS4S/NVo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ae06b9c2d83cb5c8b12d7d0e32692e93d1379713",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs",
"systems": "systems"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,53 +0,0 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.systems.url = "github:nix-systems/default";
inputs.flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
texlive = pkgs.texlive.combine {
inherit (pkgs.texlive)
scheme-basic
l3build
beamer
biblatex
enumitem
fileinfo
hypdoc
hyperref
listings
metalogo
parskip
pgf
pgfopts
setspace
xurl
microtype
;
};
l3build-wrapped = pkgs.writeShellScriptBin "l3build-wrapped" ''
# NOTE: the trailing slash in TEXMF is required
TEXMF="${texlive}/" ${texlive}/bin/l3build "$@"
'';
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
texlive
l3build-wrapped
];
# shellHook = ''
# export TEXMF="${texlive}/"
# '';
};
}
);
}

View File

@ -1,87 +0,0 @@
{
writeShellScript,
writableTmpDirAsHomeHook,
stdenvNoCC,
texlivePackages,
texliveBasic,
}:
let
texEnv = texliveBasic.withPackages (ps: with ps; [
# l3build
beamer
biblatex
enumitem
fileinfo
hypdoc
hyperref
listings
metalogo
parskip
pgf
pgfopts
setspace
xurl
microtype
latexmk
]);
in stdenvNoCC.mkDerivation rec {
pname = "moloch";
version = "1.0.2-DEV-xenia";
outputs = [
"tex"
"texdoc"
];
passthru.tlDeps = with texlivePackages; [ latex ];
src = ./.;
dontConfigure = true;
nativeBuildInputs = [
texEnv
# multiple-outputs.sh fails if $out is not defined
(writeShellScript "force-tex-output.sh" ''
out="''${tex-}"
'')
writableTmpDirAsHomeHook # Need a writable $HOME for latexmk
];
# we just build manually, but moloch's own method of building is using l3build
# i have no idea how to get that working, so for now just do it normal style
buildPhase = ''
runHook preBuild
# Generate the style files
cd src
latex beamertheme${pname}.ins
# Generate the documentation
cp ../doc/${pname}.tex .
latexmk -pdf ${pname}.tex
cd ..
runHook postBuild
'';
installPhase = ''
runHook preInstall
path="$tex/tex/latex/${pname}"
mkdir -p "$path"
cp src/*.{cls,def,clo,sty} "$path/"
path="$texdoc/doc/tex/latex/${pname}"
mkdir -p "$path"
cp src/${pname}.pdf "$path/"
runHook postInstall
'';
}

View File

@ -1,17 +1,15 @@
{ {
"bootstrap-sha": "c7c32a2a617e7dcee61cb7d8aac57d0b8d105e8e",
"packages": { "packages": {
".": { ".": {
"release-type": "go", "release-type": "simple",
"bump-minor-pre-major": true,
"extra-files": [ "extra-files": [
"src/beamercolorthememoloch.dtx", "src/beamercolorthememoloch.dtx",
"src/beamerfontthememoloch.dtx", "src/beamerfontthememoloch.dtx",
"src/beamerouterthememoloch.dtx", "src/beamerouterthememoloch.dtx",
"src/beamerinnerthememoloch.dtx", "src/beamerinnerthememoloch.dtx",
"src/beamercolorthememoloch-highcontrast.dtx", "src/beamerthememoloch.dtx"
"src/beamercolorthememoloch-tomorrow.dtx",
"src/beamerthememoloch.dtx",
"doc/moloch.tex",
"build.lua"
] ]
} }
} }

View File

@ -1,50 +0,0 @@
% \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 2025 Johan Larsson and contributors
% ------------------------------------------------------------------------- \fi
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthememoloch-highcontrast}[2025-04-01 v1.0.1 Moloch high-contrast color theme] % x-release-please-version
%</package>
% \fi
% \CheckSum{0}
% \StopEventually{}
% \iffalse
%<*package>
% ------------------------------------------------------------------------- \fi
%
\usecolortheme{moloch}
\definecolor{mAlert}{HTML}{AD003D}
\definecolor{mExample}{HTML}{005580}
\setbeamercolor{normal text}{%
fg=black,
bg=white
}
\setbeamercolor{alerted text}{%
fg=mAlert,
}
\setbeamercolor{example text}{%
fg=mExample,
}
%
% \begin{macrocode}
\mode<all>
% \end{macrocode}
%
% \iffalse
%</package>
% \fi
% \Finale
\endinput

View File

@ -1,51 +0,0 @@
% \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}[2025-04-01 v1.0.1 Moloch tomorrow color theme] % x-release-please-version
%</package>
% \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<all>
% \end{macrocode}
%
% \iffalse
%</package>
% \fi
% \Finale
\endinput

View File

@ -8,13 +8,11 @@
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 % This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/). % International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
%% Copyright 2024 Johan Larsson and contributors
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*package> %<*package>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthememoloch}[2025-04-01 v1.0.1 Moloch color theme] % x-release-please-version \ProvidesPackage{beamercolorthememoloch}[2024-01-15 v0.1.0 Moloch color theme] % x-release-please-version
%</package> %</package>
% \fi % \fi
% \CheckSum{0} % \CheckSum{0}
@ -23,11 +21,11 @@
%<*package> %<*package>
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% %
% \subsection{\themename Color Theme} % \subsection{\themename color theme}
% %
% %
% %
% \subsubsection{Package Dependencies} % \subsubsection{Package dependencies}
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{pgfopts} \RequirePackage{pgfopts}
% \end{macrocode} % \end{macrocode}
@ -36,18 +34,6 @@
% %
% \subsubsection{Options} % \subsubsection{Options}
% %
% \begin{macro}{block}
% Optionally adds a light grey background to block environments like
% |theorem| and |example|.
% \begin{macrocode}
\pgfkeys{
/moloch/color/block/.cd,
.is choice,
transparent/.code=\moloch@block@transparent,
fill/.code=\moloch@block@fill,
}
% \end{macrocode}
% \end{macro}
% %
% \begin{macro}{colors} % \begin{macro}{colors}
% Provides the option to have a dark background and light foreground instead % Provides the option to have a dark background and light foreground instead
@ -75,7 +61,7 @@
% %
% %
% %
% \subsubsection{Base Colors} % \subsubsection{Base colors}
% %
% \begin{macrocode} % \begin{macrocode}
\definecolor{mDarkBrown}{HTML}{604c38} \definecolor{mDarkBrown}{HTML}{604c38}
@ -86,7 +72,7 @@
% %
% %
% %
% \subsubsection{Base Styles} % \subsubsection{Base styles}
% %
% All colors in \themename are derived from the definitions of |normal text|, % All colors in \themename are derived from the definitions of |normal text|,
% |alerted text|, and |example text|. % |alerted text|, and |example text|.
@ -115,7 +101,7 @@
% %
% %
% %
% \subsubsection{Derived Colors} % \subsubsection{Derived colors}
% %
% The titles and structural elements (e.g. |itemize| bullets) are set in the % The titles and structural elements (e.g. |itemize| bullets) are set in the
% same color as |normal text|. This would ideally done by setting |normal text| % same color as |normal text|. This would ideally done by setting |normal text|
@ -127,11 +113,8 @@
\setbeamercolor{titlelike}{use=normal text, parent=normal text} \setbeamercolor{titlelike}{use=normal text, parent=normal text}
\setbeamercolor{author}{use=normal text, parent=normal text} \setbeamercolor{author}{use=normal text, parent=normal text}
\setbeamercolor{date}{use=normal text, parent=normal text} \setbeamercolor{date}{use=normal text, parent=normal text}
\setbeamercolor{institute}{% \setbeamercolor{institute}{use=normal text, fg=normal text.fg!80!normal text.bg}
use=normal text, fg=normal text.fg!80!normal text.bg}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg} \setbeamercolor{structure}{use=normal text, fg=normal text.fg}
\setbeamercolor{thanks}{%
use=normal text,fg=normal text.fg!80!normal text.bg}
% \end{macrocode} % \end{macrocode}
% %
% The “primary” palette should be used for the most important navigational % The “primary” palette should be used for the most important navigational
@ -176,38 +159,9 @@
} }
% \end{macrocode} % \end{macrocode}
% %
% Block environments such as |theorem| and |example| have no background color % Block environments use alerted tex and example text for the title
% by default. The option |block=fill| sets a background color based on the
% background and foreground of |normal text|. The option |block=transparent|
% reverts the block environments to an empty background, which can be useful
% if changing colors mid-presentation.
% %
% \begin{macrocode} % \begin{macrocode}
\newcommand{\moloch@block@transparent}{
\setbeamercolor{block title}{bg=}
\setbeamercolor{block body}{bg=}
\setbeamercolor{block title alerted}{bg=}
\setbeamercolor{block title example}{bg=}
}
\newcommand{\moloch@block@fill}{
\setbeamercolor{block title}{%
bg=normal text.bg!80!fg
}
\setbeamercolor{block body}{%
use=block title,
bg=block title.bg!50!normal text.bg
}
\setbeamercolor{block title alerted}{%
bg=block title.bg,
}
\setbeamercolor{block title example}{%
bg=block title.bg,
}
}
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg
}
\setbeamercolor{block title alerted}{% \setbeamercolor{block title alerted}{%
use={block title, alerted text}, use={block title, alerted text},
fg=alerted text.fg fg=alerted text.fg
@ -216,8 +170,6 @@
use={block title, example text}, use={block title, example text},
fg=example text.fg fg=example text.fg
} }
\setbeamercolor{block body alerted}{use=block body, parent=block body}
\setbeamercolor{block body example}{use=block body, parent=block body}
% \end{macrocode} % \end{macrocode}
% %
% Footnotes % Footnotes
@ -240,7 +192,7 @@
% %
% %
% %
% \subsubsection{Process Package Options} % \subsubsection{Process package options}
% %
% \begin{macrocode} % \begin{macrocode}
\moloch@color@setdefaults \moloch@color@setdefaults

View File

@ -8,13 +8,11 @@
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 % This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/). % International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
%% Copyright 2024 Johan Larsson and contributors
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*package> %<*package>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerfontthememoloch}[2025-04-01 v1.0.1 Moloch font theme] % x-release-please-version \ProvidesPackage{beamerfontthememoloch}[2024-01-15 v0.1.0 Moloch font theme] % x-release-please-version
%</package> %</package>
% \fi % \fi
% \CheckSum{0} % \CheckSum{0}
@ -47,10 +45,14 @@
\setbeamerfont{block title alerted}{size=\normalsize, series=\bfseries} \setbeamerfont{block title alerted}{size=\normalsize, series=\bfseries}
\setbeamerfont*{subtitle}{size=\large} \setbeamerfont*{subtitle}{size=\large}
\setbeamerfont{frametitle}{size=\large, series=\bfseries} \setbeamerfont{frametitle}{size=\large, series=\bfseries}
\setbeamerfont{framesubtitle}{size=\small}
\setbeamerfont{caption}{size=\small} \setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{series=\bfseries} \setbeamerfont{caption name}{series=\bfseries}
\setbeamerfont{description item}{series=\bfseries} \setbeamerfont{description item}{series=\bfseries}
\setbeamerfont{page number in head/foot}{size=\scriptsize}
\setbeamerfont{bibliography entry author}{size=\normalsize, series=\normalfont}
\setbeamerfont{bibliography entry title}{size=\normalsize, series=\bfseries}
\setbeamerfont{bibliography entry location}{size=\normalsize, series=\normalfont}
\setbeamerfont{bibliography entry note}{size=\small, series=\normalfont}
\setbeamerfont{standout}{size=\Large, series=\bfseries} \setbeamerfont{standout}{size=\Large, series=\bfseries}
% \end{macrocode} % \end{macrocode}
% %
@ -76,8 +78,8 @@
\let\moloch@titleformat\lowercase% \let\moloch@titleformat\lowercase%
\setbeamerfont{title}{shape=\scshape}% \setbeamerfont{title}{shape=\scshape}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat title=allsmallcaps can Be aware that titleformat title=allsmallcaps can lead to problems%
lead to problems} }
}, },
allcaps/.code={% allcaps/.code={%
\let\moloch@titleformat\uppercase% \let\moloch@titleformat\uppercase%
@ -105,18 +107,18 @@
\setbeamerfont{subtitle}{shape=\scshape}% \setbeamerfont{subtitle}{shape=\scshape}%
}, },
allsmallcaps/.code={% allsmallcaps/.code={%
\let\moloch@subtitleformat\MakeLowercase% \let\moloch@subtitleformat\lowercase%
\setbeamerfont{subtitle}{shape=\scshape}% \setbeamerfont{subtitle}{shape=\scshape}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat subtitle=allsmallcaps Be aware that titleformat subtitle=allsmallcaps can lead to problems%
can lead to problems} }
}, },
allcaps/.code={% allcaps/.code={%
\let\moloch@subtitleformat\MakeUppercase% \let\moloch@subtitleformat\uppercase%
\setbeamerfont{subtitle}{shape=\normalfont}% \setbeamerfont{subtitle}{shape=\normalfont}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat subtitle=allcaps can Be aware that titleformat subtitle=allcaps can lead to problems%
lead to problems} }
}, },
} }
% \end{macrocode} % \end{macrocode}
@ -140,15 +142,15 @@
\let\moloch@sectiontitleformat\MakeLowercase% \let\moloch@sectiontitleformat\MakeLowercase%
\setbeamerfont{section title}{shape=\scshape}% \setbeamerfont{section title}{shape=\scshape}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat section=allsmallcaps Be aware that titleformat section=allsmallcaps can lead to problems%
can lead to problems} }
}, },
allcaps/.code={% allcaps/.code={%
\let\moloch@sectiontitleformat\MakeUppercase% \let\moloch@sectiontitleformat\MakeUppercase%
\setbeamerfont{section title}{shape=\normalfont}% \setbeamerfont{section title}{shape=\normalfont}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat section=allcaps Be aware that titleformat section=allcaps can lead to problems%
can lead to problems} }
}, },
} }
% \end{macrocode} % \end{macrocode}
@ -172,8 +174,8 @@
\let\moloch@frametitleformat\MakeLowercase% \let\moloch@frametitleformat\MakeLowercase%
\setbeamerfont{frametitle}{shape=\scshape}% \setbeamerfont{frametitle}{shape=\scshape}%
\PackageNote{beamerthememoloch}{% \PackageNote{beamerthememoloch}{%
Be aware that titleformat frame=allsmallcaps Be aware that titleformat frame=allsmallcaps can lead to problems%
can lead to problems} }
}, },
allcaps/.code={% allcaps/.code={%
\let\moloch@frametitleformat\MakeUppercase% \let\moloch@frametitleformat\MakeUppercase%
@ -229,6 +231,94 @@
% \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange % \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange
% question}. % question}.
% %
% \begin{macrocode}
\patchcmd{\beamer@title}%
{\def\inserttitle{#2}}%
{\def\inserttitle{\moloch@titleformat{#2}}}%
{}%
{\PackageError{beamerfontthememoloch}{Patching title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
{\def\insertsubtitle{#2}}%
{\def\insertsubtitle{\moloch@subtitleformat{#2}}}%
{}%
{\PackageError{beamerfontthememoloch}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry}
{\def\insertsectionhead{#2}}
{\def\insertsectionhead{\moloch@sectiontitleformat{#2}}}
{}
{\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc}
\@tempswafalse
\patchcmd{\beamer@section}
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@section}
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@section}
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\noexpand\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\if@tempswa\else
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
\fi
\@tempswafalse
\patchcmd{\beamer@subsection}
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@subsection}
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\noexpand\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\if@tempswa\else
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
\fi
% \end{macrocode}
%
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
% the frame title we have to patch |\beamer@@frametitle|.
%
% \begin{macrocode}
\patchcmd{\beamer@@frametitle}{%
\gdef\insertframetitle{{%
#2%
\ifnum\beamer@autobreakcount>0
\relax{}\space%
\beamer@insertframetitlecontinuation%
\fi%
}}%
}{%
\gdef\insertframetitle{{%
\moloch@frametitleformat{#2}%
\ifnum\beamer@autobreakcount>0
\relax{}\space%
\beamer@insertframetitlecontinuation%
\fi%
}}%
}{}{%
\PackageError{beamerfontthememoloch}{Patching frame title failed}\@ehc
}
% \end{macrocode}
%
%
% %
% \subsubsection{Process package options} % \subsubsection{Process package options}
% %

View File

@ -8,13 +8,11 @@
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 % This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/). % International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
%% Copyright 2024 Johan Larsson and contributors
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*package> %<*package>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerinnerthememoloch}[2025-04-01 v1.0.1 Moloch inner theme] % x-release-please-version \ProvidesPackage{beamerinnerthememoloch}[2024-01-15 v0.1.0 Moloch inner theme] % x-release-please-version
%</package> %</package>
% \fi % \fi
% \CheckSum{0} % \CheckSum{0}
@ -23,7 +21,7 @@
%<*package> %<*package>
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% %
% \subsection{\themename Inner Theme} % \subsection{\themename inner theme}
% %
% A |beamer| inner theme dictates the style of the frame elements traditionally % A |beamer| inner theme dictates the style of the frame elements traditionally
% set in the ``body'' of each slide. These include: % set in the ``body'' of each slide. These include:
@ -38,25 +36,17 @@
% %
% %
% %
% \subsubsection{Package Dependencies} % \subsubsection{Package dependencies}
% %
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{keyval} \RequirePackage{keyval}
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{pgfopts} \RequirePackage{pgfopts}
\RequirePackage{tikz} \RequirePackage{tikz}
% \end{macrocode} % \end{macrocode}
% %
% \subsubsection{Memoization and Tikz Externalization}
% %
% See the documentation for the correspondign section under the outer theme for
% more information on the following lines.
%
% \begin{macrocode}
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
\providecommand{\mmzUnmemoizable}{}
% \end{macrocode}
% %
% \subsubsection{Options} % \subsubsection{Options}
% %
@ -67,14 +57,8 @@
/moloch/inner/sectionpage/.cd, /moloch/inner/sectionpage/.cd,
.is choice, .is choice,
none/.code=\moloch@disablesectionpage, none/.code=\moloch@disablesectionpage,
simple/.code={% simple/.code={\moloch@enablesectionpage\setbeamertemplate{section page}[simple]},
\moloch@enablesectionpage% progressbar/.code={\moloch@enablesectionpage\setbeamertemplate{section page}[progressbar]},
\setbeamertemplate{section page}[simple]%
},
progressbar/.code={%
\moloch@enablesectionpage%
\setbeamertemplate{section page}[progressbar]%
},
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -86,65 +70,8 @@
/moloch/inner/subsectionpage/.cd, /moloch/inner/subsectionpage/.cd,
.is choice, .is choice,
none/.code=\moloch@disablesubsectionpage, none/.code=\moloch@disablesubsectionpage,
simple/.code={% simple/.code={\moloch@enablesubsectionpage\setbeamertemplate{section page}[simple]},
\moloch@enablesubsectionpage% progressbar/.code={\moloch@enablesubsectionpage\setbeamertemplate{section page}[progressbar]},
\setbeamertemplate{section page}[simple]%
},
progressbar/.code={%
\moloch@enablesubsectionpage%
\setbeamertemplate{section page}[progressbar]%
},
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{standoutnumbering}
% Whether or not to number standout pages. Option |none| means that
% standout pages are not numbered (do not count as frames). |hide| means
% that they do count as frames, but that the footer with the number is
% not shown. Option |show| means that they both count as frames and
% that the footer with a frame count is shown.
% \begin{macrocode}
\providebool{moloch@enableStandoutFooter}
\providebool{moloch@enableStandoutNumbering}
\pgfkeys{
/moloch/inner/standoutnumbering/.cd,
.is choice,
none/.code={
\boolfalse{moloch@enableStandoutNumbering}
\boolfalse{moloch@enableStandoutFooter}
},
show/.code={
\booltrue{moloch@enableStandoutNumbering}
\booltrue{moloch@enableStandoutFooter}
},
hide/.code={
\booltrue{moloch@enableStandoutNumbering}
\boolfalse{moloch@enableStandoutFooter}
}
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{titleseparator linewidth}
% Set the width of the line separating the title from the author.
% \begin{macrocode}
\newlength{\moloch@titleseparator@linewidth}
\pgfkeys{
/moloch/inner/.cd,
titleseparatorlinewidth/.code={\setlength{\moloch@titleseparator@linewidth}{#1}},
titleseparatorlinewidth/.default=0.4pt,
}
% \end{macrocode}
% \end{macro}
%
%
% \begin{macro}{titleseparator aliases}
% Allows |titleseparator linewidth| to be used in |\usetheme|.
% \begin{macrocode}
\pgfkeys{
/moloch/inner/.cd,
titleseparator linewidth/.code=\pgfkeysalso{titleseparatorlinewidth=#1},
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -155,9 +82,7 @@
\newcommand{\moloch@inner@setdefaults}{ \newcommand{\moloch@inner@setdefaults}{
\pgfkeys{/moloch/inner/.cd, \pgfkeys{/moloch/inner/.cd,
sectionpage=progressbar, sectionpage=progressbar,
subsectionpage=none, subsectionpage=none
standoutnumbering=none,
titleseparator linewidth=0.4pt,
} }
} }
% \end{macrocode} % \end{macrocode}
@ -165,7 +90,7 @@
% %
% %
% %
% \subsubsection{Title Page} % \subsubsection{Title page}
% %
% \begin{macro}{title page} % \begin{macro}{title page}
% Template for the title page. Each element is only typset if it is defined % Template for the title page. Each element is only typset if it is defined
@ -173,28 +98,35 @@
% space on the title slide. % space on the title slide.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{title page}{ \setbeamertemplate{title page}{
\null% \begin{minipage}[b][\paperheight]{\textwidth}
\vspace{0pt plus 1.618fil}% \ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
\vfil% \vfill%
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi \ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi \ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi \usebeamertemplate*{title separator}
\usebeamertemplate*{title separator} % \end{macrocode}
\expandafter\ifblank\expandafter{\beamer@andstripped}{}{% %
\usebeamertemplate*{author}% % Beamer's definition of |\insertauthor| is always nonempty, so we have
} % to test another macro initialized by |\author{...}| to see if the user has
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi % defined an author. This solution was suggested by Enrico Gregorio in an
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi % answer to \href{https://tex.stackexchange.com/questions/241306/}{this
\vspace{0pt plus 1fil}% % Stack Exchange question}.
\null %
% \begin{macrocode}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\vfill
\null
\end{minipage}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro}% % \end{macro}%
% %
% Normal people should use |\maketitle| or |\titlepage| instead of using the % Normal people should use |\maketitle| or |\titlepage| instead of using the
% |title page| beamer template directly. Beamer already defines these macros, % |title page| beamer template directly. Beamer already defines these macros,
% but we patch them here to make the title page |[plain]| by default % but we patch them here to make the title page |[plain]| by default, remove
% and ensure the title frame number doesn't count. % |\@thanks|, and ensure the title frame number doesn't count.
% %
% \begin{macro}{\maketitle} % \begin{macro}{\maketitle}
% \begin{macro}{\titlepage} % \begin{macro}{\titlepage}
@ -207,20 +139,11 @@
\ifbeamer@inframe \ifbeamer@inframe
\titlepage \titlepage
\else \else
\begingroup
\renewcommand\footnoterule{}%
\frame[plain,noframenumbering]{\titlepage} \frame[plain,noframenumbering]{\titlepage}
\endgroup
\fi \fi
} }
\def\titlepage{% \def\titlepage{%
% Apply title-page specific footnote settings \usebeamertemplate{title page}
\renewcommand{\@makefntext}[1]{%
{\par\usebeamercolor[fg]{thanks}\usebeamerfont{thanks}$^{\@thefnmark}$##1\medskip}%
}
% Process the title page
\usebeamertemplate{title page}\@thanks
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -231,9 +154,11 @@
% position of other elements. % position of other elements.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{title graphic}{ \setbeamertemplate{title graphic}{
\inserttitlegraphic% \vbox to 0pt {
\par% \vspace*{2em}
\vspace*{1em} \inserttitlegraphic%
}%
\nointerlineskip%
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -243,8 +168,10 @@
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{title}{ \setbeamertemplate{title}{
\raggedright% \raggedright%
\moloch@titleformat{\inserttitle}% \linespread{1.0}%
\inserttitle%
\par% \par%
\vspace*{0.5em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -253,27 +180,27 @@
% Set the subtitle on the title page. % Set the subtitle on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{subtitle}{ \setbeamertemplate{subtitle}{
\vspace*{0.3em}
\raggedright% \raggedright%
\moloch@subtitleformat{\insertsubtitle}% \insertsubtitle%
\par% \par%
\vspace*{0.5em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \begin{macro}{title separator} % \begin{macro}{title separator}
% Template to set the title separator. % Template to set the title graphic in a zero-height box. (It won't
% change the position of other elements.)
% \begin{macrocode} % \begin{macrocode}
\newlength{\moloch@titleseparator@linewidth}
\setlength{\moloch@titleseparator@linewidth}{0.4pt}
\setbeamertemplate{title separator}{ \setbeamertemplate{title separator}{
\tikzexternaldisable% \tikzexternaldisable%
\begin{tikzpicture}[baseline=(current bounding box.north)] \begin{tikzpicture}
\mmzUnmemoizable%
\fill[fg] (0,0) rectangle (\textwidth, \moloch@titleseparator@linewidth); \fill[fg] (0,0) rectangle (\textwidth, \moloch@titleseparator@linewidth);
\useasboundingbox (0,0) rectangle (\textwidth,-\moloch@titleseparator@linewidth);
\end{tikzpicture}% \end{tikzpicture}%
\tikzexternalenable% \tikzexternalenable%
\par% \par%
\vspace*{0.8em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -282,10 +209,9 @@
% Set the author on the title page. % Set the author on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{author}{ \setbeamertemplate{author}{
\raggedright% \vspace*{2em}
\insertauthor% \insertauthor%
\par% \par%
\vspace*{0.5em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -294,9 +220,9 @@
% Set the institute on the title page. % Set the institute on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{institute}{ \setbeamertemplate{institute}{
\vspace*{0.5em}
\insertinstitute% \insertinstitute%
\par% \par%
\vspace*{1em}
} }
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
@ -306,6 +232,7 @@
% Set the date on the title page. % Set the date on the title page.
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{date}{ \setbeamertemplate{date}{
\vspace*{1.5em}
\insertdate% \insertdate%
\par% \par%
} }
@ -313,9 +240,9 @@
% \end{macro} % \end{macro}
% %
% %
% \subsubsection{Section Page} % \subsubsection{Section page}
% %
% \begin{macro}{section Page} % \begin{macro}{section page}
% %
% Template for the section title slide at the beginning of each section. % Template for the section title slide at the beginning of each section.
% %
@ -324,15 +251,13 @@
\begin{center} \begin{center}
\usebeamercolor[fg]{section title} \usebeamercolor[fg]{section title}
\usebeamerfont{section title} \usebeamerfont{section title}
\moloch@sectiontitleformat{\insertsectionhead}\par \insertsectionhead\par
\usebeamercolor[fg]{subsection title}% \ifx\insertsubsectionhead\@empty\else
\usebeamerfont{subsection title}% \usebeamercolor[fg]{subsection title}
\strut% \usebeamerfont{subsection title}
\ifx\insertsubsectionhead\@empty\else% \insertsubsectionhead
\insertsubsectionhead%
\fi \fi
\end{center} \end{center}
\vspace{\baselineskip - 1ex + \moloch@titleseparator@linewidth}
} }
\defbeamertemplate{section page}{progressbar}{ \defbeamertemplate{section page}{progressbar}{
\centering \centering
@ -340,17 +265,17 @@
\raggedright \raggedright
\usebeamercolor[fg]{section title} \usebeamercolor[fg]{section title}
\usebeamerfont{section title} \usebeamerfont{section title}
\moloch@sectiontitleformat{\insertsectionhead}\\[-0.5\baselineskip] \insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page} \usebeamertemplate*{progress bar in section page}
\par \par
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\strut%
\ifx\insertsubsectionhead\@empty\else% \ifx\insertsubsectionhead\@empty\else%
\insertsubsectionhead% \usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\insertsubsectionhead
\fi \fi
\end{minipage} \end{minipage}
\par \par
\vspace{\baselineskip}
} }
\newcommand{\moloch@disablesectionpage}{ \newcommand{\moloch@disablesectionpage}{
\AtBeginSection{ \AtBeginSection{
@ -402,29 +327,23 @@
% |progress bar in head/foot|. % |progress bar in head/foot|.
% %
% \begin{macrocode} % \begin{macrocode}
\newlength{\moloch@progressonsectionpage}
\newlength{\moloch@progressonsectionpage@linewidth}
\setlength{\moloch@progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{ \setbeamertemplate{progress bar in section page}{
\pgfmathsetlength{\moloch@progressonsectionpage}{ \pgfmathsetlength{\moloch@progressonsectionpage}{
\textwidth * min(1,\insertframenumber/\insertmainframenumber) \textwidth * min(1,\insertframenumber/\inserttotalframenumber)
}% }
\tikzexternaldisable% \tikzexternaldisable
\begin{tikzpicture}[baseline=(current bounding box.north)] \begin{tikzpicture}
\mmzUnmemoizable% \fill[bg] (0,0) rectangle (\textwidth, \moloch@progressonsectionpage@linewidth);
\fill[bg] \fill[fg] (0,0) rectangle (\moloch@progressonsectionpage, \moloch@progressonsectionpage@linewidth);
(0,0) \end{tikzpicture}
rectangle \tikzexternalenable
(\textwidth, \moloch@progressonsectionpage@linewidth);
\fill[fg]
(0,0)
rectangle
(\moloch@progressonsectionpage,
\moloch@progressonsectionpage@linewidth);
\useasboundingbox (0,0) rectangle (\textwidth,-\moloch@progressonsectionpage@linewidth);
\end{tikzpicture}%
\tikzexternalenable%
} }
% \end{macrocode} % \end{macrocode}
% %
% The code above assumes that |\insertframenumber| is less than or equal to % The above code assumes that |\insertframenumber| is less than or equal to
% |\inserttotalframenumber|. However, this is not true on the first compile; % |\inserttotalframenumber|. However, this is not true on the first compile;
% in the absence of an |.aux| file, |\inserttotalframenumber| defaults to 1. % in the absence of an |.aux| file, |\inserttotalframenumber| defaults to 1.
% This behaviour could cause fatal errors for long presentations, as % This behaviour could cause fatal errors for long presentations, as
@ -439,15 +358,12 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \subsubsection{Lists and Floats} % \subsubsection{Lists and floats}
% %
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{itemize item}[circle] \setbeamertemplate{itemize item}{\(\bullet\)}
\setbeamertemplate{itemize subitem}{\raise1.5pt\hbox{\vrule width 0.8ex height 0.8ex}} \setbeamertemplate{itemize subitem}{\(\circ\)}
\setbeamerfont{itemize subsubitem}{size=\tiny} \setbeamertemplate{itemize subsubitem}{\textbullet}
\setbeamertemplate{itemize subsubitem}{%
\usebeamerfont*{itemize subsubitem}\raise1.75pt\hbox{\donotcoloroutermaths$\blacktriangleright$}%
}
\setbeamertemplate{caption label separator}{: } \setbeamertemplate{caption label separator}{: }
\setbeamertemplate{caption}[numbered] \setbeamertemplate{caption}[numbered]
% \end{macrocode} % \end{macrocode}
@ -457,16 +373,22 @@
% \subsubsection{Footnotes} % \subsubsection{Footnotes}
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{footnote}{% \setbeamertemplate{footnote}{%
\parindent 0em\noindent\raggedright \usebeamercolor{footnote}\hbox to \parindent 0em\noindent%
0.8em{\hfil\insertfootnotemark}\insertfootnotetext%%% \raggedright
\par% \usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
} }
% \end{macrocode} % \end{macrocode}
% %
% %
% %
% \subsubsection{Text and Spacing Settings} % \subsubsection{Text and spacing settings}
% %
% \begin{macrocode}
\newlength{\moloch@parskip}
\setlength{\moloch@parskip}{0.5em}
\setlength{\parskip}{\moloch@parskip}
\linespread{1.15}
% \end{macrocode}
% %
% By default, Beamer frames offer the |c| option to \textit{almost} vertically % By default, Beamer frames offer the |c| option to \textit{almost} vertically
% center the text, but the placement is a little too high. To fix this, we % center the text, but the placement is a little too high. To fix this, we
@ -477,8 +399,8 @@
% %
% \begin{macrocode} % \begin{macrocode}
\define@key{beamerframe}{c}[true]{% centered \define@key{beamerframe}{c}[true]{% centered
\beamer@frametopskip=0pt plus 1fil\relax% \beamer@frametopskip=0pt plus 1fill\relax%
\beamer@framebottomskip=0pt plus 1fil\relax% \beamer@framebottomskip=0pt plus 1fill\relax%
\beamer@frametopskipautobreak=0pt plus .4\paperheight\relax% \beamer@frametopskipautobreak=0pt plus .4\paperheight\relax%
\beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax% \beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax%
\def\beamer@initfirstlineunskip{}% \def\beamer@initfirstlineunskip{}%
@ -487,11 +409,10 @@
% %
% %
% %
% \subsubsection{Standout Frames} % \subsubsection{Standout frames}
% %
% \themename offers a custom frame format with large, centered text and an % \themename offers a custom frame format with large, centered text and an
% inverted background. To use it, add the key |standout| to the frame: % inverted background. To use it, add the key |standout| to the frame:
%
% |\begin{frame}[standout] ... \end{frame}|. % |\begin{frame}[standout] ... \end{frame}|.
% %
% \begin{macro}{standout} % \begin{macro}{standout}
@ -507,8 +428,7 @@
\booltrue{moloch@standout} \booltrue{moloch@standout}
\begingroup \begingroup
\setkeys{beamerframe}{c} \setkeys{beamerframe}{c}
\ifbool{moloch@enableStandoutNumbering}{}{% \setkeys{beamerframe}{noframenumbering}
\setkeys{beamerframe}{noframenumbering}}
\ifbeamercolorempty[bg]{palette primary}{ \ifbeamercolorempty[bg]{palette primary}{
\setbeamercolor{background canvas}{ \setbeamercolor{background canvas}{
use=palette primary, use=palette primary,
@ -524,11 +444,6 @@
fg=palette primary.fg fg=palette primary.fg
} }
\usebeamercolor[fg]{palette primary} \usebeamercolor[fg]{palette primary}
\setbeamercolor{page number in head/foot}{
use=palette primary,
fg=palette primary.fg
}
\ifbool{moloch@enableStandoutFooter}{}{\setbeamertemplate{footline}{}}
} }
% \end{macrocode} % \end{macrocode}
% %
@ -562,7 +477,7 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \subsubsection{Process Package Options} % \subsubsection{Process package options}
% %
% \begin{macrocode} % \begin{macrocode}
\moloch@inner@setdefaults \moloch@inner@setdefaults

View File

@ -8,13 +8,11 @@
% %
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 % This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
% International License (https://creativecommons.org/licenses/by-sa/4.0/). % International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
%% Copyright 2024 Johan Larsson and contributors
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% \iffalse % \iffalse
%<*package> %<*package>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerouterthememoloch}[2025-04-01 v1.0.1 Moloch outer theme] % x-release-please-version \ProvidesPackage{beamerouterthememoloch}[2024-01-15 v0.1.0 Moloch outer theme] % x-release-please-version
%</package> %</package>
% \fi % \fi
% \CheckSum{0} % \CheckSum{0}
@ -33,28 +31,28 @@
% \subsubsection{Package dependencies} % \subsubsection{Package dependencies}
% %
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{calc} \RequirePackage{calc}
\RequirePackage{pgfopts} \RequirePackage{pgfopts}
% \end{macrocode} % \end{macrocode}
% %
% %
% \subsubsection{Memoization and Tikz Externalization}
%
% To avoid generating externalized figures of the progressbar we have to disable
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
% ``external'' library is not loaded we would get undefined control sequence
% problems, hence we define them as no-ops if they are not defined yet.
% We do the same for the ``mmzUnmemoizable'' command from the memoize package, in
% order to avoid memoization of the progress bars.
%
% \begin{macrocode}
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
\providecommand{\mmzUnmemoizable}{}
% \end{macrocode}
% %
% \subsubsection{Options} % \subsubsection{Options}
% %
% \begin{macro}{numbering}
% Adds slide numbers to the bottom right of each slide.
% \begin{macrocode}
\pgfkeys{
/moloch/outer/numbering/.cd,
.is choice,
none/.code=\setbeamertemplate{frame numbering}[none],
counter/.code=\setbeamertemplate{frame numbering}[counter],
fraction/.code=\setbeamertemplate{frame numbering}[fraction],
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{progressbar} % \begin{macro}{progressbar}
% Adds a progress bar to the top, bottom, or frametitle of each slide. % Adds a progress bar to the top, bottom, or frametitle of each slide.
% \begin{macrocode} % \begin{macrocode}
@ -85,64 +83,19 @@
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
% \begin{macro}{progressbar linewidth}
% Sets the linewidth of the progress bar for sectionpages and frames.
% \begin{macrocode}
\newlength{\moloch@progressonsectionpage}
\newlength{\moloch@progressonsectionpage@linewidth}
\newlength{\moloch@progressinheadfoot}
\newlength{\moloch@progressinheadfoot@linewidth}
\pgfkeys{
/moloch/outer/.cd,
progressbarlinewidth/.code={
\setlength{\moloch@progressonsectionpage@linewidth}{#1}
\setlength{\moloch@progressinheadfoot@linewidth}{#1}
},
progressbarlinewidth/.default=0.4pt,
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{progressbar aliases}
% Allows |progressbar linewidth| to be used in |\molochset|.
% \begin{macrocode}
\pgfkeys{
/moloch/outer/.cd,
progressbar linewidth/.code=\pgfkeysalso{progressbarlinewidth=#1},
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\moloch@outer@setdefaults} % \begin{macro}{\moloch@outer@setdefaults}
% Sets default values for outer theme options. % Sets default values for outer theme options.
% \begin{macrocode} % \begin{macrocode}
\newcommand{\moloch@outer@setdefaults}{ \newcommand{\moloch@outer@setdefaults}{
\pgfkeys{/moloch/outer/.cd, \pgfkeys{/moloch/outer/.cd,
numbering=counter,
progressbar=none, progressbar=none,
progressbar linewidth=0.4pt,
} }
} }
% \end{macrocode}% % \end{macrocode}%
% \end{macro} % \end{macro}
% %
% \subsubsection{Slide Numbering}
% %
% Moloch defaults to numbering frames. To modify this, simply copy this line to your
% preamble and replace |appendixframenumber|.
%
% \begin{macrocode}
\setbeamertemplate{page number in head/foot}[appendixframenumber]
% \end{macrocode}
%
% \subsubsection{Notes Page Numbering}
%
% Moloch defaults to numbering notes pages in a format compatible with Pympress.
% This means that presentations using |show notes| (i.e., notes on every other
% slide) work by default.
%
% \begin{macrocode}
\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}
% \end{macrocode}
% %
% \subsubsection{Head and footline} % \subsubsection{Head and footline}
% %
@ -153,6 +106,22 @@
\setbeamertemplate{navigation symbols}{} \setbeamertemplate{navigation symbols}{}
% \end{macrocode} % \end{macrocode}
% %
% \begin{macro}{frame numbering}
% Templates for the frame number. Can be omitted, shown or displayed as a
% fraction of the total frames.
% \begin{macrocode}
\defbeamertemplate{frame footer}{none}{}
\defbeamertemplate{frame footer}{custom}[1]{ #1 }
% \end{macrocode}
%
% \begin{macrocode}
\defbeamertemplate{frame numbering}{none}{}
\defbeamertemplate{frame numbering}{counter}{\insertframenumber}
\defbeamertemplate{frame numbering}{fraction}{
\insertframenumber/\inserttotalframenumber
}
% \end{macrocode}
% \end{macro}
% %
% \begin{macro}{headline} % \begin{macro}{headline}
% \begin{macro}{footline} % \begin{macro}{footline}
@ -160,16 +129,11 @@
% \begin{macrocode} % \begin{macrocode}
\defbeamertemplate{headline}{plain}{} \defbeamertemplate{headline}{plain}{}
\defbeamertemplate{footline}{plain}{% \defbeamertemplate{footline}{plain}{%
\begin{beamercolorbox}[ \begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
leftskip=4pt,%
rightskip=5pt,%
wd=\textwidth,%
]{footline}%
\usebeamercolor[fg]{page number in head/foot}%
\usebeamerfont{page number in head/foot}% \usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}% \usebeamertemplate*{frame footer}
\hfill% \hfill%
\usebeamertemplate*{page number in head/foot}\vskip4pt% \usebeamertemplate*{frame numbering}
\end{beamercolorbox}% \end{beamercolorbox}%
} }
% \end{macrocode} % \end{macrocode}
@ -186,46 +150,34 @@
% \begin{macrocode} % \begin{macrocode}
\newlength{\moloch@frametitle@padding} \newlength{\moloch@frametitle@padding}
\setlength{\moloch@frametitle@padding}{2.2ex} \setlength{\moloch@frametitle@padding}{2.2ex}
\newcommand{\moloch@frametitlestrut@start}{% \newcommand{\moloch@frametitlestrut@start}{
\rule{0pt}{\moloch@frametitle@padding +% \rule{0pt}{\moloch@frametitle@padding +%
\totalheightof{% \totalheightof{%
\ifcsdef{moloch@frametitleformat}{\moloch@frametitleformat X}{X}% \ifcsdef{moloch@frametitleformat}{\moloch@frametitleformat X}{X}%
}% }%
}% }%
} }
\newcommand{\moloch@frametitlestrut@end}{
\newcommand{\moloch@frametitlestrut@end}{% \rule[-\moloch@frametitle@padding]{0pt}{\moloch@frametitle@padding}
\vphantom{%
\rule[-\moloch@frametitle@padding]{0pt}{\moloch@frametitle@padding}%
}
} }
\defbeamertemplate{frametitle}{plain}{% \defbeamertemplate{frametitle}{plain}{%
\nointerlineskip% \nointerlineskip%
\begin{beamercolorbox}[% \begin{beamercolorbox}[%
wd=\paperwidth,% wd=\paperwidth,%
leftskip=1.6ex,% sep=0pt,%
rightskip=\the\glueexpr 1.6ex plus 1fil\relax,% leftskip=\moloch@frametitle@padding,%
rightskip=\the\glueexpr \moloch@frametitle@padding plus 1fill\relax,%
]{frametitle}% ]{frametitle}%
\usebeamerfont{frametitle}%
\moloch@frametitlestrut@start% \moloch@frametitlestrut@start%
\moloch@frametitleformat{\insertframetitle}% \insertframetitle%
{% \nolinebreak%
\ifx\insertframesubtitle\@empty%
\else%
{%
\par%
\usebeamerfont{framesubtitle}%
\vspace{-0.8ex}%
\usebeamercolor[fg]{framesubtitle}%
\insertframesubtitle%
}%
\fi
}%
\moloch@frametitlestrut@end% \moloch@frametitlestrut@end%
\end{beamercolorbox}% \end{beamercolorbox}%
} }
\setbeamertemplate{frametitle continuation}{% \setbeamertemplate{frametitle continuation}{%
\romannumeral\insertcontinuationcount} \usebeamerfont{frametitle}
\romannumeral \insertcontinuationcount
}
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% %
@ -234,25 +186,19 @@
% on each page. Much of this code is duplicated in the inner theme's % on each page. Much of this code is duplicated in the inner theme's
% template |progress bar in section page|. % template |progress bar in section page|.
% \begin{macrocode} % \begin{macrocode}
\newlength{\moloch@progressinheadfoot}
\newlength{\moloch@progressinheadfoot@linewidth}
\setlength{\moloch@progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar in head/foot}{ \setbeamertemplate{progress bar in head/foot}{
\nointerlineskip% \nointerlineskip
\pgfmathsetlength{\moloch@progressinheadfoot}{% \pgfmathsetlength{\moloch@progressinheadfoot}{\paperwidth * min(1,\insertframenumber/\inserttotalframenumber)}
\paperwidth * min(1,\insertframenumber/\inserttotalframenumber)%
}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot} \begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\tikzexternaldisable% \tikzexternaldisable
\begin{tikzpicture} \begin{tikzpicture}
\mmzUnmemoizable% \fill[bg] (0,0) rectangle (\paperwidth, \moloch@progressinheadfoot@linewidth);
\fill[bg] \fill[fg] (0,0) rectangle (\moloch@progressinheadfoot, \moloch@progressinheadfoot@linewidth);
(0,0)
rectangle
(\paperwidth, \moloch@progressinheadfoot@linewidth);
\fill[fg]
(0,0)
rectangle
(\moloch@progressinheadfoot, \moloch@progressinheadfoot@linewidth);
\end{tikzpicture} \end{tikzpicture}
\tikzexternalenable% \tikzexternalenable
\end{beamercolorbox} \end{beamercolorbox}
} }
% \end{macrocode} % \end{macrocode}

View File

@ -12,7 +12,7 @@
% \iffalse % \iffalse
%<*package> %<*package>
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamerthememoloch}[2025-04-01 v1.0.1 Moloch theme] % x-release-please-version \ProvidesPackage{beamerthememoloch}[2024-01-15 v0.1.0 Moloch Beamer theme] % x-release-please-version
%</package> %</package>
% \fi % \fi
% \CheckSum{0} % \CheckSum{0}
@ -21,7 +21,7 @@
%<*package> %<*package>
% ------------------------------------------------------------------------- \fi % ------------------------------------------------------------------------- \fi
% %
% \subsection{\themename Parent Theme} % \subsection{\themename parent theme}
% %
% The primary job of this package is to load the component sub-packages of the % The primary job of this package is to load the component sub-packages of the
% \themename theme and route the theme options accordingly. It also % \themename theme and route the theme options accordingly. It also
@ -29,9 +29,10 @@
% %
% %
% %
% \subsubsection{Package Dependencies} % \subsubsection{Package dependencies}
% %
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{etoolbox}
\RequirePackage{pgfopts} \RequirePackage{pgfopts}
% \end{macrocode} % \end{macrocode}
% %
@ -69,10 +70,16 @@
allsmallcaps/.code={% allsmallcaps/.code={%
\let\moloch@plaintitleformat\MakeLowercase% \let\moloch@plaintitleformat\MakeLowercase%
\setbeamerfont{standout}{shape=\scshape}% \setbeamerfont{standout}{shape=\scshape}%
\PackageNote{beamerthememoloch}{%
Be aware that titleformat plain=allsmallcaps can lead to problems%
}
}, },
allcaps/.code={% allcaps/.code={%
\let\moloch@plaintitleformat\MakeUppercase% \let\moloch@plaintitleformat\MakeUppercase%
\setbeamerfont{standout}{shape=\normalfont}% \setbeamerfont{standout}{shape=\normalfont}%
\PackageNote{beamerthememoloch}{%
Be aware that titleformat plain=allcaps can lead to problems%
}
}, },
} }
% \end{macrocode} % \end{macrocode}
@ -104,7 +111,17 @@
} }
% \end{macrocode} % \end{macrocode}
% %
% \subsubsection{Component Sub-Packages} % To avoid generating externalized figures of the progressbar we have to disable
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
% ``external'' libray is not loaded we would get undefined control sequence
% problems, hence we define them as no-ops if they are not defined yet.
%
% \begin{macrocode}
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
% \end{macrocode}
%
% \subsubsection{Component sub-packages}
% %
% Having processed the options, we can now load the component sub-packages of % Having processed the options, we can now load the component sub-packages of
% the theme. % the theme.
@ -116,7 +133,7 @@
\usefonttheme{moloch} \usefonttheme{moloch}
% \end{macrocode} % \end{macrocode}
% %
% \subsubsection{Custom Commands} % \subsubsection{Custom commands}
% %
% The parent theme defines custom commands as their proper usage may depend % The parent theme defines custom commands as their proper usage may depend
% on multiple sub-packages. % on multiple sub-packages.
@ -137,7 +154,7 @@
% %
% %
% %
% \subsubsection{Process Package Options} % \subsubsection{Process package options}
% %
% \begin{macrocode} % \begin{macrocode}
\moloch@setdefaults \moloch@setdefaults

View File

@ -25,9 +25,5 @@
\generate{\file{beamerouterthememoloch.sty}{\from{beamerouterthememoloch.dtx}{package}}} \generate{\file{beamerouterthememoloch.sty}{\from{beamerouterthememoloch.dtx}{package}}}
\generate{\file{beamerfontthememoloch.sty}{\from{beamerfontthememoloch.dtx}{package}}} \generate{\file{beamerfontthememoloch.sty}{\from{beamerfontthememoloch.dtx}{package}}}
\generate{\file{beamercolorthememoloch.sty}{\from{beamercolorthememoloch.dtx}{package}}} \generate{\file{beamercolorthememoloch.sty}{\from{beamercolorthememoloch.dtx}{package}}}
\generate{\file{beamercolorthememoloch-tomorrow.sty}{%
\from{beamercolorthememoloch-tomorrow.dtx}{package}}}
\generate{\file{beamercolorthememoloch-highcontrast.sty}{%
\from{beamercolorthememoloch-highcontrast.dtx}{package}}}
\endbatchfile \endbatchfile

View File

@ -1,4 +0,0 @@
\documentclass[hyperref={draft}]{beamer}
\usetheme{moloch}
\usepackage{lmodern}
\input{sectionpages}

View File

@ -1,45 +0,0 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
[2
]
LaTeX Font Info: Trying to load font information for OML+lmm on input line ....
LaTeX Font Info: Trying to load font information for OMS+lmsy on input line ....
LaTeX Font Info: Trying to load font information for OMX+lmex on input line ....
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <10.95> on input line ....
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <8> on input line ....
LaTeX Font Info: External font `lmex10' loaded for size
(Font) <6> on input line ....
LaTeX Font Info: Trying to load font information for U+msa on input line ....
LaTeX Font Info: Trying to load font information for U+msb on input line ....
LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <10.95> not available
(Font) Font shape `OT1/lmss/m/sl' tried instead on input line ....
LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <8> not available
(Font) Font shape `OT1/lmss/m/sl' tried instead on input line ....
LaTeX Font Info: Font shape `OT1/lmss/m/it' in size <6> not available
(Font) Font shape `OT1/lmss/m/sl' tried instead on input line ....
[3
]
[4
]
[5
]
[6
]
[7
]
[8
]
[9
]
[10
]
[11
]
[12
]
\tf@nav=\write...
\tf@toc=\write...
\tf@snm=\write...
(sectionpages.aux)

View File

@ -1,10 +0,0 @@
\documentclass[hyperref={draft}]{beamer}
\useoutertheme{moloch}
\useinnertheme{moloch}
\usefonttheme{moloch}
\usecolortheme{moloch}
\usepackage{lmodern}
\input{separationexample}

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +0,0 @@
\documentclass[hyperref={draft}]{beamer}
\usetheme{moloch}
\usepackage{lmodern}
\input{standoutnumbering}

View File

@ -1,600 +0,0 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
Completed box being shipped out [1]
\vbox(200.87663+0.0)x263.47263
.\hbox(0.0+0.0)x0.0
.\hbox(0.0+0.0)x0.0
..\kern -72.26999
..\vbox(0.0+0.0)x0.0, glue set 72.26999fil
...\kern -72.26999
...\hbox(0.0+0.0)x0.0
....\hbox(0.0+0.0)x0.0, glue set 72.26999fil, shifted 72.26999
.....\kern -72.26999
.....\glue 0.0 plus 1.0fil minus 1.0fil
....\glue 0.0 plus 1.0fil minus 1.0fil
...\glue 0.0 plus 1.0fil minus 1.0fil
.\vbox(0.0+0.0)x0.0, glue set 73.27373fil
..\kern 0.0
..\kern -72.26999
..\kern -1.00374
..\hbox(0.0+0.0)x0.0, glue set 44.82098fil
...\kern 0.0
...\kern -43.81725
...\kern -1.00374
...\glue 0.0 plus 1.0fil minus 1.0fil
..\glue 0.0 plus 1.0fil minus 1.0fil
.\glue(\lineskip) 0.0
.\vbox(200.87663+0.0)x263.47263
..\glue -72.26999
..\vbox(273.14662+0.0)x307.28987, shifted -43.81725
...\vbox(0.0+0.0)x307.28987
....\glue 0.0 plus 1.0fil
....\hbox(0.0+0.0)x307.28987
.....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.....\hbox(0.0+0.0)x307.28987
......\vbox(0.0+0.0)x307.28987
.......\hbox(0.0+0.0)x-28.45274
........\glue -28.45274
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x364.19536, shifted 273.14662
..........\hbox(273.14662+0.0)x364.19536
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\rule(273.14662+*)x364.19536
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
........\hbox(0.0+0.0)x0.0
.........\hbox(0.0+0.0)x0.0
..........\hbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x-56.90549
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x-28.45274, shifted 273.14662
..........\hbox(273.14662+0.0)x-28.45274
...........\glue -28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x335.74261, shifted 273.14662
..........\hbox(273.14662+0.0)x335.74261
...........\glue 307.28987
...........\glue 28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(273.14662+0.0)x0.0, glue set 264.14662fill
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\glue 0.0 plus 1.0fill
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.10294 0.16177 0.17352 rg 0.10294 0.16177 0.17352 RG}
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\glue 2.0
............\glue(\baselineskip) 5.0
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\pdfcolorstack 0 push {0.6429 0.67427 0.68054 rg 0.6429 0.67427 0.68054 RG}
.............\pdfcolorstack 0 pop
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 2.0
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x-56.90549
.........\glue -28.45274
.........\hbox(0.0+0.0)x0.0
..........\vbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.........\glue -28.45274
........\glue 0.0 plus 1.0fil
.......\glue(\parskip) 0.0
.......\glue(\parskip) 0.0
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x307.28987, glue set 307.28987fil
........\hbox(0.0+0.0)x0.0
........\penalty 10000
........\glue(\parfillskip) 0.0 plus 1.0fil
........\glue(\rightskip) 0.0
.....\pdfcolorstack 0 pop
...\glue 0.0
...\glue(\lineskip) 0.0
...\vbox(269.14662+0.0)x307.28987
....\pdfcolorstack 0 push {0 g 0 G}
....\write-{}
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\pdfcolorstack 0 push {0.98 g 0.98 G}
....\glue(\topskip) 0.0
....\vbox(269.14662+0.0)x307.28987, glue set 124.81012fil
.....\penalty 10000
.....\vbox(0.0+0.0)x0.0
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0 plus 1.0fil
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0
.....\vbox(0.0+0.0)x0.0
.....\glue(\parskip) 0.0
.....\glue(\parskip) 0.0
.....\glue(\baselineskip) 7.99992
.....\hbox(10.00008+1.5264)x307.28987, glue set 111.68523fil
......\glue(\leftskip) 0.0 plus 1.0fil
......\hbox(0.0+0.0)x0.0
......\OT1/lmss/bx/n/14.4 H
......\OT1/lmss/bx/n/14.4 e
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 o
......\OT1/lmss/bx/n/14.4 ,
......\glue 5.28 plus 3.29997 minus 1.40799
......\OT1/lmss/bx/n/14.4 w
......\kern-0.44
......\OT1/lmss/bx/n/14.4 o
......\kern-0.44
......\OT1/lmss/bx/n/14.4 r
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 d
......\OT1/lmss/bx/n/14.4 !
......\penalty 10000
......\glue(\parfillskip) 0.0
......\glue(\rightskip) 0.0 plus 1.0fil
.....\glue 0.0 plus 1.0fil
....\write1{\@writefile{nav}{\protect \headcommand {\protect \slideentry {0}{0}{1}{1/1}{}{0}}}}
....\write1{\@writefile{nav}{\protect \headcommand {\protect \beamer@framepages {1}{1}}}}
....\glue 0.0 plus 1.0fil
....\glue 0.0
...\glue(\baselineskip) 4.0
...\hbox(0.0+0.0)x307.28987
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\hbox(0.0+0.0)x307.28987, glue set 307.28987fil
.....\vbox(0.0+0.0)x0.0
......\hbox(0.0+0.0)x-56.90549
.......\hbox(0.0+0.0)x-56.90549
........\glue -28.45274
........\hbox(0.0+0.0)x0.0
.........\vbox(0.0+0.0)x0.0
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\pdfcolorstack 0 pop
..........\pdfcolorstack 0 pop
........\glue -28.45274
.......\glue 0.0 plus 1.0fil
.......\glue 0.0 plus 1.0fil
......\glue(\lineskip) 0.0
......\hbox(0.0+0.0)x0.0
.....\glue 0.0 plus 1.0fil
....\pdfcolorstack 0 pop
.\kern 0.0
.\kern 0.0
Completed box being shipped out [2]
\vbox(200.87663+0.0)x263.47263
.\hbox(0.0+0.0)x0.0
..\kern -72.26999
..\vbox(0.0+0.0)x0.0, glue set 72.26999fil
...\kern -72.26999
...\hbox(0.0+0.0)x0.0
....\hbox(0.0+0.0)x0.0, glue set 72.26999fil, shifted 72.26999
.....\kern -72.26999
.....\glue 0.0 plus 1.0fil minus 1.0fil
....\glue 0.0 plus 1.0fil minus 1.0fil
...\glue 0.0 plus 1.0fil minus 1.0fil
.\vbox(0.0+0.0)x0.0, glue set 73.27373fil
..\kern 0.0
..\kern -72.26999
..\kern -1.00374
..\hbox(0.0+0.0)x0.0, glue set 44.82098fil
...\kern 0.0
...\kern -43.81725
...\kern -1.00374
...\glue 0.0 plus 1.0fil minus 1.0fil
..\glue 0.0 plus 1.0fil minus 1.0fil
.\glue(\lineskip) 0.0
.\vbox(200.87663+0.0)x263.47263
..\glue -72.26999
..\vbox(273.14662+0.0)x307.28987, shifted -43.81725
...\vbox(0.0+0.0)x307.28987
....\glue 0.0 plus 1.0fil
....\hbox(0.0+0.0)x307.28987
.....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.....\hbox(0.0+0.0)x307.28987
......\vbox(0.0+0.0)x307.28987
.......\hbox(0.0+0.0)x-28.45274
........\glue -28.45274
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x364.19536, shifted 273.14662
..........\hbox(273.14662+0.0)x364.19536
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\rule(273.14662+*)x364.19536
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
........\hbox(0.0+0.0)x0.0
.........\hbox(0.0+0.0)x0.0
..........\hbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x-56.90549
........\hbox(0.0+0.0)x0.0
.........\hbox(265.20912+0.0)x-28.45274, shifted 265.20912
..........\hbox(265.20912+0.0)x-28.45274
...........\glue -28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(265.20912+0.0)x0.0, glue set 265.20912fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(265.20912+0.0)x0.0, glue set 265.20912fil
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x0.0
.........\hbox(265.20912+0.0)x335.74261, shifted 265.20912
..........\hbox(265.20912+0.0)x335.74261
...........\glue 307.28987
...........\glue 28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(265.20912+0.0)x0.0, glue set 265.20912fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(265.20912+0.0)x0.0, glue set 256.20912fill
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\glue 0.0 plus 1.0fill
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.10294 0.16177 0.17352 rg 0.10294 0.16177 0.17352 RG}
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\glue 2.0
............\glue(\baselineskip) 5.0
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\pdfcolorstack 0 push {0.6429 0.67427 0.68054 rg 0.6429 0.67427 0.68054 RG}
.............\pdfcolorstack 0 pop
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 2.0
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x-56.90549
.........\glue -28.45274
.........\hbox(0.0+0.0)x0.0
..........\vbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.........\glue -28.45274
........\glue 0.0 plus 1.0fil
.......\glue(\parskip) 0.0
.......\glue(\parskip) 0.0
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x307.28987, glue set 307.28987fil
........\hbox(0.0+0.0)x0.0
........\penalty 10000
........\glue(\parfillskip) 0.0 plus 1.0fil
........\glue(\rightskip) 0.0
.....\pdfcolorstack 0 pop
...\glue 0.0
...\glue(\lineskip) 0.0
...\vbox(261.20912+0.0)x307.28987
....\write-{}
....\pdfcolorstack 0 pop
....\pdfcolorstack 0 push {0.98 g 0.98 G}
....\glue(\topskip) 0.0
....\vbox(261.20912+0.0)x307.28987, glue set 120.84137fil
.....\penalty 10000
.....\vbox(0.0+0.0)x0.0
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0 plus 1.0fil
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0
.....\vbox(0.0+0.0)x0.0
.....\glue(\parskip) 0.0
.....\glue(\parskip) 0.0
.....\glue(\baselineskip) 7.99992
.....\hbox(10.00008+1.5264)x307.28987, glue set 111.68523fil
......\glue(\leftskip) 0.0 plus 1.0fil
......\hbox(0.0+0.0)x0.0
......\OT1/lmss/bx/n/14.4 H
......\OT1/lmss/bx/n/14.4 e
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 o
......\OT1/lmss/bx/n/14.4 ,
......\glue 5.28 plus 3.29997 minus 1.40799
......\OT1/lmss/bx/n/14.4 w
......\kern-0.44
......\OT1/lmss/bx/n/14.4 o
......\kern-0.44
......\OT1/lmss/bx/n/14.4 r
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 d
......\OT1/lmss/bx/n/14.4 !
......\penalty 10000
......\glue(\parfillskip) 0.0
......\glue(\rightskip) 0.0 plus 1.0fil
.....\glue 0.0 plus 1.0fil
....\write1{\@writefile{nav}{\protect \headcommand {\protect \slideentry {0}{0}{2}{2/2}{}{0}}}}
....\write1{\@writefile{nav}{\protect \headcommand {\protect \beamer@framepages {2}{2}}}}
....\glue 0.0 plus 1.0fil
....\glue 0.0
...\glue(\baselineskip) 4.0
...\hbox(7.9375+0.0)x307.28987
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\hbox(7.9375+0.0)x307.28987
.....\vbox(7.9375+0.0)x307.28987
......\hbox(7.9375+0.0)x307.28987
.......\hbox(7.9375+0.0)x307.28987
........\glue -28.45274
........\hbox(7.9375+0.0)x364.19536
.........\vbox(7.9375+0.0)x364.19536
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\hbox(7.9375+0.0)x364.19536
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\vbox(7.9375+0.0)x364.19536
............\hbox(3.9375+0.0)x364.19536, glue set 345.63286fill
.............\glue(\leftskip) 4.0
.............\hbox(0.0+0.0)x0.0
.............\pdfcolorstack 0 push {0.98 g 0.98 G}
.............\pdfcolorstack 0 push {0.98 g 0.98 G}
.............\pdfcolorstack 0 pop
.............\glue 0.0 plus 1.0fill
.............\pdfcolorstack 0 push {0.98 g 0.98 G}
.............\hbox(3.9375+0.0)x9.5625, glue set 6.375fil
..............\glue 0.0 plus 1.0fil minus 1.0fil
..............\OT1/lmss/m/n/6 1
.............\pdfcolorstack 0 pop
.............\penalty 10000
.............\glue(\parfillskip) 0.0 plus 1.0fil
.............\glue(\rightskip) 5.0
............\glue 4.0
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
..........\pdfcolorstack 0 pop
..........\pdfcolorstack 0 pop
........\glue -28.45274
.......\glue 0.0 plus 1.0fil
.......\glue 0.0 plus 1.0fil
......\glue(\lineskip) 0.0
......\hbox(0.0+0.0)x0.0
.....\glue 0.0 plus 1.0fil
....\pdfcolorstack 0 pop
.\kern 0.0
Completed box being shipped out [3]
\vbox(200.87663+0.0)x263.47263
.\hbox(0.0+0.0)x0.0
..\kern -72.26999
..\vbox(0.0+0.0)x0.0, glue set 72.26999fil
...\kern -72.26999
...\hbox(0.0+0.0)x0.0
....\hbox(0.0+0.0)x0.0, glue set 72.26999fil, shifted 72.26999
.....\kern -72.26999
.....\glue 0.0 plus 1.0fil minus 1.0fil
....\glue 0.0 plus 1.0fil minus 1.0fil
...\glue 0.0 plus 1.0fil minus 1.0fil
.\vbox(0.0+0.0)x0.0, glue set 73.27373fil
..\kern 0.0
..\kern -72.26999
..\kern -1.00374
..\hbox(0.0+0.0)x0.0, glue set 44.82098fil
...\kern 0.0
...\kern -43.81725
...\kern -1.00374
...\glue 0.0 plus 1.0fil minus 1.0fil
..\glue 0.0 plus 1.0fil minus 1.0fil
.\glue(\lineskip) 0.0
.\vbox(200.87663+0.0)x263.47263
..\glue -72.26999
..\vbox(273.14662+0.0)x307.28987, shifted -43.81725
...\vbox(0.0+0.0)x307.28987
....\glue 0.0 plus 1.0fil
....\hbox(0.0+0.0)x307.28987
.....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.....\hbox(0.0+0.0)x307.28987
......\vbox(0.0+0.0)x307.28987
.......\hbox(0.0+0.0)x-28.45274
........\glue -28.45274
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x364.19536, shifted 273.14662
..........\hbox(273.14662+0.0)x364.19536
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\rule(273.14662+*)x364.19536
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
........\hbox(0.0+0.0)x0.0
.........\hbox(0.0+0.0)x0.0
..........\hbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x-56.90549
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x-28.45274, shifted 273.14662
..........\hbox(273.14662+0.0)x-28.45274
...........\glue -28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x0.0
.........\hbox(273.14662+0.0)x335.74261, shifted 273.14662
..........\hbox(273.14662+0.0)x335.74261
...........\glue 307.28987
...........\glue 28.45274
...........\hbox(0.0+0.0)x0.0
............\vbox(273.14662+0.0)x0.0, glue set 273.14662fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\glue 0.0 plus 1.0fil minus 1.0fil
............\pdfcolorstack 0 pop
...........\vbox(273.14662+0.0)x0.0, glue set 264.14662fill
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
............\glue 0.0 plus 1.0fill
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.10294 0.16177 0.17352 rg 0.10294 0.16177 0.17352 RG}
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\glue 2.0
............\glue(\baselineskip) 5.0
............\hbox(0.0+0.0)x0.0, glue set - 2.84544fil
.............\glue 0.0 plus 1.0fil minus 1.0fil
.............\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
.............\pdfcolorstack 0 push {0.6429 0.67427 0.68054 rg 0.6429 0.67427 0.68054 RG}
.............\pdfcolorstack 0 pop
.............\pdfcolorstack 0 pop
.............\glue 2.84544
............\pdfcolorstack 0 pop
............\pdfcolorstack 0 pop
............\glue 2.0
............\glue 0.0 plus 1.0fil
........\hbox(0.0+0.0)x-56.90549
.........\glue -28.45274
.........\hbox(0.0+0.0)x0.0
..........\vbox(0.0+0.0)x0.0
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
...........\pdfcolorstack 0 pop
...........\pdfcolorstack 0 pop
.........\glue -28.45274
........\glue 0.0 plus 1.0fil
.......\glue(\parskip) 0.0
.......\glue(\parskip) 0.0
.......\glue(\baselineskip) 0.0
.......\hbox(0.0+0.0)x307.28987, glue set 307.28987fil
........\hbox(0.0+0.0)x0.0
........\penalty 10000
........\glue(\parfillskip) 0.0 plus 1.0fil
........\glue(\rightskip) 0.0
.....\pdfcolorstack 0 pop
...\glue 0.0
...\glue(\lineskip) 0.0
...\vbox(269.14662+0.0)x307.28987
....\write-{}
....\pdfcolorstack 0 pop
....\pdfcolorstack 0 push {0.98 g 0.98 G}
....\glue(\topskip) 0.0
....\vbox(269.14662+0.0)x307.28987, glue set 124.81012fil
.....\penalty 10000
.....\vbox(0.0+0.0)x0.0
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0 plus 1.0fil
.....\penalty 10000
.....\penalty 10000
.....\glue 0.0
.....\vbox(0.0+0.0)x0.0
.....\glue(\parskip) 0.0
.....\glue(\parskip) 0.0
.....\glue(\baselineskip) 7.99992
.....\hbox(10.00008+1.5264)x307.28987, glue set 111.68523fil
......\glue(\leftskip) 0.0 plus 1.0fil
......\hbox(0.0+0.0)x0.0
......\OT1/lmss/bx/n/14.4 H
......\OT1/lmss/bx/n/14.4 e
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 o
......\OT1/lmss/bx/n/14.4 ,
......\glue 5.28 plus 3.29997 minus 1.40799
......\OT1/lmss/bx/n/14.4 w
......\kern-0.44
......\OT1/lmss/bx/n/14.4 o
......\kern-0.44
......\OT1/lmss/bx/n/14.4 r
......\OT1/lmss/bx/n/14.4 l
......\OT1/lmss/bx/n/14.4 d
......\OT1/lmss/bx/n/14.4 !
......\penalty 10000
......\glue(\parfillskip) 0.0
......\glue(\rightskip) 0.0 plus 1.0fil
.....\glue 0.0 plus 1.0fil
....\write1{\@writefile{nav}{\protect \headcommand {\protect \slideentry {0}{0}{3}{3/3}{}{0}}}}
....\write1{\@writefile{nav}{\protect \headcommand {\protect \beamer@framepages {3}{3}}}}
....\glue 0.0 plus 1.0fil
....\glue 0.0
...\glue(\baselineskip) 4.0
...\hbox(0.0+0.0)x307.28987
....\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
....\hbox(0.0+0.0)x307.28987, glue set 307.28987fil
.....\vbox(0.0+0.0)x0.0
......\hbox(0.0+0.0)x-56.90549
.......\hbox(0.0+0.0)x-56.90549
........\glue -28.45274
........\hbox(0.0+0.0)x0.0
.........\vbox(0.0+0.0)x0.0
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\pdfcolorstack 0 push {0.13725 0.2157 0.23137 rg 0.13725 0.2157 0.23137 RG}
..........\pdfcolorstack 0 pop
..........\pdfcolorstack 0 pop
........\glue -28.45274
.......\glue 0.0 plus 1.0fil
.......\glue 0.0 plus 1.0fil
......\glue(\lineskip) 0.0
......\hbox(0.0+0.0)x0.0
.....\glue 0.0 plus 1.0fil
....\pdfcolorstack 0 pop
.\kern 0.0
\tf@nav=\write...
\tf@toc=\write...
\tf@snm=\write...
(standoutnumbering.aux)

View File

@ -38,37 +38,41 @@
\end{proof} \end{proof}
\end{frame} \end{frame}
\vfil\break
\END
{ {
\molochset{titleformat frame=smallcaps} \molochset{titleformat frame=smallcaps}
\begin{frame}{Small caps} \begin{frame}{Small caps}
This frame uses the \texttt{smallcaps} title format. This frame uses the \texttt{smallcaps} title format.
\begin{block}{Block} \begin{block}{Block}
Some content Some content
\end{block} \end{block}
\begin{alertblock}{Alert Block} \begin{alertblock}{Alert Block}
Yet more content Yet more content
\end{alertblock} \end{alertblock}
\begin{exampleblock}{Example Block} \begin{exampleblock}{Example Block}
Just to try out the different blocks Just to try out the different blocks
\end{exampleblock}
\end{frame} \end{exampleblock}
\end{frame}
} }
{ {
\molochset{titleformat frame=allsmallcaps} \molochset{titleformat frame=allsmallcaps}
\begin{frame}{All small caps} \begin{frame}{All small caps}
This frame uses the \texttt{allsmallcaps} title format. This frame uses the \texttt{allsmallcaps} title format.
\end{frame} \end{frame}
} }
{ {
\molochset{titleformat frame=allcaps} \molochset{titleformat frame=allcaps}
\begin{frame}{All caps} \begin{frame}{All caps}
This frame uses the \texttt{allcaps} title format. This frame uses the \texttt{allcaps} title format.
\end{frame} \end{frame}
} }
\begin{frame}{Lists} \begin{frame}{Lists}
@ -76,15 +80,7 @@
\column{0.33\textwidth} \column{0.33\textwidth}
Items Items
\begin{itemize} \begin{itemize}
\item Flour \item Milk \item Eggs \item Potatoes
\begin{itemize}
\item Wheat
\begin{itemize}
\item Whole-grain
\item White
\end{itemize}
\end{itemize}
\item Eggs
\end{itemize} \end{itemize}
\column{0.33\textwidth} \column{0.33\textwidth}
@ -109,49 +105,12 @@
\end{itemize} \end{itemize}
\end{frame} \end{frame}
\begin{frame}{Blocks}
\begin{columns}
\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}
\appendix \appendix
\begin{frame}{Backup slides} \begin{frame}{Backup slides}
Here are some backup slides Here are some backup slides
\end{frame} \end{frame}
\vfil\break \end{document}
\END
\end{document} \end{document}

View File

@ -1,47 +0,0 @@
\input regression-test
\molochset{sectionpage=progressbar}
\molochset{subsectionpage=progressbar}
\begin{document}
\maketitle
\START
\begin{frame}[c]
Sections: progressbar, subsections: progressbar
\end{frame}
\section{Section}
\subsection{Subsection}
\begin{frame}[c]
Sections: progressbar, subsections: simple
\end{frame}
\molochset{sectionpage=progressbar}
\section{Section}
\molochset{subsectionpage=simple}
\subsection{Subsection}
\molochset{subsectionpage=progressbar}
\molochset{sectionpage=progressbar}
\section{Section}
\subsection{Subsection}
\begin{frame}[c]
Sections: simple, subsections: simple
\end{frame}
\molochset{sectionpage=simple}
\molochset{subsectionpage=simple}
\section{Section}
\subsection{Subsection}
\end{document}

View File

@ -1,44 +0,0 @@
\input regression-test
\title{Moloch Test Suite}
\subtitle{A subtitle that is way to long and in fact might just need to be split across lines}
\author[Johan]{Johan Larsson}
\institute[LU]{Lund Univesity//Department of Statistics}
\date{April 23, 2024}
\begin{document}
\START
\showoutput
\begin{frame}{Table of contents}
\setbeamertemplate{section in toc}[sections numbered]
\tableofcontents[hideallsubsections]
\end{frame}
\section{Results}
\subsection{Proof of the Main Theorem}
\begin{frame}<1>
\frametitle{There Is No Largest Prime Number}
\framesubtitle{The proof uses \textit{reductio ad absurdum}.}
\begin{theorem}
There is no largest prime number.
\end{theorem}
\begin{proof}
\begin{enumerate}
\item<1-| alert@1> Suppose $p$ were the largest prime number.
\item<2-> Let $q$ be the product of the first $p$ numbers.
\item<3-> Then $q$\;+\,$1$ is not divisible by any of them.
\item<1-> Thus $q$\;+\,$1$ is also prime and greater than $p$.\qedhere
\end{enumerate}
\end{proof}
\end{frame}
\vfil\break
\END
\end{document}

View File

@ -1,26 +0,0 @@
\input regression-test
\begin{document}
\START
\showoutput
\molochset{standoutnumbering=none}
\begin{frame}[standout]
Hello, world!
\end{frame}
\molochset{standoutnumbering=show}
\begin{frame}[standout]
Hello, world!
\end{frame}
\molochset{standoutnumbering=hide}
\begin{frame}[standout]
Hello, world!
\end{frame}
\end{document}

View File

@ -1,6 +1,5 @@
\documentclass[hyperref={draft}]{beamer} \documentclass[hyperref={draft}]{beamer}
\usetheme{moloch} \usetheme{moloch}
\usepackage{lmodern}
\input{molochexample} \input{molochexample}

File diff suppressed because it is too large Load Diff

1
version.txt Normal file
View File

@ -0,0 +1 @@
0.1.0