emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] org-latex: Convert quote marks in section headers


From: Lawrence Mitchell
Subject: [O] [PATCH] org-latex: Convert quote marks in section headers
Date: Tue, 21 Jun 2011 15:21:39 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

* lisp/org-latex.el (org-export-latex-fontify-headline): Convert
quotes to their LaTeX equivalents using
org-export-latex-quotation-marks.
---
Xin Shi wrote:
> Hello,

> I'm using the org-mode 7.5 in Emacs 23.3.

> I noticed this lines in org:

> ** ``Internal'' and "External" Example

>    ``Internal'' and "External" Examples in paragraph

> will result in tex:

> \section{``Internal'' and "External" Example}
> \label{sec-1_1}

>    ``Internal'' and ``External'' Examples in paragraph

> One can see that the " quotation in the heading line is not translated
> properly into TeX.

> Is this a bug?

It would appear to be so, though I'm not sure if the decision not
to convert quotation marks is a deliberate one.  Although looking
at the commit logs, it would appear that it's probably an oversight.

 lisp/org-latex.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 8abe1d2..bc7644a 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1589,6 +1589,7 @@ links, keywords, lists, tables, fixed-width"
     (when (plist-get org-export-latex-options-plist :emphasize)
       (org-export-latex-fontify))
     (org-export-latex-time-stamps)
+    (org-export-latex-quotation-marks)
     (org-export-latex-keywords-maybe)
     (org-export-latex-special-chars
      (plist-get org-export-latex-options-plist :sub-superscript))
-- 
1.7.4.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]