2

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?

4

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}
  • 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 – chwi 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! – chwi 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? – chwi 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

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.