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

The example documents were moved to the `example/` directory.

parent 71a6a634
No related branches found
No related tags found
No related merge requests found
Showing with 247 additions and 34 deletions
File moved
This directory contains example `fibeamer` documents for
various TeX engines.
File moved
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 $(TEXFILES) $(PDFFILES) clean
# This target prepares a TeX file.
%-pdflatex.tex: %.ins example.dtx
xetex $<
%-lualatex.tex: %.ins example.dtx
SUBMAKES_REQUIRED=theme/mu logo/mu
SUBMAKES_MISCELLANEOUS=example/mu
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_MISCELLANEOUS)
.PHONY: all complete clean dist dist-implode implode \
install uninstall $(SUBMAKES)
BASETHEMEFILE=beamerthemefibeamer.sty
OTHERTHEMEFILES=theme/mu/*.sty
THEMEFILES=$(BASETHEMEFILE) $(OTHERTHEMEFILES)
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 Makefile
USEREXAMPLES=example/mu/econ-lualatex.tex \
example/mu/econ-pdflatex.tex example/mu/fi-lualatex.tex \
example/mu/fi-pdflatex.tex example/mu/fsps-lualatex.tex \
example/mu/fsps-pdflatex.tex example/mu/fss-lualatex.tex \
example/mu/fss-pdflatex.tex example/mu/law-lualatex.tex \
example/mu/law-pdflatex.tex example/mu/med-lualatex.tex \
example/mu/med-pdflatex.tex example/mu/ped-lualatex.tex \
example/mu/ped-pdflatex.tex example/mu/phil-lualatex.tex \
example/mu/phil-pdflatex.tex example/mu/sci-lualatex.tex \
example/mu/sci-pdflatex.tex example/mu/econ-lualatex.pdf \
example/mu/econ-pdflatex.pdf example/mu/fi-lualatex.pdf \
example/mu/fi-pdflatex.pdf example/mu/fsps-lualatex.pdf \
example/mu/fsps-pdflatex.pdf example/mu/fss-lualatex.pdf \
example/mu/fss-pdflatex.pdf example/mu/law-lualatex.pdf \
example/mu/law-pdflatex.pdf example/mu/med-lualatex.pdf \
example/mu/med-pdflatex.pdf example/mu/ped-lualatex.pdf \
example/mu/ped-pdflatex.pdf example/mu/phil-lualatex.pdf \
example/mu/phil-pdflatex.pdf example/mu/sci-lualatex.pdf \
example/mu/sci-pdflatex.pdf \
example/mu/resources/jabberwocky-dark.pdf \
example/mu/resources/jabberwocky-light.pdf
DEVEXAMPLES=logo/EXAMPLE/DESCRIPTION logo/mu/DESCRIPTION \
logo/DESCRIPTION theme/EXAMPLE/DESCRIPTION theme/mu/DESCRIPTION \
theme/DESCRIPTION example/DESCRIPTION example/EXAMPLE/DESCRIPTION \
example/mu/DESCRIPTION example/mu/resources/DESCRIPTION
EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES)
RESOURCES=$(THEMEFILES) $(LOGOS)
SOURCES=$(DTXFILES) $(INSFILES) LICENSE.tex
AUXFILES=fibeamer.aux fibeamer.log fibeamer.toc fibeamer.ind \
fibeamer.idx fibeamer.out fibeamer.ilg fibeamer.gls \
fibeamer.glo fibeamer.hd
MANUAL=fibeamer.pdf
PDFSOURCES=fibeamer.dtx
PDFS=$(MANUAL) $(USEREXAMPLES)
DOCS=$(MANUAL) README
VERSION=VERSION.tex
TDSARCHIVE=fibeamer.tds.zip
CTANARCHIVE=fibeamer.ctan.zip
DISTARCHIVE=fibeamer.zip
ARCHIVES=$(TDSARCHIVE) $(CTANARCHIVE) $(DISTARCHIVE)
MAKEABLES=$(MANUAL) $(BASETHEMEFILE) $(ARCHIVES) $(VERSION)
TEXLIVEDIR=$(shell kpsewhich -var-value TEXMFLOCAL)
# This pseudo-target expands all the docstrip files, converts the
# logos and creates the theme files.
all: $(SUBMAKES_REQUIRED)
make $(BASETHEMEFILE)
# This pseudo-target creates the theme files and typesets the
# technical documentation and the guides.
complete: all $(SUBMAKES)
make $(PDFS) clean
# This pseudo-target calls a submakefile
$(SUBMAKES):
make -C $@ all
# This pseudo-target creates the distribution archive.
dist: dist-implode complete
make $(TDSARCHIVE) $(DISTARCHIVE) $(CTANARCHIVE)
# This target creates the theme files.
$(BASETHEMEFILE): fibeamer.ins fibeamer.dtx
xetex $<
# This target typesets a pdfLaTeX example.
%-pdflatex.pdf: %-pdflatex.tex
# This target typesets the technical documentation.
$(MANUAL): $(DTXFILES)
pdflatex $<
makeindex -s gind.ist $(basename $@)
makeindex -s gglo.ist -o $(basename $@).gls $(basename $@).glo
pdflatex $<
pdflatex $<
# This target generates a TeX directory structure file
$(TDSARCHIVE):
DIR=`mktemp -d` && \
make install to="$$DIR" nohash=true && \
(cd "$$DIR" && zip -r -v -nw $@ *) && \
mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
# This target generates a distribution file
$(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) \
$(DOCS) $(PDFSOURCES) $(EXAMPLES) $(VERSION) $(LOGOSOURCES)
DIR=`mktemp -d` && \
cp --verbose $(TDSARCHIVE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR" && \
(cd "$$DIR" && zip -r -v -nw $@ *) && \
mv "$$DIR"/$@ . && rm -rf "$$DIR"
# This target typesets a LuaLaTeX example.
%-lualatex.pdf: %-lualatex.tex
lualatex $<
lualatex $<
# This target generates a CTAN distribution file
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(LOGOSOURCES) $(DOCS) \
$(EXAMPLES) $(VERSION)
DIR=`mktemp -d` && mkdir -p "$$DIR/fibeamer" && \
cp --verbose $(TDSARCHIVE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR/fibeamer" && \
(cd "$$DIR" && zip -r -v -nw $@ *) && \
mv "$$DIR"/$@ . && rm -rf "$$DIR"
# This target removes any auxiliary files.
# This pseudo-target installs the theme files and the technical
# documentation into the TeX directory structure, whose root
# directory is specified within the "to" argument. Specify
# "nohash=true", if you wish to forgo the reindexing of the package
# database.
install:
@if [ -z "$(to)" ]; then \
printf "Usage: make install to=DIRECTORY"; \
printf "Detected TeXLive directory: %s\n" $(TEXLIVEDIR); \
exit 1; \
fi
# Theme and logo files
mkdir -p "$(to)/tex/latex/fibeamer"
cp --parents --verbose $(RESOURCES) "$(to)/tex/latex/fibeamer"
# Source files
mkdir -p "$(to)/source/latex/fibeamer"
cp --parents --verbose $(SOURCES) "$(to)/source/latex/fibeamer"
# Documentation
mkdir -p "$(to)/doc/latex/fibeamer"
cp --parents --verbose $(DOCS) "$(to)/doc/latex/fibeamer"
# Rebuild the hash
[ "$(nohash)" = "true" ] || texhash
# This pseudo-target installs the theme files and the technical
# documentation into the TeX directory structure, whose root
# directory is specified within the "to" argument. Specify
# "nohash=true", if you wish to forgo the reindexing of the package
# database.
uninstall:
@if [ -z "$(from)" ]; then \
printf "Usage: make uninstall from=DIRECTORY"; \
printf "Detected TeXLive directory: %s\n" $(TEXLIVEDIR); \
exit 1; \
fi
# Theme and logo files
rm -rf "$(from)/tex/latex/fibeamer"
# Source files
rm -rf "$(from)/source/latex/fibeamer"
# Documentation
rm -rf "$(from)/doc/latex/fibeamer"
# Rebuild the hash
[ "$(nohash)" = "true" ] || texhash
# This pseudo-target removes any existing auxiliary files.
clean:
rm -f *.aux *.log *.out *.toc *.lot *.lof *.bcf *.blg *.run.xml \
*.bbl *.idx *.ind *.ilg *.dvi *.nav *.snm
rm -f $(AUXFILES)
# This pseudo-target removes the distribution archives.
dist-implode:
rm -f $(ARCHIVES)
# This target removes any auxiliary files
# and the output PDF files.
# This pseudo-target removes any makeable files.
implode: clean
rm -f $(PDFFILES) $(TEXFILES)
rm -f $(MAKEABLES)
for dir in $(SUBMAKES); do make implode -C "$$dir"; done
File moved
% This file is just a symbolic link to the beamer theme.
\input fibeamer/beamerthemefibeamer.sty
This directory can contain subdirectories with example documents
of various universities.
\ No newline at end of file
This is an empty directory. You can rename it to match the name of
your university and place the respective example documents in here.
PDFFILES=fi-pdflatex.pdf fi-lualatex.pdf sci-pdflatex.pdf sci-lualatex.pdf \
ped-pdflatex.pdf ped-lualatex.pdf med-pdflatex.pdf med-lualatex.pdf \
fss-pdflatex.pdf fss-lualatex.pdf fsps-pdflatex.pdf fsps-lualatex.pdf \
phil-pdflatex.pdf phil-lualatex.pdf law-pdflatex.pdf law-lualatex.pdf \
econ-pdflatex.pdf econ-lualatex.pdf
OUTPUT=$(PDFFILES) $(PDFFILES:.pdf=.tex)
.PHONY: all clean
all: $(OUTPUT) clean
# This target extracts TeX files from within a DTX archive
# and removes the autogenerated preambles and postambles.
%-pdflatex.tex %-lualatex.tex: %.ins example.dtx
xetex $<
sed -ni '/^%\{3,\}/,/^\\end{document}/p' \
$(patsubst %-pdflatex.tex,%-,$(subst lua,pdf,$@))*.tex
# This target typesets a pdfLaTeX example.
%-pdflatex.pdf: %-pdflatex.tex
pdflatex $<
pdflatex $<
# This target typesets a LuaLaTeX example.
%-lualatex.pdf: %-lualatex.tex
lualatex $<
lualatex $<
# This target removes any auxiliary files.
clean:
rm -f *.aux *.log *.nav *.out *.snm *.toc
# This target removes any auxiliary files
# and the output PDF files.
implode: clean
rm -f $(OUTPUT)
\input ../../LICENSE
\generate{\file{econ-pdflatex.tex}{\from{example.dtx}{pdftex,mu,econ}}}
\generate{\file{econ-lualatex.tex}{\from{example.dtx}{luatex,mu,econ}}}
\endbatchfile
% \begin{macrocode}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% I, the copyright holder of this work, release this work into the
%% public domain. This applies worldwide. In some countries this may
%% not be legally possible; if so: I grant anyone the right to use
%% this work for any purpose, without any conditions, unless such
%% conditions are required by law.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{beamer}
%<*econ>
\usetheme[faculty=econ]{fibeamer}
......@@ -76,7 +84,7 @@
at (current page.south east) {
\includegraphics[width=35mm]{resources/jabberwocky-light}
};
\end{tikzpicture}%¨
\end{tikzpicture}%
'Twas brillig, and the slithy toves\\
Did gyre and gimble in the wabe;\\
All mimsy were the borogoves,\\
......
\input ../../LICENSE
\generate{\file{fi-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fi}}}
\generate{\file{fi-lualatex.tex}{\from{example.dtx}{luatex,mu,fi}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{fsps-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fsps}}}
\generate{\file{fsps-lualatex.tex}{\from{example.dtx}{luatex,mu,fsps}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{fss-pdflatex.tex}{\from{example.dtx}{pdftex,mu,fss}}}
\generate{\file{fss-lualatex.tex}{\from{example.dtx}{luatex,mu,fss}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{law-pdflatex.tex}{\from{example.dtx}{pdftex,mu,law}}}
\generate{\file{law-lualatex.tex}{\from{example.dtx}{luatex,mu,law}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{med-pdflatex.tex}{\from{example.dtx}{pdftex,mu,med}}}
\generate{\file{med-lualatex.tex}{\from{example.dtx}{luatex,mu,med}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{ped-pdflatex.tex}{\from{example.dtx}{pdftex,mu,ped}}}
\generate{\file{ped-lualatex.tex}{\from{example.dtx}{luatex,mu,ped}}}
\endbatchfile
\input ../../LICENSE
\generate{\file{phil-pdflatex.tex}{\from{example.dtx}{pdftex,mu,phil}}}
\generate{\file{phil-lualatex.tex}{\from{example.dtx}{luatex,mu,phil}}}
\endbatchfile
This directory contains resources for the example 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