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'm trying to format the nomenclature such that there is, ideally, a curly bracket around a series of items with 1 definition. If that's not possible then at least having a line break in between successive items then having the definition in the middle would be great.

(I've read the documentation and it says that `You can have have line breaks in the argument' but I have been unsuccessful at implementing it).

I've included a relatively short working code showing what I would ideally like in the nomenclature.

\documentclass{report}

\usepackage{amsmath}
\usepackage{nomencl}
\makenomenclature

\begin{document}

\printnomenclature

\begin{equation*}
\left[K\right]=
    \begin{pmatrix}
K_{xx}  &   K_{xy}      \\
K_{yx}  &   K_{yy}      \\
    \end{pmatrix}
\nomenclature{$K$, $K_x$, $K_y$, $K_{xx}$, $K_{yy}$, $K_{xy}$, $K_{yx}$}{Permeability values {$[m^2]$}}%
\end{equation*}

$\left.
    \begin{aligned}
    &K,    \\
    &K_x,~K_y,    \\
    &K_{xx},~K_{yy},    \\
    &K_{xy},~    \&~K_{yx}
    \end{aligned}
\right\}$Permeability values {$[m^2]$}

\end{document}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

So I have a workaround appended. Essentially adding either \begin{aligned} and \end{aligned} allows you to add line breaks. For what I was looking to do I found an rrcases command which makes it look nice.

 %Nomenclature curly braces
 \makeatletter
 \newenvironment{rrcases}{%
\matrix@check\rrcases\env@rrcases
 }{%
\endarray\right\rbrace%
 }
 \def\env@rrcases{%
\let\@ifnextchar\new@ifnextchar
\left.
\def\arraystretch{1.7}%
\array{@{}l@{~}l@{}}%
 }
 \makeatother

\nomenclature{$\begin{rrcases}K\\K_x\\K_y\\K_{xx}\\K_{yy}\\K_{xy}\\K_{yx}\end{rrcases}$}{Permeability values\nomunit{m^2}}%
share|improve this answer

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.