Babel 3.49 破坏了一切!

Babel 3.49 破坏了一切!

虽然我提供了在其他地方出现过的解决方法,但这实际上是一个“小心”的帖子,而不是一个问题。

新的“功能”:Babel 版本 3.49(发布于 2020/10/03)与选项一起使用时,main=[mainlanguage]会破坏 LaTeX 通常使用的“图形”语言、带有 的“证明” 、带有/或 的amstheorem“参考”以及来自和的“索引” 。示例:printbibliographybiblatexbiberbibtex\makeindex\printindex

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@article{foo1999,
  title={Title},
  author={Doe, John},
  journal={International Journal of Nonsense},
  year={1999}
}
\end{filecontents}

\documentclass{article}

\usepackage[russian,french,ngerman,polish,main=english]{babel}

\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\usepackage{biblatex}
\addbibresource{mybib.bib}
\usepackage{imakeidx}
\makeindex

\begin{document}

\begin{thm}\index{arithmetic}
$2+2 = 4$.
\end{thm}

\begin{proof}
$2+2 = 2+(1+1) = (2+1) + 1 = 3 + 1 = 4$.
\end{proof}

\begin{figure}[h!]
\centering
\framebox[2in][c]{\rule{0pt}{2in}}
\caption{Look at this!}
\end{figure}

See this book:
\cite{foo1999}

\printbibliography
\nopagebreak
\printindex

\end{document}

使用 Babel 3.49 修复损坏的标题

治愈特征:”main=english只需从babel选项列表中替换即可english(或类似地,无论主要语言是什么,都将其放在列表的最后)。

在 Babel 3.49 的文档中,请参阅第 6 页底部的注释及其之前的讨论。

有关的:

使用 biblatex 和 babel 时出现错误的语言书目标题

https://github.com/latex3/babel/issues/96

相关内容