summaryrefslogtreecommitdiffstats
path: root/vorlagen/thesis/src/layout-extras.tex
diff options
context:
space:
mode:
authorRefik Hadzialic2012-03-26 13:17:34 +0200
committerRefik Hadzialic2012-03-26 13:17:34 +0200
commit4abd197d076ac894ea1260e506b03dd020a7cee4 (patch)
tree32866b82c321a063dfda7fda8eea82f5ac939caf /vorlagen/thesis/src/layout-extras.tex
parentinit repo (diff)
downloadmalign-4abd197d076ac894ea1260e506b03dd020a7cee4.tar.gz
malign-4abd197d076ac894ea1260e506b03dd020a7cee4.tar.xz
malign-4abd197d076ac894ea1260e506b03dd020a7cee4.zip
I added the latex files for writing the thesis!
Diffstat (limited to 'vorlagen/thesis/src/layout-extras.tex')
-rw-r--r--vorlagen/thesis/src/layout-extras.tex93
1 files changed, 93 insertions, 0 deletions
diff --git a/vorlagen/thesis/src/layout-extras.tex b/vorlagen/thesis/src/layout-extras.tex
new file mode 100644
index 0000000..0f2ee8e
--- /dev/null
+++ b/vorlagen/thesis/src/layout-extras.tex
@@ -0,0 +1,93 @@
+
+\renewcommand{\topfraction}{0.85}
+\renewcommand{\textfraction}{0.1}
+\renewcommand{\floatpagefraction}{0.75}
+
+\makeatletter
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+% Chapter thumbs with scrpage2
+%
+
+% Safty first
+\@ifundefined{chapter}{\let\chapter\undefined
+ \chapter must be defined to use chapter thumbs!}{%
+
+\newcommand*{\putoddnumbers}{%
+\begin{tikzpicture}[remember picture, overlay]
+ \node [shift={(-1.4cm,-3.6cm)}] at (current page.north east)
+ {%
+ \begin{tikzpicture}[remember picture, overlay]
+ \fill[fill=gray] (0,0) rectangle (1.4cm,1.2cm);
+ \node [shift={(0.7cm,0.55cm)}] {
+ \textcolor{white}{%
+ \strut\thepage%
+ }%
+ };
+ \end{tikzpicture}
+ };
+\end{tikzpicture}
+}
+
+\newcommand*{\putevennumbers}{%
+\begin{tikzpicture}[remember picture, overlay]
+ \node [shift={(0cm,-3.6cm)}] at (current page.north west)
+ {%
+ \begin{tikzpicture}[remember picture, overlay]
+ \fill[fill=gray] (0,0) rectangle (1.4cm,1.2cm);
+ \node [shift={(0.7cm,0.55cm)}] {
+ \textcolor{white}{%
+ \strut\thepage%
+ }%
+ };
+ \end{tikzpicture}
+ };
+\end{tikzpicture}
+}
+
+\newcommand*{\fancypagenumbers}[2][]{%
+ \rohead[\putoddnumbers#1]{\putoddnumbers#2}%
+ \lehead[\putevennumbers#1]{\putevennumbers#2}%
+}
+
+
+% initial use
+\fancypagenumbers{}
+\pagestyle{scrheadings}
+
+}
+%
+% End of chapter thumbs with scrpage2
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\makeatother
+
+\pagestyle{scrheadings}
+\setkomafont{pageheadfoot}{\normalfont\large\sffamily\bfseries\scshape}
+%% für ältere Versionen des Komascripts folgenden Aufruf benutzen:
+%%\setkomafont{pagehead}{\normalfont\large\sffamily\bfseries\scshape}
+%%\setkomafont{pagefoot}{\normalfont\large\sffamily\bfseries\scshape}
+\setkomafont{pagenumber}{\normalfont\large\sffamily\bfseries}
+
+
+% beidseitig innen
+\ihead[]{\textcolor{gray}{\headmark}}
+
+% beidseitig aussen
+%\ohead[\textcolor{gray}{\pagemark}]{%
+%\fcolorbox{gray}{gray}{%
+%\rule[-1mm]{0mm}{6mm}%
+%\hspace{1cm}%
+%\textcolor{white}{\pagemark}}%
+%\rule{3mm}{0mm}%
+%}
+
+% lösche Inhalt restlicher Felder
+% header Mitte
+\chead[]{}
+
+% footer
+\ofoot[]{}
+\cfoot[]{}
+\ifoot[]{}
+