MakeIndex, Nomenclature, Glossaries and Acronymsnomencl | Formatting a list of abbreviations

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
User avatar
avi9526
Posts: 6
Joined: Mon Mar 12, 2012 2:04 pm

nomencl | Formatting a list of abbreviations

Post by avi9526 »

Hi!
I want to use "nomencl" package for my documents. But problem is that it make "list of abbreviations" that I don't like/need.
Some example

Code: Select all

\RequirePackage[russian, ukrainian, english]{nomencl}
\makenomenclature
\renewcommand{\nomname}{\centerline{Something}}

\documentclass[a4paper, 12pt]{article}

\begin{document}
	\printnomenclature
		
	BlaBlaBla. I don't know what to write but I need a lot of this. The end.
	
	\nomenclature[Strings]{SoC}{System on Chip}
\end{document}
for this moment it's give me this:
"SoC System On Chip"
when I want/need
"SoC -- System On Chip"

Official manual says:
If you don’t like the format of the nomenclature at all, you will have
to redefine the thenomenclature environment. Maybe a look at the doc-
umented code of nomencl will help.
Here I completely stuck. What to do? Thanks!
MS Word -> OpenOffice -> LibreOffice -> LaTeX

Recommended reading 2024:

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

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

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

nomencl | Formatting a list of abbreviations

Post by localghost »

It's not so hard as you might think. Section 4.2 of the nomencl manual shows you how to do that.

Code: Select all

\documentclass[11pt,a4paper,russian,ukrainian,english]{article}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{nomencl}
\usepackage{lipsum}

\renewcommand{\nomlabel}[1]{\hfil\textbf{#1}\hfil}

\makenomenclature

\begin{document}
  \section{Foo}
    \lipsum[1]

    \nomenclature[Strings]{SoC}{System on Chip}

  \printnomenclature
\end{document}
I incorporated some useful stuff. Please take a look at the respective manuals of the involved packages.


Thorsten
Post Reply