summaryrefslogtreecommitdiff
path: root/doc/MPU/inputs/header.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/MPU/inputs/header.tex')
-rw-r--r--doc/MPU/inputs/header.tex132
1 files changed, 132 insertions, 0 deletions
diff --git a/doc/MPU/inputs/header.tex b/doc/MPU/inputs/header.tex
new file mode 100644
index 0000000..e795bf0
--- /dev/null
+++ b/doc/MPU/inputs/header.tex
@@ -0,0 +1,132 @@
+%----------------------------------------------------------------
+% HEADER File
+% Based on template by Keith Andrews. Thanks!
+%----------------------------------------------------------------
+
+%\documentclass[10pt,twocolumn]{article}
+\documentclass[12pt,twocolumn]{article}
+
+\usepackage[ % set page and margin sizes
+ a4paper,
+ twoside,
+ top=4mm,
+ bottom=8mm,
+ inner=15mm,
+ outer=15mm,
+ bindingoffset=0mm,
+ head=10mm,
+ foot=10mm,
+ headsep=15mm,
+ footskip=15mm,
+ includeheadfoot,
+]{geometry}
+% A4 is 210 x 297 mm
+% want block of 180 x 235 mm
+\setlength{\columnsep}{8.5mm}
+\usepackage{balance}
+\usepackage{times} % use PostScript fonts
+\usepackage[utf8]{inputenc} % allow direct input of special chars
+\usepackage{textcomp} % symbols such as \texttimes and \texteuro
+\usepackage[bf,sf]{titlesec}
+\usepackage[
+ position=bottom,
+ margin=1cm,
+ font=small,
+ labelfont={bf,sf},
+ format=hang,
+ indention=0mm,
+]{caption,subfig}
+
+%% add if necessary: %%
+\hyphenation{op-tical net-works semi-conduc-tor}
+
+\usepackage{relsize}
+\usepackage{tabularx}
+\usepackage{listings}
+\lstset{numbers=left, frame=single, captionpos=b,
+ breaklines=true, tabsize=2,basicstyle=\footnotesize,numbersep=5pt,
+ language=Ruby}
+\usepackage[hyphens,obeyspaces]{url}
+\def\UrlFont{\small\ttfamily}
+\renewcommand{\url}[1]
+{
+{% \def\UrlFont{\small\ttfamily}%
+\begingroup \Url{#1}
+}%
+}
+\usepackage{color}
+\definecolor{darkgreen}{rgb}{0,0.3,0}
+\definecolor{darkblue}{rgb}{0,0,0.2}
+\definecolor{darkred}{rgb}{0.5,0,0}
+\definecolor{lightgrey}{rgb}{0.8,0.8,0.8}
+\definecolor{black}{rgb}{0,0,0}
+
+\usepackage{ifpdf}
+\ifpdf
+ % pdflatex
+ \usepackage[pdftex]{graphicx}
+ \DeclareGraphicsExtensions{.pdf,.jpg,.png}
+ \pdfcompresslevel=9
+ \pdfpageheight=297mm
+ \pdfpagewidth=210mm
+ \usepackage[ % hyperref should be last package loaded
+ pdftex,
+ pdftitle={A Template For a Short Paper},
+ pdfsubject={Adjust to Your Needs!},
+ pdfauthor={Johannes Feiner, Sybille Paar},
+ bookmarks,
+ bookmarksnumbered,
+ linktocpage,
+% pagebackref,
+ colorlinks,
+ linkcolor=black,
+ anchorcolor=black,
+ citecolor=black,
+ urlcolor=black,
+ pdfview={FitH},
+ pdfstartview={Fit},
+ pdfpagemode=UseOutlines, % open bookmarks in Acrobat
+ plainpages=false, % avoids duplicate page number problem
+ pdfpagelabels, % avoids duplicate page number problem
+ ]{hyperref}
+
+\else
+ % latex
+ % should never have to run latex, since l2h now understands pdflatex .aux
+ \usepackage[dvips]{graphicx}
+ \usepackage[dvips]{hyperref}
+ \DeclareGraphicsExtensions{.eps}
+\fi
+% IEEE specific names
+
+\newcommand{\isbn}[1]
+{
+{\small
+\href{http://www.amazon.com/exec/obidos/ASIN/#1/}{#1}%
+}%
+}
+
+
+% DOIs http://www.doi.org/ e.g.
+% doi:10.1038/nature723
+% http://dx.doi.org/10.1038/nature723
+\newcommand{\doi}[1]
+{
+{\def\UrlFont{\rmfamily}
+\href{http://dx.doi.org/#1}{\protect\nolinkurl{doi:#1}}%
+}%
+}
+
+
+% based on url package
+% define styles for class, file, and variable names
+% which break nicely at line breaks
+\newcommand\cname{\begingroup \small\urlstyle{tt}\Url}
+\newcommand\fname{\begingroup \small\urlstyle{tt}\Url}
+\newcommand\vname{\begingroup \small\urlstyle{tt}\Url}
+\newcommand\email{\begingroup \small\urlstyle{tt}\Url}
+\newcommand{\halfh}{9.5cm} % height of figures for 2 per page
+\newcommand{\thirdh}{6cm} % height of figures for 3 per page
+\date{}
+
+\newcommand{\todo}[1]{{\color{red}{#1}}} \ No newline at end of file