From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: "{" in Latex fragments Date: Wed, 25 Aug 2010 09:39:16 +0100 Message-ID: <87aaobulvv.wl%ucecesf@ucl.ac.uk> References: <4C74CA21.1090006@gmail.com> <831v9nayqw.fsf@yahoo.it> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Wed_Aug_25_09:39:16_2010-1" Return-path: Received: from [140.186.70.92] (port=56776 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OoBW0-0000HP-Im for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OoBVy-0000F7-N6 for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:39:24 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:61045) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OoBVy-0000Eg-Hc for emacs-orgmode@gnu.org; Wed, 25 Aug 2010 04:39:22 -0400 In-Reply-To: <831v9nayqw.fsf@yahoo.it> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni Ridolfi Cc: Christian Wittern , Org Mode Mailing List --Multipart_Wed_Aug_25_09:39:16_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 25 Aug 2010 10:21:43 +0200, Giovanni Ridolfi wrote: >=20 > Christian Wittern writes: >=20 > > In my org-mode document, I have a special sequence to switch to a Japan= ese > > font defined as \J. When using this, I have to do something like {\J > > (Japanese characters here}. However, when I run the org-mode export, t= he > > braces "{" and "}" are escaped as \{ and \} and thus loosing their > > function. >=20 > yes. >=20 > but why don't you change the sequence? I mean: >=20 > from: >=20 > hello {\J =E3=82=A6} >=20 > to=20 >=20 > hello [\J =E3=82=A6 ] or: (\J =E3=82=A6) >=20 > [] and () are not escaped >=20 > cheers, > Giovanni I think because the {}'s define a scope in latex and so the \J only affects text surrounded by the {}. For Christian, what about "\J{ text }" instead as org is careful to let this type of construct go through unchanged, if I understand correctly. This does depend on how you have defined J but possibly a slight redefinition would work (\newcommand{\J}[1]{.... #1}). HTH, eric --Multipart_Wed_Aug_25_09:39:16_2010-1 Content-Type: text/plain; charset=US-ASCII -- MC . -.. --- - ..-. .-. .- --. .- .- - ..- -.-. .-.. .- -.-. ..- -.- NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/ PG Fingerprint: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------. --Multipart_Wed_Aug_25_09:39:16_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart_Wed_Aug_25_09:39:16_2010-1--