脚注超出页边距

脚注超出页边距

脚注的第二行超出左边距。在此处输入图片描述

如何才能实现第二行和第一行在一条线上?

\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},
}


\end{filecontents}

\documentclass{article}
\usepackage[style=verbose]{biblatex}
\usepackage[ngerman]{babel}
\usepackage{csquotes}


\addbibresource{\jobname.bib}
\begin{document}
    Let's cite!  \footcite{incollection} 
    \printbibliography
\end{document}

答案1

您可以通过在序言中添加以下代码来定义脚注的布局:

\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

该命令\setlength{\labelwidth}{1.5em}定义了脚注编号的长度,您可以根据需要进行更改......

完整代码

\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},
}


\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} 
    \printbibliography
\end{document}

给出结果:

在此处输入图片描述

如果您不想左侧第二行缩进,\setlength{\leftmargin}{\labelwidth}请更改为\setlength{\leftmargin}{0pt}...

因为您用德语写作,请考虑使用正常的脚注编号(请查看德语 Duden)。要获得该编号,请添加以下行

\renewcommand{\@makefnmark}{\hbox{\normalfont\@thefnmark}}

\makeatletter...

然后你就得到了完整的代码

\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},
}


\end{filecontents}

\documentclass{article}
\usepackage[style=verbose]{biblatex}
\usepackage[ngerman]{babel}
\usepackage{csquotes}

\makeatletter
\renewcommand{\@makefnmark}{\hbox{\normalfont\@thefnmark}} % <==========
\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} 
    \printbibliography
\end{document}

结果

在此处输入图片描述

答案2

你可以使用这个包脚杂包裹

\usepackage[flushmargin]{footmisc} 

有两个选择flushmarginhang

刷新边距

此选项与边际选项相同,但将脚注标记设置为与脚注文本齐平,但位于边距内。

悬挂

此选项将脚注标记设置为与页边距齐平,并使脚注主体悬挂在 \footnotemargin 的缩进处(如果该距离为正值),或标记的宽度处(如果 \footnotemargin≤0)。选项代码本身将 \footnotemargin 保留为其默认值 1.8em。脚注本身当然可能长于一个段落;如果是这样,段落将由 \hangfootparskip 指定的垂直空间分隔,第二段及后续段落将由 \hangfootparindent 缩进。默认值为:

例如

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{article,
    author  = {Hans Zimmer},
    title   = {The title of the work The title of the work The title of the work},
    journal = {Some journal},
    year    = {2013},
    number  = {12},
    pages   = {40-41},
}


@book{book,
author    = {Peter Babington}, 
title     = {The title of the work The title of the work The title of the work The title of the work},
year      = 1993,
pages     ={310},
}


@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},
}


\end{filecontents}

\documentclass{article}
\usepackage[style=verbose]{biblatex}
\usepackage[ngerman]{babel}
\usepackage{csquotes}

\usepackage[flushmargin]{footmisc} 

\addbibresource{\jobname.bib}
\begin{document}
Let's cite! \footcite{ article} \footcite{incollection} \footcite{book}     \footcite{article} \footcite{incollection} \footcite{book}
\printbibliography
\end{document}

产生 无缩进的脚注

相关内容