I am (mis)using Mathematica as a WYSIWYG LaTex editor. I want to put a (long) tilde over an expression.
DisplayForm[OverscriptBox[a + b, "_"]] DisplayForm[OverscriptBox[a + b, "~"]]
This Is how it looks:
(Of course I'm using cntrl-7 to type in the above)
I want that the tilde stretched out over the whole expression, not just a small tilde in the middle. Just the same as with the underscore.
The corresponding LaTex expressions are
And the same issue with "^" and
I know I can mark the tilde (or hat) and use Command-"+" to increase the font size, but that doesn't look right.
Ideally, it would be something that exports easily to the mentioned Latex commands.
By the way,
which looks just like the above (tilde only above "+", not whole).
version: Mathematica 11.0
I am well aware that this is not an issue with LaTeX itself, and that other, better working LaTeX editors exist. I want to continue writing Mathematica notebooks having parts which look like theorems or proofs look in math text books, referring to that look loosely as "LaTeX" (parts of which might later be exported for publication), and this question is about how to make those parts look right. So don't suggest any alternative LaTeX editors, that's not what the question is about.