Ticket #1476 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

deal with multirelation@latexml

Reported by: kohlhase Owned by: kohlhase
Priority: normal Milestone: sTeX4GenCS
Component: STeX/ltxml Version:
Severity: major Keywords:
Cc: Blocked By:
Blocking: Due to close: YYYY/MM/DD
Include in GanttChart: no Dependencies:
Due to assign: YYYY/MM/DD

Description

If LaTeXML sees something like $A=B=C$, then it creates

<om:OMOBJ>
  <om:OMA>
    <om:OMS cd="latexml" name="multirelation"/>
    A
    <om:OMS cd="relation1" name="eq"/>
    B
    <om:OMS cd="relation1" name="eq"/>
  </om:OMA>
</om:OMOBJ>

this is reasonable, but the OMDoc we generate does not support latexml as a theory (importing it where necessary). so in particular, it is not taken into account in the rendering among others.

Change History

Changed 4 years ago by kohlhase

I am sure that there are similare cases like these that we cannot do at the moment.

M

Changed 4 years ago by deyan

We could:

  • Edit our branch of LaTeXML to produce something else
  • Edit the XSLT to substitute these occurrences for some reasonable alternative.
  • Handle this in JOMDoc

These "multirelation"s are firstly introduced by the LaTeXML grammar as XMath and then converted to what we see by the OpenMath? postprocessor. So there is no direct fix to this in the bindings, that I am aware of, at least not a general one.

Changed 4 years ago by kohlhase

  • owner changed from deyan to kohlhase
  • status changed from new to assigned

you are right in pointing out that we can fix this in the XSLT. So here is what I am going to do; make a theory/OMDocCD multirelation, that works exactly like the one latexml supplies and rewrite it in the XSLT. I also have to see that I import that theory whenever necessary. This should be simple to do, and should also solve all similar cases.

I had forgotten that possibility (again; I fear that you will have to keep reminding me).

Changed 4 years ago by kohlhase

This will only really work when we have solved #1477

Changed 4 years ago by kohlhase

and of course we will also need #1472, since I do not see that I can build an sTeX notation definition for multirelation.

Changed 4 years ago by kohlhase

  • status changed from assigned to closed
  • resolution set to fixed

I have taken care of this, seems to work.

Note: See TracTickets for help on using tickets.