# LaTeX Tips and Tricks

This page contains some tips and tricks that I found myself by reading documents and searching in the internet. I think it could be helpful for others to work around these kind issues faster and get to more important ones earlier.

## A Short Tutorial for Using Nomenclature Package

Put this part in the preamble of your document:


\usepackage{nomencl}
\usepackage{makeidx}
\makenomenclature

You can add this part to include a subsection in nomenclature, for example subscript section:


\usepackage{ifthen}
%defines a group for subscripts in nomenclature
\renewcommand{\nomgroup}[1]%
{\ifthenelse{\equal{#1}{S}}{\item[\textbf{Subscripts}]}{}}

These are several examples of defining new nomenclatures:


\nomenclature{$Eo$}{E\&quot;{o}tv\&quot;{o}s number, $\Delta \rho g{{d_{b}}^2}/\gamma$}
\nomenclature{$N$}{Archimedes number, $g{{d_{b}}^3}{\rho _l}\Delta \rho /{{\mu _l} ^2}$}
\nomenclature{$r$}{ratios of the densities,  ${\rho _g}/{\rho _l}$}
\nomenclature{$m$}{ratios of the viscosity,  ${\mu _g}/{\mu _l}$}

These are two examples of defining nomenclature as a subscript:


\nomenclature[S]{$g$}{gas}
\nomenclature[S]{$l$}{liquid}

Put this command where ever you want to print of the nomenclature section:


\printnomenclature

3. 	makeindex  filename.nlo -s nomencl.ist -o filename.nls
	makeindex  C:\TestNomenclature\filename.nlo -s nomencl.ist -o C:\TestNomenclature\filename.nls