Hi Ashish,

Ashish Panigrahi <[email protected]> writes:

> I would like to compile my document directly with a command without 
> invoking `TeX-command-master`, and selecting LaTeXmk from the minibuffer 
> list.

Perhaps there's an easy built-in way to do this in AUCTeX, I'm not sure.
Regardless, here's an easy non-built-in way. Looking at the source of
`TeX-command-master', we see that it calls

    (TeX-command (TeX-command-query #'TeX-master-file)
                   #'TeX-master-file override-confirm)

Where (TeX-command-query #'TeX-master-file) queries the user and returns the
chosen output as a string, like "LaTeX", "LaTeXMk", or "Biber". This means that
in order to do what (I think) you want, the call

    (TeX-command "LaTeXMk" #'TeX-master-file)

should suffice. You can test this using `eval-expression', which defaults to
`M-:'. If that is indeed what you want, here's a small interactive function that
does this:

    (defun my/LaTeXMk-compile ()
      (interactive)
      (TeX-command "LaTeXMk" #'TeX-master-file))

Best,
Rens

Reply via email to