Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I wonder if there is a solution to the following problem: I wanted to create an index with the package makeidx and the scrartcl document class. \printindex creates a chapter called "Index". But all I wanted to have is a section (!) called "Index". (I cant find anything in the makeidx doc about this.) How can this be done? Any ideas?

\documentclass[]{scrartcl}

\usepackage{makeidx}

\makeindex

\begin{document}

    This is a test\index{test} text.

    \printindex % prints out a chapter but i want a section to be printed.

\end{document}
share|improve this question

1 Answer 1

up vote 7 down vote accepted

In fact, \printindex does create an (unnumbered) \section* with the article and scrartcl classes -- but because the index uses \twocolumn internally, it starts on a new page, which does resemble \chapters behaviour.

Solution: Load my idxlayout package -- it uses multicol internally and therefore does not start a new page. idxlayout is respondent to KOMA-Script's index-related options and commands.

\documentclass{scrartcl}

\usepackage{makeidx}
\makeindex

\usepackage{idxlayout}

\begin{document}

\section{foo}

This is a test\index{test} text.

\printindex

\end{document}
share|improve this answer
    
tanks! this seems to point me in the right direction. but after compiling your source code with xelatex and processing with makeindex the output is just the same. do i have to do something else? –  user8317 Oct 2 '11 at 23:28
2  
Delete all auxiliary files and then compile with xelatex-makeindex-xelatex- xelatex. –  lockstep Oct 2 '11 at 23:35
    
its working perfectly now! thx a lot! –  user8317 Oct 3 '11 at 10:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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