emacs-orgmode
[Top][All Lists]

## Re: [O] [odt] equation labels

 From: Nick Dokos Subject: Re: [O] [odt] equation labels Date: Wed, 02 Nov 2011 10:52:30 -0400

Myles English <address@hidden> wrote:

>
> Nick,
>
> >> On Wed, 02 Nov 2011 09:38:20 -0400, Nick Dokos said:
>
>   > Myles English <address@hidden> wrote:
>   >>
>   >> There is (git from a couple of days ago) a problem with referring
>   >> to equations containing an underscore in the label, I am fairly
>   >> sure it was allowed before, e.g.:
>   >>
>   >> #+LABEL: Equation:new_eq $$x=\sqrt{b}$$
>   >>
>   >> Referring to an equation with an underscore: \ref{Equation:new_eq}
>   >>
>   >> I get a libreoffice popup:
>   >>
>   >> "Read Error. Format error discovered in the file in sub-document
>   >> content.xmlat 2236,92(row,col)."
>   >>
>
>   > I can reproduce that and it may be a consequence of a change that I
>   > introduced at the top level export engine about six months ago.  Let
>   > me take a look.
>
>   > Nick
>
> I may be mistaken but I think it became broken more recently, circa 7th
> Oct.
>

OK - phew (although I may not be out of the woods yet). It seems that the
underscore in the link is interpreted as a subscript:

,----
| ...
| Referring to an equation with an underscore: <text:sequence-ref
text:ref-name="Equation:new<text:span
text:style-name="OrgSubscript">eq</text:span>"/>
----

Thanks,
Nick

`