Annotated Equations in TeXmacs?

Direct and convenient support for annotated equations would be very cool!

See:

1 Like

A really cool feature!

I think you should post it on mail list.

No doubt about this, very nice !
Don’t know if Texmacs as the necessary tools already available for this kind of feature

Up…
Any Texmacs tools that could mimic this feature ?
Thanks :wink:

The annotated equation written in LaTeX (https://github.com/synercys/annotated_latex_equations/blob/main/example_output_figs/example_overlay.png) looks better, but I think that this, drawn in about twenty minutes with “Draw over selection”, is also ok.

Things to improve that I noticed

  • it is difficult to select text (maybe only when in the border of the drawing, i. e. the parts outside the selection?), to change text attributes better delete and rewrite
  • I did not understand how to select objects that are hidden by other objects (but I did not read the manual)
  • I have not been able to increase the size of superscripts
  • LaTeX arrow tips look nicer
1 Like

@pireddag Do you mean you’ve made the annotated-equation-cropped.png image in Texmacs ?
If so, may I ask if you can share the .tm file : it looks realy good ! :grin:
Many thanks for your helpful feedback :+1:

There you are.

By the way, turning on the grid when drawing is helpful when, e.g., aligning arrow tips with respect to each other and to text boxes and so on.

<TeXmacs|2.1.1>

<style|generic>

<\body>
  \;

  \;

  <\equation*>
    <draw-over|X<rsub|i>=<frac|1|<big|sum><rsub|i=1><rsup|<with|ornament-color|pastel
    magenta|ornament-border|0ln|<ornament|N>>>*<big|sum><rsub|j=1><rsup|<with|ornament-border|0ln|ornament-color|#aaf|<ornament|M<rsub|i>>>>*<frac|<with|ornament-border|0ln|ornament-color|pastel
    magenta|<ornament|l<rsub|i><rsup|j>>>|<with|ornament-border|0ln|ornament-color|#aaf|<ornament|l<rsup|max>>>>>|<with|gr-grid|<tuple|empty>|gr-grid-old|<tuple|cartesian|<point|0|0>|1>|gr-edit-grid-aspect|<tuple|<tuple|axes|none>|<tuple|1|none>|<tuple|10|none>>|gr-edit-grid|<tuple|empty>|gr-edit-grid-old|<tuple|cartesian|<point|0|0>|1>|gr-arrow-end|\|\<gtr\>|gr-color|magenta|gr-mode|<tuple|group-edit|edit-props>|<graphics|<with|color|magenta|arrow-end|\|\<gtr\>|<line|<point|-2.5|0.8>|<point|-0.4|0.8>|<point|-0.4|0.2>>>|<with|color|dark
    cyan|<text-at|<small|<math-ss|maximum object
    size>>|<point|-1.6270933466942|-1.1>>>|<with|color|dark
    cyan|arrow-end|\|\<gtr\>|<line|<point|-1.7|-1.2>|<point|1.3|-1.2>|<point|1.3|-0.8>>>|<with|color|brown|arrow-end|\|\<gtr\>|<line|<point|3.9|0.7>|<point|1.3|0.7>|<point|1.3|0.4>>>|<with|color|brown|<text-at|<small|<math-ss|size
    of <math|j<rsup|th>> service>>|<point|1.4|0.8>>>|<with|color|blue|arrow-end|\|\<gtr\>|<line|<point|3.9|1.4>|<point|0.6|1.4>|<point|0.6|0.2>>>|<with|color|blue|<text-at|<small|<math-ss|number
    of other objects>>|<point|0.6|1.5>>>|<with|color|magenta|<text-at|<small|<math-ss|number
    of objects>>|<point|-2.5|0.9>>>>>|3cm>
  </equation*>
</body>

<\initial>
  <\collection>
    <associate|preamble|false>
  </collection>
</initial>
4 Likes

Many thanks @pireddag it’s very nice :+1: