0

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

  • 1
    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
  • 1
    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
1

This means that you should run latexmk from the directory containing the main file.

  • 2
    Alternatively you can pass the -cd option to latexmk – Andrew Swann Sep 17 '15 at 18:41
  • I was typing latexmk -xelatex and then dragging the file onto the terminal. Apparently that confuses latexmk about where to look for other included files like title.tex and bibliography.bib. – בנימן הגלילי Sep 17 '15 at 18:45
  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.