From 320b633b6ec44e0dc866b67b6a761ce3c8b05ddb Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 16 Apr 2013 11:39:41 +0200 Subject: [PATCH] ox-latex.el (latex): Don't force exporting with smart quotes * ox-latex.el (latex): Don't force exporting with smart quotes. * ox.el (org-export-with-smart-quotes): Mention the need to use the relevant Babel package when setting this option to non-nil. Before the fix, if the user used #+LANGUAGE: fr with no other customization, the quotes would disappear from the PDF output. That's because smart quotes were enforced, while the .tex file needs \usepackage[french]{babel} to display the quotes. We now don't force the smart quotes and give more explanations in `org-export-with-smart-quotes'. --- lisp/ox-latex.el | 3 +-- lisp/ox.el | 8 +++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index 406833037..daefb2971 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -191,8 +191,7 @@ (:latex-header-extra "LATEX_HEADER_EXTRA" nil nil newline) (:latex-hyperref-p nil "texht" org-latex-with-hyperref t) ;; Redefine regular options. - (:date "DATE" nil "\\today" t) - (:with-smart-quotes nil "'" t))) + (:date "DATE" nil "\\today" t))) diff --git a/lisp/ox.el b/lisp/ox.el index c428bf562..31b1907c0 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -582,7 +582,13 @@ This option can also be set with the SELECT_TAGS keyword." (defcustom org-export-with-smart-quotes nil "Non-nil means activate smart quotes during export. This option can also be set with the OPTIONS keyword, -e.g. \"':t\"." +e.g., \"':t\". + +When setting this to non-nil, you need to take care of +using the correct Babel package when exporting to LaTeX. +E.g., you can load Babel for french like this: + +#+LaTeX_HEADER: \\usepackage[french]{babel}" :group 'org-export-general :version "24.4" :package-version '(Org . "8.0")