summaryrefslogtreecommitdiff
path: root/configpres.tex
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-04-19 16:37:00 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-19 16:37:00 +0200
commit5d4433a719284d1b3231a85dd510054c12a43014 (patch)
treec613d59411961e11ece2b57096fd1a9af9346b17 /configpres.tex
parent14868ed29a87bbce4198894e530895e318da9fea (diff)
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>
Diffstat (limited to 'configpres.tex')
-rw-r--r--configpres.tex69
1 files changed, 20 insertions, 49 deletions
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