Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.85 KB

latex.org

File metadata and controls

59 lines (45 loc) · 1.85 KB

run-command Recipe for LaTeX

Table of Contents

Requirements

For full enjoying this recipe, i recommend you install the Emacs package latex-extra, but it is not required.

Commands

This cool recipe can 3 commands:

  • Convert to PDF using pdflatex
  • Fully compile the current document, then view it

    NOTE: this command requires the latex-extra Emacs package

    Here “fully compile” denotes run full cycle of LaTeX commands, for example:

    • LaTeX
    • BibTex
    • LaTeX
    • view in web-browser

    Each step can be customized specially for you (visit the origninal docs from latex-extra)

  • Compile LaTeX using latexmk
  • Compile LaTeX using latexmk with previewer

Customization

I am use only pdflatex, so you have little customization, you can customize run-command-recipes-latex-command var, by default pdflatex run-command-recipes ignore able handle errors to user, because default compiltaion mode of Emacs dont’t able to handle stdin input of user, but you can customize this when set var run-command-recipes-latex-command.

run-command-recipes-latex-command is string which take 2 format (%s), first is (--output-dir, flag of pdflatex), second filename, please wrap this quotes, this is important.

run-command-recipes-latex-command defaults to:

pdflatex -interaction nonstopmode -file-line-error --output-directory "%s" "%s"