
Я создал 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
, что позволило успешно выполнить сборку.