Babel 和 biblatex 与 TexLive 2018 的问题

Babel 和 biblatex 与 TexLive 2018 的问题

我刚刚在 Linux 机器上安装了 TexLive 2018。我尝试编译 MWE(见下文),但编译结果如下:

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2018-04-01> patch level 5
(/opt/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/opt/texlive/2018/texmf-dist/tex/latex/base/size10.clo))
(/opt/texlive/2018/texmf-dist/tex/latex/base/inputenc.sty)
(/opt/texlive/2018/texmf-dist/tex/latex/base/fontenc.sty
(/opt/texlive/2018/texmf-dist/tex/latex/base/t1enc.def))
(/opt/texlive/2018/texmf-dist/tex/generic/babel/babel.sty
(/opt/texlive/2018/texmf-dist/tex/generic/babel/switch.def)
(/opt/texlive/2018/texmf-dist/tex/generic/babel-slovenian/slovene.ldf
(/opt/texlive/2018/texmf-dist/tex/generic/babel/babel.def
(/opt/texlive/2018/texmf-dist/tex/generic/babel/txtbabel.def))))
(/opt/texlive/2018/texmf-dist/tex/latex/graphics/graphicx.sty
(/opt/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/texlive/2018/texmf-dist/tex/latex/graphics/graphics.sty
(/opt/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty)
(/opt/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/opt/texlive/2018/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/biblatex.sty
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/opt/texlive/2018/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/opt/texlive/2018/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/opt/texlive/2018/texmf-dist/tex/generic/oberdiek/etexcmds.sty)))
(/opt/texlive/2018/texmf-dist/tex/latex/logreq/logreq.sty
(/opt/texlive/2018/texmf-dist/tex/latex/logreq/logreq.def))
(/opt/texlive/2018/texmf-dist/tex/latex/base/ifthen.sty)
(/opt/texlive/2018/texmf-dist/tex/latex/url/url.sty)
(/opt/texlive/2018/texmf-dist/tex/generic/xstring/xstring.sty
(/opt/texlive/2018/texmf-dist/tex/generic/xstring/xstring.tex))
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/blx-dm.def)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex-apa/apa.dbx)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/blx-compat.def)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/biblatex.def)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex-apa/apa.bbx
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/bbx/standard.bbx))
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex-apa/apa.cbx)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/biblatex.cfg))
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex-apa/slovene-apa.lbx
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/lbx/slovene.lbx)
(/opt/texlive/2018/texmf-dist/tex/latex/biblatex/lbx/slovene.lbx

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.528 }

?

以下是 MWE:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[slovene]{babel}
\usepackage{graphicx}
\usepackage[backend=biber,style=apa,citestyle=apa,hyperref]{biblatex}

\DeclareLanguageMapping{slovenian}{slovene-apa}

%\addbibresource{references.bib}

\title{Title of the document}
\author{}
\date{}

\begin{document}

\maketitle

\section{Test}

Lorem ipsum.

%\printbibliography

\end{document}

值得注意的是,使用 TexLive 2017 编译同一篇文档非常顺利。我怀疑babel/biblatex设置出了问题。我很乐意听取任何建议。

答案1

缺少逗号导致slovene.lbx此错误(特别是在第 481 行)。

该错误已已报告固定的在 3.12 版中biblatex(发布于 2018-10-30)。更新应该可以解决此问题。

如果由于某种原因您无法更新您的安装。您可以从以下位置获取 3.11 的 biblatex修复替换版本slovene.lbxhttps://github.com/plk/biblatex/blob/b14b013cce98fef41a4f8a19fdf4924facbd87cb/tex/latex/biblatex/lbx/slovene.lbx。只需将其放入与主文档相同的文件中即可.tex。请注意,此版本可能会因缺少字符串定义而导致旧系统出现错误。

相关内容