Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

## #625 Texstudio+OSX oddity

open
nobody
1
2014-01-01
2013-12-27
Anonymous
No

I can run the following code with Txstudio+Miktex 2.9+Windows 7 with no problem but the same code with Texstudio+MacTeX 2013+OSX Mavericks does not compile correctly. For both cases I call pdflatex and write18 is enabled. pdflatex command line from References is:
"/usr/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex

I think Texstudio under MacTeX and with auto-pst-pdf fails to initiate shell script for running latex+dvips+ps2pdf phase correctly. The code is given below:

\documentclass{article}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{auto-pst-pdf}
\begin{document}
This is a test. The following figure should be processed OK with PdfLaTeX. Works fine with Winedt and Texstudio under windows. Works fine with Texshop under OSX, but does not work with Texstudio under OSX. In all cases -shell-escape is enabled.

\bigskip

\includegraphics[width=5in]{example-image-a.eps}
\end{document}

## Discussion

1 2 > >> (Page 1 of 2)
• Does it work in command line ?
Check the $PATH variable, txs allows to set additional search paths (advanced option: build, at the bottom) • Does it work in command line ? Check the$PATH variable, txs allows to set additional search paths
(advanced option: build, at the bottom)

On 27.12.2013 17:45, Ticket 625 wrote:

