我使用LaTeX模板(由ASME提供)来编写会议论文。asme2e.cls类将“命名”环境定义如下:
% Nomenclature environment
\newbox\tempbox
\newenvironment{nomenclature}{%
\newcommand\entry[2]{%
\setbox\tempbox\hbox{##1.\quad}
\hangindent\wd\tempbox\noindent{##1}\quad\ignorespaces##2\par}
\section*{NOMENCLATURE}}{\par\addvspace{12pt}}它用于.tex源文件中,如下所示:
\begin{nomenclature}
% [...]
\entry{$C_{visc}$}{Viscous friction coefficient.}
\entry{$M$}{Spool mass.}
% [...]
\end{nomenclature}结果说明文本不合理(因为在符号(例如: M)和描述(例如:假脱机质量)之间插入了固定的水平空间,但是符号有不同的长度(例如: Cvisc比M长)。
是否有一种方法可以修复类的左对齐描述?(我做了一些实验,用\dimexpr和calc包做了一些实验,但是只得到了一些错误)。
(我还问ASME是否可以提供更新的模板,但我仍在等待他们的反馈.)
发布于 2017-06-08 15:36:38
我无法解决这个问题,但我找到了一个“快速而肮脏”的解决办法,使用选项卡和设置空间包。下面是新的.tex源代码:
%[...]
\usepackage{Tabbing}
\usepackage{setspace}
%[...]
\begin{nomenclature}
{\setstretch{1.1}
\begin{tabbing}
\noindent
% [...]
\entry{$C_{visc}$}\quad\quad\={Viscous friction coefficient.}\\
\entry{$M$}\>{Spool mass.}\\
\entry{$v$}\>{Spool velocity.}\\
% [...]
\end{tabbing}
} % end \setstretch
\end{nomenclature}
%[...](显然,我完全绕过了asme2e.cls类为命名环境定义的\entry命令)。
发布于 2020-05-17 05:12:46
我还试图编辑asme2ej.cls文件,但没有对我起作用。最后,我使用了选项卡和设置空间包。但是,我没有使用\set拉伸,我的文档编译得很好。
%[...]
\usepackage{Tabbing}
\usepackage{setspace}
%[...]
\begin{nomenclature}
\begin{tabbing}
\noindent
\entry{XYZ}\quad\quad\={This is an example}\\
\entry{PQR}\>{This is an example}\\
\entry{ZXC}\>{This is an example}\\
\entry{CVN}\>{This is an example}\\
\end{tabbing}
\end{nomenclature}
%[...]发布于 2020-06-17 13:53:15
在向ASME杂志提交论文时,我遇到了类似的问题。我的解决方案是编辑asme2e.cls文件:
\newenvironment{nomenclature}{%
\newcommand\entry[2]{\noindent\hbox to 0.05\textwidth{##1}\ignorespaces##2\par}
\section*{Nomenclature}}{\par\addvspace{12pt}}您可以通过更改"0.05\textwidth“来更改缩进量。
https://stackoverflow.com/questions/44384087
复制相似问题