我在 macOS 上遇到了参考书目中 URL 超出范围的问题,如下所示:
我已经使用最新版本的 进行了测试mactex
。我已经测试了 GUI 版本 4.44(4.44)和mactex-no-gui
版本 2020.0407,即latexmk
版本 4.67(在两台单独的计算机上,运行 macOS 10.15.5)。这是 MNE(最小非工作示例)代码:
\documentclass{article}
\usepackage[
backend=biber,
style=apa
]{biblatex}
\addbibresource{sample.bib}
\begin{document}
\section{First section}
\cite{Vouloumanos12933}
\printbibliography
\end{document}
...有以下参考书目sample.bib
:
@article {Vouloumanos12933,
author = {Vouloumanos, Athena and Onishi, Kristine H. and Pogue, Amanda},
title = {Twelve-month-old infants recognize that speech can communicate unobservable intentions},
volume = {109},
number = {32},
pages = {12933--12937},
year = {2012},
doi = {10.1073/pnas.1121057109},
publisher = {National Academy of Sciences},
abstract = {Much of our knowledge is acquired not from direct experience but through the speech of others. Speech allows rapid and efficient transfer of information that is otherwise not directly observable. Do infants recognize that speech, even if unfamiliar, can communicate about an important aspect of the world that cannot be directly observed: a person{\textquoteright}s intentions? Twelve-month-olds saw a person (the Communicator) attempt but fail to achieve a target action (stacking a ring on a funnel). The Communicator subsequently directed either speech or a nonspeech vocalization to another person (the Recipient) who had not observed the attempts. The Recipient either successfully stacked the ring (Intended outcome), attempted but failed to stack the ring (Observable outcome), or performed a different stacking action (Related outcome). Infants recognized that speech could communicate about unobservable intentions, looking longer at Observable and Related outcomes than the Intended outcome when the Communicator used speech. However, when the Communicator used nonspeech, infants looked equally at the three outcomes. Thus, for 12-month-olds, speech can transfer information about unobservable aspects of the world such as internal mental states, which provides preverbal infants with a tool for acquiring information beyond their immediate experience.},
issn = {0027-8424},
url = "https://www.pnas.org/content/109/32/12933",
eprint = {https://www.pnas.org/content/109/32/12933.full.pdf},
journal = {Proceedings of the National Academy of Sciences}
}
然后我读了不同的帖子,比如biblatex 书目中的长 URL 的换行符?并尝试应用修复。奇怪的是,它对我不起作用。
然后我在 overleaf.com 网站上阅读并尝试在那里重现该问题。正如您在此处看到的,https://www.overleaf.com/read/mpzbhzvsxndj,在 overleaf 中代码运行良好(使用所有 4 个编译器)。
这让我很困惑。macos 上的 latex 引擎是不是出了什么问题?还是 overleaflatex 有什么特别之处?最重要的是,我该如何解决这个问题?
答案1
答案很简单:@Mico 告诉我通过运行该实用程序来更新所有 LaTeX 包tlmgr
。
即:($ sudo tlmgr update --self --all
感谢@user18702)
至关重要的是,此操作更新了该软件包biblatex-apa
。