[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#49018: 28.0.50; [PATCH] Add tex-start-options to tex-compile-command
From: |
Utkarsh Singh |
Subject: |
bug#49018: 28.0.50; [PATCH] Add tex-start-options to tex-compile-commands |
Date: |
Mon, 14 Jun 2021 15:06:36 +0530 |
Hi,
Tex-mode support a defcustom called `tex-start-options' which can be
used to provide command line options to Tex programs but
`tex-compile-command' variable ignores this defcustom which is used in
function `tex-compile' to compile Tex documents.
LaTex provides a package called 'minted' which is a generic syntax
highlighter, it requires '--shell-escape' as command line option to work
properly.
>From 22eb119d897077ad42c7d345977979e385bd16ed Mon Sep 17 00:00:00 2001
From: Utkarsh Singh <utkarsh190601@gmail.com>
Date: Mon, 14 Jun 2021 14:51:23 +0530
Subject: [PATCH] tex-mode.el: Add tex-start-options to tex-compile-commands
---
lisp/textmodes/tex-mode.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index a805c8952f..8b8108cb97 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -2132,6 +2132,7 @@ tex-use-reftex
(defvar tex-compile-commands
`(,@(mapcar (lambda (prefix)
`((concat ,prefix tex-command
+ " " tex-start-options
" " (if (< 0 (length tex-start-commands))
(shell-quote-argument tex-start-commands))
" %f")
--
2.32.0
--
Utkarsh Singh
http://utkarshsingh.xyz
- bug#49018: 28.0.50; [PATCH] Add tex-start-options to tex-compile-commands,
Utkarsh Singh <=