![命名法中的出现顺序](https://linux22.com/image/391051/%E5%91%BD%E5%90%8D%E6%B3%95%E4%B8%AD%E7%9A%84%E5%87%BA%E7%8E%B0%E9%A1%BA%E5%BA%8F.png)
实际上,我想要按顺序排列两列命名法,但是当我在结果中按顺序写入它们时,它们不是按顺序排列的,我已经阅读了 nomencl 包:按出现顺序排序,并且我已经应用了相同的结构,但问题仍然相同。即使我使用 \nomencalure[order]{symbol}{meaning}。这是代码:
\immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls}
\documentclass[preprint,12pt,3p,numbers,sort,compress]{elsarticle}
\usepackage{multicol}
\usepackage{framed}
\usepackage{nomencl}
\makenomenclature
\setlength{\nomitemsep}{-\parskip}
\begin{document}
\section{Introduction}
\label{sec1}
BLABLABLABLABLABALABABLABLABLABLAB\par
LABALABABLABLABLABLABLABALABABLABLAB\par
LABLABLABALABABLABLABLABLABLABALABA
\begin{framed}
\nomenclature[01]{$x_{1}$}{parameter1}
\nomenclature[02]{$x_{2}$}{parameter2}
\nomenclature[03]{$x_{3}$}{parameter3}
\nomenclature[04]{$x_{4}$}{parameter4}
\nomenclature[05]{$x_{5}$}{parameter5}
\nomenclature[06]{$x_{6}$}{parameter6}
\nomenclature[07]{$x_{7}$}{parameter7}
\nomenclature[08]{$x_{8}$}{parameter8}
\nomenclature[09]{$x_{9}$}{parameter9}
\nomenclature[10]{$x_{10}$}{parameter10}
\nomenclature[11]{$\delta$}{parameter11}
\nomenclature[12]{$\theta$}{parameter12}
\nomenclature[13]{$\omega$}{parameter13}
\begin{multicols}{2}
\printnomenclature[1.9cm]
\end{multicols}
\end{framed}
\end{document}
答案1
nomenclature
将条目出现的顺序作为可选参数:\nomenclature[order number]{symbol}{description}
。
\documentclass[preprint,12pt,3p,numbers,sort,compress]{elsarticle}
\usepackage{multicol}
\usepackage{framed}
\usepackage{nomencl}
\makenomenclature
\setlength{\nomitemsep}{-\parskip}
\begin{document}
\section{Introduction}
\begin{framed}
\nomenclature[01]{$x_{1}$}{parameter1}
\nomenclature[02]{$x_{2}$}{parameter2}
\nomenclature[03]{$x_{3}$}{parameter3}
\nomenclature[04]{$x_{4}$}{parameter4}
\nomenclature[05]{$x_{5}$}{parameter5}
\nomenclature[06]{$x_{6}$}{parameter6}
\nomenclature[07]{$x_{7}$}{parameter7}
\nomenclature[08]{$x_{8}$}{parameter8}
\nomenclature[09]{$x_{9}$}{parameter9}
\nomenclature[10]{$x_{10}$}{parameter10}
\nomenclature[11]{$\delta$}{parameter11}
\nomenclature[12]{$\theta$}{parameter12}
\nomenclature[13]{$\omega$}{parameter13}
\begin{multicols}{2}
\printnomenclature[1.9cm]
\end{multicols}
\end{framed}
\end{document}
这将创建以下内容: