소스 검색

ox-latex.el: Fix minted inline

* lisp/ox-latex.el (org-latex-inline-src-block): Output minted code that
  correctly formats code inline.
Alan Schmitt 9 년 전
부모
커밋
06a1fea109
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lisp/ox-latex.el

+ 3 - 3
lisp/ox-latex.el

@@ -2012,10 +2012,10 @@ contextual information."
 			     (downcase org-lang)))
 			     (downcase org-lang)))
 	      (options (org-latex--make-option-string
 	      (options (org-latex--make-option-string
 			(plist-get info :latex-minted-options))))
 			(plist-get info :latex-minted-options))))
-	 (concat (format "\\mint%s{%s}"
+	 (format "\\mintinline%s{%s}{%s}"
 			 (if (string= options "") "" (format "[%s]" options))
 			 (if (string= options "") "" (format "[%s]" options))
-			 mint-lang)
-		 separator code separator)))
+			 mint-lang
+			 code)))
       ;; Use listings package.
       ;; Use listings package.
       (otherwise
       (otherwise
        ;; Maybe translate language's name.
        ;; Maybe translate language's name.