LaTeX forum ⇒ Math & Sciencexalignat, xxalignat, subequations and flalign environments

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
johnnycc
Posts: 1
Joined: Tue Oct 09, 2018 3:57 pm

xalignat, xxalignat, subequations and flalign environments

Postby johnnycc » Tue Oct 09, 2018 4:20 pm

I am using a tool to convert LaTeX math into MathML. The tool does not support environments like xalignat, xxalignat, subequations and flalign but it supports align and alignat. I am not looking for the accurate rendering of the formula. Thus I thought I could replace the name of the environment, e. g. replacing xalignat with alignat.

  1. \begin{xalignat}{3}
  2. i_{11} & =0.25 & i_{12} & =i_{21} & i_{13} & =i_{23}\nonumber\\
  3. i_{21} & =\frac{1}{3}i_{11} & i_{22} & =0.5i_{12}& i_{23} & =i_{31}\\
  4. i_{31} & =0.33i_{22}\quad & i_{32} & =0.15i_{32}\quad & i_{33} & =i_{11}
  5. \end{xalignat}
  6.  
  7. \begin{alignat}{3}
  8. i_{11} & =0.25 & i_{12} & =i_{21} & i_{13} & =i_{23}\nonumber\\
  9. i_{21} & =\frac{1}{3}i_{11} & i_{22} & =0.5i_{12}& i_{23} & =i_{31}\\
  10. i_{31} & =0.33i_{22}\quad & i_{32} & =0.15i_{32}\quad & i_{33} & =i_{11}
  11. \end{alignat}

I have done some tests and I am satisfied with the results. I have replaced
xalignat with alignat,
xalignat* with alignat*,
xxalignat with alignat*,
flalign wih align and
flalign* wih align*align*.

I couldn't find any replacement for subequations.
My question is would the replacement work for every possible content? E. g. is there a structure for flalign environment that would cause an error in align environment?

Return to “Math & Science”

Who is online

Users browsing this forum: No registered users and 3 guests