9 ms·
Tectonic: a modernized, self-contained TeX/LaTeX engine
- santaclaus 9y ago> Has a command-line program that is quiet But what about my overfull hboxes???
- chrismorgan 9y agoAssume that “quiet” means “not verbose”, not “silent”. Although I haven’t got it running yet I believe errors will still be written.
- kevhito 9y agoI have a python program that does nothing but filter latex output to remove all the cruft. On my latest paper, raw latex spits out 147 lines of nonsense. After my filter, I see about a dozen lines, including all meaningful errors and warnings and a four-line summary like this: > Number of underfull warnings : 5 > Number of overfull warnings : 0 > Number of undefined references : 0 > Number of missing citations : 0
- bert_ 9y agoThanks for the morning chuckle. Never thought I'd see an hbox joke :)
- Toenex 9y agoI, for one, have always preferred all of my `figs` at the end of the document anyway. ;)
- santaclaus 9y agoThat, my friend, is badness 10000.
- deleted 9y ago[deleted]
- anderspitman 9y agohttps://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:large https://pbs.twimg.com/media/CiMNh9rWEAAdM6Q.png:large
- tnecniv 9y agoI feel the overfull hboxes error is symbolic of everything that is wrong with LaTeX.
- vbezhenar 9y agoIf I remember correctly, overful hbox error means that you must rearrange your text to produce pleasant render. If that's correct, then I'd argue that this error is everything that's right with LaTeX, because I hate with passion d o c u m e n t s w i t h h u g e s p a c e s.
- arnsholt 9y agoThe huge spacing is actually an underfull hbox (i.e. TeX couldn't fill it enough, so had to stretch the spaces). An overfull box is a box where the contained text overflows the box; usually it's a line where the end juts into the margin, which is even uglier than the underfulls, IMO.
- marvy 9y agoI really wish TeX would prefer underfull to overfull. So many times I've read two column documents where the author ignored the warnings and the columns overlapped, making things pretty hard to read. (Well, actual overlap is rare, but uncomfortably close is common.)
- arnsholt 9y agoAFAIK, it does prefer underfull boxes to overfull ones,but sometimes the penalties work out such that it has to put in an overfull anyways (IME really long words that it doesn't know how to hyphenate correctly are usually the culprit, and it's more frequent in two-column than single column layouts). You can probably set it to be even stricter though by tweaking the penalties for underfulls and overfulls. The details escape me, but it's probably pretty easy once you find the right part of the TeX book to consult.
- srett 9y ago
- IIAOPSW 9y agoI just use overleaf. gets work done, easy to work with collaborators, does the package install thing automatically, real time preview of what your write, has dumb-person "rich text" mode etc. Only downside is its cloud based so I can't be productive on an airplane. https://www.overleaf.com/ https://www.overleaf.com/
- tbenst 9y agoFYI, you can simply clone an overleaf document using git, and work offline, pushing changes after: https://www.overleaf.com/blog/195-new-collaborate-online-and-offline-with-overleaf-and-git-beta https://www.overleaf.com/blog/195-new-collaborate-online-and...
- y7 9y agoJust started using Overleaf as well. It actually has Git support, so if you want to use an offline editor for a while you can just pull changes to your machine, work on it, and then commit/push it to the cloud.
- a3_nm 9y ago> Only downside is its cloud based so I can't be productive on an airplane. Other downside is that in-browser text editing sucks compared to what you can do (e.g.) with vim.
- m_mueller 9y agoThat looks very interesting. Can anyone compare to Sharelatex? I'm using that currently and have run into some issues - sometimes loosing server connection, creates unwanted edits in .tex file from just uploading, opening and downloading again. So far it always seems to be whitespace that it messes up. Edit: Also Sharelatex leaves me wanting for more editing features. Most commonly, autocompletion for reference-tags based on labels in project. Kile does this perfectly, but it's a hassle to get it running everywhere.
- s_kilk 9y ago> autocompletion for reference-tags based on labels in project. Soon ;)
- cossatot 9y ago'Official' website here [0]. This looks great, although I do wonder to what degree the automated downloading of dependencies limits off-line work. I'm not sure how widespread this is, but one of my biggest productivity hacks is writing with the wifi turned off (I go for pencil and paper for first drafts if possible, but editing, figures and references all require the computer). [0]: https://tectonic-typesetting.github.io/en-US/ https://tectonic-typesetting.github.io/en-US/
- chrismorgan 9y ago> I am exactly of this philosophy so Tectonic is very careful NOT to require ANY network access for builds if all of the needed resource files have been cached locally. And because the I/O backends are pluggable, you can download the "bundle" file containing the install tree and point Tectonic to use it for fully network-free operation. — The author (https://www.reddit.com/r/rust/comments/6e2x6m/tectonic_a_complete_modernized_selfcontained/ https://www.reddit.com/r/rust/comments/6e2x6m/tectonic_a_com...)
- cossatot 9y agoThanks.
- deepnotderp 9y agoI'd love to see something akin to "Weebly for LaTeX". Maybe I'm just too much of a theoretical noob, but I don't quite enjoy feeling like I'm writing code when trying to write english.
- relyks 9y agoIsn't Overleaf [1] or ShareLaTeX [2] kind of already like that? [1]: https://www.overleaf.com/ https://www.overleaf.com/ [2]: https://www.sharelatex.com/ https://www.sharelatex.com/
- petters 9y ago> powered by XeTeX Does XeTeX support microtype these days? It is important if you want "best-in-the-world output" to PDF.
- ibn-alfatal 9y agoNope, LuaTeX does a better job and even that is limited as compared to pdfTeX. See http://mirrors.ctan.org/macros/latex/contrib/microtype/microtype.pdf http://mirrors.ctan.org/macros/latex/contrib/microtype/micro... page 7, Table 1.
- petters 9y agoYeah, I used pdftex for my thesis in 2012 for this reason. When I use Tex now I use Luatex as it also gives good results but with easier font management.
- kiriakasis 9y agoIf i read correctly it does not say "powered by XeTeX" but "derived by a XeTeX Implementation"
- pkgwilliams 9y agoRight. The hope is that the easier development process will make it easier to add fancy features like microtypography ... but for me the real prize is HTML output that doesn't suck, so that's going to be the focus of my work.
- petters 9y agoI copied my quote from the linked page. You are likely right, though.
- kiriakasis 9y agoIf i read correctly it does not say "powered by XeTeX" but "derived by a XeTeX Implementation"
- tuomosipola 9y ago
- jahewson 9y agoIt's hard to talk about a "TeX" engine when there is eTeX, XeTeX, and LuaTeX each with their own strengths and weaknesses heading in different directions. FWIW it seems to me that LuaTeX is actually the most promising of the three, not because of Lua but because of its extensibility.
- tnecniv 9y agoWhy would I use one instead of the other? I use LaTeX often, but normally let my IDE autodetect and deal with all that stuff on its own.
- mkl 9y agoLaTeX generates DVI files, which need an extra conversion step to be generally useful. PDFTeX generates PDFs directly, and is generally preferable (unless you need legacy Postscript stuff). XeTeX and LuaTeX deal with Unicode properly and can use normal fonts. Both of these output PDF files directly, like PDFTeX, but have the above advantages over it (+more). LuaTeX, as the name suggests, embeds a Lua interpreter which enables far more sophisticated and performant programmatical things (at the cost of compatibility). XeTeX can cope with legacy Postscript things like PSTricks (ick!) by generating the Postscript and automatically converting it, but that's a slow process, and I often rewrite PSTricks pictures in TikZ or Asymptote when I have to deal with them. I generally use XeTeX, or LuaTeX when I'm okay with sacrificing compatibility for programmability.
- majewsky 9y agoIs PSTricks only a compatibility concern, or are people still doing new stuff in it? I can sort of imagine it... TeX packages are usually not the primary concern of the document author, so they will keep using what they learned 20 years ago. When I wrote my diploma thesis in 2010, I was given the thesis template that the whole working group were using. It was a steaming pile of hacks that had accumulated over the years, with the recommended compilation method being latex -> dvips -> ps2pdf, and only using graphics in EPS format (IIRC). And people were still writing `\"{a}` instead of `ä`. I replaced it with a new template for use with pdflatex that took advantage of such new-fangled stuff as inputenc, cmap, pdfx and hyperref, and committed it together with a long rant of a README that started with something along the lines of "When I looked on my watch, it was the fucking 21st century."
- mrkgnao 9y agoThis might end up being the Rust "killer app"! (Servo aside, of course.)
- mbel 9y agoHow is a thin wrapper for a C library a killer app?
- chrismorgan 9y agoIt’s already not a thin wrapper around a C library; it has ~7,000 of functionality-adding Rust code, and is planning to steadily move things to Rust.
- criddell 9y agoIs TeX still a big deal? I used it (and LaTeX) for all of my school work 25 years ago but I don't think I've touched it since then. Even back then, most people were using word processing software to create their documents. Can a variant of an already somewhat fringe piece of software really become a killer app?
- messe 9y agoIt's quite important in mathematics and reasonably important in physics. Almost all of my fellow students in my undergraduate physics labs use LaTeX to typeset their reports, and a quick browse of arxiv should show that it's dominant amongst academics. It's one of the few piece of software that actually typesets mathematics correctly and well. Don't get me wrong, from what I've seen recent versions of Word have improved hugely and even innovated with OpenType math-extensions which have then been adopted by TeX, but TeX still leads the way. One of the most significant advantages it has over other systems is sensible defaults. Everything from the choice of default fonts down to the margin sizes are chosen to look well enough from the beginning.
- chriswarbo 9y agoTeX is certainly still a big deal, and is not at all fringe. That's my experience from academic Physics and Computer Science. I've heard that different disciplines vary in this regard (e.g. humanities may use more word processing, possibly because they don't need TeX to typeset math). Anecdotally: when giving a presentation last week, the event organiser was surprised that my slides were HTML (from pandoc; I'm an ex-Web dev), as she'd never seen such a thing. Everyone else used beamer (TeX slideshow package).
- tuananh 9y agoMaybe use another name https://coreos.com/tectonic/ https://coreos.com/tectonic/
- webo 9y agoCoreOS Tectonic is not trademarked and is not unique. Looks like OP's project started around November. I believe that's around when CoreOS Tectonic was released as well.
- tuananh 9y agoI don't think CoreOS would care about trademark of this. It may just make people confused, that's all.
- chrismorgan 9y agoAs discussed elsewhere in the thread, Tectonic is actually trademarked by CoreOS.
- mhd 9y agoIf this wraps 120k lines of actual TeX backbones, why write the API layer in Rust at all? Yet another dependency, just to be buzzword compliant? We've come a long way since the original literate TeX program.
- jonchang 9y agoI think the eventual goal is to rewrite the backend in Rust, and to make that available as a library to other applications.
- dom0 9y agoI'm not sure that's feasible.. there are exactly zero independent TeX or TeX-like implementations, everything is patches on top of TeX, which probably has a reason (given the general open source community's inclination to rewrite things). I am by no means an expert on TeX internals, but just cursory browsing of the code makes it look like a rather massive and complex piece of software.
- pkgwilliams 9y agoThe C/C++ code add up to about 120,000 lines. Yes, it is massive and complex. Fortunately, the core engine is essentially self-contained. Almost all of the things that make the TeX frustrating come from the UX, or the difficulty of adding new capabilities that call for somewhat more modern C code. By compiling all of the C with a Rust wrapper, we get a single binary out in the end, plus the ability to extend the engine in ways that were just not feasible before. Revamping the core engine code from C to Rust would be nice, because it could be cleaner and more comprehensible, but it actually doesn't buy you anything in terms of the UX. Edit: also, I didn't realize this when I made the decision to fork XeTeX, but LuaTeX has shifted to a C implementation that is more or less detached from the original WEB code.
- dajt 9y agoKnuth spent all those years getting rid of bugs and this guy wants to bring them back? I didn't get that impression.
- wolfi1 9y agowhy does it use xdvipdfmx? xetex would output pdf as well, doesn't it?
- pkgwilliams 9y agoXeTeX accomplishes PDF output by piping through xdvipdfmx in the background, so it's the same process.
- domoritz 9y agoSo it's like latexmk + lazy downloading? How does it compare against latexmk?
- pkgwilliams 9y agoI can't speak for latexmk, but Tectonic has, if I may say so myself, some quite sophisticated logic for managing reruns and figuring out which intermediate files can't be written to disk. That being said, I wouldn't say that the `latexmk`-type functionality is the thing that is going to make Tectonic unique. Hopefully that will be the HTML output, but I have to implement that first ...
- chj 9y agoSounds like a rewrite, but it's just a wrapper.
- steveklabnik 9y agoIt is currently a wrapper as the first stage of an incremental re-write.
- Norfair 9y agoCome on, you could have called it TeXtonic, what a missed opportunity for a pun.
- chrismorgan 9y agohttps://tectonic-typesetting.github.io/en-US/ https://tectonic-typesetting.github.io/en-US/ declares in the section “About the name” that this is entirely deliberate. I like the rationale and agree with it too: > The name of the project is “Tectonic,” spelled and pronounced like a regular word because it is one. Enough with the cutesy obscurantism. In cases where the name might lead to ambiguities, it should be expanded to “Tectonic typesetting.” > If you’re feeling expansive, you can interpret the name as suggesting a large change in the TeX world. Or you can think of it as suggesting a salubrious offering for weary TeX users. Either way, the root of the word does go back to the ancient Greek τέκτων, ”carpenter,” which Donald Knuth — the creator of TeX and a devout Christian — might appreciate.
- SEJeff 9y agoThis is a terrible idea as Tectonic as a software product already exists: https://tectonic.com https://tectonic.com It is a registered "computer software" trademark as well: http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4805:nppxvg.2.11 http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4805:npp...
- chrismorgan 9y agoThe fact that CoreOS have registered a trademark for Tectonic in the US (serial number 86560796 is the relevant trademark on the word mark) is significant and sadly does incline me to thinking renaming the software might be a good idea. (USPTO trademark search doesn’t really use URLs; it just encodes the transient server state in what passes for a URL, so it expires in a very short time. That’s why your link is dead.)
- jcl 9y agoIt's a pity they didn't go with "TeXtonic"... The canonical way to pronounce "TeX" is roughly "tech", since the "X" is supposed to be a Greek chi. https://en.wikipedia.org/wiki/TeX#Pronunciation_and_spelling https://en.wikipedia.org/wiki/TeX#Pronunciation_and_spelling (Of course, "textonic" is also the name of another open source project...)
- samstokes 9y ago"Terrible idea" is a rather aggressive way to dismiss hours of someone's work because you don't like the name.
- SEJeff 9y agoIncorrect, the name is fine. The name is also a legally registered trademark of a company with a commercial business around said name. I'm unsure of how well you know/understand US Trademark law, but the gist is that you lose a trademark that you don't defend. This means that the name should be changed voluntarily or CoreOS will be obligated to ask them to change it. Word Mark TECTONIC Goods and Services IC 009. US 021 023 026 036 038. G & S: Computer software, namely, software for developing, managing, updating, and maintaining online server instances and clusters hosted by third parties; computer operating system software; computer operating system software for distributed systems. FIRST USE: 20150406. FIRST USE IN COMMERCE: 20150406 IC 038. US 100 101 104. G & S: Providing access to hosted computer operating systems and computer applications through the Internet; Peer-to- peer network computer services, namely, electronic transmission of audio, video and other data and documents among computers. FIRST USE: 20150406. FIRST USE IN COMMERCE: 20150406 Standard Characters Claimed Mark Drawing Code (4) STANDARD CHARACTER MARK Serial Number 86560796 Filing Date March 11, 2015 Current Basis 1A Original Filing Basis 1B Published for Opposition December 22, 2015 Registration Number 5013800 Registration Date August 2, 2016 Owner (REGISTRANT) CoreOS, Inc. CORPORATION DELAWARE 3043 Mission Stret San Francisco CALIFORNIA 94110 Attorney of Record Brian R. Coleman Type of Mark TRADEMARK. SERVICE MARK Register PRINCIPAL Live/Dead Indicator LIVE Courtesy of http://tmsearch.uspto.gov http://tmsearch.uspto.gov TESS search for Serial 86560796
- rmbeard 9y agoIt failed to process the first two files I tested it on. I really like the idea but that is not a great start. Being able to switch between TeX engines would be a good option, would be great if you you could do that with CL switch.
- rmbeard 9y agoGiven the name issues, why not change the name to rustex?
- deleted 9y ago[deleted]
- RolandBuendia 9y agoI failed to see what these three bullet items really bring to the table. - Downloads resource files from the internet on-the-fly, preventing the need for a massive install tree of TeX files - Automatically and intelligently loops TeX and BibTeX to produce finished documents repeatably - Has a command-line program that is quiet and never stops to ask for input My understanding is that both MikTex for Windows, as well as Texlive for Linux, allow users to install packages on the fly. To compile a file with BibTex, a user just needs to run TeX twice. And finally, TeX will only ask for a user input if there is an error.