summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-04-20 10:56:49 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-20 10:56:49 +0200
commitaf2b1ff9b0863f4561e67899d18117bb8555f1b2 (patch)
tree62046ec96d578da52163b0ae42e36202510d00f8
parentcd97d8f436a9390549ca211bbfb3b40d8bf163fb (diff)
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 <john.ogness@linutronix.de>
-rw-r--r--Kconfig7
-rw-r--r--Makefile5
-rw-r--r--configbeamer.tex13
-rw-r--r--configprint.tex14
-rw-r--r--tailbeamer.tex9
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<presentation>{\usepackage{foreignthemes/microconsult/beamerthememicroconsult}}
+\institute{MicroConsult GmbH / Linutronix GmbH}
+}{
\mode<presentation>{\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<presentation>{\usepackage{foreignthemes/microconsult/beamerthememicroconsult}}
+\institute{MicroConsult GmbH / Linutronix GmbH}
+}{
+\mode<presentation>{\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}