LaTeX forum ⇒ 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
David Epstein
Posts: 2
Joined: Fri Mar 03, 2017 11:11 am

mactex paths texlive acmart

Postby David Epstein » Fri Mar 03, 2017 1:03 pm

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
  1. latexmk -pdf filename.tex

to compile. The first line of my file is
  1. \documentclass[format=acmsmall]{acmart}

which provokes the error message
  1. 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

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8074
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Fri Mar 03, 2017 6:29 pm

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: viewtopic.php?f=50&t=29206

Stefan
Site admin

David Epstein
Posts: 2
Joined: Fri Mar 03, 2017 11:11 am

Postby David Epstein » Sun Mar 05, 2017 10:15 am

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
  1. which kpsewhich
is
  1. /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
  1. echo $path
:
  1. /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: 8074
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sun Mar 05, 2017 1:13 pm

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
Site admin


Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 2 guests