How to call latexmk in emacs, and jump to next-error

前端 未结 3 1820
心在旅途
心在旅途 2020-12-23 18:55

I would like to use latexmk to compile my LaTeX documents in Emacs. Especially I need the Emacs functionality next-error, which is typically called with C-x `,

3条回答
  •  感情败类
    2020-12-23 18:58

    Adding %(mode) gives latexmk some more options like noninteractive if it is set so in auctex.

    (add-hook 'LaTeX-mode-hook (lambda ()
      (push 
        '("Latexmk" "latexmk -pdf %(mode) %s" TeX-run-TeX nil t
          :help "Run Latexmk on file")
        TeX-command-list)))
    

提交回复
热议问题