From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haik Silm Subject: Re: [Orgmode] Escaping braces and org-export-latex-classes behaviour Date: Tue, 5 Sep 2017 20:16:50 +0200 Message-ID: <93d63992-5015-a38a-d840-1a028df0d52f@silm.li> References: <8dda11e6-cd0a-c403-4aaa-5ffdaf15e8aa@silm.li> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------EB484F73E32055ABCD3C505D" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpIPC-0001Dc-Bq for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 14:17:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpIP6-0004W9-W5 for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 14:16:58 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53679) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dpIP6-0004Vc-ML for emacs-orgmode@gnu.org; Tue, 05 Sep 2017 14:16:52 -0400 Received: from [192.168.43.129] (94.202.154.77.rev.sfr.net [77.154.202.94]) (Authenticated sender: haik@silm.li) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id C58FB1720BC for ; Tue, 5 Sep 2017 20:16:50 +0200 (CEST) In-Reply-To: <8dda11e6-cd0a-c403-4aaa-5ffdaf15e8aa@silm.li> Content-Language: en-US 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" To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --------------EB484F73E32055ABCD3C505D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I had the same problem. As a workaround I used \begingroup and \endgroup to denote {} Best regards, Haik 17.04.2010 20:13 Giulio Fella kirjutas: > Thanks for your reply. > > I am afraid I know nothing about Tex, so I cannot comment on that. But > all my Latex references > e.g.http://en.wikibooks.org/wiki/LaTeX/Colors > > give that as the correct syntax for \color, as opposed to e.g. \textcolor > which has the syntax you report. > > But more generally, given that 90% of latex braces are just part of > command syntax I have a feeling that it would be more economical to > require the user to escape those braces which are indeed to be escaped > in Latex. I think Carsten has been correcting quite a number of these > "escape braces" bugs and I am not sure that the feature is worth his > time. > > giulio > On Sat, Apr 17, 2010 at 9:09 PM, Darlan Cavalcante Moreira > wrote: > >/I think the correct would be using Latex syntax like > \color{red}{whatever}./ > > > >/If you write using plain Tex syntax like {\color{red}whatever} org/ > >/will not understand that the outer curly brackets are part of the/ > >/command./ > > > > > >/-- Darlan/ > > > >/2010/4/16 Giulio Fella :/ > >/> Hi,/ > >/>/ > >/> I have just upgraded from 6.33trans to 6.35g-55-g36d3e hoping to solve/ > >/> a problem with escaping braces./ > >/>/ > >/> With LaTex_CLASS: beamer/ > >/>/ > >/> Something like/ > >/> {\color{red}whatever}/ > >/>/ > >/> exports to latex with escaped outer braces. Namely/ > >/>/ > >/> \{\color{red}whatever\}/ > >/>/ > >/> This is the same behaviour as in 6.33trans. I had read it was a bug/ > >/> which had been corrected. Is this a reappearing bug or is there a way/ > >/> round it?/ > >/>/ > >/> Also in version 6.33 the relevant content of org-export-latex-classes/ > >/> used to be exported before that of BEAMER_HEADER_EXTRA. Now it is/ > >/> parsed after it. Is there any variable I can set to reestablish the/ > >/> old behaviour?/ > >/>/ > >/> Many thanks in advance./ > >/>/ > >/> Best wishes/ > >/> Giulio/ > >/>/ > >/>/ > >/> _______________________________________________/ > >/> Emacs-orgmode mailing list/ > >/> Please use `Reply All' to send replies to the list./ > >/> address@hidden/ > >/> http://lists.gnu.org/mailman/listinfo/emacs-orgmode/ > >/>/ > > --------------EB484F73E32055ABCD3C505D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

I had the same problem. As a workaround I used \begingroup and \endgroup to denote {}

Best regards,
Haik

17.04.2010 20:13 Giulio Fella kirjutas:
Thanks for your reply.

I am afraid I know nothing about Tex, so I cannot comment on that. But
all my Latex references
e.g. http://en.wikibooks.org/wiki/LaTeX/Colors

give that as the correct syntax for \color, as opposed to e.g. \textcolor
which has the syntax you report.

But more generally, given that 90% of latex braces are just part of
command syntax I have a feeling that it would be more economical to
require the user to escape those braces which are indeed to be escaped
in Latex. I think Carsten has been correcting quite a number of these
"escape braces" bugs and I am not sure that the feature is worth his
time.

giulio
On Sat, Apr 17, 2010 at 9:09 PM, Darlan Cavalcante Moreira
<address@hidden> wrote:
> I think the correct would be using Latex syntax like \color{red}{whatever}.
>
> If you write using plain Tex syntax like {\color{red}whatever} org
> will not understand that the outer curly brackets are part of the
> command.
>
>
> -- Darlan
>
> 2010/4/16 Giulio Fella <address@hidden>:
>> Hi,
>>
>> I have just upgraded from 6.33trans to 6.35g-55-g36d3e hoping to solve
>> a problem with escaping braces.
>>
>> With LaTex_CLASS: beamer
>>
>> Something like
>> {\color{red}whatever}
>>
>> exports to latex with escaped outer braces. Namely
>>
>> \{\color{red}whatever\}
>>
>> This is the same behaviour as in 6.33trans. I had read it was a bug
>> which had been corrected. Is this a reappearing bug  or is there a way
>> round it?
>>
>> Also in version 6.33 the relevant content of org-export-latex-classes
>> used to be exported before that of BEAMER_HEADER_EXTRA. Now it is
>> parsed after it. Is there any variable I can set to reestablish the
>> old behaviour?
>>
>> Many thanks in advance.
>>
>> Best wishes
>> Giulio
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>

--------------EB484F73E32055ABCD3C505D--