Text Formattingnomencl | Spacing between Equations

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
AndrewLStewart
Posts: 1
Joined: Tue Jun 05, 2012 10:05 pm

nomencl | Spacing between Equations

Post by AndrewLStewart »

I am having issues where spacing is added after any equation where I use the \nomenclature{$a$}{A} command.

A basic example is below, if you go between pages 2 and 3 you can see the movement of last matrix because of the spacing. I don't know if there is a way to remove that spacing perfectly, I've tried \vspace{-\baselineskip} and \vspace{-\parskip} to no avail.

Code: Select all

\documentclass{report}
\usepackage{amsmath}
\usepackage{nomencl}

\makenomenclature

\begin{document}
  \printnomenclature
  \cleardoublepage
  \begin{equation}
    a=
    \begin{pmatrix}
      1 & 0 \\
      0 & 1 \\
    \end{pmatrix}
  \end{equation}
  \begin{equation}
    b=
    \begin{pmatrix}
      1 & 1 \\
      1 & 1 \\
    \end{pmatrix}
  \end{equation}
  \nomenclature{$b$}{Anything}%
  \begin{equation}
    c=
    \begin{pmatrix}
      0 & 0 \\
      0 & 0 \\
    \end{pmatrix}
  \end{equation}
  \cleardoublepage
  \begin{equation}
    a=
    \begin{pmatrix}
      1 & 0 \\
      0 & 1 \\
    \end{pmatrix}
  \end{equation}
  \begin{equation}
    b=
    \begin{pmatrix}
      1 & 1 \\
      1 & 1 \\
    \end{pmatrix}
  \end{equation}
  \begin{equation}
    c=
    \begin{pmatrix}
      0 & 0 \\
      0 & 0 \\
    \end{pmatrix}
  \end{equation}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

nomencl | Spacing between Equations

Post by localghost »

Simply put the \nomenclature command into the {equation} environment. That's it.


Best regards and welcome to the board
Thorsten
Post Reply