2

I've used two indexes:

\documentclass[a4paper,fontsize=11pt,headsepline,parskip=half-,index=totoc,BCOR=5mm,DIV=15]{scrreprt}
\usepackage{imakeidx}
\makeindex[name=stichwortA,title=Stichwort-VerzeichnisA,options=-s ./main]
\makeindex[name=stichwortB,title=Stichwort-VerzeichnisB,columns=4,options=-s ./main]
\begin{document}
\printindex[stichwortA]

Unfortunately in the heading it's written STICHWORT-VERZEICHNISA with upper-case letters.

Can I change the definition in the preamble to get normal case letters as Stichwort-VerzeichnisA?

2
  • 2
    please make your example minimal and compilable. Is the index really needed here or would you see the same thing for any \chapter\section...? Or do you just want to change this behaviour for the index?
    – LaRiFaRi
    May 4 '15 at 10:42
  • There is no heading since there aren't any \index commands
    – user31729
    May 4 '15 at 10:45
4

There is an option headers that can be set by \indexsetup:

\indexsetup{headers={\indexname}{\indexname}}

enter image description here

Code:

\documentclass[headsepline]{scrreprt}
\usepackage[splitindex]{imakeidx}
\makeindex[name=stichwortA,title=Stichwort-VerzeichnisA]
\makeindex[name=stichwortB,title=Stichwort-VerzeichnisB,columns=4]

\indexsetup{
  firstpagestyle=headings,% only to show the header in this example
  headers={\indexname}{\indexname}
}

\pagestyle{headings}
\begin{document}
Text \index[stichwortA]{Test A}
\printindex[stichwortA]
\end{document}

The code above works also with the package scrlayer-scrheadings. Or you could also use the scrlayer-scrheadings option markcase=noupper.

\documentclass[headsepline]{scrreprt}
\usepackage[automark,markcase=noupper]{scrlayer-scrpage}
\usepackage[splitindex]{imakeidx}
\makeindex[name=stichwortA,title=Stichwort-VerzeichnisA]
\makeindex[name=stichwortB,title=Stichwort-VerzeichnisB,columns=4]

\indexsetup{
  firstpagestyle=scrheadings,% only to show the header in this example
}

\begin{document}
Text \index[stichwortA]{Test A}
\printindex[stichwortA]
\end{document}
2
  • Very nice! With indexsetup it works. Adding \clearscrheadfoot before \printindex[stichwortA] removes the headings. Is it possible to remove also the headsepline on this specific page?
    – laminin
    May 4 '15 at 11:50
  • 1
    Remove firstpagestyle=... from the code. I have inserted this option because there is only the first index page in my example.
    – esdd
    May 4 '15 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.