BibTeX, biblatex and biberBibliography with XeLaTeX

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
richard1017
Posts: 4
Joined: Wed Nov 28, 2012 6:32 am

Bibliography with XeLaTeX

Post by richard1017 »

XeLaTeX can't create a bibliography during compilation.

As for the following code, it can't be compiled by XeLaTeX. If I use PDFTeXify, everything went smoothly and the references section is created (I'm using MiKTeX and WinEdt). My file contains Chinese characters and I'm using the packages fontspec, xunicode and xltxtra and have to compile it with XeLaTeX.

How can I get the references with XeLaTeX?

Here's an example.

Code: Select all

\documentclass{article}

\begin{document}
A test for bibliography with Xe\LaTeX.\cite{Aspnes:1973}

\bibliographystyle{plain}
\bibliography{ref}
\end{document}
And the corresponding BibTeX database.

Code: Select all

@ARTICLE{Aspnes:1973,
  author = {D.E. Aspnes},
  title = {Third-derivative modulation spectroscopy with low-field electroreflectance},
  journal = {Surface Science},
  year = {1973},
  volume = {37},
  pages = {418 - 442},
  number = {0},
  markedentry = {[Richard:1]},
  doi = {10.1016/0039-6028(73)90337-3},
  file = {:D\:\\Dropbox\\Lab\\Papers\\Aspnes.D.1973.pdf:PDF},
  issn = {0039-6028},
  url = {http://www.sciencedirect.com/science/article/pii/0039602873903373}
}

@BOOK{Aspnes:1980,
  title = {Handbook on semiconductors},
  publisher = {North-Holland, New York},
  year = {1980},
  editor = {T. S. Moss},
  author = {D. E. Aspnes},
  owner = {Richard},
  timestamp = {2012.08.16}
}

Thank you very much!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography with XeLaTeX

Post by localghost »

richard1017 wrote:XeLaTeX can't create a bibliography during compilation. […]
That's true, but neither can PDFLaTeX. PDFTeXify is a special tool provided by WinEdt. Perhaps you can configure WinEdt with a similar tool "XeTeXify" (but I can't tell you how).
richard1017 wrote:[…] How can I get the references with XeLaTeX?[…]
You simply have to run BibTeX in between and then XeLaTeX at least twice. That's exactly what PDFTeXify does automatically in the background. WinEdt should offer a corresponding button in its toolbar.

You may take a look at LaTeXMK. It is a tool for general use which does all the steps as long as needed to get the complete document. Its manual has all necessary information.


Thorsten
richard1017
Posts: 4
Joined: Wed Nov 28, 2012 6:32 am

Bibliography with XeLaTeX

Post by richard1017 »

Thank you, Thorsten!

I did this.

Code: Select all

xelatex test
bibtex test
xelatex test
xelatex test
And the reference was there! :D
Post Reply