文内引用的间距问题 - natbib 与 babel 之间的交互

文内引用的间距问题 - natbib 与 babel 之间的交互

我刚刚将我的 latex 构建放到一台新机器上,突然遇到了文内引用问题:双作者引用在文内引用中的“&”后面没有空格,尽管参考文献看起来没问题。这似乎仅限于我使用 babel 处理希腊文本的文件。下面是 MWE。任何建议,包括简单的解决方法,都将不胜感激。

\documentclass{article}

\usepackage[polutonikogreek,english]{babel}
\usepackage{natbib}

\begin{document}


{\greektext >'estalka }\\

\cite{princesmolensky}, \cite{mp1995}

\begin{thebibliography}{2}

\bibitem[{McCarthy \& Prince(1995)}]{mp1995}
McCarthy, John~J. \& Alan Prince. 1995.
\newblock Faithfulness and {{Reduplicative Identity}}.
\newblock In Jill Beckman, Suzanne Urbanczyk \& Laura~Walsh Dickey (eds.),
  \emph{Papers in {{Optimality Theory}}} (University of {{Massachusetts
  Occasional Papers}} in {{Linguistics}}~18), 249--384. {Amherst, MA}:
  {Graduate Linguistics Student Association}.

\bibitem[{Prince \& Smolensky([1993] 2004)}]{princesmolensky}
Prince, Alan \& Paul Smolensky. [1993] 2004.
\newblock \emph{Optimality {{Theory}}: {{Constraint Interaction}} in
  {{Generative Grammar}}}.
\newblock {Malden, MA}: {Blackwell Publishing}.

\end{thebibliography}


\end{document}

答案1

如有任何建议,包括简单的解决方法,我们将不胜感激。

我有两点建议:

  • 只需将\bibitem指令从

    \bibitem[{McCarthy \& Prince(1995)}]{mp1995}
    \bibitem[{Prince \& Smolensky([1993] 2004)}]{princesmolensky}
    

    \bibitem[{McCarthy \&\ Prince(1995)}]{mp1995}
    \bibitem[{Prince \&\ Smolensky([1993] 2004)}]{princesmolensky}
    
  • 或者,在序言末尾插入以下说明:

    \usepackage{etoolbox}
    \makeatletter
    \apptocmd{\bbl@greek@ampersand}{\space}{}{}
    \makeatother
    

现在来更深入地检查一下发生了什么。如果未应用任何建议的修复方法,则辅助文件包含以下两行代码,前提是——并且,就我所知,只有当——语言babel选项之一是polutonikogreek

\bibcite{mp1995}{{1}{1995}{{McCarthy \bbl@greek@ampersand   Prince}}{{}}}
\bibcite{princesmolensky}{{2}{[1993] 2004}{{Prince \bbl@greek@ampersand   Smolensky}}{{}}}

观察 之后没有间距指令\bbl@greek@ampersand。是的,末尾有三个 [3] 个空格,但重要的是,没有\间距指令。在我看来,这可能是一个编程错误。建议的任一修复都有助于在 之后重新引入所需的间距\bbl@greek@ampersand

在此处输入图片描述

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[polutonikogreek,english]{babel}
\usepackage[authoryear]{natbib}

\usepackage{etoolbox} % for '\apptocmd' patching macro
\makeatletter
\apptocmd{\bbl@greek@ampersand}{\space}{}{}
\makeatother

\begin{document}

{\greektext >'estalka}

\citet{princesmolensky}, \citep{mp1995}

\begin{thebibliography}{2}

\bibitem[McCarthy \& Prince(1995)]{mp1995}
McCarthy, John~J. \& Alan Prince. 1995.
\newblock Faithfulness and Reduplicative Identity.
\newblock In Jill Beckman, Suzanne Urbanczyk \& Laura~Walsh Dickey (eds.),
  \emph{Papers in Optimality Theory} (University of Massachusetts
  Occasional Papers in Linguistics~18), 249--384. Amherst, MA:
  Graduate Linguistics Student Association.

\bibitem[Prince \& Smolensky({[1993] 2004})]{princesmolensky}
Prince, Alan \& Paul Smolensky. [1993] 2004.
\newblock \emph{Optimality Theory: Constraint Interaction in
  Generative Grammar}.
\newblock Malden, MA: Blackwell Publishing.

\end{thebibliography}

\end{document}

相关内容