Skip to content

xampl.bib 无法用于 gbt7714 包和 natbibauthoryear 模式吗? #315

Description

@OsbertWang

检查清单

  • 我已在 issues 中进行搜索(包括已关闭的问题)

操作系统

Windows 11

TeX 发行版

TeX Live 2024

描述问题

今天本意是用 xampl 制作一个示例,结果发现编译出现问题。一共做了4个示例,其中3个编译错误,1个编译通过,如下所示。
我的猜测是,xampl.bib 无法用于 gbt7714 包和 authoryear 模式吗?

最小工作示例(MWE)

\documentclass{ctexart}
\usepackage{gbt7714}
\bibliographystyle{gbt7714-author-year}
\citestyle{authoryear}

\begin{document}

\nocite{*}

\bibliography{xampl}
\end{document}

latexmk -pdfxe 编译后,日志文件输出:

Runaway argument?
Knuth({\)]{whole-set} KNUTH D~E, {\. \newblock Four volumes: The art \ETC.
! Paragraph ended before \@lbibitem was complete.
<to be read again>
                   \par
l.62

?

后又做了如下 MWE:

\documentclass{ctexart}
\usepackage{gbt7714}
\bibliographystyle{gbt7714-numerical}
\citestyle{numbers}

\begin{document}

\nocite{*}

\bibliography{xampl}
\end{document}

latexmk -pdfxe 编译后,日志文件输出:

Runaway argument?
Knuth({\noo )]{inbook-minimal} KNUTH D~E. \newblock Fundamental algor\ETC.
! Paragraph ended before \@lbibitem was complete.
<to be read again>
                   \par
l.40

?

其它尝试

最后我不用 gbt7714 试了试,MWE 如下:

\documentclass{article}
\usepackage[authoryear]{natbib}
\bibliographystyle{abbrvnat}

\begin{document}

\nocite{*}

\bibliography{xampl}
\end{document}

latexmk -pdf 编译后,日志文件输出:

! Missing = inserted for \ifnum.
<to be read again>
                   \def
l.34 ...3a}}{\switchargs{--90}{1968}})]{whole-set}

?

最后发现只有如下 MWE 可以编译通过:

\documentclass{article}
\usepackage[numbers]{natbib}
\bibliographystyle{abbrv}

\begin{document}

\nocite{*}

\bibliography{xampl}
\end{document}

链接

No response

其他信息

No response

附件

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions