Skip to content

Commit

Permalink
feat!: remove pgfplots theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Jan 12, 2024
1 parent a302893 commit c2f1bef
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 281 deletions.
40 changes: 3 additions & 37 deletions demo/demo.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
\documentclass[10pt]{beamer}

\usetheme{moloch}
\AtEndPreamble{\pgfplotsset{compat=1.15}}
\usefonttheme{professionalfonts}
\usepackage{appendixnumberbeamer}

\usepackage{booktabs}
Expand All @@ -17,7 +19,6 @@
\date{\today}
\author{Matthias Vogelgesang}
\institute{Center for modern beamer themes}
% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo.pdf}}

\begin{document}

Expand Down Expand Up @@ -212,48 +213,13 @@ \section{Elements}
\end{exampleblock}

\end{frame}

\begin{frame}{Math}
\begin{equation*}
e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
\end{equation*}
\end{frame}
\begin{frame}{Line plots}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mlineplot,
width=0.9\textwidth,
height=6cm,
]

\addplot {sin(deg(x))};
\addplot+[samples=100] {sin(deg(2*x))};

\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Bar charts}
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
mbarplot,
xlabel={Foo},
ylabel={Bar},
width=0.9\textwidth,
height=6cm,
]

\addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
\addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
\addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};

\legend{lorem, ipsum, dolor}

\end{axis}
\end{tikzpicture}
\end{figure}
\end{frame}
\begin{frame}{Quotes}
\begin{quote}
Veni, Vidi, Vici
Expand Down
42 changes: 0 additions & 42 deletions doc/moloch.tex
Original file line number Diff line number Diff line change
Expand Up @@ -367,47 +367,6 @@ \subsubsection{Standout frames}
\end{frame}
\end{lstlisting}



\section{\texttt{pgfplots} integration}

\themename comes with a set of pre-defined pgfplots styles and a color theme
based on Paul Tol's color scheme.


\subsection{Styles}

Pass the following style keys to the axis environment to get the appropriate
effect:

\begin{macro}{mlineplot}
Plot regular line charts with reduced axis frames, less intrusive legend and
subdued grid.
\end{macro}
\begin{macro}{mbarplot}
Plot vertical bar charts in a similar way as |mlineplot| but reduce grid usage.
\end{macro}
\begin{macro}{horizontal mbarplot}
Plot horizontal bar charts.
\end{macro}
\begin{macro}{disable thousands separator}
Helper style to remove thousands separator.
\end{macro}


\subsection{Paul Tol colors}

A good presentation uses colors that are distinct from each other as much as
possible as well as from black and white, can be discerned item under different
lighting and display environments and by color-blind viewers, while matching
well together.

In a \href{https://personal.sron.nl/~pault/data/colourschemes.pdf}{technical note}
for SRON, Paul Tol proposed a palette of colors satisfying these constraints.
The sub-package |pgfplotsthemetol| defines palettes for |pgfplots| charts
based on Tol's work.


\section{Tips \& Tricks}

\subsection{Backup Slides}
Expand Down Expand Up @@ -568,6 +527,5 @@ \section{Implementation}
\DocInput{beamerouterthememoloch.dtx}
\DocInput{beamerfontthememoloch.dtx}
\DocInput{beamercolorthememoloch.dtx}
\DocInput{pgfplotsthemetol.dtx}

\end{document}
12 changes: 0 additions & 12 deletions src/beamerthememoloch.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,6 @@
\usefonttheme{moloch}
% \end{macrocode}
%
% The |tol| theme for |pgfplots| is only loaded if |pgfplots| is used.
%
% \begin{macrocode}
\AtEndPreamble{%
\@ifpackageloaded{pgfplots}{%
\RequirePackage{pgfplotsthemetol}
}{}
}
% \end{macrocode}
%
%
%
% \subsubsection{Custom commands}
%
% The parent theme defines custom commands as their proper usage may depend
Expand Down
1 change: 0 additions & 1 deletion src/beamerthememoloch.ins
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@
\generate{\file{beamerouterthememoloch.sty}{\from{beamerouterthememoloch.dtx}{package}}}
\generate{\file{beamerfontthememoloch.sty}{\from{beamerfontthememoloch.dtx}{package}}}
\generate{\file{beamercolorthememoloch.sty}{\from{beamercolorthememoloch.dtx}{package}}}
\generate{\file{pgfplotsthemetol.sty}{\from{pgfplotsthemetol.dtx}{package}}}

\endbatchfile
189 changes: 0 additions & 189 deletions src/pgfplotsthemetol.dtx

This file was deleted.

0 comments on commit c2f1bef

Please sign in to comment.