How do I set up for latexmk compilation for pdflatex in texlive? I have the following (see picture) setup for latexmk compilation for xelatex (I just found it somewhere), but I don't know what to change for pdflatex.

How do I set up for latexmk compilation for pdflatex in texlive? I have the following (see picture) setup for latexmk compilation for xelatex (I just found it somewhere), but I don't know what to change for pdflatex.

Based on Joseph's comments, this:

The latexmk procedure for xelatex given in the question can also be simplified to the following:

xelatex configuration: Just replace -pdf (from this configuration) with -xelatex. The only difference seems to be that the configuration you posted heeds some variable $synctexoption, which I can’t find in the latexmk documentation, so I’m guessing it’s TeXworks-specific. What happens if you keep the xelatex configuration and only replace xelatex (in the 3rd line) with pdflatex?
– doncherry
Sep 11 '13 at 09:59
pdflatex and xelatex. The one not pictured yet is the pdflatex configuration I described in the second part of my last comment.
– doncherry
Sep 11 '13 at 10:39
xelatexthat followsq/should bepdflatex. But I haven't used Windows in almost a decade. – jon Sep 10 '13 at 17:13-pdfswitch: did you try just removing the$pdflatex ...line? – Joseph Wright Sep 10 '13 at 18:08Unquoted string "tex" may clash with future reserved word at (eval 8) line 2(possibly completely unrelated). – Sverre Sep 10 '13 at 18:13latexmkis a Perl script. You must have a Perl interpreter installed in your machine. – Raniere Silva Sep 10 '13 at 18:29latexmkin a W* machine with MiKTeX and have no success because the machine haven't a Perl script. AFAIK the LaTeX distribution don't install a Perl script. I just want to warning you about this. – Raniere Silva Sep 10 '13 at 18:56Unquoted string "tex" ...warning, afontspecerrorThe fontspec package requires either XeTeX or LuaTeX to function. – Sverre Sep 10 '13 at 19:54fontspecwith pdfLaTeX, so that is not really a surprise. You have to use either XeLaTeX or LuaLaTeX to usefontspec. – Joseph Wright Sep 10 '13 at 19:56fontspec, so I'm baffled. – Sverre Sep 10 '13 at 20:01-e(it seems this is actually linked to thexelatexbusiness). For me, that removes the warning, andlatexmk -pdf <filename>with the linked demo is fine. – Joseph Wright Sep 10 '13 at 20:08