[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Fix `listings' language for `latex' code blocks
From: |
Sebastien Vauban |
Subject: |
[O] Fix `listings' language for `latex' code blocks |
Date: |
Tue, 28 May 2013 21:18:53 +0200 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3 (windows-nt) |
Hello,
Listings should use the LaTeX flavor of the TeX language for `latex' code
blocks.
Here is the patch therefore.
Best regards,
Seb
>From 0be53f74dd665600229f7ac81b3e548718846658 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban <address@hidden>
Date: Tue, 28 May 2013 21:14:33 +0200
Subject: [PATCH] Add LaTeX flavor for listings output of 'latex' code blocks
* ox-latex.el (org-latex-listings-langs): Update custom variable.
---
lisp/ox-latex.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 41cf1d0..0312bef 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -651,7 +651,7 @@ passed to pdflatex."
(fortran "fortran")
(perl "Perl") (cperl "Perl") (python "Python") (ruby "Ruby")
(html "HTML") (xml "XML")
- (tex "TeX") (latex "TeX")
+ (tex "TeX") (latex "[LaTeX]TeX")
(shell-script "bash")
(gnuplot "Gnuplot")
(ocaml "Caml") (caml "Caml")
--
1.7.9
--
Sebastien Vauban
- [O] Fix `listings' language for `latex' code blocks,
Sebastien Vauban <=