GeneralFancy header in the frontmatter problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Bert
Posts: 1
Joined: Tue Apr 22, 2008 4:13 pm

Fancy header in the frontmatter problem

Post by Bert »

Hello everyone,

I am participating in the Design Synthesis Exercise in the third year of my bachelor. Our group is writing the report in latex. I am now trying to get the headers right. For the major part I succeeded, but there is a slight problem in the frontmatter. I used the \frontmatter command because now the chapters show up in the table of contents without a number. The problem is now that in the header latex puts "Chapter 0. Preface". I don't want that "Chapter 0." there. Does someone know how to solve this. I attached the files.

Regards,
Bert
masterfile.tex
The main file
(1.08 KiB) Downloaded 289 times
chapter1.tex
Test chapter 1
(56 Bytes) Downloaded 286 times
test.tex
Preface file
(27 Bytes) Downloaded 306 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
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Fancy header in the frontmatter problem

Post by Stefan Kottwitz »

Hi Bert,

welcome to the LaTeX Community board!
You could try \markboth:

Code: Select all

\chapter{Preface}
\markboth{Preface}{Preface}
...
Stefan
firebush
Posts: 4
Joined: Fri Oct 31, 2008 3:31 pm

Re: Fancy header in the frontmatter problem

Post by firebush »

I had this same issue and this worked for me. Thanks Stephan!
Brian
Post Reply