From 5d4433a719284d1b3231a85dd510054c12a43014 Mon Sep 17 00:00:00 2001
From: John Ogness <john.ogness@linutronix.de>
Date: Thu, 19 Apr 2018 16:37:00 +0200
Subject: add generic support for print version

All presentations can be built in print form if the file

    .lxformat_print

exists in the main directory. If this file does not exist, the
regular beamer format will be generated.

IMPORTANT: The print version of the files are named the same as
           the beamer version!

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 configpres.tex | 69 +++++++++++++++++-----------------------------------------
 1 file changed, 20 insertions(+), 49 deletions(-)

(limited to 'configpres.tex')

diff --git a/configpres.tex b/configpres.tex
index cced101..a943033 100644
--- a/configpres.tex
+++ b/configpres.tex
@@ -1,51 +1,22 @@
-%!TEX TS-program = xelatex
-%!TEX encoding = UTF-8 Unicode
-
-\documentclass{beamer}
-
-\usepackage{polyglossia}
-\usepackage{amsmath,amssymb}
-\usepackage{listings,color}
-\usepackage{graphicx}
-\usepackage{xltxtra,fontspec,xunicode}
-\usepackage{fancyvrb}
-\usepackage{lxextras}
-
-\defaultfontfeatures{Scale=MatchLowercase}
-\setromanfont{TheMixB W5 Plain}
-\setsansfont{TheMixB W7 Bold}
-\setmonofont[Scale=0.7]{Source Code Pro}
-\linespread{0.5}
-
-\mode<presentation>{\usetheme{linutronix}}
-
-\institute{Linutronix GmbH}
-\definecolor{lbcolor}{RGB}{255,210,150}
-%\lstset{
-%language=C++,
-%numbers=left,
-%stepnumber=1,
-%numbersep=5pt,
-%breaklines=true,
-%breakautoindent=true,
-%postbreak=\space,
-%tabsize=2,
-%basicstyle=\ttfamily\small,
-%showspaces=false,
-%showstringspaces=false,
-%extendedchars=true,
-%backgroundcolor=\color{lbcolor},
-%keywordstyle=\bf ,
-%commentstyle=\color{blue},
-%stringstyle=\color{red}
-%}
-
-\begin{document}
-
-\setbeamertemplate{footline}[text line]{\parbox{\linewidth}{
-\copyright{} \the\year\ by \insertinstitute \hfill
-\insertshortauthor \hfill
-\insertpagenumber}
+\IfFileExists{.lxformat_print}
+{
+\input{configprint}
+}{
+\input{configbeamer}
 }
 
-\input{section}
+% Alternate Implementation
+%
+%\newif\ifformatbeamer
+%
+%\IfFileExists{lxformat.tex}{
+%\input{lxformat.tex}
+%}{
+%\formatbeamertrue
+%}
+%
+%\ifformatbeamer
+%\input{configbeamer}
+%\else
+%\input{configprint}
+%\fi
-- 
cgit v1.2.3

