Text Formattingnomencl | Nomenclature Definitions in Text

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
yairsuari
Posts: 3
Joined: Tue Jun 26, 2012 3:14 pm

nomencl | Nomenclature Definitions in Text

Post by yairsuari »

Hi all and thanks in advance.

I am using the nomencl package and I want the nomenclature entry to appear in text the first time I am using it in the document. For example:

The sentence I am using is: "Atlantic water are colder". In the latex code I type:

Code: Select all

\nomenclature{AW}{Atlantic water} are colder.
  • My current PDF output: "are colder"
  • Desired PDF output: "Atlantic water (AW) are colder"
Is there a way this can be done using this package?


thanks again
yair
Last edited by localghost on Tue Jun 26, 2012 5:40 pm, edited 2 times in total.

Recommended reading 2024:

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

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

nomencl | Nomenclature Definitions in Text

Post by kaiserkarl13 »

How about this?

Code: Select all

\nomenclature{AW}{Atlantic water}%
Atlantic water [sic] are colder.
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

nomencl | Nomenclature Definitions in Text

Post by cgnieder »

The acronym package (and my brand new »acro« package) are doing exactly that.

»acronym« example:

Code: Select all

% arara: pdflatex
% arara: pdflatex
\documentclass{scrartcl}
\usepackage{acronym}

\newacro{AW}{Atlantic water}

\begin{document}

Are \ac{AW} cooler? \ac{AW} are cooler!

\acresetall% like the first time again:
\ac{AW} are still cooler.

\end{document}
acronym.png
acronym.png (8.1 KiB) Viewed 5615 times
»acro« example:

Code: Select all

% arara: pdflatex
% arara: pdflatex
\documentclass{scrartcl}
\usepackage{acro}

\DeclareAcronym{aw}{AW}{atlantic water}

\begin{document}

Are \ac{aw} cooler? \ac{aw} are cooler!

\acresetall% like the first time again:
\Ac{aw} are still cooler.

\end{document}
acro.png
acro.png (8.96 KiB) Viewed 5615 times
Regards
site moderator & package author
yairsuari
Posts: 3
Joined: Tue Jun 26, 2012 3:14 pm

Re: nomencl | Nomenclature Definitions in Text

Post by yairsuari »

This looks greate but my mistake is i didnt say that the reason i am using nomecl is to create a glossary at the beginning of the document.
the document is already finished and i have been asked to insert the abbrevation explanation each time it appears in the text.

thank and sorry
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

nomencl | Nomenclature Definitions in Text

Post by cgnieder »

I am not sure I can follow. The nomencl does not provide a macro for actually typesetting anything in the text. The \nomenclature command simply stores the information for the glossary list and is used only once for each entry.

Maybe you should consider adding the information manually each time it is used…

Both packages I mentioned can create list of the defined acronyms, by the way.

Regards
site moderator & package author
yairsuari
Posts: 3
Joined: Tue Jun 26, 2012 3:14 pm

Re: nomencl | Nomenclature Definitions in Text

Post by yairsuari »

Ok If this is the case then its solved.
thanks alot
Post Reply