forked from mirrors/org-mode
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>
This commit is contained in:
parent
c9dfed48a6
commit
229b018b60
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue