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>
---
 configprint.tex | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

(limited to 'configprint.tex')

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

