4

For my thesis I wwant to format the nomencl in the same style as the rest. Simply put this means I want the nomencl to appear as follows:


Symbol Quantity Unit


t Time s

rest of the list


The three lines shown above are respectifily \toprule, \midrule and \bottomrule from the booktabs package.

I checked the nomentbl package but here I do not get the horizontal lines as required. Presuamably my skills in LaTeX hacking are not adequit enough to tackle this problem.

This is an example of an units input line:

\nomenclature[ra ]{$t$}{Time}

This is what I tried to get the lines:

\renewcommand{\nompreamble}{\toprule}
\renewcommand{\nompreamble}{\bottomrule}

But this did not work out.

Hopefully one can put me in the right direction!

5
  • 1
    I recommend the package glossaries with the style long. Feb 18, 2012 at 13:28
  • @MarcoDaniel The glossaries package is used for the glossaries already. For this reason, I should make this work with the nomencl package Feb 18, 2012 at 16:21
  • In this case it is much better to use glossaries instead of nomencl. Feb 18, 2012 at 17:45
  • @MarcoDaniel Again I appreciate your suggestion, however, using glossaries would introduces other problems as my glossaries should look different. Using two different packages I can discriminate between the two of them. I think it should be possible, I see this style frequently in books. Feb 18, 2012 at 18:49
  • I understand your scepticism but you can handle more than one style with glossaries. Working with nomecltbl you must modify the file nomentbl.ist. Feb 18, 2012 at 19:08

1 Answer 1

4

I have no idea about how you have tweaked your nomentbl.sty. For my nomentbl.sty file, this is what I added to nomentbl.ist file to get the desired effect.

preamble "\n\\begin{thenomenclature}\n%
\\begin{longtable}[l]%
{lp{\\textwidth*\\real{0.6}}c!{\\extracolsep{\\fill}}lll}\\toprule  %% <------ rule here
\\multicolumn{1}{l}{Symbol}&\\multicolumn{1}{c}{Quantity}& \\multicolumn{1}
{c}{Unit}\\\\ \n %% <------ header here
\\bottomrule %% <------ rule here
\\nopagebreak\\\\*[\\parskip]\n"
postamble "\\bottomrule %% <------ rule here
\n\\end{longtable}\n\n\\end{thenomenclature}\n" keyword
"\\nomenclatureentry"

This is how it looks. Beginning of the list. enter image description here

You may appropriately edit your nomentbl.ist to get this effect.

8
  • Thanks, did work, However, can someone explain what exactly happens in the follow declatration: {lp{\\textwidth*\\real{0.6}}c!{\\extracolsep{\\fill}}lll} Feb 20, 2012 at 20:55
  • That is saying how the long table should be (i.e., the description of the columns). Remember \begin{tabular}{ccccl}?
    – user11232
    Feb 20, 2012 at 23:03
  • Harish Kumer Yes, that part I do recognise. However, I can't see why we need four l declarations in addition to the rest. Probably something with the multicol part? Feb 21, 2012 at 13:14
  • You mean p{\\textwidth....\\fill}?. It is for reserving space for the Quantity.
    – user11232
    Feb 21, 2012 at 23:01
  • @HarishKumar this worked beautifully! One thing I can't manage to do: I got equation numbers (using the refeq option) as a 4th column - how do I get a column header for those? I tried adding a 4th multicolumn command, but this shifts the equation numbers below to the right (nearly out of the page). Can you help?
    – Christoph
    Oct 10, 2013 at 15:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .