Error with latexmk

RH
RHvdG
Posts: 56
Joined: Sun Sep 09, 2018 5:23 pm
Platform: Mac
Location: Utrecht, Netherlands
Contact:

Fri Jan 10, 2020 3:35 pm Post

I'm unsure how to proceed: on my iMac, producing a pdf file from a General Non-Fiction (latex) template works fine, but on my MacBook I get an error:

Code: Select all

'/var/folders/c9/h0vzh5yj689b1ggyb7n1ny_w0000gn/T/my-script: line 3: latexmk: command not found'


I edited the script to use pdflatex on both machines. Help is appreciated.
Doing a PhD on Hegel, using Scrivener. ‘Es geht vernünftig zu.’

RH
RHvdG
Posts: 56
Joined: Sun Sep 09, 2018 5:23 pm
Platform: Mac
Location: Utrecht, Netherlands
Contact:

Mon Jan 20, 2020 2:28 pm Post

RHvdG wrote:I'm unsure how to proceed: on my iMac, producing a pdf file from a General Non-Fiction (latex) template works fine, but on my MacBook I get an error:

Code: Select all

'/var/folders/c9/h0vzh5yj689b1ggyb7n1ny_w0000gn/T/my-script: line 3: latexmk: command not found'


I edited the script to use pdflatex on both machines. Help is appreciated.


Anyone?
Doing a PhD on Hegel, using Scrivener. ‘Es geht vernünftig zu.’

User avatar
AmberV
Posts: 24415
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Ourense, Galiza
Contact:

Mon Jan 20, 2020 2:50 pm Post

Could it be the other Mac is using a different LaTeX distribution? I set up that script to work with MacTeX (which is by and large a wrapper for TeX Live), so in theory it should work on any machine with that installed. Another possibility is that the other machine is older, and the texbin is in another location (they had to move it a while back to get around the changes Apple made to the UNIX subsystem).

If it is in a different location than /Library/TeX/texbin, then change the Environment setting in your Processing pane to match.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

User avatar
nontroppo
Posts: 1263
Joined: Mon Mar 05, 2007 5:22 pm
Platform: Mac
Location: Airstrip One

Tue Jan 21, 2020 3:46 am Post

If you've used the minimal MacTeX installer (https://www.tug.org/mactex/morepackages.html), you do not get latexmk by default, and need to install it (so perhaps one machine used it and the other used the full installer?). You can easily install it with:

Code: Select all

 sudo tlmgr install latexmk


Or if you prefer a GUI, then TeX Live Utility.app (https://github.com/amaxwell/tlutility) is great, and can easily be installed if you use Homebrew:

Code: Select all

brew cask install tex-live-utility


Both tools allow you to easily keep your TeX install up-to-date...

RH
RHvdG
Posts: 56
Joined: Sun Sep 09, 2018 5:23 pm
Platform: Mac
Location: Utrecht, Netherlands
Contact:

Thu Jan 23, 2020 9:22 am Post

Thanks a lot, AmberV and nontroppo, I will give this a try.
Doing a PhD on Hegel, using Scrivener. ‘Es geht vernünftig zu.’