0

I want to use nomenclature but once I type the nomenclatures it doesn't appears in the document I got only a blank square where normally should be my nomenclatures

\documentclass[review]{elsarticle}
\DeclareGraphicsExtensions{.pdf,.gif,.jpg}
\usepackage{lineno,hyperref}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{cclicenses}
\usepackage{caption}
\usepackage{lscape}
\usepackage{natbib}
\usepackage{subcaption}
\usepackage{framed} % Framing content
\usepackage{nomencl} % Nomenclature package
\makenomenclature
\setlength{\nomitemsep}{-\parskip} % Baseline skip between items
\modulolinenumbers[5]

\begin{document}

\begin{abstract}
    c
    c
    c
    c
    c
    c
\end{abstract}

\linenumbers
\section{Introduction}

c
c
c
c
c

\begin{framed}
    \mbox{}
    \nomenclature{$R$}{Radius blade}
    \nomenclature{$C_p$}{Power coefficient}
    \nomenclature{$I_r$}{Third item}
    \printnomenclature
\end{framed}

c
c
c

\end{document}
dexteritas
  • 9,161
twimo
  • 51
  • Did you use makeindex to compile your document? – leandriis Oct 14 '17 at 10:56
  • Welcome to TeX.SX! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – dexteritas Oct 14 '17 at 10:57
  • leandriis I am using TeXworks and in the compilator I have pdfLaTex+MakeIndex+BibTeX – twimo Oct 14 '17 at 11:03
  • When I use only makeIndex here is the message displayed :Couldn't find input index file elsarticle-template nor elsarticle-template.idx. Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...] – twimo Oct 14 '17 at 11:06
  • According to the documentation of nomencl you have to configure your makindex as follows: makeindex .nlo -s nomencl.ist -o .nls – leandriis Oct 14 '17 at 11:35
  • Where can I configure my makeindex because I am using TeXworks and I click on EDIT then PREFERENCES ==> TYPESETTINGS ===> MAKEINDEX ===> EDIT ==> there are a name (MakeIndex) program( miktex-makeindex.exe) and argument ($basename) So where I can type de input index ? – twimo Oct 14 '17 at 13:58
  • As I have no experience in working with TeXworks I can only recommend, that you have a look at the following question and its answers: https://tex.stackexchange.com/q/122811/134144 – leandriis Oct 14 '17 at 14:09
  • Yes I had a look on it before I post my problem here he used \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} but nothing happens I still have no nomenclature – twimo Oct 14 '17 at 14:15
  • Alternatives could be a) executing the command directly from the command line or b) switching to a different editor like TeXMaker that can be configured more easily. – leandriis Oct 14 '17 at 14:32
  • The problem is that I am used to work with TeXworks – twimo Oct 14 '17 at 14:41
  • \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} it works I was thinking that jobname is the filename while jobname is a command lol – twimo Oct 14 '17 at 15:03

0 Answers0