尾注中的上标引文单独出现在一行中

尾注中的上标引文单独出现在一行中

我正在使用带有回忆录类的 biblatex,使用 oxnum 样式,以便引用显示为上标数字。我还使用 enotez 包来处理尾注。(这些通常是较长的文本段落,不一定与书目引用有关。)我已定义一个命令 \qattribute,我在引文末尾使用它来将作者和标题放在正文中,并包括引用更完整的书目条目。大多数情况下,这都能按预期运行。但是,每当我在尾注中引用时,上标引用数字不会像应该的那样出现在标题旁边。相反,它会单独出现在下面的一行上。

单独引用数字(不是页码) 3

我不明白为什么 \autocite 在尾注中的表现与在正文中不同。

我制作了一个 MWE,在正文中引用了引文,在尾注中引用了引文。这是我的 LaTeX 文件:

\documentclass[10pt]{memoir}
\usepackage{hang}
\setlength\hangingleftmargin{0.2\textwidth}
\usepackage{enotez}
\setenotez{list-name={Endnotes},list-heading={\chapter*{#1}},counter-format=alph,backref=true}
\renewcommand*{\theendnote}{\alph{endnote}}
\usepackage[%
    autocite    = superscript,
    backend     = bibtex,
    sorting     = none,
    style       = oxnum,
    backref     = true,
]{biblatex}
\addbibresource{MWE.bib}
\usepackage{hyperref}
\usepackage{xifthen}
\newcommand\qattribute[3][]{%
    \par\begin{hangingpar}--\ifthenelse{\isempty{#1}}{#2{#3}}{#2, \textit{#1}{#3}}\end{hangingpar}\vskip\onelineskip}
\renewcommand\bibname{Endnotes}
\begin{document}
This enthusiasm is not necessarily spectacular or showy, but a discerning observer or participant can perceive a deep wellspring flowing from teacher to student:
                                                    \begin{quotation}
\noindent{}Students gravitate toward teachers with whom they have forged a connection.\end{quotation}
                            \protect\qattribute[Excellent
                                    Sheep]%
{William Deresiewicz}%
{\protect\autocite{C108179}}
                        \par\noindent{}


These two departments had been at odds for thirty years.\protect\endnote{\begin{quotation}
\noindent{}

What we’re saying is that the company in the past has been locked in.…If we’re going to work on the total needs of the customer…there has to be a way that that’s seen in a lot of different places in the company.
                                                                            \end{quotation}
\protect\qattribute[The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization]%
                                        {Peter M. Senge}%
{}{\protect\autocite{C108184}}
\par\noindent{}                         }
                            \autocite{C108185}

\printbibliography[title={References}]
\backmatter
\printendnotes
\end{document}

这是附带的 BibTeX 文件 MWE.bib:

@book{C108179,
author={William Deresiewicz},
title={Excellent Sheep},
publisher={Free Press, division of Simon and Schuster Inc},
year={2014},
}
@book{C108184,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
pages={pp. 264–5},
annote={},
}
@book{C108185,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
}

如何才能使引用数字出现在尾注中的引用归属标题旁边,就像在正文中一样?

答案1

您有一个虚假的{},可能是由于您使用的格式很奇怪:

\protect\qattribute[The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization]%
                                        {Peter M. Senge}%
{}{\protect\autocite{C108184}}

您会看到{}最后一行的开头。

\begin{filecontents*}{\jobname.bib}
@book{C108179,
author={William Deresiewicz},
title={Excellent Sheep},
publisher={Free Press, division of Simon and Schuster Inc},
year={2014},
}
@book{C108184,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
pages={pp. 264–5},
annote={},
}
@book{C108185,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
}
\end{filecontents*}

\documentclass[10pt]{memoir}
\usepackage{hang}
\usepackage{enotez}

\usepackage[%
    autocite    = superscript,
%    backend     = bibtex,
    sorting     = none,
    style       = oxnum,
    backref     = true,
]{biblatex}
\usepackage{hyperref}
\usepackage{xifthen}

\setlength\hangingleftmargin{0.2\textwidth}
\setenotez{list-name={Endnotes},list-heading={\chapter*{#1}},counter-format=alph,backref=true}
\renewcommand*{\theendnote}{\alph{endnote}}

\addbibresource{\jobname.bib}

\newcommand\qattribute[3][]{%
    \par\begin{hangingpar}
    --\ifthenelse{\isempty{#1}}{#2{#3}}{#2, \textit{#1}{#3}}
    \end{hangingpar}\vspace{\onelineskip}}

%\renewcommand\bibname{Endnotes}

\begin{document}

This enthusiasm is not necessarily spectacular or showy, but a discerning 
observer or participant can perceive a deep wellspring flowing from teacher to student:
\begin{quotation}
\noindent{}Students gravitate toward teachers with whom they have forged a connection.
\end{quotation}
\qattribute[Excellent Sheep]{William Deresiewicz}{\autocite{C108179}}


These two departments had been at odds for thirty years.\endnote{%
  \begin{quotation}
  \noindent{}What we’re saying is that the company in the past has been locked in.…
  If we’re going to work on the total needs of the customer…
  there has to be a way that that’s seen in a lot of different places in the company.
  \end{quotation}
  \qattribute[The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization]%
             {Peter M. Senge}{\autocite{C108184}}%
}

\printbibliography[title={References}]

\backmatter
\printendnotes

\end{document}

您也不需要\protect

在此处输入图片描述

不同的实现,简化了输入。

\begin{filecontents*}{\jobname.bib}
@book{C108179,
author={William Deresiewicz},
title={Excellent Sheep},
publisher={Free Press, division of Simon and Schuster Inc},
year={2014},
}
@book{C108184,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
pages={pp. 264–5},
annote={},
}
@book{C108185,
author={Peter M. Senge},
title={The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization},
address={New York},
publisher={Doubleday},
year={1990},
}
\end{filecontents*}

\documentclass[10pt]{memoir}
\usepackage{hang}
\usepackage{enotez}

\usepackage[%
    autocite    = superscript,
%    backend     = bibtex,
    sorting     = none,
    style       = oxnum,
    backref     = true,
]{biblatex}
\usepackage{hyperref}
\usepackage{xifthen}

\setlength\hangingleftmargin{0.2\textwidth}
\setenotez{list-name={Endnotes},list-heading={\chapter*{#1}},counter-format=alph,backref=true}
\renewcommand*{\theendnote}{\alph{endnote}}

\addbibresource{\jobname.bib}

\NewDocumentCommand{\nicequote}{momm}{%
  \begin{quotation}\noindent\ignorespaces #1\end{quotation}
  \begin{hangingpar}
  --%
  \IfNoValueTF{#2}{#3{#4}}{#3, \textit{#2}{#4}}%
  \end{hangingpar}
  \vspace{\onelineskip}%
}

\begin{document}

This enthusiasm is not necessarily spectacular or showy, but a discerning 
observer or participant can perceive a deep wellspring flowing from teacher to student:
\nicequote{
  Students gravitate toward teachers with whom they have forged a connection.
}
[Excellent Sheep]{William Deresiewicz}{\autocite{C108179}}


These two departments had been at odds for thirty years.\endnote{%
  \nicequote{
    What we’re saying is that the company in the past has been locked in.…
    If we’re going to work on the total needs of the customer…
    there has to be a way that that’s seen in a lot of different places in the company.
  }
  [The Fifth Discipline: The Art {\symbol{38}} Practice of The Learning Organization]%
  {Peter M. Senge}{\autocite{C108184}}%
}

\printbibliography[title={References}]

\backmatter
\printendnotes

\end{document}

相关内容