Page Layoutheader - set chaptermark

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
burgstaa
Posts: 8
Joined: Wed Oct 28, 2009 4:50 pm

header - set chaptermark

Post by burgstaa »

Hello!
I have a problem, with putting the list of abbreviations as an own chapter.

I create the list of abbreviation with the "acronym" environment:

Code: Select all

\chapter*{Abkürzungsverzeichnis}

\begin{acronym}
  \acro{KDE}{K Desktop Environment}
  \acro{SQL}{Structured Query Language}
  \acro{Bash}{Bourne-again shell}
\end{acronym}
That works exzellent, but i have a problem with the header. in the header, there should be the name of the chapter. But the name "Abkürzungsverzeichnis" does not appear. I guess its because of the \chapter*, but i dont want to have a number for that chapter.

This is how i set up my header:

Code: Select all

\usepackage{fancyhdr} 

\pagestyle{fancy} 
  \renewcommand{\chaptermark}[1]{				
  \markboth{\thechapter{} #1}{}
  } 
  \fancyhf{} 
  \fancyhead[L]{\leftmark} 
  \fancyhead[C]{} 
  \fancyhead[R]{Seite \thepage}
  \renewcommand{\headrulewidth}{0.4pt}
  \fancypagestyle{plain}{%
  }
my my idea is to manually set the chaptermark. even though i dont think that is elegant. anyone knows how this works?
anyone has other helpful suggestions? should i use something else then \chapter* ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
jarnhus
Posts: 3
Joined: Sun Nov 01, 2009 4:35 pm

header - set chaptermark

Post by jarnhus »

hey there

Just add a line saying

Code: Select all

\markboth{Abkürzungsverzeichnis}{}
under the chapter*-command. That should do ot
burgstaa
Posts: 8
Joined: Wed Oct 28, 2009 4:50 pm

Re: header - set chaptermark

Post by burgstaa »

that is exactly what i was looking for!

thank you very much!
Post Reply