I'm new with LaTex and I'm trying to get familiar with it.
I want to have a header in two lines like in the pdf. And I would like to have top and bottom margin like in the pdf.
The next problem is, that I don't know why the header is italic?
Perhaps anybody can help me?
(Please excuse my bad English.)
Code: Select all
%used packages
\documentclass[10pt, a4paper]{scrartcl}
\usepackage{geometry}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{listings}
\usepackage{scrpage2}
\usepackage{pdfpages}
%change margin
\geometry{a4paper,left=25mm,right=25mm,top=25mm,bottom=20mm}
\parindent=0cm
\parskip=1mm
%Kopfzeile
\pagestyle{scrheadings}
\ihead{XXX/Gruppe 1 - Übung 8}
\ohead{Vorname Nachname}
\setheadsepline{.4pt}
%Fusszeile
\setfootsepline{.4pt}
\cfoot{}
\ofoot{\pagemark}
\begin{document}
\section{Beispiel 1}
\par
\subsection{Lösung für Beispiel 1}
Hier steht mal mehr und mal weniger Text
\par
\subsubsection{xxx}
Auch ein bisschen Text.
\par
\subsubsection{yyy}
Hier ebenfalls.
\par
\subsection{Sourcecode}
\lstinputlisting{test.pas}
\end{document}