all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
@ 2012-06-26  8:45 Zihan, Sheldon Liu
  2012-06-26 10:08 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Zihan, Sheldon Liu @ 2012-06-26  8:45 UTC (permalink / raw)
  To: emacs-orgmode

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

I wrote the following line in org-mode, which contains two equations.

$(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$

But the org-mode didn't identify them as equations. Instead, it highlight
the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this part
bold. Is this a bug of org-mode or my own mistake?

FYI, if the braces enclosing the "*" are removed (like below)org-mode can
parse it correctly.

$(Z^*_{m}, \cdot m)$  $(Z^*_{m}, \cdot m)$


-- 
Regards,
Zihan, Sheldon Liu
------------------------
The Media Computing Group (MCG)
where Media Spectrum unleashes Digital Potential for Fun in Life.

School of Creative Media (SCM)
City University of Hong Kong

[-- Attachment #2: Type: text/html, Size: 3883 bytes --]

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

* Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
  2012-06-26  8:45 org-mode wrongly parse asterisk (*) in a math equation as mark of bold font Zihan, Sheldon Liu
@ 2012-06-26 10:08 ` Carsten Dominik
  2012-06-26 10:23   ` Sebastien Vauban
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2012-06-26 10:08 UTC (permalink / raw)
  To: Zihan, Sheldon Liu; +Cc: emacs-orgmode


On 26.6.2012, at 10:45, Zihan, Sheldon Liu wrote:

> I wrote the following line in org-mode, which contains two equations.
> 
> $(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$
> 
> But the org-mode didn't identify them as equations. Instead, it highlight the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this part bold. Is this a bug of org-mode or my own mistake?
> 
> FYI, if the braces enclosing the "*" are removed (like below)org-mode can parse it correctly.
> 
> 
> $(Z^*_{m}, \cdot m)$  $(Z^*_{m}, \cdot m)$

Is this with the new exporter?  I tried the old one just now, and it did this correctly in both cases….

- Carsten

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

* Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
  2012-06-26 10:08 ` Carsten Dominik
@ 2012-06-26 10:23   ` Sebastien Vauban
  2012-06-26 10:27     ` Zihan, Sheldon Liu
  2012-06-26 10:29     ` Carsten Dominik
  0 siblings, 2 replies; 6+ messages in thread
From: Sebastien Vauban @ 2012-06-26 10:23 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Carsten,

Carsten Dominik wrote:
> On 26.6.2012, at 10:45, Zihan, Sheldon Liu wrote:
>
>> I wrote the following line in org-mode, which contains two equations.
>>
>> $(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$
>>
>> But the org-mode didn't identify them as equations. Instead, it highlight
>> the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this part
>> bold. Is this a bug of org-mode or my own mistake?
>
> Is this with the new exporter? I tried the old one just now, and it did this
> correctly in both cases….

AFAIU, the OP is not talking of export, only of how it's visible in the Org
buffer itself.

It's true that the equation is not shown as it should (in this case) because
`*' are interpreted as bold markers.

Best regards,
  Seb

-- 
Sebastien Vauban

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

* Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
  2012-06-26 10:23   ` Sebastien Vauban
@ 2012-06-26 10:27     ` Zihan, Sheldon Liu
  2012-06-26 10:29     ` Carsten Dominik
  1 sibling, 0 replies; 6+ messages in thread
From: Zihan, Sheldon Liu @ 2012-06-26 10:27 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode

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

Indeed, it is wrongly showed in the emacs buffer, before exporting. FYI,
I'm use org-mode 7.8

On Tue, Jun 26, 2012 at 6:23 PM, Sebastien Vauban <
wxhgmqzgwmuf@spammotel.com> wrote:

> Hi Carsten,
>
> Carsten Dominik wrote:
> > On 26.6.2012, at 10:45, Zihan, Sheldon Liu wrote:
> >
> >> I wrote the following line in org-mode, which contains two equations.
> >>
> >> $(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$
> >>
> >> But the org-mode didn't identify them as equations. Instead, it
> highlight
> >> the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this
> part
> >> bold. Is this a bug of org-mode or my own mistake?
> >
> > Is this with the new exporter? I tried the old one just now, and it did
> this
> > correctly in both cases….
>
> AFAIU, the OP is not talking of export, only of how it's visible in the Org
> buffer itself.
>
> It's true that the equation is not shown as it should (in this case)
> because
> `*' are interpreted as bold markers.
>
> Best regards,
>  Seb
>
> --
> Sebastien Vauban
>
>
>


-- 
Regards,
Zihan, Sheldon Liu
------------------------
The Media Computing Group (MCG)
where Media Spectrum unleashes Digital Potential for Fun in Life.

School of Creative Media (SCM)
City University of Hong Kong

[-- Attachment #2: Type: text/html, Size: 1824 bytes --]

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

* Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
  2012-06-26 10:23   ` Sebastien Vauban
  2012-06-26 10:27     ` Zihan, Sheldon Liu
@ 2012-06-26 10:29     ` Carsten Dominik
  2012-06-26 10:35       ` Zihan, Sheldon Liu
  1 sibling, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2012-06-26 10:29 UTC (permalink / raw)
  To: Sebastien Vauban; +Cc: emacs-orgmode


On 26.6.2012, at 12:23, Sebastien Vauban wrote:

> Hi Carsten,
> 
> Carsten Dominik wrote:
>> On 26.6.2012, at 10:45, Zihan, Sheldon Liu wrote:
>> 
>>> I wrote the following line in org-mode, which contains two equations.
>>> 
>>> $(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$
>>> 
>>> But the org-mode didn't identify them as equations. Instead, it highlight
>>> the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this part
>>> bold. Is this a bug of org-mode or my own mistake?
>> 
>> Is this with the new exporter? I tried the old one just now, and it did this
>> correctly in both cases….
> 
> AFAIU, the OP is not talking of export, only of how it's visible in the Org
> buffer itself.
> 
> It's true that the equation is not shown as it should (in this case) because
> `*' are interpreted as bold markers.

Ah, OK.  Sorry for the Noise.  Difficult to fix, this would require a better parser.

One work-around would be to use \ast for the star..

- Carsten

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

* Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font
  2012-06-26 10:29     ` Carsten Dominik
@ 2012-06-26 10:35       ` Zihan, Sheldon Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Zihan, Sheldon Liu @ 2012-06-26 10:35 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Sebastien Vauban, emacs-orgmode

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

Thanks. I forgot to mention that it also wrongly parsed when exporting to
html at my place.

On Tue, Jun 26, 2012 at 6:29 PM, Carsten Dominik
<carsten.dominik@gmail.com>wrote:

>
> On 26.6.2012, at 12:23, Sebastien Vauban wrote:
>
> > Hi Carsten,
> >
> > Carsten Dominik wrote:
> >> On 26.6.2012, at 10:45, Zihan, Sheldon Liu wrote:
> >>
> >>> I wrote the following line in org-mode, which contains two equations.
> >>>
> >>> $(Z^{*}_{m}, \cdot m)$  $(Z^{*}_{m}, \cdot m)$
> >>>
> >>> But the org-mode didn't identify them as equations. Instead, it
> highlight
> >>> the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, making this
> part
> >>> bold. Is this a bug of org-mode or my own mistake?
> >>
> >> Is this with the new exporter? I tried the old one just now, and it did
> this
> >> correctly in both cases….
> >
> > AFAIU, the OP is not talking of export, only of how it's visible in the
> Org
> > buffer itself.
> >
> > It's true that the equation is not shown as it should (in this case)
> because
> > `*' are interpreted as bold markers.
>
> Ah, OK.  Sorry for the Noise.  Difficult to fix, this would require a
> better parser.
>
> One work-around would be to use \ast for the star..
>
> - Carsten
>
>
>


-- 
Regards,
Zihan, Sheldon Liu
------------------------
The Media Computing Group (MCG)
where Media Spectrum unleashes Digital Potential for Fun in Life.

School of Creative Media (SCM)
City University of Hong Kong

[-- Attachment #2: Type: text/html, Size: 2082 bytes --]

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

end of thread, other threads:[~2012-06-26 10:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-26  8:45 org-mode wrongly parse asterisk (*) in a math equation as mark of bold font Zihan, Sheldon Liu
2012-06-26 10:08 ` Carsten Dominik
2012-06-26 10:23   ` Sebastien Vauban
2012-06-26 10:27     ` Zihan, Sheldon Liu
2012-06-26 10:29     ` Carsten Dominik
2012-06-26 10:35       ` Zihan, Sheldon Liu

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.