top | item 18161344

TinyTeX: A lightweight and easy-to-maintain LaTeX distribution

131 points| jaap_w | 7 years ago |yihui.name

52 comments

order

innocenat|7 years ago

To be honest, when I am using LaTeX, I just want to write without any interruption. That's why I install texlive-full. Since I am (almost) guaranteed that whatever I encountered, I would be able to do it.

Dealing with complexity of LaTeX and CPAN is not something I really want to do, especially when I am meeting (paper submission) deadline.

bscphil|7 years ago

I agree, in the sense that this comes years too late for me and I would guess most other Linux users. It's easy enough on Linux just to install effectively all of the packages from your package manager, and the couple GBs it takes aren't enough to be a real concern (and I've got my root on an SSD!).

However, I can see this being a real benefit to Windows and OSX users, who don't have a native package manager. If you're going to be in the unfortunate position of managing LaTeX packages manually, it would be great to have a low-friction way to do that and a minimal portable distribution to start with.

My one actual criticism is the name: it should be TinyLaTeX. TeX and LaTeX are two different things.

MereInterest|7 years ago

This would have been useful for me at one point, when I used LaTeX to make formatted pdf output for a program I was writing. (Making a RPG character builder at a time when I had lots of experience with LaTeX, but none with pdfs directly.) I ended up starting with texlive and making my own very stripped down distribution, with only the libraries that were used in the intermediate .tex file.

graycat|7 years ago

For 10+ years I've been a big fan of D. Knuth's TeX with Knuth's original macros Plain. I have about 70 TeX macros of my own. That setup is for all my higher quality word processing from ordinary letters to mathematics, and I regard it as fine. For that word processing, that setup is fine, a done deal.

I looked at LaTeX, got the basic books, etc. and concluded that (A) Knuth's documentation in The TeXBook is relatively short, well written, and essentially totally free of bugs, and it is easy to write more macros and (B) the LaTeX documentation is much longer, less well written, for the internal logic much harder to understand, maybe with bugs if only from the length and complexity and being so big and complicated, and much more difficult for me to write more macros. So, I've just stayed with TeX and never used LaTeX except once when I downloaded a paper in LaTeX and wanted to format and read it.

Lesson: TeX itself, the design, documentation, functionality, and code are really quite good, and for some people LaTeX may be less good. Don't rush to give up on TeX.

mohammedbin|7 years ago

As someone who prefers TeX- i'd say the comparison goes this way(very roughly)-

TeX:

* Assembly language or C of typesetting. Gives you fine control * useful when you have various differrnt formats and don't want to learn a new latex template for everything.

LaTex:

* Java of typesetting * Amazing set of libraries and very useful if you work on relatively few well defined formats.

craigsmansion|7 years ago

TeX people are unsung heroes to me and about as close to magic as software can get.

It's like an ancient secret order that is keeping the world safe from word-processors.

I have no idea of what they do, or how they do it, but I can't argue with the world-class results.

MereInterest|7 years ago

As with most things, it is largely a matter of practice and experience. There was a time when I was fast enough to take lecture notes in LaTeX, in courses where there were many formulas to be typeset. I did get an odd look from a professor one time, where at the end of a one-hour open-everything exam, I turned in a typeset pdf rather than handwritten answers.

Sadly, I am not as proficient with it as I used to be, as it has way too much esoterica in getting the exact layouts you want.

xvilka|7 years ago

The biggest problem that most of the publishers still do not accept LaTeX submissions. Especially if you want to publish a book.

dpwm|7 years ago

> If you create a tarball of TinyTeX on macOS or Ubuntu, it will be only 50MB

This is excellent and has accelerated my long-term dream: an up-to-date TeX distribution that can live in my home directory in an lz4 (hc) squashfs archive (72M) and be mounted on an as-needed basis.

UPDATE: As I had hoped, TinyTeX works in an lz4 squashfs. On my system it's actually a tiny bit faster under squashfs than from my ext4 home partition.

bscphil|7 years ago

What is the advantage of having LaTeX in a squashfs if it's taking up space on your home partition anyway? I can't think of any reason to do this unless you want your LaTeX to be read-only for some reason.

Tarq0n|7 years ago

Yihui Xie has been an incredible boon for the R & Pandoc ecosystems. Turning your R code into pdf or html is so easy I'm surprised language authors aren't scrambling to copy the feature.

kylebarron|7 years ago

It's because other languages like Python and Julia would usually just use something like Jupyter Notebooks, and those can be converted to PDF using nbconvert.

xvilka|7 years ago

It is notable that LaTeX development moved to GitHub [1] and anyone can send a pull request without much hassle.

[1] https://github.com/latex3

osamagirl69|7 years ago

My favorite part about this article is the extra wide space that follows their apostrophe character. It really gives an air of legitimacy to their LaTeX distribution...

weavie|7 years ago

It looks like there is something wrong with the 'Microsoft YaHei' font. Removing that from the font-family fixes the huge space.

mkl|7 years ago

Looks fine for me (Chrome on Android).

kmundnic|7 years ago

Some time ago I was trying to include more than one bibliography in a document. After a day or so trying to make it work with the MacTex installation, I checked if it would work with ShareLatex. Worked at the first try, changing nothing in my files. From then, I never looked back.

I only back up the ShareLatex projects in my Dropbox if for whatever reason I need offline access later. Has worked well so far.

goerz|7 years ago

I have some projects where the continuous-integration-testing with Travis requires a tex installation. More than 50% of the entire test run is spent installing texlive-full (since Travis doesn't seem interested in including latex in their standard environment). Maybe TinyTeX will be able to speed this up?

pletnes|7 years ago

In my experience, TeX needs some packaging/distribution love. Also in my experience, overleaf/sharelatex (web based) blows all of the local installation approaches out of the water. Especially with respect to collaboration with coauthors of your documents.

FredFS456|7 years ago

Sharelatex merged with (was bought by?) Overleaf a while ago. Now we're just down to using Overleaf v2.

rambojazz|7 years ago

> YEAR: 2017-2018

> COPYRIGHT HOLDER: Yihui Xie and RStudio, Inc.

what license is this? Is this software proprietary?

pingiun|7 years ago

It's CC BY-NC-SA 4.0, there's a license link on the top of the page.

EdSchouten|7 years ago

Shamelessly promoting something that I wrote myself:

https://github.com/ProdriveTechnologies/bazel-latex

These are rules for building LaTeX documents using the Bazel build system. What's pretty nifty is that these download (parts of) TeXLive automatically, meaning that you don't even need to install TeXLive in your home directory. Instead, it's part of your project, meaning that everyone working on it will use exactly the same version of TeXLive.

Koshkin|7 years ago

On a tangential note, I wish there were a single-executable "distribution" of Plain TeX that would simply "do one thing well" - convert a TeX source to more or less nicely typeset PDF.

jpfr|7 years ago

Have you tried LuaTeX? If you use plain TeX (without requiring extra LaTeX files), you should only need the binary.

LuaTeX is the successor of pdfTeX. Much improved. And it can use your local .ttf/.otf/... font files out of the box.

The install is very minimalistic and should not require more than downloading a binary and maybe a config file.

http://minimals.contextgarden.net/current/bin/luatex/linux-6...

taeric|7 years ago

I've found more than several tools that all basically complete this task. latexmk -pdf Foo.tex, being the most common one that I can remember.

It is somewhat annoying that it will create so many temp files. I guess. I've gotten over it pretty heavily. (I actually regret not looking at the log file more often. I feel I should know how to read most of that.)

ahriman|7 years ago

I grew irritated with texlive and instead just opted to use https://overleaf.com for my LaTeX documents

blt|7 years ago

Overleaf makes you pay for the history feature, and for more than one collaborator. Not good for long term collaborative papers.

jimhefferon|7 years ago

Fair, but they use texlive under the hood.

purplezooey|7 years ago

[deleted]

pinewurst|7 years ago

My resume has been in LaTeX (now XeLaTeX) for many years now for my own convenience (separation of format from content) not pretention. Given that I distribute PDFs, I fail to see how its source format is relevant or even visible - not using Computer Modern fonts.

mohammedbin|7 years ago

I didn't downvote - there is a substantial number of pretenders in this space. Because latex is surprisingly easy to use. But I keep my resume in the same family of software myself and it's because of ease of editing. I hide the Computer Modern font and use popular Microsoft Office fonts. So nobody knows.

_emacsomancer_|7 years ago

Why? LaTeX is great for typesetting, and let's you focus on the content rather than the formatting. Perfect for resumes really.

samatman|7 years ago

[deleted]

mechnesium|7 years ago

I think various flavors of Markdown have largely superseded TeX, at least for stylistic minimalists. I'm not saying that TeX is obsolete, but for the majority of use cases, Markdown is faster and less troublesome. Modernity always triumphs.

_emacsomancer_|7 years ago

Except if you want a PDF version you're likely converting markdown->TeX->PDF