News for hackers. Stuff that matters.
Re:Mathify – Simple Text Equation to LaTeX by wenqin123 on Sunday March 26, 2017 @12:58PM (#13961698)
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.
Re:Mathify – Simple Text Equation to LaTeX by jmmcd on Sunday March 26, 2017 @01:48PM (#13961989)
I was surprised to learn just the other week that `\frac x3` will give what you want, in Latex.
Re:Mathify – Simple Text Equation to LaTeX by godelski on Monday March 27, 2017 @01:24AM (#13965373)
This 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.
Re:Mathify – Simple Text Equation to LaTeX by gunnihinn on Monday March 27, 2017 @03:11AM (#13965727)
It's not surprising if you know how TeX lexes things, which you should never ever learn.
Re:Mathify – Simple Text Equation to LaTeX by marvy on Sunday March 26, 2017 @03:33PM (#13962682)
I 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.
Re:Mathify – Simple Text Equation to LaTeX by stablemap on Sunday March 26, 2017 @01:20PM (#13961824)
Often I do want to output x/3; is there a way to do that here?
Re:Mathify – Simple Text Equation to LaTeX by wenqin123 on Sunday March 26, 2017 @02:37PM (#13962305)
Sorry I haven't thought of a good solution for that yet, but if you really want to write a / you can do: "x text{/} 3"
Re:Mathify – Simple Text Equation to LaTeX by wjn0 on Sunday March 26, 2017 @02:43PM (#13962340)
Maybe some simple quoting scheme for "literals"?