emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "{" in Latex fragments
@ 2010-08-25  7:45 Christian Wittern
  2010-08-25  8:21 ` Giovanni Ridolfi
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Wittern @ 2010-08-25  7:45 UTC (permalink / raw)
  To: Org Mode Mailing List

Hi there,

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.
 Is there some switch to prevent this from happening?  I would much rather
write \{ myself in the few cases where I in fact need it.

Any help appreciated,

Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "{" in Latex fragments
  2010-08-25  7:45 "{" in Latex fragments Christian Wittern
@ 2010-08-25  8:21 ` Giovanni Ridolfi
  2010-08-25  8:36   ` Scot Becker
  2010-08-25  8:39   ` Eric S Fraga
  0 siblings, 2 replies; 5+ messages in thread
From: Giovanni Ridolfi @ 2010-08-25  8:21 UTC (permalink / raw)
  To: Christian Wittern; +Cc: Org Mode Mailing List

Christian Wittern <cwittern@gmail.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "{" in Latex fragments
  2010-08-25  8:21 ` Giovanni Ridolfi
@ 2010-08-25  8:36   ` Scot Becker
  2010-08-25  8:39   ` Eric S Fraga
  1 sibling, 0 replies; 5+ messages in thread
From: Scot Becker @ 2010-08-25  8:36 UTC (permalink / raw)
  To: Giovanni Ridolfi; +Cc: Christian Wittern, Org Mode Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1239 bytes --]

Or what about \J{japanese characters here}?  I do the same with Hebrew,
\heb{לִפְנֵי יְהוָה} and (without claiming to have done extensive testing),
it seems to work.  Org mode is set up to let arbitrary macros of the format
\mymacro{data} pass through to LaTeX.  You might not even have to change
your definitions.


Scot


On Wed, Aug 25, 2010 at 9:21 AM, Giovanni Ridolfi <giovanni.ridolfi@yahoo.it
> wrote:

> Christian Wittern <cwittern@gmail.com> 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
>
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 1890 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "{" in Latex fragments
  2010-08-25  8:21 ` Giovanni Ridolfi
  2010-08-25  8:36   ` Scot Becker
@ 2010-08-25  8:39   ` Eric S Fraga
  2010-08-25 10:06     ` Christian Wittern
  1 sibling, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2010-08-25  8:39 UTC (permalink / raw)
  To: Giovanni Ridolfi; +Cc: Christian Wittern, Org Mode Mailing List

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

On Wed, 25 Aug 2010 10:21:43 +0200, Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> wrote:
> 
> Christian Wittern <cwittern@gmail.com> 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

[-- Attachment #2: Type: text/plain, Size: 295 bytes --]

-- 
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 >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "{" in Latex fragments
  2010-08-25  8:39   ` Eric S Fraga
@ 2010-08-25 10:06     ` Christian Wittern
  0 siblings, 0 replies; 5+ messages in thread
From: Christian Wittern @ 2010-08-25 10:06 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Org Mode Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 863 bytes --]



Christian Wittern, on the road

On Aug 25, 2010, at 17:39, Eric S Fraga <ucecesf@ucl.ac.uk> wrote:

>> 
>> 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 {}.
> 
Exactly.

> 
> 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}).

I had tried this first, but somehow the font was not switched back.  But now, looking at your example, I think it might have been because of a missing space.  I will give it a try.  

Thanks a lot,

Christian


[-- Attachment #1.2: Type: text/html, Size: 1849 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-25 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25  7:45 "{" in Latex fragments Christian Wittern
2010-08-25  8:21 ` Giovanni Ridolfi
2010-08-25  8:36   ` Scot Becker
2010-08-25  8:39   ` Eric S Fraga
2010-08-25 10:06     ` Christian Wittern

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).