I'd like to produce annotated graphics (which may eventually end up in a Dynamic or Manipulate environment) that include aligned sets of equations. In principle, I could do something like:
Graphics[{Text[
StringJoin["\!\(\*SubscriptBox[\(\[Alpha]\), \(0\)]\)=",
ToString[
NumberForm[(Mod[3 Pi/2 + \[Beta] - \[Theta], 2 Pi] - Pi)/Degree,
4]], "\[Degree]"], {xt, yt}],
Text[StringJoin["\[Beta]=", ToString[NumberForm[\[Beta]/Degree, 4]],
"\[Degree]"],
Offset[{0, -18}, {xt,yt}]]}]
with \beta , \theta, r, defined variables, say, and xt, yt the coordinates where the text will appear.
The above code does that, but here is the issue: I would like to have expressions like this aligned nicely, using multiple alignment marks. In this example, one would probably want the "=" signs aligned, as well as the decimal points. Of course, more complex expressions are possible, both on the left-hand and the right-hand sides. What is the best structured way to achieve something like this? Given the somewhat vague question I am asking, I'm not necessarily expecting a complete piece of code for this, just a rational and efficient path to achieve what I want. If I can I'd like to avoid having to spend hours crafting the code to insert three aligned expressions into some graphics (when I could do something like this in LaTeX in 3 minutes...).
Note that any of the expressions appearing may be evaluated before being displayed (as in those ToString bits in my example), so what exactly appears in these expressions is not known beforehand.
Note that I did see a trick somewhere with a person converting LaTeX input into a Mathematica expression, and using that. This helps avoiding the nightmares of Mma's typesetting language, but is of very limited use if I want to format expressions that have been calculated within Mathematica.
Second remark: Once I have my nicely formatted set of expressions, I will need to find a way to have it appear within a graphics, which I don't know how to do, either.





Alignment -> {{Right, Center, "."}pretty much does what I want right now. – Pirx Aug 05 '16 at 12:11