summaryrefslogtreecommitdiff
path: root/doc/MPU/inputs/header.tex
blob: e795bf02ea808b1ce524fd08f9c4dd1fe22c675a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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}}}