
我創建了一個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
好的,我在以下人員的幫助下解決了這個問題大衛的評論:我在使用 建置時刪除了\usepackage[T1]{fontenc}
和 ,這讓建置成功通過。\usepackage[utf8]{inputenc}
latexmk -xelatex