Open Mc-Zen opened 10 months ago
I'd like to bump this because it would be really useful and improve the experience when writing out math considerably.
In Tinymist, it has already been realized https://github.com/Myriad-Dreamin/tinymist/issues/548
Basically, the dollar signs $$
just need to behave like the square brackets []
and curly braces {}
.
I guess it's time to give up on my personal formatting preference. It is clearly less practical though imo it looks better:
$ sum_(k=0)^n k
&= 1 + ... + n \
&= (n(n+1)) / 2 $
$ sum_(k=0)^n k &= 1 + ... + n \ &= (n(n+1)) / 2 $
I just tried out this formatting with a "real-world" document but the source code is just more readable the other way, by an order of magnitude. The additional whitespace clears up the structure and helps the eye to orientate when there are many equations.
As a remark: this feature request does not worsen the situation for the more compact version since it only kicks in when hitting Enter
after typing the $
.
As a remark: this feature request does not worsen the situation for the more compact version since it only kicks in when hitting Enter after typing the $.
Indeed, I also realized that. It's more that it implies that newlines are good style. Which I guess they are! As said, I have kinda given up on my original style preference.
Description
I usually find myself formatting multiline equations like this:
with the dollar signs on an individual line and the equation content indented by two spaces. Maybe, the app could help improving the workflow by behaving the same way for
$$
as for curly braces.In detail:
$|$
Use Case
I think this would help make the workflow better and support readable formatting of equations.