TeX Live and MacTeXmactex paths texlive acmart

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
David Epstein
Posts: 2
Joined: Fri Mar 03, 2017 11:11 am

mactex paths texlive acmart

Post by David Epstein »

I have just joined Latex Community, and I am not familiar with it, so I hope I haven't missed the answer to my questions below.
I have searched but I have not been able to find answers.

I have just installed MacTeX. I'm using command line

Code: Select all

latexmk -pdf filename.tex
to compile. The first line of my file is

Code: Select all

\documentclass[format=acmsmall]{acmart}
which provokes the error message

Code: Select all

LaTeX Error: File `acmart.cls' not found.
That file is found on my system at
/usr/local/texlive/2016/texmf-dist/tex/latex/acmart/acmart.cls

How can I persuade latex to find this file? Or do I need to copy it to somewhere else?
Where do I find the paths along which this distribution of tex searches?
Should I set these path, or take some other action?
Are the paths set by MacTeX or by texlive?

Also what path will be used to look for my .bib files (called by \bibliography).

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

mactex paths texlive acmart

Post by Stefan Kottwitz »

Hi David,

welcome to the forum!

Try the kpsewhich tool at the command prompt, it shows the paths. Regarding bib files, take a look here: http://latex-community.org/forum/viewto ... 50&t=29206

Stefan
LaTeX.org admin
David Epstein
Posts: 2
Joined: Fri Mar 03, 2017 11:11 am

mactex paths texlive acmart

Post by David Epstein »

Thanks. The reply from Stefan Kottwitz is helpful in pointing to the reason for my problems, because I did in fact try kpsewhich but got null response.
However, my system's response to

Code: Select all

which kpsewhich
is

Code: Select all

/usr/local/texlive/2014/bin/universal-darwin/kpsewhich
.
Since the file I was searching for is in texlive/2016, kpsewhich didn't find it.

I had thought that installing MacTex would automatically change my path. I use tcsh. So now I'm assuming that the path needs to be changed manually. Here is the response to

Code: Select all

echo $path
:

Code: Select all

/opt/local/bin /opt/local/sbin /Library/Frameworks/Python.framework/Versions/2.7/bin /opt/local/bin /opt/local/sbin /Users/dbae/bin/qepcad-B.1.65.MacOSX/qesource/bin /usr/local/texlive/2014/bin/universal-darwin /usr/local/texlive/2014/bin/x86_64-darwin /Users/dbae/bin /opt/local/bin /opt/local/sbin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /Library/TeX/texbin
What should be added to pick up commands defined in my recent installation of MacTex?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

mactex paths texlive acmart

Post by Stefan Kottwitz »

On my Macbook it's simply:

% echo $path
/usr/bin /bin /usr/sbin /sbin /usr/local/bin /opt/X11/bin /usr/texbin


Better remove the old 2014 entries from the path. Perhaps look into ~/.tcshrc or ~/.profile or what your shell uses to add path entries.

Check the folder /etc/paths.d. On my system, there's a TeX file containing just the line /usr/texbin. The contents of the files in that folder is added to the path. Perhaps you haven an older file there.

Stefan
LaTeX.org admin
Post Reply