From af2b1ff9b0863f4561e67899d18117bb8555f1b2 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 20 Apr 2018 10:56:49 +0200 Subject: microconsult: add menu option to use theme Add a new CONFIG_BUILD_MICROCONSULT option to use the MicroConsult theme. Printouts are also affected by this option. Signed-off-by: John Ogness --- Kconfig | 7 ++++++- Makefile | 5 +++++ configbeamer.tex | 13 ++++++++++++- configprint.tex | 14 ++++++++++---- tailbeamer.tex | 9 +++++++++ 5 files changed, 42 insertions(+), 6 deletions(-) diff --git a/Kconfig b/Kconfig index cedc98b..0195042 100644 --- a/Kconfig +++ b/Kconfig @@ -1,9 +1,14 @@ mainmenu "Build training documents" +config BUILD_MICROCONSULT + bool "Build with MicroConsult theme" + help + Build slides using the MicroConsult theme + config BUILD_HANDOUTS bool "Build with handouts" help - Build papers with or without handouts + Build handouts for slides config BUILD_PRINTOUTS bool "Build with printouts" diff --git a/Makefile b/Makefile index 44e137e..801b713 100644 --- a/Makefile +++ b/Makefile @@ -73,6 +73,11 @@ all: build PHONY += build build: check +ifdef CONFIG_BUILD_MICROCONSULT + $(Q)touch .lxformat_microconsult +else + $(Q)rm -f .lxformat_microconsult +endif ifdef CONFIG_BUILD_HANDOUTS $(Q)mkdir -p $(DEPLOYHANDOUT) $(Q)$(foreach dir,$(PATHS),$(MODMK) -C $(dir) buildhandouts;) diff --git a/configbeamer.tex b/configbeamer.tex index cced101..70a415a 100644 --- a/configbeamer.tex +++ b/configbeamer.tex @@ -17,9 +17,15 @@ \setmonofont[Scale=0.7]{Source Code Pro} \linespread{0.5} +\IfFileExists{.lxformat_microconsult} +{ +\mode{\usepackage{foreignthemes/microconsult/beamerthememicroconsult}} +\institute{MicroConsult GmbH / Linutronix GmbH} +}{ \mode{\usetheme{linutronix}} - \institute{Linutronix GmbH} +} + \definecolor{lbcolor}{RGB}{255,210,150} %\lstset{ %language=C++, @@ -42,10 +48,15 @@ \begin{document} +\IfFileExists{.lxformat_microconsult} +{ +% no copyright footer +}{ \setbeamertemplate{footline}[text line]{\parbox{\linewidth}{ \copyright{} \the\year\ by \insertinstitute \hfill \insertshortauthor \hfill \insertpagenumber} } +} \input{section} diff --git a/configprint.tex b/configprint.tex index ba98403..b04ade2 100644 --- a/configprint.tex +++ b/configprint.tex @@ -18,7 +18,16 @@ \setmonofont[Scale=0.7]{Source Code Pro} \linespread{0.5} -\usetheme{linutronix} +\IfFileExists{.lxformat_microconsult} +{ +\mode{\usepackage{foreignthemes/microconsult/beamerthememicroconsult}} +\institute{MicroConsult GmbH / Linutronix GmbH} +}{ +\mode{\usetheme{linutronix}} +\institute{Linutronix GmbH} +} + +\definecolor{lbcolor}{RGB}{255,210,150} %% Reset headline for the handouts \defbeamertemplate*{headline}{}{} @@ -26,9 +35,6 @@ \pgfpageslogicalpageoptions{1}{border code=\pgfusepath{stroke}} \pgfpageslogicalpageoptions{2}{border code=\pgfusepath{stroke}} -\institute{Linutronix GmbH} -\definecolor{lbcolor}{RGB}{255,210,150} - \begin{document} \input{section} diff --git a/tailbeamer.tex b/tailbeamer.tex index 3788c79..e2f7b63 100644 --- a/tailbeamer.tex +++ b/tailbeamer.tex @@ -1,4 +1,12 @@ \begin{frame}[fragile] +\IfFileExists{.lxformat_microconsult} +{ +Thank you for your attention. +\newline +\newline +\newline +\insertinstitute +}{ \begin{columns} \column[c]{.50\textwidth} Thank you for your attention. @@ -13,6 +21,7 @@ Bahnhofstra\ss{}e 3 \vskip1cm \includegraphics[height=0.9\textwidth]{/usr/share/lx/logo/frau_auf_logo} \end{columns} +} \end{frame} \end{document} -- cgit v1.2.3