From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zihan, Sheldon Liu" Subject: Re: org-mode wrongly parse asterisk (*) in a math equation as mark of bold font Date: Tue, 26 Jun 2012 18:35:28 +0800 Message-ID: References: <338223C2-DC99-4F0D-A8C1-DD62EAA87027@gmail.com> <808vfa8j7v.fsf@somewhere.org> <34BBBA25-9FF3-4C53-AF7E-55F0F46DE780@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec52be7473acda404c35da8a6 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjT7R-0000Zd-74 for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 06:35:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjT7K-00017Z-Vl for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 06:35:36 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:40286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjT7K-00017Q-Mq for emacs-orgmode@gnu.org; Tue, 26 Jun 2012 06:35:30 -0400 Received: by eaan1 with SMTP id n1so1708100eaa.0 for ; Tue, 26 Jun 2012 03:35:28 -0700 (PDT) In-Reply-To: <34BBBA25-9FF3-4C53-AF7E-55F0F46DE780@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Sebastien Vauban , emacs-orgmode@gnu.org --bcaec52be7473acda404c35da8a6 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 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 di= d > this > >> correctly in both cases=85. > > > > 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 > > > --=20 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 --bcaec52be7473acda404c35da8a6 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks. I forgot to mention that it also wrongly parsed when exporting to h= tml 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 equ= ations.
>>>
>>> $(Z^{*}_{m}, \cdot m)$ =A0$(Z^{*}_{m}, \cdot m)$
>>>
>>> But the org-mode didn't identify them as equations. Instea= d, it highlight
>>> the part between the two *s, i.e. }_{m}, \cdot m)$ $(Z^{, maki= ng 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 i= t did this
>> correctly in both cases=85.
>
> AFAIU, the OP is not talking of export, only of how it's visible i= n the Org
> buffer itself.
>
> It's true that the equation is not shown as it should (in this cas= e) because
> `*' are interpreted as bold markers.

Ah, OK. =A0Sorry for the Noise. =A0Difficult 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 C= omputing Group (MCG)
where Media Spectrum unleashes Digital Potential fo= r Fun in Life.

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