jbezos / enumitem

Customize enumerate, itemize and description
MIT License
48 stars 5 forks source link

Add instructions on how to install enumitem package using e.g. TeX Live Utility #29

Closed kevinburke closed 3 years ago

kevinburke commented 3 years ago

I'm trying to figure out how to get this package onto my Mac, and not sure the best way to do that.

FrankMittelbach commented 3 years ago

unless you have installed a very minimal TL it should be there. if you use the mactex distribution of TL then there is a TeX Live Utility that lets you install and update packages, otherwise on the command line tlmgr is the tool to use install or update.

kevinburke commented 3 years ago

I installed the basictex distribution and didn't see it. I installed TeX Live Utility and am searching for it but don't see it in the list of packages.

I ended up cloning the repository to /usr/local/texlive/2021basic/texmf-dist/tex/latex/enumitem. I tried running the pdflatex command and got this error:

! LaTeX Error: File `enumitem.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:

I entered in the location of the enumitem.sty file from above and was able to get it to work from there.

FrankMittelbach commented 3 years ago

I installed the basictex distribution and didn't see it. I installed TeX > Live Utility and am searching for it but don't see it in the list of packages. I have forgotten what basictex installs but probably too little.

TeX Live Utility is a MacTeX app not a package in the tex distribution. It is essentially a nice frontend to tlmgr of TL

I ended up cloning the repository to |/usr/local/texlive/2021basic/texmf-dist/tex/latex/enumitem|. I tried running the pdflatex command and got this error:

|! LaTeX Error: File `enumitem.sty' not found. Type X to quit or

to proceed, or enter new name. (Default extension: sty) Enter file name: |

you can't install into the TL distribution tree without telling TL about that is what the tlmgr is for and mktxlsr etc etc. you can do that into your local tree,eg ~/Library/texmf most likely but into the dist tree is rather dangerous.

I personally would install MacTeX rather than a pure TL, but as I said something like

tlmgr --help

could get you going

Something like

tlmgr install enumitem

would probably do that for you (maybe with sudo depending how you system is set up) but you may have to remove your manually added stuff first.

But this is really the wrong place to learn about handling your distribution (and in my opinion nothing that a package like enumitem can provide information about as there are too many variations)

anyway hope the above helps

frank

jbezos commented 3 years ago

As explained by Frank, how a package is installed depends on the distribution, and it’ not directly related to enumitem itself. Try asking in https://tex.stackexchange.com/ .