From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Quotes not being converted correctly for LaTeX export Date: Fri, 08 Mar 2013 23:44:48 +0530 Message-ID: <877glhn4h3.fsf@gmail.com> References: <20130308172751.GI13199@kuru.dyndns-at-home.com> <87k3phn6do.fsf@gmail.com> <20130308174649.GJ13199@kuru.dyndns-at-home.com> <87fw05n5de.fsf@gmail.com> <20130308180240.GK13199@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:49785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE1on-0005gF-Gk for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 13:15:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE1of-0000Ik-Uy for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 13:14:57 -0500 Received: from mail-pb0-f42.google.com ([209.85.160.42]:47661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE1of-0000If-OH for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 13:14:49 -0500 Received: by mail-pb0-f42.google.com with SMTP id xb4so1430302pbc.15 for ; Fri, 08 Mar 2013 10:14:49 -0800 (PST) In-Reply-To: <20130308180240.GK13199@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Fri, 8 Mar 2013 19:02:40 +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: Suvayu Ali Cc: Emacs Org mode Suvayu Ali writes: > Hi, > > On Fri, Mar 08, 2013 at 11:25:25PM +0530, Jambunathan K wrote: >> Suvayu Ali writes: >> > On Fri, Mar 08, 2013 at 11:03:39PM +0530, Jambunathan K wrote: > > [...] > >> >> >> >> #+OPTIONS: ':t >> >> >> >> ,----[ C-h v org-export-with-smart-quotes RET ] >> > >> > [...] >> > >> > Thanks for pointing this out, but I still think this is a bug for LaTeX >> > export. Quoting as ".." produces incorrect output in LaTeX, the correct >> > forms are `..' or ``..''. This is even more important if you are >> > writing in a language that uses umlauts, and the situation can get >> > confusing as the character " is used to specify umlauts. >> > >> > This is worth a thought since the old exporter did it right without any >> > special settings. >> >> I get GRAVE ACCENT and APOSTROPHE. You are requesting the exact same >> chars. I am copy pasting from my latex buffer here. >> >> ``Orange box'' >> `Orange box' > > Sorry I think you misunderstood me. What I meant was following your > suggestion fixes the issue for me. However I'm raising the question if > having to explicitly set the "':t" option to get ``..'' as output is a > reasonable expectation for LaTeX export since the default is actually > incorrect LaTeX. You should have simply stated. It works. Can we have the default setting changed? instead of "Thanks ... but" which I parse as "Thanks ... but it doesn't work". Install a filter function for options (add-to-list 'org-export-filter-options-functions 'org-latex-options-function) (defun org-latex-options-function (info backend) (when (eq backend 'latex) (plist-put info :with-smart-quotes t))) If the above snippet doesn't work you can search the mailing list for Nicolas recipe. > I hope I was clear this time around. > > Cheers,