Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法使用latexmk 生成参考文献 #282

Closed
KailinXu opened this issue Dec 8, 2022 · 2 comments
Closed

无法使用latexmk 生成参考文献 #282

KailinXu opened this issue Dec 8, 2022 · 2 comments
Labels
I need help I want to get help from developers

Comments

@KailinXu
Copy link

KailinXu commented Dec 8, 2022

操作系统

Windows

TeX 套件

TeXLive 2021 或更新的版本

TeX Compiler

XeTeX

zjuthesis 版本号

不太清楚

MajorFormat

general

Degree

graduate

Type

thesis

Period

final

BlindReview

true

GradLevel

master

问题描述

您好,感谢您的工作。我在编译参考文献的时候,使用latexmk -xelatex -outdir=out zjuthesis仍无法得到参考文献。
我结构上只是对zjuthesis.tex进行了更改

这个是当前的代码
\usepackage{amsmath}
\usepackage{enumerate}
\usepackage{colortbl}

\usepackage{algorithm,algorithmic}
\usepackage{lipsum}
\usepackage{enumitem}
\usepackage{diagbox}
\usepackage{booktabs}
\usepackage{subfig}

\makeatletter
\newenvironment{breakablealgorithm}
{% \begin{breakablealgorithm}
\begin{center}
\refstepcounter{algorithm}% New algorithm
\hrule height.8pt depth0pt \kern2pt% @fs@pre for @fs@ruled 画线
\renewcommand{\caption}[2][\relax]{% Make a new \caption
{\raggedright\textbf{\ALG@name~\thealgorithm} ##2\par}%
\ifx\relax##1\relax % #1 is \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##2}%
\else % #1 is not \relax
\addcontentsline{loa}{algorithm}{\protect\numberline{\thealgorithm}##1}%
\fi
\kern2pt\hrule\kern2pt
}
}{% \end{breakablealgorithm}
\kern2pt\hrule\relax% @fs@post for @fs@ruled 画线
\end{center}
}
\makeatother

\def\allfiles{}
\begin{document}

\coverstyle
\inputpage{cover}

\prevstyle
\inputpage{previous}
\inputpage{toc}

% Main contents
\bodystyle
\input{./body/graduate/chap1}
\input{./body/graduate/chap2}
\input{./body/graduate/chap3}
\input{./body/graduate/chap4}
\input{./body/graduate/chap5}

% Post part
\poststyle
\inputbody{post}
\end{document}

编译日志

zjuthesis.log

代码

No response

截图

No response

其他信息

一天前是能够顺利使用的,后面加了文字和一些新的文献就无法使用了。
之前也出现过类似的情况,两个小时后自动好了,未找到原因。

@KailinXu KailinXu added the I need help I want to get help from developers label Dec 8, 2022
@TheNetAdmin
Copy link
Owner

把中间文件全部删除然后重新编译

@KailinXu
Copy link
Author

KailinXu commented Dec 9, 2022

您好,感谢您的回复,中间文件全部删除然后重新编译我试了,也没有用
后来我发现是bib文件中缺少了一个 逗号,导致无法编译成功,但是这个在log里面确实也没体现,下面是唯一的相关语句
LaTeX Warning: Citation 'zhou2021m' on page 15 undefined on input line 80.
加上逗号就可以了,感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I need help I want to get help from developers
Projects
None yet
Development

No branches or pull requests

2 participants