From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Quotes for LaTeX export Date: Tue, 04 Feb 2014 22:42:16 +0100 Message-ID: <87eh3iftc7.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAnhE-0006Hl-CM for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 16:38:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAnh8-0004fW-CE for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 16:38:20 -0500 Received: from plane.gmane.org ([80.91.229.3]:48846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAnh8-0004fN-53 for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 16:38:14 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WAnh6-0007L8-9j for emacs-orgmode@gnu.org; Tue, 04 Feb 2014 22:38:12 +0100 Received: from dynamic-adsl-94-34-159-186.clienti.tiscali.it ([94.34.159.186]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Feb 2014 22:38:12 +0100 Received: from rasmus by dynamic-adsl-94-34-159-186.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Feb 2014 22:38:12 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Laurens, Laurens Van Houtven <_@lvh.io> writes: > I'm writing a book using org-mode. On export, org-mode turns double quotes > like "hello" into ``hello''. Some modern LaTeXes no longer support that > form, instead preferring semantic markup. (The reasoning being that the > markup implies a particular quote style, whereas quotation style is > language-dependent.) This is not true. Quotes depend on your LANGUAGE-cookie. See org-export-smart-quotes-alist. > As a result, I get > > The preferred way to do that these days is, in the preamble: > > \usepackage{csquotes} > > ... and then later: > > \enquote{something} But this would require us to load an extra package. Org is quite capable of handling this on the lisp side (and Org ≠ LaTeX). Clearly, we could have a org-export-user-smart-quote-alist taking priority over the predefined one. > I think it would make sense to support this for org, and perhaps eventually > make it default behavior. FWIW: I had no idea about this until it bit me > when my LaTeX document suddenly had bogus quotes in it. This has never happened to me, despite extensive usage of LaTeX for almost ten years. > If there is no interest to add this to org, how do I hack org so that this > is what it does? The cleanest way would be a filter, probably org-export-filter-quote-block-functions and filter-plain-text. The easiest way would be a macro or simply redefining org-export-smart-quotes-alist to suit your needs. Hope it helps. —Rasmus -- Er du tosset for noge' lårt!