使用 description/item 时,较长的物品名称会增加额外的空格。我想知道是否有办法删除名为“此物品名称比某个值长...............................”的物品后面出现的额外空行。
以下是匿名文件代码。
主文本
%Preamble
\documentclass[a4paper,french,oneside,openright]{book}
\usepackage{afterpage}
\newcommand{\blankpage}{
\null
\thispagestyle{empty}
\addtocounter{page}{-1}
\newpage
}
\usepackage[french]{babel}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{imakeidx}
\makeindex
\usepackage{tocloft,calc}
\renewcommand{\cftchappresnum}{Chapter }
\AtBeginDocument{\addtolength\cftchapnumwidth{\widthof{\bfseries Chapter }}}
\title{Subsubtitle}
\author{Name}
\date{2020}
\begin{document}
\input{Pages/TitlePage.tex}
\tableofcontents
\pagestyle{fancy}
\lfoot{Subsubtitle}
\rfoot{Page \thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0.1pt}
\fancypagestyle{plain}{%
\fancyhf{}%
\fancyfoot[L]{Glossaire}%
\fancyfoot[R]{Page \thepage/\pageref{LastPage}}%
\renewcommand{\headrulewidth}{0pt}% Line at the header invisible
\renewcommand{\footrulewidth}{0.1pt}% Line at the footer visible
}
\vskip 0.5cm
\textit{Some date}
\begin{description}
\item[[This item name is short)]\index{item1} \hfill \\There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect.
\item[This item name is longer than some value...........................................]\index{item2}\hfill \\Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph?
\item[[This item name is short)]\index{item1} \hfill \\There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect. There is no space after item name and it is what Is expect.
\item[This item name is longer than some value...........................................]\index{item2}\hfill \\Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph? Why do I get a space before this paragraph?
\end{description}
\printindex
\end{document}
页面/TitlePage.tex
\begin{titlepage}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\HRule \\[0.9cm]
\begin{center}
\textsc{\Huge Big title}\\[1cm]
\textsc{\LARGE Subtitle}\\[1.5cm]
\textsc{\Large Subsutitle}\\[1.5cm]
\end{center}
\HRule \\[1.5cm]
\vfill
\begin{center} \large
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l r @{}}
\ & \\
\ & \\
\ & \\
\ & Some label : some value\\
\ & Some label : some value
\end{tabular*}
\end{center}
\end{titlepage}
\blankpage