AnswerBun.com

Starting a nomenclatur group on a new page using nomencl

TeX - LaTeX Asked by Andy Grey on September 19, 2020

I have two nomenclature groups. Is it possible to force one to start on a new page? I’ve also reduced the line spacing, but it’d be nice if I could keep the spaceing between the group name and the headers.

Here is my (very scrappy and pasted together from several sources in tex.stackechange) code

documentclass{article}
usepackage{nomencl, ragged2e, etoolbox, mathtools}
usepackage{xargs}

makenomenclature
DeclarePairedDelimiter{abs}{lvert}{rvert}
newcommand{units}[1]{makebox[4em]{#1hfill}ignorespaces}

newcommand{nomsubtitle}[1]{item[largebfseries #1]}
renewcommandnomgroup[1]{defnomtemp{csname nomstart#1endcsname}nomtemp}

newcommand{nomstartF}{nomsubtitle{Formelzeichen}%
item[bfseries Symbol]%
nomdescr{textbf{Description}}units{textbf{Unit}}}

newcommand{nomstartA}{nomsubtitle{Acronyms}%
item[bfseries Acronym]textbf{Description}}


renewcommand*{nompreamble}{markboth{nomname}{nomname}}

newcommand{nomdescr}[1]{parbox[t]{10cm}{RaggedRight #1}}

newcommand{nomtypeA}[3][]{nomenclature[A#1]{#2}{nomdescr{#3}}}
newcommand{nomwithunits}[4]{nomenclature[#1]{#2}%
{nomdescr{#3}units{#4}}} %neuer Befehl zum Gesamtergebnis der Symbole
newcommand{nomtypeF}[4][]{nomwithunits{F#1}{#2}{#3}{#4}}
setlength{nomitemsep}{-parsep}

nomtypeA{wirk}{wirkleistungsbezogen}
nomtypeF{a}{Jahr}{annum}

begin{document}

printnomenclature[6em]

end{document}

Edit: added minimal document

2 Answers

I was dealing with a similar issue, however, I went for a simple but hacking solution. I just added a newpage in the definition of the last item of the first nom group: nomenclature[A]{textbf{Acronym}}{Description newpage} The result is, that a new page is inserted before the next group header.

Answered by Hadain on September 19, 2020

In case anyone in interested, I added changed the nomstartf command to

newcommand{nomstartF}{newpagenomsubtitle{Formelzeichen}%
item[bfseries Symbol]%
nomdescr{textbf{Bezeichnung}}units{textbf{Einheit}}%
}

which forced a new page. Didn't figure out the spacing between title and headings though

Answered by Andy Grey on September 19, 2020

Add your own answers!

Related Questions

LaTeX – how do I force PDF page height/width?

7  Asked on November 27, 2020 by naspinski

   

Get linebreaks at a long list

1  Asked on November 27, 2020

     

Latex Type 3 Font Issue in windows 10

0  Asked on November 27, 2020 by mobeen

   

Calc Style is Missing from TexLive

0  Asked on November 26, 2020

       

Package acronym: Other label for Acronym

0  Asked on November 26, 2020 by kalandir

   

Add tag, label to several items in a list

1  Asked on November 26, 2020 by antshar

   

Unable to diagnose missing semicolon

1  Asked on November 26, 2020

   

Table (or similar) of numbered displayed math

2  Asked on November 26, 2020 by scar-guajardo

     

Captions for tcolorbox

1  Asked on November 26, 2020 by sequence

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir