[TxMt] Re: ps2pdf

René Schwaiger sanssecours at me.com
Tue Mar 27 06:33:35 UTC 2018


Hi Kyle,

> On 27.03.2018, at 24:27 , Kyle Johnson <kbj at linguist.umass.edu> wrote:
> 
> I’ve recently moved to a new machine (an iMac Pro), and have successfully installed Texlive 2017 and TextMate. When I use other LaTeX editors, I can successfully typeset LaTeX files, but not when I use TextMate. I typeset in the old fashioned dvips->ps->pdf way, and the problem I seem to be having is with the ps2pdf utility, that finishes the conversion of the file from postscript to pdf. The error message says that this utility has run too many times. When I view the postscript file that is created during this process, it looks fine and I can get Preview (and Skim) to translate it into a pdf. 
> 
> Because other editors can typeset fine, I’m thinking that there is something wrong with the way that TextMate calls the ps2pdf process on my machine. Has anyone experienced this problem? 

I just tried the following:

1. Create a new file in TextMate
2. Paste the following content into the file

    %!TEX TS-program = latex
    \documentclass{article}

    \begin{document}
    Hello, World!
    \end{document}

3. Save the file as `test.tex` in the directory `Downloads`
4. Run “Typeset & View (PDF)” (`⌘` + `R`)

, which failed printing a very uninformative error message in the process:

    The file /Users/rene/Downloads/test.pdf does not exist. 134:139: execution error: Can’t make file "HD:Users:rene:Downloads:test.pdf" into type alias. (-1700)
    Error 1 opening viewer

    Command latexmk -pdfps -f -r /tmp/latexmkrc -r '/Users/rene/Library/Application Support/TextMate/Bundles/LaTeX.tmbundle/Support/config/latexmkrc' test.tex exited with status 12


. The problem on my machine was a broken Ghostscript installation. After I fixed the issue by running `brew unlink ghostscript; brew link ghostscript` everything worked fine. Did you maybe forget to install Ghostscript? You can check if Ghostscript is installed by running `ps2pdf` inside a Terminal window. If that is not the problem can you please send me a minimal example document that causes the error you described?

> Thanks in advance,
> Kyle Johnson

Kind regards,
  René


More information about the textmate mailing list