# XeLaTex, Biber, XeLaTeX mac terminal mactex2015

Want to compile with terminal. Currently options that work in texmaker are

 "/usr/local/texlive/2015/bin/x86_64-darwin/xelatex" -interaction=nonstopmode %.tex|
"/usr/local/texlive/2015/bin/x86_64-darwin/biber"%|"/usr/local/texlive/2015/bin
/x86_64-darwin/xelatex" -interaction=nonstopmode %.tex


I tried latexmk -xelatex ~/Documents/inProgress/main.tex this gives an error ! LaTeX Error: File title.tex not found.

main.tex should include content from title.tex and references.bib before making the pdf

• What does cd ~/Documents/inProgress followed by latexmk -xelatex main say? – egreg Sep 16 '15 at 20:10
• LaTeX Warning: Reference footdir@14' on page 1 undefined on input line 30. ! Misplaced \noalign. \hline ->\noalign {\ifnum 0=}\fi \hrule \@height \arrayrulewidth \futurelet... l.47 \hline ? – בנימן הגלילי Sep 17 '15 at 15:12
• This means that you should run latexmk from the directory containing the main file. And to fix your TeX errors, now. – egreg Sep 17 '15 at 15:14
• my command is latexmk -xelatex -f main.tex I thought -f was just do it. What's the "I don't want to hit enter 10 times just give me a pdf command?" – בנימן הגלילי Sep 17 '15 at 15:16
• You have syntax errors in your TeX files; if you don't fix them… – egreg Sep 17 '15 at 15:30

• Alternatively you can pass the -cd option to latexmk – Andrew Swann Sep 17 '15 at 18:41
• Writing latexmk -xelatex -cd and then dragging the file in should work. The -cd option means latexmk changes to the directory of the file before starting the compilation. – Andrew Swann Sep 17 '15 at 18:46