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 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?
share|improve this question
1  
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. –  Marco Daniel Feb 16 '13 at 8:47
    
@MarcoDaniel The first question rather seems like a request to reduce the spacing before the nomenclature heading. –  lockstep Feb 16 '13 at 9:05
    
@lockstep: Really? The op wants to change the margins. –  Marco Daniel Feb 16 '13 at 9:06
    
@MarcoDaniel "smaller margin on top" (emphasis added) –  lockstep Feb 16 '13 at 9:07
3  
@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}. –  Marco Daniel Feb 16 '13 at 9:09
show 1 more comment

1 Answer 1

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}%
  {\if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi}%
  {\if@intoc\addcontentsline{toc}{section}{\nomname}\fi}%
  {}{\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.

share|improve this answer
    
“This might not really be what you want.” That's why I didn't answer but decided to wait for an MWE... –  cgnieder Feb 16 '13 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 '13 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 –  cgnieder Feb 16 '13 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 '13 at 17:50
add comment

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.