diff options
| author | John Ogness <john.ogness@linutronix.de> | 2018-04-20 10:56:49 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-04-20 10:56:49 +0200 |
| commit | af2b1ff9b0863f4561e67899d18117bb8555f1b2 (patch) | |
| tree | 62046ec96d578da52163b0ae42e36202510d00f8 | |
| parent | cd97d8f436a9390549ca211bbfb3b40d8bf163fb (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-- | Kconfig | 7 | ||||
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | configbeamer.tex | 13 | ||||
| -rw-r--r-- | configprint.tex | 14 | ||||
| -rw-r--r-- | tailbeamer.tex | 9 |
5 files changed, 42 insertions, 6 deletions
@@ -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" @@ -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} |
