I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
Thanks, Kyle
Hi Kyle,
On 07 Mar 2016, at 15:32 , Kyle Johnson kbj@linguist.umass.edu wrote:
I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
if you translate a document via the engine `latex`, then “Watch Document” uses `gv` as previewer. Since `gv` is an “X.org” programm, you first need to install “XQuartz“ [XQuartz] for this to work. After that, install `gv` via “Homebrew” [Homebrew]. Just open Terminal and paste the following two commands:
brew tap homebrew/x11 brew install gv
After you followed the steps above, you can test your setup. Just paste the following text:
%!TEX TS-program = latex \documentclass{article}
\begin{document} Hello, World! \end{document}
into a new TextMate document, save it as `test.tex`, and invoke “Watch Document”.
[XQuartz]: http://www.xquartz.org [Homebrew]: http://brew.sh
Thanks, Kyle
Kind regards, René
Thanks René,
As always, you are very helpful (and fast).
Watch Document, when using the latex engine, cannot use Skim as previewer, if I’m understanding you correctly. Is that right?
I’ve installed XQuartz and homebrew, and with homebrew, I’ve installed gv. Those installations went smoothly, so far as I can see. When I run Watch Document on your test file, it loads up XQuartz and gv, and then fails with this error:
Unknown device: x11 sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:1084: gsicc_open_search(): Could not find default_gray.icc | ./base/gsicc_manage.c:1690: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .special_op Operand stack: defaultdevice Unrecoverable error: undefined in .uninstallpagedevice Operand stack: defaultdevice
I rebooted after installing XQuartz (and gv, just to be safe).
This isn’t a pressing need for me, so don’t let me take from your time. You can just regard this as an fyi.
Kyle
On Mar 8, 2016, at 1:34 AM, René Schwaiger sanssecours@f-m.fm wrote:
Hi Kyle,
On 07 Mar 2016, at 15:32 , Kyle Johnson kbj@linguist.umass.edu wrote:
I’ve never gotten the watch command to work in the LaTeX bundle, and I’d like to see if I can’t troubleshoot it. I’m running OS 10.11.3 and TextMate 2 beta .9. I typeset through the ps->dvips route. When I run the Watch Document command I get this error:
The command `osascript -e tell application "XQuartz" to launch' failed (error code 1).
Can someone point me to the next step?
if you translate a document via the engine `latex`, then “Watch Document” uses `gv` as previewer. Since `gv` is an “X.org” programm, you first need to install “XQuartz“ [XQuartz] for this to work. After that, install `gv` via “Homebrew” [Homebrew]. Just open Terminal and paste the following two commands:
brew tap homebrew/x11 brew install gv
After you followed the steps above, you can test your setup. Just paste the following text:
%!TEX TS-program = latex \documentclass{article}
\begin{document} Hello, World! \end{document}
into a new TextMate document, save it as `test.tex`, and invoke “Watch Document”.
Thanks, Kyle
Kind regards, René
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Kyle,
On 08 Mar 2016, at 14:41 , Kyle Johnson kbj@linguist.umass.edu wrote:
Thanks René,
As always, you are very helpful (and fast).
Watch Document, when using the latex engine, cannot use Skim as previewer, if I’m understanding you correctly. Is that right?
yes, that is right.
As far as I can tell Skim always converts `.ps` files into PDF before it displays them. `gv` handles `.ps` files natively.
“Typeset & View (PDF)” does not use `gv`, but converts the `.ps` file into PDF. That is, why it is able to use Skim or any of the other PDF previewers. We could use this approach in “Watch Document” too.
Do you think that would be a good idea? Can anybody think of a drawback of the additional conversion (except for the higher CPU usage)?
I’ve installed XQuartz and homebrew, and with homebrew, I’ve installed gv. Those installations went smoothly, so far as I can see. When I run Watch Document on your test file, it loads up XQuartz and gv, and then fails with this error:
Unknown device: x11 sfopen: gs_parse_file_name failed. sfopen: gs_parse_file_name failed. ./base/gsicc_manage.c:1084: gsicc_open_search(): Could not find default_gray.icc | ./base/gsicc_manage.c:1690: gsicc_set_device_profile(): cannot find device profile Unrecoverable error: unknownerror in .special_op Operand stack: defaultdevice Unrecoverable error: undefined in .uninstallpagedevice Operand stack: defaultdevice
Interestingly, I had the same error before I wrote my reply. I solved it by reinstalling `gv`:
brew reinstall gv
Maybe that helps in your situation too.
I rebooted after installing XQuartz (and gv, just to be safe).
This isn’t a pressing need for me, so don’t let me take from your time. You can just regard this as an fyi.
Kyle
Kind regards, René