From af2b1ff9b0863f4561e67899d18117bb8555f1b2 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
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 <john.ogness@linutronix.de>
---
 configbeamer.tex | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'configbeamer.tex')

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}
-- 
cgit v1.2.3

