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

Writing your document

Put this part in the preamble of your document:


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

	%defines a group for subscripts in nomenclature

These are several examples of defining new nomenclatures:

	\nomenclature{$Eo$}{E\"{o}tv\"{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:


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


Compiling Your Document

To compile your LaTeX code with nomenclature package, each time you have changed the nomenclature in your documents (i.e. added, edited, or deleted some definition).

  1. Compile your document with PDFLaTeX or similar ones once.
  2. Run the following command in the command prompt of Windows/Linux:
  3. 	makeindex  filename.nlo -s -o filename.nls 
    you need to replace filename with the name of your LaTeX document. And when running this command ether you should include the full path for the current LaTeX project or you need to be at that path. For example if your LaTeX project is in the directory “C:\TestNomenclature” you ether should be at this path or you can intead use the following command:
    	makeindex  C:\TestNomenclature\filename.nlo -s -o C:\TestNomenclature\filename.nls
  4. Run the PDFLaTeX twice.
  5. And your fantastic nomenclature section is there!! Enjoy!;)