From c5fb7789c8264f7b9c1a9b0695d589d0227826b3 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 21 Mar 2014 11:47:36 +0000 Subject: [PATCH] tex templates: Add a couple of colors and commands Add some colors and convenience commands. Signed-off-by: Jan Lindemann --- tmpl/tex/de_contract/header.tex.tmpl | 40 +++++++++++++++++++++--- tmpl/tex/de_technical/frontpage.tex.tmpl | 9 ++++++ tmpl/tex/de_technical/header.tex.tmpl | 34 ++++++++++++++++++-- 3 files changed, 76 insertions(+), 7 deletions(-) diff --git a/tmpl/tex/de_contract/header.tex.tmpl b/tmpl/tex/de_contract/header.tex.tmpl index 54b933e6..97164f7d 100644 --- a/tmpl/tex/de_contract/header.tex.tmpl +++ b/tmpl/tex/de_contract/header.tex.tmpl @@ -60,7 +60,7 @@ \usepackage{zref-totpages} %\usepackage[applemac]{inputenc} %\usepackage[latin1]{inputenc} -%\usepackage[utf8]{inputenc} +\usepackage[utf8]{inputenc} %---------------------- File "./base/proc.sty": %---------------------- File "./misc/blkarray.sty": @@ -91,17 +91,38 @@ %\usepackage{epsfig} %\usepackage[umlaute] -\usepackage[pdftex,breaklinks,breaklinks,colorlinks,backref,pagebackref,linkcolor=blue,citecolor=blue, urlcolor=blue]{hyperref} -\usepackage[right]{eurosym} -\usepackage{import} +\usepackage{xcolor} + +\definecolor{lightblue}{rgb}{0.8,0.8,1.0} +\definecolor{darkred}{rgb}{0.5,0.0,0.0} +\definecolor{lightred}{rgb}{1.0,0.8,0.8} +\definecolor{lightgreen}{rgb}{0.8,1.0,0.8} +\definecolor{lightyellow}{rgb}{1.0,1.0,0.7} + +\usepackage[pdftex,breaklinks,colorlinks,backref,pagebackref,linkcolor=darkred,citecolor=blue, urlcolor=darkred,pdfauthor=__AUTHORS__,pdftitle=__TITLE__,pdfsubject=__SUBTITLE__]{hyperref} \usepackage[section]{placeins} +\usepackage{import} +\usepackage[right]{eurosym} + +\usepackage{textcomp} +\usepackage{booktabs} +%\usepackage{german}{babel} + +\usepackage[ngerman,colorinlistoftodos,shadow,textsize=tiny]{todonotes} +\usepackage{listings} + \lstset{ + literate= {\"O}{{\"O}}1 {\"A}{{\"A}}1 {\"U}{{\"U}}1 {"s}{{\ss}}2 {\"u}{{\"u}}1 + {\"a}{{\"a}}1 {\"o}{{\"o}}1 + } +\usepackage{mdframed} +\usepackage{xspace} %\usepackage{natbib} %\bibliographystyle{plainnat} \bibliographystyle{gerplain} -\usepackage{cite} \bibliography{literatur} +\usepackage{cite} %\textwidth 22.7cm \topmargin -0.4cm @@ -134,6 +155,12 @@ \newcommand{\pa}{\noindent \paragraph} \newcommand{\bv}{\begin{quote}\begin{ttfamily}} \newcommand{\ev}{\end{ttfamily}\end{quote}} +\newcommand {\hb}{\cite{SysMan}} +\newcommand {\fx}{\cite{Fax}} +\newcommand {\cconsole}{{\bf C-Console}\textsuperscript{\textregistered}\,} + +\let\oldEUR\EUR +\renewcommand{\EUR}[1]{\oldEUR{#1}\xspace} %\sloppy @@ -163,6 +190,7 @@ \renewcommand\topfraction{.9} \renewcommand\bottomfraction{.9} \renewcommand\textfraction{.1} +\setlength{\headheight}{15pt} \newenvironment{prog}{\begin{quote}}{\end{quote} } @@ -184,6 +212,8 @@ %Kopfzeile mittig mit Kaptilname %\fancyhead[C]{__TITLE__ __SUBTITLE__ \nouppercase{\leftmark}} +\title{__TITLE__ __SUBTITLE__} +\author{__AUTHORS__} \fancyhead[C]{__TITLE__ __SUBTITLE__} %Linie oben %\renewcommand{\headrulewidth}{0.5pt} diff --git a/tmpl/tex/de_technical/frontpage.tex.tmpl b/tmpl/tex/de_technical/frontpage.tex.tmpl index 91d28f1a..1abd26ba 100644 --- a/tmpl/tex/de_technical/frontpage.tex.tmpl +++ b/tmpl/tex/de_technical/frontpage.tex.tmpl @@ -28,6 +28,15 @@ % tion, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%\hypersetup{ +% pdfauthor={...}, +% pdftitle={...}, +% pdfsubject={...}, +% urlcolor=red, +% linkcolor=darkred, +%} + \thispagestyle{empty} \begin{figure}[t] diff --git a/tmpl/tex/de_technical/header.tex.tmpl b/tmpl/tex/de_technical/header.tex.tmpl index ed07c933..97164f7d 100644 --- a/tmpl/tex/de_technical/header.tex.tmpl +++ b/tmpl/tex/de_technical/header.tex.tmpl @@ -60,7 +60,7 @@ \usepackage{zref-totpages} %\usepackage[applemac]{inputenc} %\usepackage[latin1]{inputenc} -%\usepackage[utf8]{inputenc} +\usepackage[utf8]{inputenc} %---------------------- File "./base/proc.sty": %---------------------- File "./misc/blkarray.sty": @@ -91,11 +91,32 @@ %\usepackage{epsfig} %\usepackage[umlaute] -\usepackage[pdftex,breaklinks,colorlinks,backref,pagebackref,linkcolor=blue,citecolor=blue, urlcolor=blue]{hyperref} +\usepackage{xcolor} + +\definecolor{lightblue}{rgb}{0.8,0.8,1.0} +\definecolor{darkred}{rgb}{0.5,0.0,0.0} +\definecolor{lightred}{rgb}{1.0,0.8,0.8} +\definecolor{lightgreen}{rgb}{0.8,1.0,0.8} +\definecolor{lightyellow}{rgb}{1.0,1.0,0.7} + +\usepackage[pdftex,breaklinks,colorlinks,backref,pagebackref,linkcolor=darkred,citecolor=blue, urlcolor=darkred,pdfauthor=__AUTHORS__,pdftitle=__TITLE__,pdfsubject=__SUBTITLE__]{hyperref} \usepackage[section]{placeins} \usepackage{import} \usepackage[right]{eurosym} +\usepackage{textcomp} +\usepackage{booktabs} +%\usepackage{german}{babel} + +\usepackage[ngerman,colorinlistoftodos,shadow,textsize=tiny]{todonotes} +\usepackage{listings} + \lstset{ + literate= {\"O}{{\"O}}1 {\"A}{{\"A}}1 {\"U}{{\"U}}1 {"s}{{\ss}}2 {\"u}{{\"u}}1 + {\"a}{{\"a}}1 {\"o}{{\"o}}1 + } +\usepackage{mdframed} +\usepackage{xspace} + %\usepackage{natbib} %\bibliographystyle{plainnat} @@ -134,6 +155,12 @@ \newcommand{\pa}{\noindent \paragraph} \newcommand{\bv}{\begin{quote}\begin{ttfamily}} \newcommand{\ev}{\end{ttfamily}\end{quote}} +\newcommand {\hb}{\cite{SysMan}} +\newcommand {\fx}{\cite{Fax}} +\newcommand {\cconsole}{{\bf C-Console}\textsuperscript{\textregistered}\,} + +\let\oldEUR\EUR +\renewcommand{\EUR}[1]{\oldEUR{#1}\xspace} %\sloppy @@ -163,6 +190,7 @@ \renewcommand\topfraction{.9} \renewcommand\bottomfraction{.9} \renewcommand\textfraction{.1} +\setlength{\headheight}{15pt} \newenvironment{prog}{\begin{quote}}{\end{quote} } @@ -184,6 +212,8 @@ %Kopfzeile mittig mit Kaptilname %\fancyhead[C]{__TITLE__ __SUBTITLE__ \nouppercase{\leftmark}} +\title{__TITLE__ __SUBTITLE__} +\author{__AUTHORS__} \fancyhead[C]{__TITLE__ __SUBTITLE__} %Linie oben %\renewcommand{\headrulewidth}{0.5pt}