Scrivener 3 does not find LaTex on MacOS

mp
mpapesch
Posts: 2
Joined: Mon Jan 01, 2018 5:02 pm
Platform: Mac

Mon Jan 01, 2018 7:47 pm Post

Hi,

I just upgraded Mac OS to High Sierra and MacTeX / TeXLive from 2016 to 2017. Afterwards, I wanted to set up Scrivener 3 to use MMD and LaTex to create PDF output. However, I could not get it to work and was not able to find any hints ...

I am wondering ...
  1. Where does Scrivener 3 expect LaTeX to reside?
  2. Is there a way to tell Scrivener 3 where to look for LaTeX?
  3. Am I missing something?

Any help is greatly appreciated.
Thanks,
Matthias

Further Information:

When I try to Compile the Tutorial with "MultiMarkdown -> PDF" a window called "ErrorLog" opens and displays the following messages:

Code: Select all

stat(/Library/usr) failed ...
/Library/usr: No such file or directory
Assertion failed: (ret), function remove_dots, file ../../../texk/kpathsea/progname.c, line 316.


Right aftert that a dialog opens giving the following message:
The PDF file could not be created.

There was a problem generating the PDF file using pdflatex. Please ensure that you have any necessary supporting LaTeX files correctly in place, and that your metadata is set up properly.


TeXLive is installed in /usr/local/texlive/2017/ ; there is a directory structure under /Library/TeX which symlinks there.

Code: Select all

snoopy:~ mp$ [b]uname -a[/b]
Darwin snoopy 17.3.0 Darwin Kernel Version 17.3.0: Thu Nov  9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64 x86_64
snoopy:~ mp$ which pdflatex
/usr/local/texlive/2017/bin/x86_64-darwin/pdflatex
snoopy:~ mp$ ls -l /Library/TeX/texbin/
lrwxr-xr-x  1 root  wheel  39 28 Okt  2014 /Library/TeX/texbin/ -> ../.DefaultTeX/Contents/Programs/texbin
snoopy:~ mp$ cd /Library/TeX/texbin/
snoopy:texbin mp$ pwd -P
/usr/local/texlive/2017/bin/x86_64-darwin

User avatar
AmberV
Posts: 20783
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Tue Jan 02, 2018 2:20 pm Post

Although the error message does seem to indicate difficulty finding LaTeX, I don’t think that’s the problem. Scrivener actually removes the PDF option entirely from the compile list if it cannot find LaTeX. It does report any error messages other scripts might generate, so more likely that's coming from something else.

Were you having difficulties before updating to TeXLive 2017, or is all of this new? I’m not having any problems with 2016, using the built-in copy of MMD that Scrivener uses.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles

mp
mpapesch
Posts: 2
Joined: Mon Jan 01, 2018 5:02 pm
Platform: Mac

Tue Jan 02, 2018 7:51 pm Post

Thank you for the quick response - it did point me in the right direction!

I checked the TexLive Installation one more time and there were some "left-overs" from previous installations (2012, 2013, 2014, 2015). I removed all of the TeXLive-related stuff completely and did a fresh install. Afterwards everything worked fine ...

Thanks!
Matthias

User avatar
AmberV
Posts: 20783
Joined: Sun Jun 18, 2006 4:30 am
Platform: Mac + Linux
Location: Santiago de Compostela, Galiza
Contact:

Tue Jan 02, 2018 8:38 pm Post

Good to know! I might have to do likewise when I finally get around to upgrading, as I checked and have back to 2014 installed.
.:.
Ioa Petra'ka
“Whole sight, or all the rest is desolation.” —John Fowles