latexrun icon indicating copy to clipboard operation
latexrun copied to clipboard

XeLaTeX does not work well with bib file

Open eisoku9618 opened this issue 9 years ago • 2 comments

XeLaTeX's behavior seems different from pdfLaTeX when we use a bib file.

So, when we build a tex file which contains a bib file with XeLaTeX, the output pdf file contains [?], while it does not with pdfLaTeX.

The following commands can reproduce this issue.

./latexrun --clean-all && rm latex.out/ -rf
./latexrun --debug --latex-cmd=pdflatex test.tex
./latexrun --clean-all && rm latex.out/ -rf
./latexrun --debug --latex-cmd=xelatex test.tex
  • test.tex
\documentclass{article}

\begin{document}

test\cite{bib-test}

\bibliographystyle{unsrt}
\bibliography{bib}

\end{document}
  • bib.bib
@Book{bib-test,
  author =    {hoge},
  title =        {fuga},
  publisher =    {piyo},
  year =         {2016},
}

I'm using ubuntu 14.04

  • tex live : 2013
  • pdfTeX : 3.1415926-2.5-1.40.14
  • XeTeX : 3.1415926-2.5-0.9999.3-2014012222

This PR is one solution, but I don't think it's a good one...

How can I fix this issue?

Thanks,

eisoku9618 avatar Feb 16 '16 04:02 eisoku9618

  • XeLaTeX version xelatex
  • pdfLaTeX version pdflatex

eisoku9618 avatar Feb 16 '16 04:02 eisoku9618

Please let me add more information about this PR.

With XeLaTex, test.pdf contains [?] but latex.out/test.pdf does not. The problem seems that latexrun finishes the process even though test.pdf is not the same with latex.out/test.pdf.

eisoku9618 avatar Feb 16 '16 04:02 eisoku9618