texmacs / markdown

A markdown converter plugin for TeXmacs
GNU General Public License v3.0
25 stars 1 forks source link

Support for custom labels and left placement in equations #39

Open mdbenito opened 3 years ago

mdbenito commented 3 years ago
mdbenito commented 3 years ago

This works for labeling eqs on the left hand side.

<assign|equation-lab-left|<\macro|body|lab>
  <\surround|<set-binding|<arg|lab>><with|mode|text|font-shape|right|(<arg|lab>)><space|5mm>|>
    <\equation*>
      <arg|body>
    </equation*>
  </surround>
</macro>>

<assign|equation-left|<\macro|body>
  <\surround|<next-equation>|>
    <equation-lab-left|<arg|body>|<the-equation>>
  </surround>
</macro>>