[feature-requests:#625]
http://sourceforge.net/p/texstudio/feature-requests/625/ Texstudio+OSX
oddity

Status: open
Labels: auto-pst-pdf MacTeX MikTeX
Created: Fri Dec 27, 2013 04:45 PM UTC by Anonymous
Last Updated: Fri Dec 27, 2013 04:45 PM UTC
Owner: nobody

I can run the following code with Txstudio+Miktex 2.9+Windows 7 with no
problem but the same code with Texstudio+MacTeX 2013+OSX Mavericks does
not
compile correctly. For both cases I call pdflatex and write18 is
enabled. pdflatex command line from References is:
"/usr/texbin/pdflatex" -synctex=1 --shell-escape
-interaction=nonstopmode %.tex

I think Texstudio under MacTeX and with auto-pst-pdf fails to initiate
shell script for running latex+dvips+ps2pdf phase correctly. The code is
given below:

\documentclass{article}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{auto-pst-pdf}
\begin{document}
This is a test. The following figure should be processed OK with
PdfLaTeX. Works fine with Winedt and Texstudio under windows. Works fine
with Texshop under OSX, but does not work with Texstudio under OSX. In
all cases -shell-escape is enabled.

\bigskip

\includegraphics[width=5in]{example-image-a.eps}
\end{document}

Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/texstudio/feature-requests/625/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

• Per Ting
2013-12-28

Does it work in command line ? Yes, it also works when run from Texmaker and Texshop in OSX. It also works when run from Texshop in windows 7. It even works fine when I run it on OSX through Windows 7 virtual machine (Parallels) using Winedt front end.

$PATH should be fine, otherwise Texmaker and Texshop would have problems. The problem is probably handling of the perl scripts of auto-pst-pdf by Texstudio. • These problems are always path related. Hence check the path. Txs give the path when executing help/check installtion (or similar) -------- Ursprüngliche Nachricht -------- Von Per Ting perting@users.sf.net Datum: 28.12.2013 22:38 (GMT+01:00) An "[texstudio:bugs]" 625@feature-requests.texstudio.p.re.sf.net Betreff [texstudio:bugs] #625 Texstudio+OSX oddity Does it work in command line ? Yes, it also works when run from Texmaker and Texshop in OSX. It also works when run from Texshop in windows 7. It even works fine when I run it on OSX through Windows 7 virtual machine (Parallels) using Winedt front end.$PATH should be fine, otherwise Texmaker and Texshop would have problems. The problem is probably handling of the perl scripts of auto-pst-pdf by Texstudio.

[feature-requests:#625] Texstudio+OSX oddity

Status: open
Labels: auto-pst-pdf MacTeX MikTeX
Created: Fri Dec 27, 2013 04:45 PM UTC by Anonymous
Last Updated: Sat Dec 28, 2013 03:12 PM UTC
Owner: nobody

I can run the following code with Txstudio+Miktex 2.9+Windows 7 with no problem but the same code with Texstudio+MacTeX 2013+OSX Mavericks does not compile correctly. For both cases I call pdflatex and write18 is enabled. pdflatex command line from References is:
"/usr/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex

I think Texstudio under MacTeX and with auto-pst-pdf fails to initiate shell script for running latex+dvips+ps2pdf phase correctly. The code is given below:

\documentclass{article}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{auto-pst-pdf}
\begin{document}
This is a test. The following figure should be processed OK with PdfLaTeX. Works fine with Winedt and Texstudio under windows. Works fine with Texshop under OSX, but does not work with Texstudio under OSX. In all cases -shell-escape is enabled.

\bigskip

\includegraphics[width=5in]{example-image-a.eps}
\end{document}

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/feature-requests/625/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

#### Related

• Per Ting
2013-12-29

My $PATH is: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin Could someone please try and verify whether the code in the original post can be executed with Texstudio under Mavericks? The result should be the text with a graphics showing a big letter "A". • Well, the PATH itself does not help to solve the problem. You need to compare the path in your terminal (echo$PATH) with the PATH
txs uses (help/check latex installation ... line with PATH= ....)

On 29.12.2013 18:17, Per Ting wrote:

My $PATH is: /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin Could someone please try and verify whether the code in the original post can be executed with Texstudio under Mavericks? The result should be the text with a graphics showing a big letter "A". [feature-requests:#625] http://sourceforge.net/p/texstudio/feature-requests/625/ Texstudio+OSX oddity Status: open Labels: auto-pst-pdf MacTeX MikTeX Created: Fri Dec 27, 2013 04:45 PM UTC by Anonymous Last Updated: Sat Dec 28, 2013 09:38 PM UTC Owner: nobody I can run the following code with Txstudio+Miktex 2.9+Windows 7 with no problem but the same code with Texstudio+MacTeX 2013+OSX Mavericks does not compile correctly. For both cases I call pdflatex and write18 is enabled. pdflatex command line from References is: "/usr/texbin/pdflatex" -synctex=1 --shell-escape -interaction=nonstopmode %.tex I think Texstudio under MacTeX and with auto-pst-pdf fails to initiate shell script for running latex+dvips+ps2pdf phase correctly. The code is given below: \documentclass{article} \usepackage{graphicx} \usepackage{microtype} \usepackage{auto-pst-pdf} \begin{document} This is a test. The following figure should be processed OK with PdfLaTeX. Works fine with Winedt and Texstudio under windows. Works fine with Texshop under OSX, but does not work with Texstudio under OSX. In all cases -shell-escape is enabled. \bigskip \includegraphics[width=5in]{example-image-a.eps} \end{document} Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/texstudio/feature-requests/625/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ #### Related • Per Ting 2013-12-30 echo$PATH result:
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin

PATH txs uses:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/texlive/2012/bin/x86_64-darwin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin

So, all directories in \$PATH are on the path txs uses.

• try to set the very same path from txs in your terminal and run pdflatex there again.
By the way, what exactly does pdflatex compalin about when it does not work ? (log)

• Steve Samuels
2013-12-31

As I reported on the Mailing List, I too have seen this error on OS X 10.7.5, but there is more:
1. When I compile with pdflatex, the pdf is, in fact, created and looks okay, but does not appear in the internal viewer & the log shows an error
2. If I change the Build option to "txs:///dvi-ps-pdf-chain", the pdf opens in the designated "PDF Viewer", not the designated "Default Viewer", and no error message is generated.
3. Probably not helpful to Per, but there are no problems building and compiling with xelatex.

Last edit: Steve Samuels 2013-12-31

• Tim Hoffmann
2014-01-01

@1: what is the error in the log?

@2: This is the expected behavior with default settings

txs:///dvi-ps-pdf-chain resolves to txs:///latex | txs:///dvips | txs:///ps2pdf | txs:///view-pdf.

Note that the last call is txs:///view-pdf not txs:///view by default.

1 2 > >> (Page 1 of 2)