如何在 biblatex/biber 书目中禁用 en 和 em 破折号连字符?

如何在 biblatex/biber 书目中禁用 en 和 em 破折号连字符?

我正在尝试使用 LaTeX 写一篇符合 MLA 标准的论文作为学校作业,但我的教授对参考书目格式非常严格。具体来说,我的问题是 BibLaTeX/Biber 在列出同一作者的两部作品时似乎打印了三个相连的破折号,这导致它们看起来像一个长破折号而不是三个独立的破折号。我猜这是一个在 内部自动运行的连字符功能\printbibliography,但当我尝试在序言中调用\usepackage{microtype}和时\DisableLigatures{},它只影响参考书目之外的破折号。

如果可能的话,我只想在\printbibliography命令中禁用这个 en/em 破折号功能。

以下是我目前得到的结果:三个相连的破折号 以下是 MLA 网站上显示的内容:三个断开的破折号

这是一个简单的例子:

  • 测试.tex:
\documentclass[12pt]{article}

% Mla and bibliography support.
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage{ifpdf}
\usepackage{mla}
\usepackage[style=mla-new,backend=biber]{biblatex}

% Add bibliography here.
\addbibresource{Test.bib}
\defbibheading{bibliography}{\center Works Cited}

\begin{document}
\begin{mla}{First Name}{Last Name}{Professor}{Course Name}{\today}{Title}
    Sentence 1 \autocite{the_editors_of_encyclopaedia_britannica_henry_2023}.
    Sentence 2 \autocite{the_editors_of_encyclopaedia_britannica_mexican-american_2023}.

    \newpage
    \printbibliography

\end{mla}
\end{document}
  • 测试.bib

@inreference{the_editors_of_encyclopaedia_britannica_henry_2023,
    title = {Henry David Thoreau},
    url = {https://www.britannica.com/biography/Henry-David-Thoreau},
    abstract = {Henry David Thoreau, American essayist, poet, and practical philosopher renowned for having lived the doctrines of Transcendentalism as recorded in his masterwork, Walden (1854), and for having been a vigorous advocate of civil liberties, as evidenced in the essay ‘Civil Disobedience’ (1849).},
    booktitle = {Encyclopedia Britannica},
    author = {{The Editors of Encyclopaedia Britannica}},
    date = {2023-07-08},
    langid = {english},
    file = {Snapshot:/home/cachandler/Productivity/Zotero/storage/I2SMT29Q/Henry-David-Thoreau.html:text/html},
}

@inreference{the_editors_of_encyclopaedia_britannica_mexican-american_2023,
    title = {Mexican-American War},
    url = {https://www.britannica.com/event/Mexican-American-War},
    abstract = {Mexican-American War, war between the U.S. and Mexico from 1846 to 1848. It was caused by a territorial dispute stemming from the United States’ annexation of Texas in 1845 and from contention over whether Texas ended at the Nueces River or the Rio Grande.},
    booktitle = {Encyclopedia Britannica},
    author = {{The Editors of Encyclopaedia Britannica}},
    date = {2023-06-19},
    langid = {english},
    file = {Snapshot:/home/cachandler/Productivity/Zotero/storage/R4S2NAND/Mexican-American-War.html:text/html},
}

答案1

您可能对longdash的选项感兴趣biblatex-mla文档解释

第九版MLA 手册澄清表示一位作者的多个条目的破折号可以用三个长破折号或三个连字符来表示。从 2.0 版开始,输出默认为长破折号,但设置longdash为 false 会恢复为连字符:

\usepackage[style=mla,longdash=false]{biblatex}

所以你可能想尝试一下

\documentclass[12pt]{article}

\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage{ifpdf}
\usepackage{mla}
\usepackage[style=mla-new,backend=biber,longdash=false]{biblatex}

\begin{filecontents}{\jobname.bib}
@inreference{the_editors_of_encyclopaedia_britannica_henry_2023,
    title = {Henry David Thoreau},
    url = {https://www.britannica.com/biography/Henry-David-Thoreau},
    abstract = {Henry David Thoreau, American essayist, poet, and practical philosopher renowned for having lived the doctrines of Transcendentalism as recorded in his masterwork, Walden (1854), and for having been a vigorous advocate of civil liberties, as evidenced in the essay ‘Civil Disobedience’ (1849).},
    booktitle = {Encyclopedia Britannica},
    author = {{The Editors of Encyclopaedia Britannica}},
    date = {2023-07-08},
    langid = {english},
    file = {Snapshot:/home/cachandler/Productivity/Zotero/storage/I2SMT29Q/Henry-David-Thoreau.html:text/html},
}
@inreference{the_editors_of_encyclopaedia_britannica_mexican-american_2023,
    title = {Mexican-American War},
    url = {https://www.britannica.com/event/Mexican-American-War},
    abstract = {Mexican-American War, war between the U.S. and Mexico from 1846 to 1848. It was caused by a territorial dispute stemming from the United States’ annexation of Texas in 1845 and from contention over whether Texas ended at the Nueces River or the Rio Grande.},
    booktitle = {Encyclopedia Britannica},
    author = {{The Editors of Encyclopaedia Britannica}},
    date = {2023-06-19},
    langid = {english},
    file = {Snapshot:/home/cachandler/Productivity/Zotero/storage/R4S2NAND/Mexican-American-War.html:text/html},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\defbibheading{bibliography}{\center Works Cited}

\begin{document}
\begin{mla}{First Name}{Last Name}{Professor}{Course Name}{\today}{Title}
    Sentence 1 \autocite{the_editors_of_encyclopaedia_britannica_henry_2023}.
    Sentence 2 \autocite{the_editors_of_encyclopaedia_britannica_mexican-american_2023}.

    \newpage
    \printbibliography

\end{mla}
\end{document}

大英百科全书编辑。“亨利·戴维·梭罗。”大英百科全书,2023 年 7 月 8 日,www.britannica.com/biography/Henry-David-Thoreau。---。“美墨战争。”大英百科全书,2023 年 6 月 19 日,www.britannica.com/event/Mexican-American-War。


如果你喜欢在破折号之间使用空格,请尝试

\renewcommand*{\mlanamedash}{\textemdash\kern 1pt\textemdash\kern 1pt\textemdash}

\renewcommand*{\bibnamedash}{%
  \printtext[noformat]{\mlanamedash}
  \iffieldundef{nameaddon}%
    {\setunit{\addperiod\addspace}}%
    {\setunit{\nopunct}}}%

我必须添加一个非负的字距来在它们之间留出空格,但我怀疑这是否以及必要的程度还取决于您使用的字体,因此您可能需要在这里尝试一下\kern 1pt

相关内容