Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for %(output-dir) #45

Open
ghost opened this issue Apr 12, 2023 · 0 comments
Open

Support for %(output-dir) #45

ghost opened this issue Apr 12, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 12, 2023

Seemingly, AUCTeX's %(output-dir) can be forwarded to latexmk as-is.

I have replaced the line

  (setq-default TeX-command-list
                (cons
                 '("LatexMk" "latexmk %(-PDF)%S%(mode) %(file-line-error)  %(extraopts) %t" TeX-run-latexmk nil
                   (plain-tex-mode latex-mode doctex-mode) :help "Run LatexMk")
                 TeX-command-list)
                LaTeX-clean-intermediate-suffixes
                (append LaTeX-clean-intermediate-suffixes
                        '("\\.fdb_latexmk" "\\.aux.bak" "\\.fls")))

with

  (setq-default TeX-command-list
                (cons
                 '("LatexMk" "latexmk %(-PDF)%S%(mode) %(file-line-error) %(output-dir) %(extraopts) %t" TeX-run-latexmk nil
                   (plain-tex-mode latex-mode doctex-mode) :help "Run LatexMk")
                 TeX-command-list)
                LaTeX-clean-intermediate-suffixes
                (append LaTeX-clean-intermediate-suffixes
                        '("\\.fdb_latexmk" "\\.aux.bak" "\\.fls")))

and it seems to work.

Can this be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants