summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-16 11:39:41 +0200
committerBastien Guerry <bzg@altern.org>2013-04-16 11:39:41 +0200
commit320b633b6ec44e0dc866b67b6a761ce3c8b05ddb (patch)
tree7dddd982fe68091783da9b0f2027e6945596d76c
parent2335b10bf28a1121cfc26136c58ff4c0a8ce17a9 (diff)
downloadorg-mode-320b633b6ec44e0dc866b67b6a761ce3c8b05ddb.tar.gz
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'.
-rw-r--r--lisp/ox-latex.el3
-rw-r--r--lisp/ox.el8
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 4068330..daefb29 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 c428bf5..31b1907 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")