Skip to content
Snippets Groups Projects
Commit 4977f0be authored by Vít Novotný's avatar Vít Novotný
Browse files

Added a suite of example files for every faculty of the MU. These

example files replace the former `demo/` directory.
parent 0db7a44e
No related branches found
No related tags found
No related merge requests found
This directory contains example fibeamer documents for various
TeX engines.
This directory contains example `fibeamer` documents for
various TeX engines.
PDFFILES=mu-fi-pdflatex.pdf mu-fi-lualatex.pdf \
mu-sci-pdflatex.pdf mu-sci-lualatex.pdf mu-ped-pdflatex.pdf \
mu-ped-lualatex.pdf mu-med-pdflatex.pdf mu-med-lualatex.pdf \
mu-fss-pdflatex.pdf mu-fss-lualatex.pdf mu-fsps-pdflatex.pdf \
mu-fsps-lualatex.pdf mu-phil-pdflatex.pdf mu-phil-lualatex.pdf \
mu-law-pdflatex.pdf mu-law-lualatex.pdf mu-econ-pdflatex.pdf \
mu-econ-lualatex.pdf
TEXFILES=$(PDFFILES:.pdf=.tex)
.PHONY: all clean
all:
make -C fibeamer
make pdflatex.pdf lualatex.pdf \
latex.dvi latex.pdf clean
make $(TEXFILES) $(PDFFILES) clean
# This target typesets the pdfLaTeX example.
pdflatex.pdf: pdflatex.tex
# This target prepares a TeX file.
%-pdflatex.tex: %.ins example.dtx
xetex $<
%-lualatex.tex: %.ins example.dtx
xetex $<
# This target typesets a pdfLaTeX example.
%-pdflatex.pdf: %-pdflatex.tex
pdflatex $<
pdflatex $<
# This target typesets the LuaLaTeX example.
lualatex.pdf: lualatex.tex
# This target typesets a LuaLaTeX example.
%-lualatex.pdf: %-lualatex.tex
lualatex $<
lualatex $<
# These targets typeset the LaTeX example.
latex.pdf: latex.dvi
dvipdfmx $<
latex.dvi: latex.tex
latex $<
latex $<
# This target removes any auxiliary files.
clean:
rm -f *.aux *.log *.out *.toc *.lot *.lof *.nav *.snm *.vrb
rm -f *.aux *.log *.out *.toc *.lot *.lof *.bcf *.blg *.run.xml \
*.bbl *.idx *.ind *.ilg *.dvi *.nav *.snm
# This target removes any auxiliary files
# and the output PDF file.
# and the output PDF files.
implode: clean
rm -f pdflatex.pdf lualatex.pdf latex.pdf latex.dvi
rm -f $(PDFFILES) $(TEXFILES)
% \begin{macrocode}
\documentclass{beamer}
\usepackage[basePath=..,faculty=?]%
{../beamerthemefibeamer}
\usepackage{polyglossia}
\setmainlanguage{english}
\setotherlanguage{czech}
\setotherlanguage{slovak}
\usepackage{ragged2e} % `\justify` text
\usepackage{booktabs} % Tables
\usepackage{tabularx}
\usepackage{tikz} % Diagrams
\usetikzlibrary{calc, shapes, backgrounds}
\usepackage{amsmath, amssymb}
\usepackage{url} % `\url`s
\usepackage{listings} % Code listings
\frenchspacing
\title{Presentation Title}
\subtitle{Presentation Subtitle}
\author{Author's Name}
%<*econ>
\usetheme[faculty=econ]{fibeamer}
%</econ>
%<*fi>
\usetheme[faculty=fi]{fibeamer}
%</fi>
%<*fsps>
\usetheme[faculty=fsps]{fibeamer}
%</fsps>
%<*fss>
\usetheme[faculty=fss]{fibeamer}
%</fss>
%<*law>
\usetheme[faculty=law]{fibeamer}
%</law>
%<*med>
\usetheme[faculty=med]{fibeamer}
%</med>
%<*ped>
\usetheme[faculty=ped]{fibeamer}
%</ped>
%<*phil>
\usetheme[faculty=phil]{fibeamer}
%</phil>
%<*sci>
\usetheme[faculty=sci]{fibeamer}
%</sci>
%<*pdftex>
\usepackage[utf8]{inputenc}
\usepackage[
main=english, %% By using `czech` or `slovak` as the main locale
%% instead of `english`, you can typeset the
%% presentation in either Czech or Slovak,
%% respectively.
czech, slovak %% The additional keys allow foreign texts to be
]{babel} %% typeset as follows:
%%
%% \begin{otherlanguage}{czech} ... \end{otherlanguage}
%% \begin{otherlanguage}{slovak} ... \end{otherlanguage}
%%
%</pdftex>
%<*luatex>
\usepackage{polyglossia} %% By using `czech` or `slovak` as the
\setmainlanguage{english} %% main locale instead of `english`, you
%% can typeset the presentation in either Czech or Slovak,
%% respectively.
\setotherlanguages{czech, slovak} %% The additional keys allow
% foreign texts to be typeset as follows:
%%
%% \begin{otherlanguage}{czech} ... \end{otherlanguage}
%% \begin{otherlanguage}{slovak} ... \end{otherlanguage}
%%
%</luatex>
%% These macros specify information about the presentation
\title{Presentation Title} %% that will be typeset on the
\subtitle{Presentation Subtitle} %% title page.
\author{Author's Name}
%% These additional packages are used within the document:
\usepackage{ragged2e} % `\justify` text
\usepackage{booktabs} % Tables
\usepackage{tabularx}
\usepackage{tikz} % Diagrams
\usetikzlibrary{calc, shapes, backgrounds}
\usepackage{amsmath, amssymb}
\usepackage{url} % `\url`s
\usepackage{listings} % Code listings
\frenchspacing
\begin{document}
\frame{\maketitle}
\begin{frame}{Jabberwocky}
......@@ -24,7 +74,7 @@
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=south east,xshift=-30pt,yshift=35pt]
at (current page.south east) {
\includegraphics[width=35mm]{res/jabberwocky-light}
\includegraphics[width=35mm]{resources/jabberwocky-light}
};
\end{tikzpicture}%¨
'Twas brillig, and the slithy toves\\
......@@ -285,7 +335,7 @@ int main(int argc, char **argv)
\begin{tikzpicture}[overlay,remember picture]
\node[anchor=south east,xshift=-30pt,yshift=35pt]
at (current page.south east) {
\includegraphics[width=35mm]{res/jabberwocky-dark}
\includegraphics[width=35mm]{resources/jabberwocky-dark}
};
\end{tikzpicture}%
'Twas brillig, and the slithy toves\\
......@@ -327,3 +377,4 @@ int main(int argc, char **argv)
\againframe{bib}
\end{darkframes}
\end{document}
% \end{macrocode}
SUBMAKES_REQUIRED=theme/mu logo/mu
SUBMAKES_MISCELLANEOUS=demo
SUBMAKES_MISCELLANEOUS=..
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_MISCELLANEOUS)
.PHONY: all complete clean dist dist-implode implode \
install uninstall $(SUBMAKES)
......@@ -10,11 +10,10 @@ LOGOSOURCES=logo/mu/*.svg
LOGOS=logo/mu/*.pdf logo/mu/*.eps
DTXFILES=*.dtx theme/mu/*.dtx
INSFILES=*.ins theme/mu/*.ins
MAKES=theme/mu/Makefile logo/mu/Makefile
USEREXAMPLES=../*.tex ../Makefile ../DESCRIPTION \
../beamerthemefibeamer.sty demo/Makefile \
demo/DESCRIPTION demo/source.tex demo/res/jabberwocky-dark.pdf \
demo/res/jabberwocky-light.pdf
MAKES=theme/mu/Makefile logo/mu/Makefile Makefile
USEREXAMPLES=../*.tex ../*.ins ../*.pdf ../example.dtx \
../Makefile ../resources/jabberwocky-dark.pdf \
../resources/jabberwocky-light.pdf
DEVEXAMPLES=logo/EXAMPLE/DESCRIPTION logo/mu/DESCRIPTION \
logo/DESCRIPTION theme/EXAMPLE/DESCRIPTION theme/mu/DESCRIPTION \
theme/DESCRIPTION
......@@ -86,10 +85,10 @@ $(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) \
# This target generates a CTAN distribution file
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(LOGOSOURCES) $(DOCS) \
$(DEVEXAMPLES) $(VERSION)
DIR=`mktemp -d` && mkdir --parents "$$DIR/fibeamer" && \
$(EXAMPLES) $(VERSION)
DIR=`mktemp -d` && mkdir --parents "$$DIR/fibeamer/fibeamer" && \
cp --verbose $(TDSARCHIVE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR/fibeamer" && \
cp --parents --verbose $^ "$$DIR/fibeamer/fibeamer" && \
(cd "$$DIR" && zip -r -v -nw $@ *) && \
mv "$$DIR"/$@ . && rm -rf "$$DIR"
......
This directory contains a demonstration document for fibeamer.
PDFFILES=sci.pdf phil.pdf ped.pdf med.pdf fss.pdf fi.pdf law.pdf \
econ.pdf fsps.pdf
TEXFILES=sci.tex phil.tex ped.tex med.tex fss.tex fi.tex law.tex \
econ.tex fsps.tex
AUXFILES=*.aux *.log *.nav *.out *.snm *.toc
SRC=source.tex
TEX=lualatex
.PHONY: all clean
all: $(PDFFILES) clean
# This target typesets a PDF file.
$(PDFFILES): $(TEMPLATE)
sed s/faculty=?/faculty=$(basename $@)/ $(SRC) > $(basename $@).tex
$(TEX) $(basename $@).tex
$(TEX) $(basename $@).tex
# This target removes any auxiliary files.
clean:
rm -f $(TEXFILES) $(AUXFILES)
# This target removes any auxiliary files
# and the output PDF files.
implode: clean
rm -f $(PDFFILES)
\documentclass[dvipdfmx]{beamer}
\usetheme{fibeamer}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath} % `\equation`s
\usepackage{tabularx} % Tables
\usepackage{booktabs}
\begin{document}
\title{My Presentation}
\subtitle{Daring the Unknown}
\author{Jane Doe}
\frame{\maketitle}
\begin{frame}{Foo}{bar}
Hello world!
\begin{equation}
\tag{Mass--energy equivalence} e=mc^2
\end{equation}
\begin{center}
\begin{tabularx}{\textwidth}{lllX}
\toprule
Day & Min Temp & Max Temp & Summary \\
\midrule
Monday & $11^{\circ}\mathsf{C}$ & $22^\circ\mathsf{C}$ & A
clear day with lots of sunshine. However, the strong breeze
will bring down the temperatures. \\
\bottomrule
\end{tabularx}
\end{center}
\end{frame}
\end{document}
\documentclass{beamer}
\usetheme{fibeamer}
\usepackage{polyglossia}
\setmainlanguage{english}
\usepackage{amsmath} % `\equation`s
\usepackage{tabularx} % Tables
\usepackage{booktabs}
\begin{document}
\title{My Presentation}
\subtitle{Daring the Unknown}
\author{Jane Doe}
\frame{\maketitle}
\begin{frame}{Foo}{bar}
Hello world!
\begin{equation}
\tag{Mass--energy equivalence} e=mc^2
\end{equation}
\begin{center}
\begin{tabularx}{\textwidth}{lllX}
\toprule
Day & Min Temp & Max Temp & Summary \\
\midrule
Monday & $11^{\circ}\mathsf{C}$ & $22^\circ\mathsf{C}$ & A
clear day with lots of sunshine. However, the strong breeze
will bring down the temperatures. \\
\bottomrule
\end{tabularx}
\end{center}
\end{frame}
\end{document}
\input docstrip.tex
% Insert only a minimal preamble before the generated document.
\preamble
\endpreamble
% Do not ask about overriding.
\askforoverwritefalse
\input mu-docstrip.tex
\generate{\file{mu-econ-pdflatex.tex}{\from{example.dtx}{pdftex,mu,econ}}}
\generate{\file{mu-econ-lualatex.tex}{\from{example.dtx}{luatex,mu,econ}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-fi-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fi}}}
\generate{\file{mu-fi-lualatex.tex}{\from{example.dtx}{luatex,mu,fi}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-fsps-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fsps}}}
\generate{\file{mu-fsps-lualatex.tex}{\from{example.dtx}{luatex,mu,fsps}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-fss-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fss}}}
\generate{\file{mu-fss-lualatex.tex}{\from{example.dtx}{luatex,mu,fss}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-law-pdflatex.tex}{\from{example.dtx}{pdftex,mu,law}}}
\generate{\file{mu-law-lualatex.tex}{\from{example.dtx}{luatex,mu,law}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-med-pdflatex.tex}{\from{example.dtx}{pdftex,mu,med}}}
\generate{\file{mu-med-lualatex.tex}{\from{example.dtx}{luatex,mu,med}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-ped-pdflatex.tex}{\from{example.dtx}{pdftex,mu,ped}}}
\generate{\file{mu-ped-lualatex.tex}{\from{example.dtx}{luatex,mu,ped}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-phil-pdflatex.tex}{\from{example.dtx}{pdftex,mu,phil}}}
\generate{\file{mu-phil-lualatex.tex}{\from{example.dtx}{luatex,mu,phil}}}
\endbatchfile
\input mu-docstrip.tex
\generate{\file{mu-sci-pdflatex.tex}{\from{example.dtx}{pdftex,mu,sci}}}
\generate{\file{mu-sci-lualatex.tex}{\from{example.dtx}{luatex,mu,sci}}}
\endbatchfile
\documentclass{beamer}
\usetheme{fibeamer}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath} % `\equation`s
\usepackage{tabularx} % Tables
\usepackage{booktabs}
\begin{document}
\title{My Presentation}
\subtitle{Daring the Unknown}
\author{Jane Doe}
\frame{\maketitle}
\begin{frame}{Foo}{bar}
Hello world!
\begin{equation}
\tag{Mass--energy equivalence} e=mc^2
\end{equation}
\begin{center}
\begin{tabularx}{\textwidth}{lllX}
\toprule
Day & Min Temp & Max Temp & Summary \\
\midrule
Monday & $11^{\circ}\mathsf{C}$ & $22^\circ\mathsf{C}$ & A
clear day with lots of sunshine. However, the strong breeze
will bring down the temperatures. \\
\bottomrule
\end{tabularx}
\end{center}
\end{frame}
\end{document}
This directory contains resources for the example `fibeamer`
documents.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment