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

Added the `locale` option and the `\fibeamer@locale`, the

`\fibeamer@backupLogo` macro and the new logo files.
parent 4a5608fb
No related branches found
No related tags found
No related merge requests found
Showing
with 2975 additions and 2462 deletions
SUBMAKES_REQUIRED=theme/mu logo/mu
SUBMAKES_REQUIRED=theme/mu
SUBMAKES_MISCELLANEOUS=guide/mu example/mu
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_MISCELLANEOUS)
.PHONY: all complete clean dist dist-implode implode \
......@@ -7,11 +7,10 @@ SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_MISCELLANEOUS)
BASETHEMEFILE=beamerthemefibeamer.sty
OTHERTHEMEFILES=theme/mu/*.sty
THEMEFILES=$(BASETHEMEFILE) $(OTHERTHEMEFILES)
LOGOSOURCES=logo/mu/*.svg
LOGOS=logo/mu/*.pdf logo/mu/*.eps
LOGOS=logo/*/*.pdf
DTXFILES=*.dtx theme/mu/*.dtx
INSFILES=*.ins theme/mu/*.ins
MAKES=guide/mu/Makefile theme/mu/Makefile logo/mu/Makefile Makefile
MAKES=guide/mu/Makefile theme/mu/Makefile Makefile
USEREXAMPLES=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 \
......@@ -22,12 +21,12 @@ USEREXAMPLES=example/mu/econ-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
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 \
guide/DESCRIPTION guide/EXAMPLE/DESCRIPTION \
guide/mu/DESCRIPTION guide/mu/resources/DESCRIPTION
DEVEXAMPLES=logo/DESCRIPTION theme/EXAMPLE/DESCRIPTION \
theme/mu/DESCRIPTION theme/DESCRIPTION example/DESCRIPTION \
example/EXAMPLE/DESCRIPTION example/mu/DESCRIPTION \
example/mu/resources/DESCRIPTION guide/DESCRIPTION \
guide/EXAMPLE/DESCRIPTION guide/mu/DESCRIPTION \
guide/mu/resources/DESCRIPTION
EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES)
MISCELLANEOUS=guide/mu/guide.bib \
guide/mu/guide.dtx guide/mu/*.ins guide/mu/resources/cog.pdf \
......@@ -99,8 +98,7 @@ $(TDSARCHIVE):
# This target generates a distribution file.
$(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) \
$(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) $(EXAMPLES) $(VERSION) \
$(LOGOSOURCES)
$(DOCS) $(PDFSOURCES) $(MISCELLANEOUS) $(EXAMPLES) $(VERSION)
DIR=`mktemp -d` && \
cp --verbose $(TDSARCHIVE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR" && \
......@@ -109,8 +107,7 @@ $(DISTARCHIVE): $(SOURCES) $(RESOURCES) $(MAKES) \
# This target generates a CTAN distribution file.
$(CTANARCHIVE): $(SOURCES) $(MAKES) $(EXAMPLES) \
$(MISCELLANEOUS) $(DOCS) $(VERSION) \
$(LOGOSOURCES)
$(MISCELLANEOUS) $(DOCS) $(VERSION)
DIR=`mktemp -d` && mkdir -p "$$DIR/fibeamer" && \
cp --verbose $(TDSARCHIVE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR/fibeamer" && \
......
......@@ -164,6 +164,22 @@
\ExecuteOptionsBeamer{faculty=fi}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\fibeamer@locale}
% \subsubsection{The \texttt{locale} option}
% The \marg{\texttt{locale}=name} pair sets the name of the main
% locale to \textit{name}. The \textit{name} is stored within the
% |\fibeamer@locale| macro, whose implicit value is the main
% language of either the \textsf{babel} or the \textsf{polyglossia}
% package, or \texttt{english}, when undefined.
% \begin{macrocode}
\def\fibeamer@locale{%
% Babel / polyglossia detection
\ifx\languagename\undefined%
english\else\languagename\fi}
\DeclareOptionBeamer{locale}{%
\def\fibeamer@locale{#1}}
% \end{macrocode}
% \end{macro}
% \begin{macro}{\fibeamer@basePath}
% \subsection{The \texttt{basePath} option}
% The \marg{\texttt{basePath}=path} pair sets the \textit{path}
......@@ -254,8 +270,8 @@
% load the faculty logos. The \textit{path} is
% normalized using the |\fibeamer@subdir| macro and stored
% within the |\fibeamer@logoPath| macro, whose implicit value
% is |\fibeamer@basePath| followed by |logo/\fibeamer@university/|. By
% default, this expands to \texttt{fibeamer/logo/mu/}.
% is |\fibeamer@basePath| followed by |logo/\fibeamer@university|.
% By default, this expands to \texttt{fibeamer/logo/mu/}.
% \begin{macrocode}
\DeclareOptionBeamer{logoPath}{%
\def\fibeamer@logoPath{\fibeamer@subdir#1%
......@@ -269,15 +285,22 @@
% filename of the logo file to be used as the faculty logo to
% \textit{filename}. The \textit{filename} is stored within the
% |\fibeamer@logo| macro, whose implicit value is
% |\fibeamer@logoPath| \texttt{fibeamer-}|\fibeamer@university|%
% \texttt{-}|\fibeamer@faculty|. By default, this expands to
% \texttt{fibeamer/logo/mu/fibeamer-mu-fi}. The filenames of the
% actual files are |\fibeamer@logo|-light and |\fibeamer@logo|-dark,
% and correspond to the light and dark versions of the given logo.
% |\fibeamer@logoPath| \texttt{fibeamer-}|\fibeamer@university|^^A
% \texttt{-}|\fibeamer@faculty|\texttt{.}|\fibeamer@locale|. By
% default, this expands to \texttt{fibeamer/logo/fibeamer-mu-fi^^A
% -english}.
%
% The \DescribeMacro{\fibeamer@backupLogo}|\fibeamer@backupLogo|
% macro contains the filename of the logo file to be used, if
% |\fibeamer@logo| doesn't exist.
% \begin{macrocode}
\DeclareOptionBeamer{logo}{\def\fibeamer@logo{#1}}
\ExecuteOptionsBeamer{%
logo=\fibeamer@logoPath fibeamer-\fibeamer@university-\fibeamer@faculty}
logo=\fibeamer@logoPath fibeamer-\fibeamer@university-%
\fibeamer@faculty-\fibeamer@locale.pdf}
\def\fibeamer@backupLogo{%
\fibeamer@logoPath fibeamer-\fibeamer@university-%
\fibeamer@faculty-english.pdf}
% \end{macrocode}
% \end{macro}
% \section{Logic}
......
PDFFILES=fibeamer-mu-econ-light.pdf fibeamer-mu-fsps-light.pdf \
fibeamer-mu-law-light.pdf fibeamer-mu-med-light.pdf \
fibeamer-mu-ped-light.pdf fibeamer-mu-phil-light.pdf \
fibeamer-mu-sci-light.pdf fibeamer-mu-fi-light.pdf \
fibeamer-mu-fss-light.pdf fibeamer-mu-econ-dark.pdf \
fibeamer-mu-fsps-dark.pdf fibeamer-mu-law-dark.pdf \
fibeamer-mu-med-dark.pdf fibeamer-mu-ped-dark.pdf \
fibeamer-mu-phil-dark.pdf fibeamer-mu-sci-dark.pdf \
fibeamer-mu-fi-dark.pdf fibeamer-mu-fss-dark.pdf
EPSFILES=fibeamer-mu-econ-light.eps fibeamer-mu-fsps-light.eps \
fibeamer-mu-law-light.eps fibeamer-mu-med-light.eps \
fibeamer-mu-ped-light.eps fibeamer-mu-phil-light.eps \
fibeamer-mu-sci-light.eps fibeamer-mu-fi-light.eps \
fibeamer-mu-fss-light.eps fibeamer-mu-econ-dark.eps \
fibeamer-mu-fsps-dark.eps fibeamer-mu-law-dark.eps \
fibeamer-mu-med-dark.eps fibeamer-mu-ped-dark.eps \
fibeamer-mu-phil-dark.eps fibeamer-mu-sci-dark.eps \
fibeamer-mu-fi-dark.eps fibeamer-mu-fss-dark.eps
OUTPUT=$(PDFFILES) $(EPSFILES)
.PHONY: all implode
all: $(OUTPUT)
%.pdf: %.svg
inkscape $< --export-pdf=$@
%.eps: %.pdf
pdftops -eps $<
implode:
rm -f $(OUTPUT)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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