Syncing skim with LyX

Stephan Witt st.witt at gmx.net
Wed Jul 20 20:00:53 UTC 2022


Am 20.07.2022 um 21:38 schrieb 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> wrote:
> 
> 
>> 
>> 
>>> Am 20.07.2022 um 00:57 schrieb tush via lyx-users 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) 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 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
>>> http://lists.lyx.org/mailman/listinfo/lyx-users
> <skim pref.png>



More information about the lyx-users mailing list