# nomenclature page formatting

I have a list of symbols generated throught the nomencl package. It works fine. The only problem I have is:

1. How can I redefine the margins for the page? by default it is using the margins for chapter. I want to set smaller margin on top for this page.
2. Is it possible to generate nomenclature without a page break, like it starts where the previous text ends?
• Welcome to TeX.sx! It's always the best to ask more than one question if you have different topics. For your first question see ctan.org/pkg/geometry and the second question can be done too. Feb 16, 2013 at 8:47
• @MarcoDaniel The first question rather seems like a request to reduce the spacing before the nomenclature heading. Feb 16, 2013 at 9:05
• @lockstep: Really? The op wants to change the margins. Feb 16, 2013 at 9:06
• @MarcoDaniel "smaller margin on top" (emphasis added) Feb 16, 2013 at 9:07
• @lockstep: "@"USER26016: Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Feb 16, 2013 at 9:09

In a document class with chapters, nomencl will set the nomenclature as an unnumbered chapter, otherwise as a section. To make the nomenclature a section even in a chaptered document like book, add the following to your preamble:

\usepackage{etoolbox}
\makeatletter
\patchcmd{\thenomenclature}%
{\chapter*{\nomname}}%
{\section*{\nomname}}%
{}{\message{^^Jthenomenclature patching failed (1)^^J}}
\patchcmd{\thenomenclature}%
{}{\message{^^Jthenomenclature patching failed (2)^^J}}
\makeatother


Note however, that then the nomenclature, as a section, will belong to the chapter that started before, and this will show, e.g., in the Table of Contents. This might not really be what you want.

• “This might not really be what you want.” That's why I didn't answer but decided to wait for an MWE... Feb 16, 2013 at 15:45
• @cgnieder Well, I think after all it is what the OP asked for, but I doubt that he should want that ;-)
– mafp
Feb 16, 2013 at 15:48
• I guessed that, too but since so many people use nomencl by copying some definition they found somewhere on the internet I rather decided to wait... If you answer and it's not what the OP wants you may have wasted your time... OTOH maybe it is what he/she wants Feb 16, 2013 at 16:07
• Thank you. This is exactly what I needed. Works like a charm. I added my own heading and used \addcontentsline to include it in toc. Thanks a million.
– user26024
Feb 16, 2013 at 17:50