I would like to set two different layouts (namely headers) for my document. The document is two column dictionary. First part will be introduction with chapters and sections and the second part the dictionary itself where the headers are made from the first and the last headword on the page. I dont know how to set the first layout with chapter in header and than how to change it to different layout. Here is the code:
\documentclass[twocolumn]{book}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage[icelandic, czech, english]{babel}
\usepackage[utf8x, utf8]{inputenc}
\newcommand{\entry}[2]{\hangpara{2em}{1}\textsf{\textbf{#1}}\ #2\markboth{#1}{#1}\par}\nopagebreak[4]
\pagestyle{fancy}
\newcommand*{\dictchar}[1]{\centerline{\LARGE\textbf{#1}}\par}
\fancyhf{}
\fancyhead[LE,RO]{\textsf{\textbf{\rightmark\ -- \leftmark}}}
\fancyhead[LO,RE]{\textsf{\textbf{\thepage}}}
\usepackage{fix2col}
\begin{document}\maketitle
\thispagestyle{plain}
\chapter*{1. First chapter}
\section*{1.1 First section}
...