Re: [O] org-mode wrongly parse asterisk (*) in a math equation as mark of bold font

2012-06-26 Thread Carsten Dominik

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




Re: [O] org-mode wrongly parse asterisk (*) in a math equation as mark of bold font

2012-06-26 Thread Sebastien Vauban
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




Re: [O] org-mode wrongly parse asterisk (*) in a math equation as mark of bold font

2012-06-26 Thread Zihan, Sheldon Liu
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 <
wxhgmqzgw...@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


Re: [O] org-mode wrongly parse asterisk (*) in a math equation as mark of bold font

2012-06-26 Thread Carsten Dominik

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




Re: [O] org-mode wrongly parse asterisk (*) in a math equation as mark of bold font

2012-06-26 Thread Zihan, Sheldon Liu
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
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