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 want to achieve this for my nomenclature, making it two column with title on top of the columns and not part of the first one. I also want to keep my nomenclature's name changed to Appendix which I do with \renewcommand{\nomname}{Acronyms}.

Can anyone help me "port" the code in this post to my needs?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

From \nomname I guess you're using the nomencl package.

Then

\usepackage{multicol}
\makeatletter
\@ifundefined{chapter}
  {\def\wilh@nomsection{section}}
  {\def\wilh@nomsection{chapter}}

\def\thenomenclature{%
  \begin{multicols}{2}[%
    \csname\wilh@nomsection\endcsname*{\nomname}
    \if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi
    \nompreamble]
  \list{}{%
    \labelwidth\nom@tempdim
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \itemsep\nomitemsep
    \let\makelabel\nomlabel}%
}
\def\endthenomenclature{%
  \endlist
  \end{multicols}
  \nompostamble}
\makeatother

should do.

Complete example (with mock nomenclature entries)

\documentclass{book}
\usepackage[intoc]{nomencl}
\makenomenclature
\usepackage{multicol}
\makeatletter
\@ifundefined{chapter}
  {\def\wilh@nomsection{section}}
  {\def\wilh@nomsection{chapter}}

\def\thenomenclature{%
  \begin{multicols}{2}[%
    \csname\wilh@nomsection\endcsname*{\nomname}
    \if@intoc\addcontentsline{toc}{\wilh@nomsection}{\nomname}\fi
    \nompreamble]
  \list{}{%
    \labelwidth\nom@tempdim
    \leftmargin\labelwidth
    \advance\leftmargin\labelsep
    \itemsep\nomitemsep
    \let\makelabel\nomlabel}%
}
\def\endthenomenclature{%
  \endlist
  \end{multicols}
  \nompostamble}
\makeatother

\begin{document}

\frontmatter    
\tableofcontents

\mainmatter
\chapter{X}

\newcount\pippo
\def\mocknom{\expandafter\nomenclature\expandafter{\romannumeral\pippo}{X}}

abc

\loop\ifnum\pippo<200
\advance\pippo1
\mocknom
\repeat

\printnomenclature
\end{document}
share|improve this answer
    
I get two columns within one column, and the nomenclature won't continue to the next page when filled: my output Also, I am using report if that matter –  Wilhelmsen Oct 23 '12 at 13:22
1  
@Wilhelmsen Are you perhaps using the twocolumn option? –  egreg Oct 23 '12 at 16:00
    
thank you, I hadn't removed my previous tests to get this working, making it a double two column. Thank you very much! –  Wilhelmsen Oct 24 '12 at 8:44
    
Now I don't have the ability to use sub-floats, I get hundreds of error messages. Removing your code solves the problem. What could this be? –  Wilhelmsen Nov 6 '12 at 10:54
    
@Wilhelmsen Without an example of code it's very hard to tell something. –  egreg Nov 6 '12 at 11:44

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.