]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
examples/beamer: add an example for the beamer theme
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 27 Feb 2026 01:37:28 +0000 (20:37 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 27 Feb 2026 01:37:28 +0000 (20:37 -0500)
examples/beamer/GNUmakefile [new file with mode: 0644]
examples/beamer/presentation.tex [new file with mode: 0644]

diff --git a/examples/beamer/GNUmakefile b/examples/beamer/GNUmakefile
new file mode 100644 (file)
index 0000000..b21f1ce
--- /dev/null
@@ -0,0 +1,17 @@
+# See ../article/GNUmakefile for explanations. This is here not as
+# documentation, but to actually build the PDF (make sure it builds).
+
+PN = presentation
+
+# When using the shortcut "\usepackage{mjotex}", you should still list
+# the relevant mjo-*.tex files here (or just list ALL of them) to
+# ensure that your document is rebuilt when any of them change.
+MJOTEX  = mjo-algebra.tex mjo-algorithm.tex mjo-arrow.tex mjo-calculus.tex
+MJOTEX += mjo-common.tex mjo-complex.tex mjo-cone.tex mjo-convex.tex
+MJOTEX += mjo-eja.tex mjo-font.tex mjo-hurwitz.tex mjo-linear_algebra.tex
+MJOTEX += mjo-listing.tex mjo-proof_by_cases.tex mjo-set.tex mjo-theorem.tex
+MJOTEX += mjo-theorem-star.tex mjo-topology.tex
+
+export TEXINPUTS := $(TEXINPUTS):../..
+export BSTINPUTS := $(BSTINPUTS):../..
+include $(shell kpsewhich GNUmakefile.mjo)
diff --git a/examples/beamer/presentation.tex b/examples/beamer/presentation.tex
new file mode 100644 (file)
index 0000000..63e5b4c
--- /dev/null
@@ -0,0 +1,75 @@
+\documentclass[t,14pt,notheorems]{beamer}
+\usetheme{mjo}
+
+\usepackage{amsmath, mathtools}
+\usepackage{mjotex}
+
+\title{Example presentation}
+\author{Michael Orlitzky}
+\date{Somewhere, on a day}
+
+\begin{document}
+  \begin{frame}
+    \titlepage
+  \end{frame}
+
+  \begin{part}{Part one}
+    \begin{section}{Section one}
+      \begin{frame}
+        Hello, these are bullet points:
+        \begin{itemize}
+          \begin{item}
+            Item one
+          \end{item}
+          \begin{item}
+            Item two
+          \end{item}
+          \begin{item}
+            Et cetera
+          \end{item}
+        \end{itemize}
+
+        Footnotes\footnote{These things} are non-numeric\footnote{To
+        avoid confusion}, and skip the asterisk because it is
+        ugly\footnote{Uncontroversial opinion}.
+      \end{frame}
+
+      \begin{frame}
+        On the second frame, the footnote counter
+        resets\footnote{See?}.
+      \end{frame}
+    \end{section}
+
+    \begin{section}{Section two}
+      \begin{frame}
+        Much slide
+
+        \begin{theorem*}
+          This is a theorem.
+          \begin{proof}
+            And its proof.
+          \end{proof}
+        \end{theorem*}
+      \end{frame}
+      \begin{frame}
+        So presentation
+      \end{frame}
+    \end{section}
+  \end{part}
+
+
+  \begin{part}{The other part}
+    \begin{section}{Section three}
+      \begin{frame}
+        You get the idea
+      \end{frame}
+    \end{section}
+  \end{part}
+
+
+  \begin{section}{Section four (no part)}
+    \begin{frame}
+      Everybody gets a free slide!
+    \end{frame}
+  \end{section}
+\end{document}