emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] "{" in Latex fragments


From: Eric S Fraga
Subject: Re: [Orgmode] "{" in Latex fragments
Date: Wed, 25 Aug 2010 09:39:16 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

On Wed, 25 Aug 2010 10:21:43 +0200, Giovanni Ridolfi <address@hidden> wrote:
> 
> Christian Wittern <address@hidden> writes:
> 
> > In my org-mode document, I have a special sequence to switch to a Japanese
> > 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, the
> > braces "{" and "}" are escaped as \{ and \} and thus loosing their
> > function.
> 
> yes.
> 
> but why don't you change the sequence? I mean:
> 
> from:
> 
> hello {\J ウ}
> 
> to 
> 
> hello  [\J ウ ] or: (\J ウ)
> 
> [] and () are not escaped
> 
> 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
-- 
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 >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]