[OS X TeX] headings problem in multicol

Alex Hamann Alexander.Hamann at stud-mail.uni-wuerzburg.de
Fri Dec 28 15:34:50 CET 2007


I am puzzled:
I have a document set in two columns using the multicol package. I  
use KOMA Script and build my own headline by defining and redefining  
some commands. What I can not get to work properly are the headings:  
in the minimal example below I never manage to get a heading for the  
last of the three pages. Any hints why this is so would be highly  
welcome!

Cheers,

Alex

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%!TEX encoding = UTF-8 Unicode
%!TEX TS-program = XeLaTeX-xdvipdfmx

\documentclass[ 10pt,
                 a4paper,
                 DIV14,
                 headinclude,       % Kopf aus der Seitenberechnung  
raushalten
                 footexclude,       % Fußzeile aus der  
Seitenberechnung raushalten
              %   halfparskip*,      % ...
                 smallheadings,     % Überschriftengröße
                 automark,          % Option für die  
Kolumnenüberschriften
                 twoside,%twocolumn,
               %  draft,
                 final              % Endversion
               ]{scrartcl}


\usepackage{multicol}

\usepackage{fontspec, xunicode}

\usepackage[english,ngerman]{babel}

\setkomafont{pagehead}{\normalfont\small\itshape}
\setkomafont{pagenumber}{\normalfont}

\usepackage{color}
\definecolor{myblue}{rgb}{0,.1,.6}
\addtokomafont{sectioning}{\centering\color{myblue}\rmfamily}


\newcommand{\mySpaltenende}{\columnbreak}

\newcommand{\myDoppelspaltenAnfang}{\begin{multicols}{2}%
\flushleft%
\setlength{\columnseprule}{.6pt}%
\raggedcolumns%
}

\newcommand{\myDoppelspaltenEnde}{\end{multicols}}

\newcommand{\myTitle}{}
\newcommand{\myPageNumber}{}
\newcommand{\myNewPage}[2]{\pagebreak\renewcommand{\myTitle}{#2} 
\renewcommand{\myPageNumber}{#1}}
\usepackage[automark]{scrpage2}
\clearscrheadfoot
\chead{\myTitle}
\ohead{\myPageNumber}

%%%%%%%%%%%%


\begin{document}
\pagestyle{scrheadings}


\myDoppelspaltenAnfang

\myNewPage{1}{Register.}

A

\mySpaltenende{}

B

\myNewPage{2}{Register.}

C

\mySpaltenende{}

D

\myNewPage{3}{Register.}

E

\mySpaltenende{}

F

\myDoppelspaltenEnde


\end{document}






More information about the macostex-archives mailing list