4 ms·
I mainly made it for stuff like division where you have to type in \frac{}{} every time. So instead of typing \frac{x}{3} you can just type x/3 and get the same
by wenqin123 10y ago
I mainly made it for stuff like division where you have to type in \frac{}{} every time. So instead of typing \frac{x}{3} you can just type x/3 and get the same result.
- stablemap 10y agoOften I do want to output x/3; is there a way to do that here?
- jmmcd 10y agoI was surprised to learn just the other week that `\frac x3` will give what you want, in Latex.
- marvy 10y agoI remember being surprised when I first saw \frac12, and I was like "that works?". The response I got was "of course". In retrospect, I admit that's the right answer: once you get TeX well enough, it's obvious.
- godelski 10y agoThis works for a lot of stuff. If you are only giving one input it'll work. So things like "\sin x", "x^2" \frac12" work. Interestingly you need a space in the sin example but not in the others. But "x^12" is the same as "x^{1} 2". So be careful with the shortcut.
- gunnihinn 10y agoIt's not surprising if you know how TeX lexes things, which you should never ever learn.