Skip to content

附录中的术语表 (glossaries) 导致参考文献编号均为 0 #902

@ekaradon-Alexander

Description

@ekaradon-Alexander

编译环境

编译的系统:overleaf
TeX 发行版:TeX Live 2023
模板版本:v7.4.0
模板类型:doctor(使用缺省值)

p.s. 在 macOS 13.5.2 上使用 latexmk 编译也存在此问题,并且下面的「其它尝试」对于 latexmk 也适用。

描述问题

截图:
image

image

复现上述问题的代码:

\documentclass{thuthesis}

\usepackage[utf8]{inputenc}

\usepackage{filecontents}
\usepackage{hyperref}
\usepackage{glossaries}

\usepackage[style=thuthesis-numeric]{biblatex} 
% \usepackage[style=thuthesis-author-year]{biblatex} 


\begin{filecontents}{ref.bib}
@book{newton1687,
    author =    {Isaac Newton},
    title =     {The Mathematical Principles of Natural Philosophy},
    year =      {1687},
}
\end{filecontents}
\addbibresource{ref.bib}

\makeglossaries
\newglossaryentry{牛顿运动定律}
{
    name        = {牛顿运动定律},
    description = {Newton's laws of motion},
}

\begin{document}

\maketitle

\mainmatter
\chapter{引言}

牛顿~\cite{newton1687} 于 1687 发表了著名的\gls{牛顿运动定律}。

\printbibliography

\appendix
\printglossary

\end{document}

其它尝试

首先使用 \usepackage[style=thuthesis-author-year]{biblatex} 编译一次,再使用 \usepackage[style=thuthesis-numeric]{biblatex} 编译一次,可以得到正确的参考文献编号。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions