2

I am using article document class and I am making all my section titles appearing centred at top of page. I am making a separate page for the nomenclature using \usepackage{nomencl} and everything is wokring fine EXCEPT: I would like the 'Nomenclature' title to appear centered at the top of the page and the list of symbols begin underneath with a space between title and first entry of, lets say 1cm.

I have checked some similar questions, but they appear to be using book or report class, which I think has something to do with why those solutions won't work in my case:

Remove space before nomenclature in Lyx

and

Spacing prior to start of the nomenclature

This is my code:

\documentclass[a4paper]{article} 
\usepackage[utf8]{inputenc}

\usepackage[intoc]{nomencl}
\makenomenclature

\begin{document}
\mbox{}

\nomenclature{$c$}{Speed of light in a vacuum inertial frame}
\nomenclature{$h$}{Planck constant}

\printnomenclature

\end{document}
1

In a real document, you probably want \printnomenclature to be preceded by text and, possibly, by \clearpage so that it starts at the top.

If the document has just nomenclature, you need \mbox{} so a page is actually shipped out and the nomenclature entries are written out.

In this case, add \mbox{} after \printnomenclature:

\documentclass[a4paper]{article} 
\usepackage[utf8]{inputenc}

\usepackage[intoc]{nomencl}
\makenomenclature

\begin{document}

\nomenclature{$c$}{Speed of light in a vacuum inertial frame}
\nomenclature{$h$}{Planck constant}

\printnomenclature

\mbox{}

\end{document}

Note: the image has been prepared with \usepackage{showframe} in order to show the page boundaries.

enter image description here

| improve this answer | |
1

Put the below code at the preamble of your main LaTeX document.

\renewcommand{\nompreamble}{\vspace*{-1cm}}

I hope this helps!

| improve this answer | |

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.