Re: Syncing skim with LyX

2022-07-19 Thread Stephan Witt
> Am 20.07.2022 um 00:57 schrieb tush via lyx-users :
> 
> 
> 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 
>  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@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-19 Thread Udicoudco
Hi Ehud,

Do you have a file called "lyxeditor.cmd" in lyx's bin folder? I'm not sure
it is delivered with lyx installation. If not, create one with the content
specified at the Okular section from the link you have sent (see attached
photo).

[image: image.png]

Best Regards,
Udi



‫
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-19 Thread tush via lyx-users
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?

Thanks very much for your help!
--- Original Message ---
On Saturday, July 16th, 2022 at 11:22 PM, Ehud Behar 
 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@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-19 Thread tush via lyx-users
I don't export to tex and then to pdf, I said that just to clarify that .lyx is 
one type of a file extension, .tex is another one, and .pdf is yet another 
file..

By the way, what does the $$i option that you added to "open -a Skim.app" do?

With the help of the other members my LyX is set to the first way you 
described. Thanks very much.


--- Original Message ---
On Tuesday, July 19th, 2022 at 11:19 PM, Dr Eberhard W Lisse  
wrote:


>
>
> Ehud,
>
> First of all why compile to tex and then to pdf, instead of doing this
> directly?
>
>
> There are however (at least) two ways of doing this:
>
> First look in the
>
> Document
>
> pulldown for
>
> View [PDF (LuaTeX)]
>
> can be also
>
> [PDF (pdflatex)]
>
> which is tied (in my case) to CMD-R
>
>
> Then in
>
> Perferences -> File Handling -> File Formats -> Format:
>
>
> look for
>
> [PDF (LuaTeX)]
>
> and set
>
> Viewer: [Custom] [open -a Skim.app $$i]
>
> click
>
> Apply
>
> and perhaps do same for
>
> [PDF (pdflatex)]
>
>
> You can also select an PDF in the finder and then enter
>
> CMD-I
>
> which will open a window with lots of information and you usually would
> find
>
> Open With: ...
>
> showing
>
> Preview.
>
> You can change that in the Pulldown to Skim for this (single) file or
> for all files, so that double clicking on a PDF will open it with skim,
> and the default method of opening PDFs in Skim would also change to
> skim.
>
> I do the latter, as I use skim for almost every PDF.
>
> greetings, el
>
>
>
> On 2022-07-17 00:22 , Ehud Behar via lyx-users 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@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-19 Thread Dr Eberhard W Lisse

Ehud,

First of all why compile to tex and then to pdf, instead of doing this
directly?


There are however (at least) two ways of doing this:

First look in the

Document

pulldown for

View [PDF (LuaTeX)]

can be also

[PDF (pdflatex)]

which is tied (in my case) to CMD-R


Then in

Perferences -> File Handling -> File Formats -> Format:

look for

[PDF (LuaTeX)]

and set

Viewer: [Custom] [open -a Skim.app $$i]

click

Apply

and perhaps do same for

[PDF (pdflatex)]


You can also select an PDF in the finder and then enter

CMD-I

which will open a window with lots of information and you usually would
find

Open With: ...

showing

Preview.

You can change that in the Pulldown to Skim for this (single) file or
for all files, so that double clicking on a PDF will open it with skim,
and the default method of opening PDFs in Skim would also change to
skim.

I do the latter, as I use skim for almost every PDF.

greetings,  el



On 2022-07-17 00:22 , Ehud Behar via lyx-users 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@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users