I want to write my master thesis with the following setting:
Code: Select all
\documentclass[
a4paper,
12pt,
bibliography=totoc,
index=totoc,
abstracton,
headsepline,
% footnosepline,
]{scrartcl}
\usepackage{latexsym}
\usepackage[latin1]{inputenc}
\usepackage[ngerman,english]{babel}
\usepackage{subfig}
\usepackage{float}
\usepackage{graphicx}
\usepackage{rotating}
\usepackage{mathrsfs}
\usepackage{eurosym,bm,amsmath,amssymb,verbatim}
\usepackage{listings}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\usepackage[round,authoryear]{natbib}
\usepackage{amsmath}
\usepackage{graphicx,eso-pic,lipsum}
\usepackage[automark]{scrpage2}
\usepackage{url}
\usepackage{tocstyle}
\usetocstyle{noonewithdot}
\usepackage[bookmarksopen,hyperfootnotes=false,pdftitle=test, pdfauthor=test,pdfsubject=Project]{hyperref}
\usepackage{listings}
\lstset{
language=R,
basicstyle=\scriptsize,
showstringspaces=false,
showspaces=false,
keywordstyle=\color{blue},
commentstyle=\color{green},
stringstyle=\color{black}
}
%------------------------------------------------------------------------
\parindent0em
\topmargin-20.4mm
\textheight245mm
\textwidth157mm \oddsidemargin11mm \evensidemargin11mm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{scrheadings}
\ifoot[]{My Name}
\AddToShipoutPicture{%
\hspace{16cm}
% {\includegraphics[scale=1]{Logowatermark.jpg}}}
\begin{document}
\begin{titlepage}
%\hspace{2cm}\scalebox{1}{\includegraphics{Logo.jpg}}
\vspace*{1cm}
\large\textbf{Title}\\[0.5cm]
\normalsize description\\
subtext\\
Degree Course: enter here\\
\textbf{School of \mbox{test}}\\[0.8cm]
Name of Chair \\[1.5cm]
%
%
\noindent\begin{tabular}[h]{@{}ll}
%\begin{tabular}{l l}
Chairholder: \\
\\
Supervisors: \\
\\
Author: &My Name \\
\\
%Address: & \\[0.2cm]
% &1 \\
\\
Matriculation Number.: & \\
\\
Email: & \\
\\
\end{tabular}
\vfill
Place, Date
\end{titlepage}
\newpage
\pagenumbering{Roman}
\clearpage
\pagenumbering{arabic}
\onehalfspacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\setcounter{page}{1}
% \input{Chapter1}
%\newpage
%\input{Chapter2}
\newpage
\part{Description}
\section{Description}
test test test test test test
%\input{Chapter3}
\newpage
%\input{Appendix}
\newpage
\end{document}
- I want to have a vertical line at the left and at the right side
- I want to have a description in the header of the chapter and the section also on pages where part starts. At the moment, you can see, that there is no description on the first page (roman number 1).
Code: Select all
\fancyhead[L]{\hspace{2mm}\textcolor{headercolor}{\leftmark}\text{ }\textcolor{headercolor}{\rightmark}\hfill\textcolor{headercolor}{\thepage}\hspace{4mm}}
\renewcommand{\headrule}{\vspace{-\headheight}\textcolor{headercolor}{\vrule height \headheight width 2pt\relax\rule{\textwidth-8pt}{2pt}\vrule height \headheight width 2pt\relax}}
Code: Select all
LaTeX Error: Command \chead already defined. Or name \end... illegal,
see p.192 of the manual.