Biblatex 导致 Runaway 参数错误

Biblatex 导致 Runaway 参数错误

我正在为 Overleaf 上的项目制作模板。但是我在使用 biblatex 包时遇到了问题。我有我的main.tex文件,其中包含所有主文档以及seminarka.sty包含所有命令和修改的文件。但是当我导入 biblatex 时,我在构建时收到错误main.tex

Runaway argument?
2021-07-12\s__file_stop \__int_eval_end: \__prg_T_true:w \fi: \use_none:n \ETC.
! File ended while scanning use of \__file_parse_version:w.
<inserted text> 
                \par 
l.6 \begin{document}
                    
I suspect you have forgotten a `}', causing me
to read past where you wanted me to stop.
I'll try to recover; but if the error is serious,
you'd better type `E' or `X' now and fix your file.

! Missing number, treated as zero.
<to be read again> 
                   \__kernel_tl_set:Nx 
l.6 \begin{document}
                    
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)


LaTeX Warning: You have requested, on input line 6, version
               `2020/04/06' of package expl3,
               but only version
               `2021-07-12 L3 programming layer (loader) '
               is available.
% main.tex
\documentclass[12pt]{report}
\usepackage{seminarka}

\addbibresource{references.bib}

\begin{document}

\custtitlepage{Název}{Podnázev}{Autor}{Předmět}{Škola}{Datum}

\toc
...

\usepackage{biblatex}当我从中删除命令时,这个问题得到了解决seminarka.sty,但我需要 biblatex 来进行引用和引文。

Overleaf 项目:https://www.overleaf.com/read/wvyjpjqygvwp

答案1

作为@moewe据说,问题出在 babel 包上。解决办法是明确导入expl3(如上所述这里) 之前biblatex或将 babel 的导入移到之后biblatex

新的包裹导入顺序

\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{titlesec}
\usepackage{url}
\usepackage{expl3} % optional, not really needed but fixes the problem as well
\usepackage{biblatex}
\usepackage[czech]{babel}
\usepackage{csquotes}

\usepackage[sfdefault,light]{roboto}
\usepackage[hidelinks,pdftex]{hyperref}

相关内容