this post was submitted on 07 Jan 2024
6 points (100.0% liked)

TeX typesetting

152 readers
1 users here now

A place to share ideas, resources, tips, and hacks for Donald Knuths typesetting software TeX. All variants and formats like OpTeX, LaTeX and ConTeXt are welcome.

founded 1 year ago
MODERATORS
 

I’m just getting into LaTeX and am starting with a project I’ve cloned from GitHub. I immediately ran into problems compiling because of a bunch of missing packages. I was able to get it running by compiling, seeing where it failed, and installing the missing package, but I had to do this one at a time for over a dozen packages. Is there any sort of requirements.txt or package.json file that lists all dependencies so I can pipe them to the package manager to install?

all 3 comments
sorted by: hot top controversial new old
[–] mumblerfish 4 points 10 months ago

If you are on linux the dist package manager usually have packages like 'texlive-base', '-extra', and so on. I just install those and then very rarely do I have to do something peculiar and install a special package.

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago)

I haven't heard of any automatic way of doing what you describe. Something could possibly be made, but it would probably be more work than going through the logs to see which packages are needed and installing them. If you have the hard drive space, one solution is to just install all packages and hope that covers it.

Personally I think that it's good practice to list dependencies in a comment in the top of the file, sometimes I even include links where to find specific fonts that are used etc.