El Capitan path issue

Create issue
Issue #104 new
Lu Fan created an issue

I recently upgraded my mac form Yosemite to El Capitan. The tex text is no longer working properly. When I try to create any latex object, it gives error:

"RuntimeError: Command pdflatex /var/folders/s2/f4z38kz14z77lh66s7bpp_j00000gn/T/tmpiacJrs/tmp.tex -interaction=nonstopmode -halt-on-error failed: [Errno 2] No such file or directory"

I know this has to do with the change of path on some Latex components. I fixed the path in my texmaker. However, can someone tell me how to fix the similar issue in tex text or Inkscape in general?

Thanks

Comments (4)

  1. Ben H

    Make sure pdflatex works in terminal. If it does, get the correct path with

    $ which pdflatex
    

    (mine returns /Library/TeX/texbin/pdflatex)

    open ~/.config/inkscape/extensions/textext.py

    and change

    out = exec_command(['pdflatex', self.tmp('tex')] + latex_opts)
    

    to

    out = exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latex_opts)
    

    line 1014 in textext version 0.4.dev

  2. Muhammad Valiallah

    So in textext 0.44

    open textext.py file in textEdit programme and change

    exec_command(['pdflatex', self.tmp('tex')] + latex_opts)

    to

    exec_command(['/Library/TeX/texbin/pdflatex', self.tmp('tex')] + latexOpts)

    This worked on Mac Os El Capitan 10.11.1

  3. Log in to comment