On Tue, Jul 22, 2008 at 12:24 PM, Ivan Werning <[EMAIL PROTECTED]> wrote:

>
> On Jul 22, 2008, at 12:07 AM, Bennett Helm wrote:
>
>>
>> I can get it working if I specify in Skim's preferences the complete path
>> to lyxeditor by selecting a custom preset for PDFSync support:
>>
>> /Applications/LyX.app/Contents/MacOS/lyxeditor
>>
>> If that works for you, then it looks like the problem is in Skim, and the
>> bug should be reported to them.
>>
>> Bennett
>>
>
> I finally got it working, combining what you said (adding the full path)
> and changing the way Skim calls lyxeditor. Skim's default is
>    "%file" %line
> but that does not work for me. I removed the quotes and it works with:
>   %file %line
> I have no idea why.
>
> Bennett, if you could check what arguments you have set up in Skim that
> would be helpful. I could then report to the Skim developers with more than
> my own experience. Thanks


Actually, this is not a bug in Skim, as far as I can see.

I have been testing LyX-1.6, and so /Applications/LyX.app on my system is a
developmental build of LyX-1.6. There's a line in the lyxeditor script that
is supposed to point to possible LyX user folders in ~/Library/Application
Support/, but it currently does not point to the new (for 1.6) LyX-1.6
folder there. Correcting that makes the default setting in Skim work for me.
Similarly, going back to LyX-1.5 works for me as well -- with the default
Skim settings.

Note, by the way, that Skim assumes it's dealing with a .tex file and it
passes the complete path to the .tex file to lyxeditor. So what it actually
calls (when I fill in the complete path to lyxeditor) is something like:

/Applications/LyX.app/Contents/MacOS/lyxeditor /path/to/foo.tex 123

(Even when I have the quotes around %file, I don't see the quotes in what it
sends to lyxeditor, but I might be doing something wrong.) That means your
worries about the .lyx file and complete path are, I believe, misplaced.

Nonetheless, I can't yet explain why it fails to work for you with the
default Skim settings or why you need to remove the quotes from %file to get
it to work. Do you have LyX at /Applications/LyX.app? What is the actual
filename of the file you are testing? (Does it have any unusual characters
in it?) Have you specified a LyX temporary directory other than the default
(/tmp)? If so, what is the complete path to it?

Bennett

Reply via email to