1

I have a problem with my nomenclature. Using the following Code the output looks like in the pic below. If I delete the line \setlength I can see the whole description, but there are no or just one point in between. What I wanted is to have the description left aligned and points in between.

\documentclass
   [   fontsize=12pt,    
       paper=a4,         
   ]   {scrreprt}        

\usepackage[ngerman]{babel}  
\usepackage[utf8]{inputenc}   

\usepackage[intoc]{nomencl}

\let\abbrev\nomenclature
\renewcommand{\nomname}{Abkürzungsverzeichnis}
\setlength{\nomlabelwidth}{.25\hsize}
\renewcommand{\nomlabel}[1]{#1 \dotfill}
\setlength{\nomitemsep}{-\parsep}
\makenomenclature


\nomenclature{LBS}{\textbf{L}ocation \textbf{B}ased \textbf{S}ervices}
\nomenclature{test}{tsetses}

\begin{document}

\printnomenclature

\end{document}

enter image description here

  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Jan 2 '16 at 11:05
  • I added an MWE. €: after several edits, my pdf file is now just blank... Why... Am into it – Pris0n Jan 2 '16 at 11:27
  • I compiled my bachelor thesis again, where I just this code and it worked just fine then. No I get the same result as above. So I think the problem lies somewhere in updated packages... – Pris0n Jan 2 '16 at 11:41
0

At the moment you set \nomlabelwidth, the value of \hsize is still a very large value, as set by the scrartcl class.

You should use \textwidth:

\documentclass
   [   fontsize=12pt,    
       paper=a4,         
   ]   {scrreprt}        

\usepackage[ngerman]{babel}  
\usepackage[utf8]{inputenc}   

\usepackage[intoc]{nomencl}

\renewcommand{\nomname}{Abkürzungsverzeichnis}
\setlength{\nomlabelwidth}{.25\textwidth}

\renewcommand{\nomlabel}[1]{#1\dotfill}
\setlength{\nomitemsep}{-\parsep}
\makenomenclature


\nomenclature{LBS}{\textbf{L}ocation \textbf{B}ased \textbf{S}ervices}
\nomenclature{test}{tsetses}

\begin{document}

Some text

\printnomenclature

\end{document}

enter image description here

Better yet, move the setting at begin document:

\AtBeginDocument{\setlength{\nomlabelwidth}{.25\textwidth}}
  • Thanks :) I used this code in previous papers and it worked just fine. Weird – Pris0n Jan 2 '16 at 11:47

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.