Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Using 'nomencl' package in Atom #382

Closed
Vivleeys opened this issue Jun 10, 2017 · 4 comments
Closed

Using 'nomencl' package in Atom #382

Vivleeys opened this issue Jun 10, 2017 · 4 comments
Assignees

Comments

@Vivleeys
Copy link

Anyone have any success generating nomenclatures? I am a new user and when trying to build this code below, the page remains blank, and I can't seem to make it generate a .nls file either.

I have seen on forums that there's a way to change the build settings to this:
makeindex .nlo -s nomencl.ist -o .nls
but I'm not sure where you would do that on this package?

Thanks.
CODE********

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{amssymb}

\usepackage{nomencl}
\makenomenclature

%% This code creates the groups
% -----------------------------------------
\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{P}{Physics Constants}{%
\ifstrequal{#1}{N}{Number Sets}{%
\ifstrequal{#1}{O}{Other Symbols}{}}}%
]}
% -----------------------------------------

\begin{document}
\mbox{}

\nomenclature[P]{$c$}{Speed of light in a vacuum inertial system}
\nomenclature[P]{$h$}{Plank Constant}
\nomenclature[P]{$g$}{Gravitational Constant}
\nomenclature[N]{$\mathbb{R}$}{Real Numbers}
\nomenclature[N]{$\mathbb{C}$}{Complex Numbers}
\nomenclature[N]{$\mathbb{H}$}{Quaternions}
\nomenclature[O]{$V$}{Constant Volume}
\nomenclature[O]{$\rho$}{Friction Index}

\printnomenclature

\end{document}

@yitzchak
Copy link
Collaborator

yitzchak commented Jun 10, 2017

The nomenclature build setting is a custom rule that must be passed to latexmk via a resource file. If you have Enable Extended Build Mode activated in the settings page for the latex package that rule will be added automatically. I tried building your document with that setting activated and it built just fine (at least on Linux/TeX Live).

@Vivleeys
Copy link
Author

Vivleeys commented Jun 10, 2017

Yes I did see nomencl mentioned there so I have it activated as well :/

.nls file still missing, although I do have a .nlo file which has all the entries in there.

@yitzchak
Copy link
Collaborator

What OS and TeX distribution do you have? Also, what other settings do you for this package?

You might also try running makeindex from the command line, where foo is the name of your file.

makeindex foo.nlo -s nomencl.ist -o foo.nls

@yitzchak
Copy link
Collaborator

Closing. Will reopen if needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants