1

hello please i try the nomenclature with elsarticle but it doesn't work. Could help please. Thank you

\documentclass{elsarticle}
\usepackage{framed} % Framing content
\usepackage{multicol} % Multiple columns environment

\usepackage{nomencl} % Nomenclature package
\makenomenclature
\setlength{\nomitemsep}{-\parskip} % Baseline skip between items

\renewcommand*\nompreamble{\begin{multicols}{2}}
\renewcommand*\nompostamble{\end{multicols}}
\begin{document}

\begin{table*}[!t]
   \begin{framed}
     \printnomenclature
  \end{table*}
\nomenclature{$I_b$}{First item}
\nomenclature{$I_d$}{Second item}
\nomenclature{$I_r$}{Third item}
 \end{framed}

\end{document}
1
  • Could you please explain what you mean by "wostrong textrk"?
    – user121799
    Commented Jan 23, 2018 at 4:19

2 Answers 2

1

Your MWE causes the error

! LaTeX Error: \begin{framed} on input line 14 ended by \end{table*}.

which means the environments aren't correctly nested. Move \end{framed} before \end{table*}:

\documentclass{elsarticle}
\usepackage{framed} % Framing content
\usepackage{multicol} % Multiple columns environment

\usepackage{nomencl} % Nomenclature package
\makenomenclature
\setlength{\nomitemsep}{-\parskip} % Baseline skip between items

\renewcommand*\nompreamble{\begin{multicols}{2}}
\renewcommand*\nompostamble{\end{multicols}}
\begin{document}
Test.

\begin{table*}[!t]
   \begin{framed}
     \printnomenclature
   \end{framed}
\end{table*}
\nomenclature{$I_b$}{First item}
\nomenclature{$I_d$}{Second item}
\nomenclature{$I_r$}{Third item}

\end{document}

Remember that the document build requires a call to the makeindex application, as described in Using package nomencl.

1
  • thank you it works for me using makeindex <filename>.nlo -s nomencl.ist -o <filename>.nls not makeindex <filename>.nlo -s nomencl.ist -o <filename>.els Commented Jan 26, 2018 at 12:14
0

enter image description here Nothing ! i dont know where is the problem

1
  • This area is reserved for answers. You can edit your question to add further information. Commented Jan 23, 2018 at 18:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .