logoalt Hacker News

sureglymoplast Tuesday at 2:30 PM4 repliesview on HN

Well, you'll have to install and keep those packages somewhere on your system. And maybe a few months from now after your latex distribution got updated by the system your document suddenly no longer compiles.

What I want is something like npm-like package management for this, where the packages are just kept there next to the document. I don't care if I'll have a package 20 times on my system either, storage hasn't been a concern in many years.


Replies

blenderoblast Tuesday at 3:16 PM

> And maybe a few months from now after your latex distribution got updated by the system your document suddenly no longer compiles.

I'm using LaTeX 2e for 25+ years. This has literally never happened to me. If that's not stability, I don't know what is. LaTeX documents I wrote in my grad days still compile for me. I just checked and it does. I do keep the dependency packages myself in my folder.

Has this issue ever happened to anyone? Why would LaTeX distribution getting updated break my documents? It's still the same latex compiler and the same base styles and packages!

show 3 replies
mighty_plantlast Tuesday at 3:23 PM

Maybe running Latex in a container would meet your requirements?

WillAdamslast Tuesday at 5:19 PM

There's a package for that:

https://ctan.org/pkg/collect?lang=en

FRidhlast Tuesday at 4:20 PM

Write a Nix expression to compile your document. That way you can be sure it keeps working. I did this long ago for my PhD thesis and other papers.