tsuu32 / auctex-cluttex

ClutTeX support for AUCTeX
GNU General Public License v3.0
5 stars 4 forks source link

How to pass options? #10

Open wail-uottawa opened 1 year ago

wail-uottawa commented 1 year ago

How to pass options (e.g., --shell-escape) within Emacs?

ecofighter commented 5 months ago

Although I am not the author of auctex-cluttex, I am also a user of the package and would like to offer some advice.

The item added to TeX-command-list is defined by the variable auctex-cluttex-ClutTeX-command. The replacement strings within this variable are processed using auctex-cluttex-cluttexengine-expand, auctex-cluttex-cluttexbib-expand, and auctex-cluttex-cluttexindex-expand.

To add --shell-escape to the arguments, configure the package as follows:

(use-package auctex-cluttex
  :config
  (setq auctex-cluttex-ClutTeX-command
        '("ClutTeX"
          "cluttex --shell-escape -e %(cluttexengine) %(cluttexbib) %(cluttexindex) %S %t"
          auctex-cluttex--TeX-run-ClutTeX nil (plain-tex-mode latex-mode)
          :help "Run ClutTeX")))

For more detailed information about the TeX-command-list variable and its format, you can refer to the help documentation by pressing C-h v TeX-command-list RET in Emacs.

wail-uottawa commented 5 months ago

I appreciate your help. Thank you!