Earlier quoted context omitted.
OK, so the whole system is: type in latex, becomes unicode text, finally rendered as symbols (e.g. in a pdf). Except that with that atom package, you needn't type the whole latex, because it autocompletes. BTW what is that kind of completion called (i.e. where it doesn't just complete, but also replaces it with something else); and is something like that available for vim - or for rlwrap? (I searched, but "completion…
I'd better call it 'TeX-Sugarer', though. And yes it's possible to create it to import LaTeX to SugarTeX. SugarTeX completions is forked from latex-completions Atom package. I haven't seen something like this before.
Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
21–30 of 52 posts
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#22Earlier quoted context omitted.
Not really. With that package you can type in LaTeX. But it's inherited behavior. I myself prefer type `\^:` to get vector superscript symbol, type `\^->` to get another vector superscript symbol. Type:.\rot`to get matrix superscript symbol. Type `\-->` to get long arrow. But yes, type `\\` to get broken vertical bar that's a new newline symbol, type `\&` to get small sing below that later again converts to `&`.
I think you started with something simple, but quickly found you needed to add features for it to work properly for you - and I'd guess it is more-or-less complete for your use-case now. The documentation is a reference for all the features. But it's difficult for a newcomer, to see the full complexity of the end-product, first. Echoing the root of this thread, I think a tutorial would help, covering the simplest and…
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#23As if 'transpiler' was not nails-on-the-board grating enough. 'Compiler' is a fine word and the right word.
Anyone knows who started this 'transpiler' nonsense. Seems very common in the javascript community but not sure if it was their 'innovation'.
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#24Transcompiler ! As if 'transpiler' was not nails-on-the-board grating enough. 'Compiler' is a fine word and the right word. Anyone knows who started this 'transpiler' nonsense. Seems very common in the javascript community but not sure if it was their 'innovation'.
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#25Could you please clarify the documentation (add some context) so that it is understandable to LaTeX users? Especially to LaTeX users that will want to keep using their own editor, and do not want to touch Atom with a long stick...
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#26I do not understand what this is exactly, but I'm very interested! What is a LaTeX "extension" ? Is it a LaTeX package that will allow me to write my math directly in unicode ? That would be so cool! Could you please clarify the documentation (add some context) so that it is understandable to LaTeX users? Especially to LaTeX users that will want to keep using their own editor, and do not want to touch Atom with a lon…
There's no LaTeX package and I myself will not port it. SugarTeX is Pandoc/Markdown oriented project in the first place.
You can use it as a command line prepocess text filter though. It should work as long as you use ˎ or ˎˎ to define SugarTeX.
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#27Earlier quoted context omitted.
> Designed to be used instead of $formula$ insertions to Markdown. What's the downside of having $formula$ blocks in Markdown?
ˎa/bˎ is easier to read than $\frac{a}{b}$.
https://www.gnu.org/software/auctex/img/preview-screenshot.p...
or fold-mode (shows unicode and abbreviations in place of commands)?
https://www.flannaghan.com/2013/01/11/tex-fold-mode
Changing the representation seems more sensible to me than changing the underlying file.
Also, while the a/b syntax is easier for easy cases, I shudder to think how a continued fraction might be type set: https://en.wikipedia.org/wiki/Continued_fraction
This seems to make easy things easier and harder things really hard.
Kinda like https://www.lyx.org/Screenshots or using org-mode for latex. Convenient for simple matters and something you have to fiddle with or work around when you want to do anything more advanced.
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#28I do not understand what this is exactly, but I'm very interested! What is a LaTeX "extension" ? Is it a LaTeX package that will allow me to write my math directly in unicode ? That would be so cool! Could you please clarify the documentation (add some context) so that it is understandable to LaTeX users? Especially to LaTeX users that will want to keep using their own editor, and do not want to touch Atom with a lon…
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#29Earlier quoted context omitted.
My bad: I forget to tell about SugarTeX completions package for Atom. With it writing Unicode is lot faster and simple enough. https://atom.io/packages/sugartex-completions
OK, so the whole system is: type in latex, becomes unicode text, finally rendered as symbols (e.g. in a pdf). Except that with that atom package, you needn't type the whole latex, because it autocompletes. BTW what is that kind of completion called (i.e. where it doesn't just complete, but also replaces it with something else); and is something like that available for vim - or for rlwrap? (I searched, but "completion…
Re: Show HN: SugarTeX – readable LaTeX language extension and transcompiler to LaTeX
#30Earlier quoted context omitted.
ˎa/bˎ is easier to read than $\frac{a}{b}$.
Oddly, Knuth prefers ${a \over b}$. I think I agree, if only because it actually reads well. An odd thing I found, was the once I learned how to verbalize many of the maths that I encountered, reading them became much easier. LaTeX actually helped a lot here, because most of the constructs have good readable macros to typeset them.
Edit: actually even more to the point is the eqn sublanguage which really competes with Knuth notation.