作为指出在接受的答案中,标准脚注样式和德语脚注样式之间存在差异。
下面的代码在两个引用之间留下了一些奇怪的空格(如红色标记)。我该如何避免这种情况?
\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@incollection{incollection,
author = {Peter Farindon},
title = {The title of the work},
booktitle = {The title of the book},
publisher = {The name of the publisher},
year = 1993,
pages ={10},
}
@incollection{a,
author = {Peter Farindon},
title = {The title of the work},
booktitle = {The title of the book},
publisher = {The name of the publisher},
year = 1993,
pages ={10},
}
@incollection{b,
author = {Peter Farindon},
title = {The title of the work},
booktitle = {The title of the book},
publisher = {The name of the publisher},
year = 1993,
pages ={10},
}
\end{filecontents}
\documentclass{article}
\usepackage[style=verbose]{biblatex}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\makeatletter
\renewcommand{\@makefntext}[1]{%
\setlength{\parindent}{0pt}%
\begin{list}{}{%
\setlength{\labelwidth}{1.5em}% <===================================
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{3pt}%
\setlength{\itemsep}{0pt}%
\setlength{\parsep}{0pt}%
\setlength{\topsep}{0pt}%
% \setlength{\rightmargin}{0.2\textwidth}%
\footnotesize}%
\item[\@makefnmark\hfil]#1%
\end{list}%
}
\makeatother
\addbibresource{\jobname.bib}
\begin{document}
Let's cite! \footcite{incollection} \footcite{a} \footcite{b}
\printbibliography
\end{document}
答案1
我不完全确定这个list
环境是否是格式化脚注的概念上最好的方式,但由于许多环境都是基于\list
或\trivlist
这可能不是太古怪。
您还需要将长度设置\partopsep
为0
。请参阅\topsep、\itemsep、\partopsep 和 \parsep - 它们各自代表什么意思(底部又代表什么意思)?了解所涉及的所有长度的更多信息。
我认为没有必要将其设置\parindent
为零,所以我删除了该行。我还删除了,\setlength{\parsep}{0pt}
因为否则在脚注中很难辨认出新段落的开头。
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage{csquotes}
\usepackage[nopar]{kantlipsum}
\makeatletter
\renewcommand{\@makefntext}[1]{%
\begin{list}{}{%
\setlength{\labelwidth}{1.5em}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{3pt}%
\setlength{\itemsep}{0pt}%
\setlength{\partopsep}{0pt}%
\setlength{\partopsep}{0pt}%
\setlength{\topsep}{0pt}%
\footnotesize}%
\item[\@makefnmark\hfil]#1%
\end{list}%
}
\makeatother
\begin{document}
Lorem\footnote{\kant[1]} dolor\footnote{\kant[2]\par\kant[3]} amet\footnote{\kant[4]} amet\footnote{\kant[5]}.
\end{document}