命名法双线内线...为什么?

命名法双线内线...为什么?

不幸的是,我对命名法有些疑问。它工作正常,但每个命名法之间都有双线。你能帮我吗?如何获得正常的命名法?我附上了我的文章序言和命名法。提前谢谢!

\documentclass[10pt,a4paper,titlepage]{book} 
\usepackage[paperwidth=165mm, paperheight=238mm, left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}

\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%

\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{empheq, nccmath}
%\usepackage{amsmath}
 %  \usepackage[overload]{empheq}

 \usepackage{empheq, nccmath}
\usepackage{amsfonts}
\usepackage{showframe} \usepackage{cases}

\DeclareFontFamily{U}{mathx}{\hyphenchar\font45}
\DeclareFontShape{U}{mathx}{m}{n}{
<-6> mathx5 <6-7> mathx6 <7-8> mathx7
<8-9> mathx8 <9-10> mathx9
<10-12> mathx10 <12-> mathx12
}{}
\DeclareSymbolFont{mathx}{U}{mathx}{m}{n}
\DeclareFontSubstitution{U}{mathx}{m}{n}

\DeclareMathAccent{\widebar}{0}{mathx}{"73}  


\usepackage{subfloat}
\usepackage{subcaption}

\usepackage{adjustbox}
\usepackage{showframe} 

\usepackage{fontspec}

\usepackage{lineno}
%\linenumbers
\renewcommand{\baselinestretch}{1} 
\setlength{\parindent}{4em}

\pagenumbering{arabic}

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

%\bibliographystyle{plain}
\renewcommand\thesection{\arabic{section}}
\setcounter{secnumdepth}{5}
\usepackage{epstopdf}

\usepackage{nomencl}
\makenomenclature
\usepackage{cases}

\usepackage{etoolbox}
\renewcommand\nomgroup[1]{%
  \item[\bfseries
  \ifstrequal{#1}{A}{Symbols}{%
  \ifstrequal{#1}{B}{Subscripts}{%
  \ifstrequal{#1}{C}{Superscripts}{%
  \ifstrequal{#1}{D}{Acronyms{}}}}}%
]}

 % This will add the units
%----------------------------------------------
\newcommand{\nomunit}[1]{%
\renewcommand{\nomentryend}{\hspace*{\fill}#1}}
%----------------------------------------------

\begin{document}

\setlength{\baselineskip}{13pt}
\setmainfont{Georgia}

\setcounter{section}{2}
\setcounter{figure}{1}

\printnomenclature[0.75in]

...
...
...
\end{document}

在此处输入图片描述

答案1

nomencl包设置\itemsep为 (默认 4pt 加 2pt 减 1pt) 的值\nomitemsep,并将其添加到\parsep(book类的默认值与 相同) \nomitemsep

如果想要紧密排版,请设置\nomitemsep为 的负片\parsep

下面的文字\printnomenclature旨在比较这两个列表。

\documentclass{book}
\usepackage{nomencl}

\setlength{\nomitemsep}{-\parsep}

\begin{document}
some text

\printnomenclature[0.75in]

\nomenclature{Q}{Heat loss/power}
\nomenclature{R}{Heat loss/power}
\nomenclature{S}{Heat loss/power}

\noindent Q Heat loss/power\par
\noindent Q Heat loss/power\par
\noindent Q Heat loss/power\par

\end{document}

在此处输入图片描述

相关内容