Syncing skim with LyX

Stephan Witt st.witt at gmx.net
Fri Jul 22 19:11:52 UTC 2022


Am 20.07.2022 um 22:18 schrieb ehud.behar at protonmail.com <mailto:ehud.behar at protonmail.com>:
> 
> Hmm, it doesn't work.
> 
> Do you mind if we make a chat conversation or a zoom call regarding this?

Sorry, I don’t have the time for that. Instead I made some screen shots to help you to activate forward search first. This is the prerequisite for backward search.

1. You have to enable the „synchronize with output“ option in preferences.



2. Compile the document and wait for Skim to open.



3. Use the LyX menu item for Forward search.



4. Skim should raise and highlight the current LyX cursor position



Beware: the is one question by Mac OS (only once!) you have to agree:



If this works backward search is probably working too.

BR, Stephan

> 
> I am afraid I am missing some details here that would be very difficult and time consuming to track down in the mailing list.
> 
> Thanks very much again,
> 
> Ehud
> 
> 
> ------- Original Message -------
> On Wednesday, July 20th, 2022 at 9:00 PM, Stephan Witt <st.witt at gmx.net <mailto:st.witt at gmx.net>> wrote:
> 
> 
>> 
>> 
>> Am 20.07.2022 um 21:38 schrieb ehud.behar at protonmail.com <mailto:ehud.behar at protonmail.com>:
>> 
>>>> Use Cmd-Shift-Click to mark the text fragment around the clicked word in LyX.
>>> 
>>> You mean, select some word in LyX and click it while pressing on the Cmd AND Shift keyboard buttons? Well, it doesn't work.
>> 
>> 
>> I mean you should use Command-Shift-Click (mouse click with Command and Shift key pressed) in Skim.
>> 
>> With synctex enabled the PDF-output has special markers to identify the TeX source code line of the TeX source files matching the PDF-text. The position of the mouse click in Skim is used by Skim to lookup the current TeX source code line of the TeX source file. This information is passed to LyX with the help of the lyxeditor script.
>> 
>> In case of a match in LyX with a document in any window of LyX the match is selected. On a Mac the LyX application is not raised top-most by itself. The osascript is used to raise the LyX application window.
>> 
>> BR, Stephan
>> 
>>> I am attaching a screenshot of skim prefs. Maybe I have set up something incorrectly.
>>> 
>>> Thanks very much!
>>> 
>>> ------- Original Message -------
>>> On Wednesday, July 20th, 2022 at 6:01 AM, Stephan Witt st.witt at gmx.net <mailto:st.witt at gmx.net> wrote:
>>> 
>>>>> Am 20.07.2022 um 00:57 schrieb tush via lyx-users lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>:
>>>> 
>>>>> With the help of Stephan Witt and Udicoudco, I am now using Skim to open the pdf files produced by LyX. But I want to add SyncTeX to that.
>>>>> 
>>>>> I configured LyX and Skim according to what is written in the wiki page (https://wiki.lyx.org/LyX/SyncTeX <https://wiki.lyx.org/LyX/SyncTeX>) but I am not sure if everything is set up correctly or no, since I don't know how to initiate SyncTeX to work. I double clicked a word of text in Skim and nothing happened (no change of active window to LyX).
>>>>> 
>>>>> How does one uses SyncTeX with skim?
>>>> 
>>>> Use Cmd-Shift-Click to mark the text fragment around the clicked word in LyX. The LyX wiki mentions the arguments for the Skim part with osascript. This is required with LyX 2.3 to get the LyX window frontmost at the same time. The lyxeditor script is part of the application bundle LyX on mac.
>>>> 
>>>> BR, Stephan
>>>> 
>>>> PS: the readers on this list prefer the use of inline citation or bottom post in mails.
>>>> 
>>>>> Thanks very much for your help!
>>>>> ------- Original Message -------
>>>>> On Saturday, July 16th, 2022 at 11:22 PM, Ehud Behar ehud.behar at protonmail.com <mailto:ehud.behar at protonmail.com> wrote:
>>>>> 
>>>>>> I am using macOS and until now, after compiling the lyx file (to tex and then) to a pdf file, the output was opened by the default pdf viewer (macOS Preview, on my computer).
>>>>>> 
>>>>>> I want to use the pdf viewer "Skim" to open the compiled pdf, with mainly the advantage that there are no page jumps after making changes to the document.
>>>>>> 
>>>>>> What are the steps needed to change this in LyX in order to implement skim as the pdf viewer?
>>>>>> 
>>>>>> The closest thing I came across until now is appendix C in the User manual, section File Handling, and section 3 in the customization manual, "The Preferences dialog".
>>>>>> 
>>>>>> It was a first reading and I haven't grasped everything, but at the moment I am not sure if my answer is covered there at all.
>>>>>> 
>>>>>> Therefore my question is if those are the places to look at all, and if someone can maybe redirect me to a short guide for that?
>>>>> 
>>>>> --
>>>>> lyx-users mailing list
>>>>> lyx-users at lists.lyx.org <mailto:lyx-users at lists.lyx.org>
>>>>> http://lists.lyx.org/mailman/listinfo/lyx-users
>>>>> <skim pref.png>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-22 um 20.49.21.jpg
Type: image/jpeg
Size: 40175 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-22 um 20.47.07.jpeg
Type: image/jpeg
Size: 63992 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0001.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-22 um 20.47.17.jpg
Type: image/jpeg
Size: 21975 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-22 um 20.49.43.jpg
Type: image/jpeg
Size: 35847 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-22 um 20.45.46.jpg
Type: image/jpeg
Size: 33504 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220722/be72b876/attachment-0007.jpg>


More information about the lyx-users mailing list