Nomencl:如何删除两列多行条目中的缩进

Nomencl:如何删除两列多行条目中的缩进

我正在使用该nomencl软件包编写一份两列的列表,列出我在论文中经常使用的术语。一切看起来都很好,只是我不喜欢每当一个术语的解释超过一行时就插入一个小的缩进。我现在有的是这样的:

MyTerm detailed explanation of my term.
   and here follows the second line.

我希望它看起来像这样:

MyTerm detailed explanation of my term.
and here follows the second line.

有人能帮帮我吗?我尝试查看该软件包的文档,但并没有得到太多帮助!

答案1

在以下示例中,我使用了在onecolumn模式和模式中打印命名法twocolumn。模式twocolumn以两种方式生成。第一种使用命令\twocolumn,第二种使用环境multicols*

\documentclass{article}
\usepackage{multicol}
\usepackage{nomencl}
\makenomenclature
\setlength{\nomlabelwidth}{.20\hsize}
\begin{document}
Text
\nomenclature{WYSIWYG}{Is an acronym for What You See Is What You Get. The term is used in computing to describe a system in which content (text and graphics)}
\printnomenclature
\begin{multicols*}{2}
\printnomenclature
\end{multicols*}
\clearpage
\twocolumn
\printnomenclature
\end{document}

正确编译后:pdflatex file.tex makeindex file.nlo -s nomencl.ist -o file.nls pdflatex file.tex

我得到了正确的输出:

在此处输入图片描述

在此处输入图片描述

答案2

如果我正确理解了您要查找的内容,则需要更改 中硬编码的列表环境的设置nomencl.sty。但我没有看到特定于两列的内容(如问题标题所述),所以也许我错过了一些东西。

    % This is test.tex
    \documentclass{article}
    \usepackage{nomencl}

    \makeatletter
    \def\thenomenclature{%
      \@ifundefined{chapter}%
      {
        \section*{\nomname}
        \if@intoc\addcontentsline{toc}{section}{\nomname}\fi%
      }%
      {
        \chapter*{\nomname}
        \if@intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
      }%

      \nompreamble
      \list{}{%
        \labelwidth\nom@tempdim
        \leftmargin=0pt
        \itemindent=\dimexpr\itemsep+\labelwidth\relax
        \itemsep\nomitemsep
        \let\makelabel\nomlabel}}
    \makeatother

    \makenomenclature

    \begin{document}
    Some text \nomenclature{LONG}{This is a long long long long long long
      long long long long long long long long long long long long long
      long long long long long long long long long long long long long
      long long long long long long long long long long long long long
      long long long text}

    \printnomenclature

    \end{document}

相关内容