我创建了一个build.sh
运行xelatex
并bibtex
构建 pdf 文件的文件。
在我的代码中.travis.yml
,我使用这个脚本来测试我的存储库。在本地,构建运行良好,但在 Travis 上我收到 bibtex 错误:
This is BibTeX, Version 0.99d (TeX Live 2015/Debian)
The top-level auxiliary file: thesis.aux
A level-1 auxiliary file: title/cover.aux
A level-1 auxiliary file: title/title.aux
I found no \citation commands---while reading file thesis.aux
I found no \bibdata command---while reading file thesis.aux
I found no \bibstyle command---while reading file thesis.aux
(There were 3 error messages)
我的build.sh
:
#!/bin/bash
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
bibtex thesis.aux
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
xelatex -synctex=1 -interaction=nonstopmode -halt-on-error thesis.tex
最后,.travis.yml
:
language: shell
os: linux
install:
- sudo apt-get -qq update && sudo apt-get -qq -y install texlive texlive-latex-extra texlive-full texlive-xetex texlive-pstricks
script:
- ./build.sh
答案1
好的,所以我在以下帮助下解决了这个问题David 的评论:我使用 构建时删除了\usepackage[T1]{fontenc}
和 ,这使得构建成功通过。\usepackage[utf8]{inputenc}
latexmk -xelatex