diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-07-27 21:59:43 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-07-27 21:59:43 +0200 |
commit | 229b018b6090d1dca71cd8eebc467bdd76f8c12a (patch) | |
tree | d0e57ad0e06d9e265f1bcf45e4166e00d1823f7d | |
parent | c9dfed48a607c7f6524f1c6480f09cf61a5d6237 (diff) | |
download | org-mode-229b018b6090d1dca71cd8eebc467bdd76f8c12a.tar.gz |
ox-latex: Do not duplicate \texttt on inline source blocks
* lisp/ox-latex.el (org-latex-inline-src-block): When
`org-latex-listings' is nil, simply translate source block as code,
without adding an additional \texttt command.
Reported-by: Maxim Nikulin <manikulin@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2021-07/msg00489.html>
-rw-r--r-- | lisp/ox-latex.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 1dca628..99076f8 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2126,8 +2126,8 @@ contextual information." (let* ((code (org-element-property :value inline-src-block)) (separator (org-latex--find-verb-separator code))) (cl-case (plist-get info :latex-listings) - ;; Do not use a special package: transcode it verbatim. - ((nil) (format "\\texttt{%s}" (org-latex--text-markup code 'code info))) + ;; Do not use a special package: transcode it verbatim, as code. + ((nil) (org-latex--text-markup code 'code info)) ;; Use minted package. (minted (let* ((org-lang (org-element-property :language inline-src-block)) |