[Tex/LaTex] How to make LaTeXmk work with XeLaTeX and biber

biberbiblatexlatexmkxetex

I'm trying to make latexmk works with XeLaTeX and biber for my thesis. The document will have many cross references. What settings do I need to ensure it works correctly? My current settings for latexmk are below.

-e 
$pdflatex=q/pdflatex -synctex=1 %O %S/
-pdf
$fullname

Best Answer

Put

$pdflatex=q/xelatex -synctex=1 %O %S/

in the .latexmkrc file.

For Biber, look at this discussion. However the latest version of latexmk coming with TeX Live 2011 works with Biber, choosing it automatically when needed (thanks to PLK for pointing this out).