Page LayoutFooter/Header

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
malli
Posts: 2
Joined: Wed Feb 03, 2010 9:17 pm

Footer/Header

Post by malli »

Hello,

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}
Attachments
Uebung.pdf
(44.31 KiB) Downloaded 206 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Footer/Header

Post by localghost »

You could use a tabular environment for the right side of the header. Make sure that the length \headheight is set to an appropriate value in order to avoid warnings.


Best regards and welcome to the board
Thorsten
malli
Posts: 2
Joined: Wed Feb 03, 2010 9:17 pm

Re: Footer/Header

Post by malli »

Thanks for your help and your welcoming me. I will try it.
Post Reply