I've been using LaTeX for almost four years now, so one could perhaps think I would know how to do this. But I don't. I'm at a complete loss here trying to get latexmk and, eventually, BibTeX to work.
I'm on a Windows using TeXWorks. I tried following this example, but with no luck. The issue is the last part - I've tried running it through pdflatex, then BibTeXand then pdflatex a couple of more times by simply changing in the drop-down menu. So I've been trying to get latexmk to work, but most guides lose me right away.
I tried following the installation instructions, but realized Perl wasn't installed. So I installed Strawberry Perl. I didn't find C:\local\bin so I put the files somewhere else and did step 4. Typing in perl --version returns perl 5, version 18. By a similar check, latexmk is also installed (which may or may not be because I installed it via the Package Update thing in MikTeX).
I then run
latexmk paper
latexmk -pv paper
latexmk -pv -ps paper
and the last line just pops up a window saying no program was found to open the file. So I try
ps2pdf paper.ps paper.pdf
but then there are no citations but only question marks.
Then I also found this guide which would be neat to get working. But I don't know where to find latexmk, and I don't know where to find where to find it either!
Maybe I explained my issue in too much detail, but for what it's worth I've at least tried to solve it on my own. Any help to get this working would be greatly appreciated.
latexmk -vorlatexmk -helpto see10 Nov 2013.Version 4.39. Another test is Download bib.tex and sample.bib to folder (Desktop) and opencommand promptfolder path, runlatexmk -pdf bibto get bib.pdf – texenthusiast Dec 12 '13 at 14:46latexmk -vreturns that string. When following the setup guide in your link, it afterwards say that "latexmk is not properly configured". I guess that's not referring to latexmk itself, but my typesetting tool. In the link, it saysProgram: latexmkbut I don't know where to find this. Would you know how I would locate this? I'm assuming it's the .exe file? – hejseb Dec 13 '13 at 10:05LaTeXmkprogramm near to theTypesetButton (if you scroll down the options) and it detects the MiKTeX bin path (No exact Idea, as I am on Linux). In theEdit-->Preferences-->Typesetting-->Paths for TeX related Systems--> Add the MiKTeX bin path something likeC:\Program Files (86)\MikTeX 2.9\miktex\bindepending on where you installed miktex – texenthusiast Dec 13 '13 at 13:43LaTeXmk -pdf bibworks all fine (asperlwas installed properly) from commandline prompt, then it should work from TeXworks editor also, basicallylatexmkit's a perl script made for automation of sequence (pdflatex, bibtex, pdflatex and then pdflatex) that will make life easier and simple. Follow https://code.google.com/p/texworks/wiki/AdvancedTypesettingTools#latexmk it should be ok. – texenthusiast Dec 13 '13 at 14:11latexmk paper latexmk -pv paper latexmk -pv -ps paperas seen in your Q, it's 1 run enough. In documentation of latexmk one might find extra information to configure forlatex-dvips-ps2pdfcompilation sequence but TeXworks is more defaults automated forpdflatexengine compilation which is good. I will make an answer summarizing all comments in few hrs. – texenthusiast Dec 13 '13 at 14:37