Re: Syncing skim with LyX

2022-07-27 Thread Stephan Witt
Am 27.07.2022 um 00:45 schrieb ehud.be...@protonmail.com:
> 
> Wonderful
> 
> Synctex indeed was not activated. I inserted \synctex=-1 to the document 
> preamble and a synctex.gz file was generated and back and forth jumps work 
> fine now.
> 
> Actually, after a few checks, I prefer to not write this command in the 
> document preamble, but rather to insert it in Doc Settings->Formats->Custom 
> Macro \synctex=-1

Ok, but why is it needed?

Either you’re not using pdflatex or you didn’t do the first step of my recipe 
(enable the „synchronize with output“ option in preferences). 

Stephan

> 
> Your help is very much appreciated.
> 
> Thanks a lot!
> 
> 
> 
> --- Original Message ---
> On Tuesday, July 26th, 2022 at 8:50 PM, Stephan Witt  wrote:
> 
> 
>> 
>> 
>> Am 25.07.2022 um 22:35 schrieb ehud.be...@protonmail.com:
>> 
>>> Stephan Witt,
>>> 
>>> Thank you very much for your detailed reply.
>>> 
>>> Only now did I try it.
>>> 
>>> Alas, it doesn't work.
>>> 
>>> I wrote a simple 2 pages document in LyX. A few words and then 
>>> \cleardoublepage and the a few words.
>>> 
>>> I select a word in LyX and go click Navigate->Foreword search
>>> 
>>> and Skim is indeed raised but I can't see any red dot as the one seen in 
>>> your screenshot.
>>> 
>>> Any idea what is else is there to fix?
>> 
>> 
>> Ok, it should work. Let’s see how to find the problem with your setup.
>> 
>> First, it’s not needed to make some selection in LyX to get forward-search 
>> working.
>> 
>> After doing the pdflatex run (you’re using pdflatex too, are you?) you can 
>> check the LaTeX log file and there is a button „Open Containing Directory“. 
>> Please open it and check the generated TeX file for the line with 
>> "\synctex=-1“ and a file named like your document plus .synctex.gz
>> 
>> I made the experiment and it looks like that:
>> 
>> $ ls -l 
>> /private/var/folders/y8/l_k5f2ms4rngwbwvt9jp53hwgt/T/lyx_tmpdir.TRMAcnQibDFe/lyx_tmpbuf2
>> total 72
>> -rw-r--r-- 1 stephan staff 88 26 Jul 10:08 newfile1.aux
>> -rw-r--r-- 1 stephan staff 4177 26 Jul 10:08 newfile1.log
>> -rw-r--r--@ 1 stephan staff 11735 26 Jul 10:08 newfile1.pdf
>> -rw-r--r-- 1 stephan staff 627 26 Jul 10:08 newfile1.synctex.gz
>> -rw-r--r-- 1 stephan staff 285 26 Jul 10:08 newfile1.tex
>> -rw-r--r-- 1 stephan staff 1094 26 Jul 10:08 newfile1.tex.dep-pdf
>> 
>> The difference between synctex active and not ist that line only:
>> 
>> $ diff -u *synctex.tex
>> --- nosynctex.tex 2022-07-26 10:08:23.0 +0200
>> +++ synctex.tex 2022-07-26 10:09:34.0 +0200
>> @@ -5,6 +5,7 @@
>> \documentclass[english]{article}
>> \usepackage[T1]{fontenc}
>> \usepackage[latin9]{inputenc}
>> +\synctex=-1
>> \usepackage{babel}
>> \begin{document}
>> Zeile 1
>> 
>> This line has to be present to get forward-search (and backward-search) 
>> working.
>> 
>> BR, Stephan
>> 
>>> --- Original Message ---
>>> On Friday, July 22nd, 2022 at 8:11 PM, Stephan Witt st.w...@gmx.net wrote:
>>> 
 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

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


Re: Syncing skim with LyX

2022-07-26 Thread Stephan Witt
Am 25.07.2022 um 22:35 schrieb ehud.be...@protonmail.com:
> 
> Stephan Witt,
> 
> Thank you very much for your detailed reply.
> 
> Only now did I try it.
> 
> Alas, it doesn't work.
> 
> I wrote a simple 2 pages document in LyX. A few words and then 
> \cleardoublepage and the a few words.
> 
> I select a word in LyX and go click Navigate->Foreword search
> 
> and Skim is indeed raised but I can't see any red dot as the one seen in your 
> screenshot.
> 
> Any idea what is else is there to fix?

Ok, it should work. Let’s see how to find the problem with your setup.

First, it’s not needed to make some selection in LyX to get forward-search 
working.

After doing the pdflatex run (you’re using pdflatex too, are you?) you can 
check the LaTeX log file and there is a button „Open Containing Directory“. 
Please open it and check the generated TeX file for the line with "\synctex=-1“ 
and a file named like your document plus .synctex.gz

I made the experiment and it looks like that:

$ ls -l 
/private/var/folders/y8/l_k5f2ms4rngwbwvt9jp53hwgt/T/lyx_tmpdir.TRMAcnQibDFe/lyx_tmpbuf2
total 72
-rw-r--r--  1 stephan  staff 88 26 Jul 10:08 newfile1.aux
-rw-r--r--  1 stephan  staff   4177 26 Jul 10:08 newfile1.log
-rw-r--r--@ 1 stephan  staff  11735 26 Jul 10:08 newfile1.pdf
-rw-r--r--  1 stephan  staff627 26 Jul 10:08 newfile1.synctex.gz
-rw-r--r--  1 stephan  staff285 26 Jul 10:08 newfile1.tex
-rw-r--r--  1 stephan  staff   1094 26 Jul 10:08 newfile1.tex.dep-pdf

The difference between synctex active and not ist that line only:

$ diff -u *synctex.tex
--- nosynctex.tex   2022-07-26 10:08:23.0 +0200
+++ synctex.tex 2022-07-26 10:09:34.0 +0200
@@ -5,6 +5,7 @@
 \documentclass[english]{article}
 \usepackage[T1]{fontenc}
 \usepackage[latin9]{inputenc}
+\synctex=-1
 \usepackage{babel}
 \begin{document}
 Zeile 1

This line has to be present to get forward-search (and backward-search) working.

BR, Stephan

> --- Original Message ---
> On Friday, July 22nd, 2022 at 8:11 PM, Stephan Witt  wrote:
> 
>> 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
> 

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


Re: Syncing skim with LyX

2022-07-25 Thread tush via lyx-users
Stephan Witt,

Thank you very much for your detailed reply.
Only now did I try it.

Alas, it doesn't work.

I wrote a simple 2 pages document in LyX. A few words and then \cleardoublepage 
and the a few words.

I select a word in LyX and go click Navigate->Foreword search

and Skim is indeed raised but I can't see any red dot as the one seen in your 
screenshot.

Any idea what is else is there to fix?

--- Original Message ---
On Friday, July 22nd, 2022 at 8:11 PM, Stephan Witt  wrote:

> 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-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-20 Thread Stephan Witt
Am 20.07.2022 um 21:38 schrieb ehud.be...@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  
> wrote:
> 
> 
>> 
>> 
>>> Am 20.07.2022 um 00:57 schrieb tush via lyx-users lyx-users@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.be...@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@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-20 Thread tush via lyx-users
> 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 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  wrote:


>
>
> > Am 20.07.2022 um 00:57 schrieb tush via lyx-users lyx-users@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.be...@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@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-20 Thread tush via lyx-users
Thanks a lot.

At the moment I am trying to get SyncTeX working on macOS. I don't have a 
folder with the name "bin" in "/Applications/LyX.app/Contents". I do have such 
folder in Program files in windows.

I rather prefer Sumatra as the pdf viewer, not Okular. Should I follow these 
instructions anyway?
--- Original Message ---
On Wednesday, July 20th, 2022 at 12:42 AM, Udicoudco  
wrote:

> 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.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-20 Thread Stephan Witt
Am 20.07.2022 um 14:46 schrieb Dr Eberhard Lisse :
> 
> Not all do.

Yes, I know at least one. :-)-O

But it’s part the LyX-Mailing list netiquette to do so.

https://wiki.lyx.org/FAQ/ListNetiquette

> 
> On 20/07/2022 07:01, Stephan Witt wrote:
> [...]
>> PS: the readers on this list prefer the use of inline citation or
>> bottom post in mails.[...]
> -- 
> To email me replace 'nospam' with 'el'
> 
> -- 
> 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-20 Thread Dr Eberhard Lisse



Not all do.

On 20/07/2022 07:01, Stephan Witt wrote:
[...]

PS: the readers on this list prefer the use of inline citation or
bottom post in mails.[...]

--
To email me replace 'nospam' with 'el'

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


Re: Syncing skim with LyX

2022-07-20 Thread Dr Eberhard Lisse



Ehud,

Search in Help -> Customization for Copiers (or Converters) :-)-O

Some variables are there defined and $$i is the input file name.

greetings, el


On 20/07/2022 00:43, tush via lyx-users wrote:
[...]

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.

[...]
--
To email me replace 'nospam' with 'el'

--
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 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


Re: Syncing skim with LyX

2022-07-17 Thread Udicoudco
‫

>
>
>
> >What I tried is to to set in Preferences->Outout->General: PDF command
> "/Applications/Skim.app" as seen in the picture.
>
> >And also adding "Contents/SharedSupport/displayline $$n $$o $$t" after
> "Skim.app/".
>
> >But everything is just the same. LyX views the rendered file with macOS
> Preview.
>
> >Any help?
>

Hi Ehud,

I think you should go to "Tools->Preferences>File Handling->File Formats",
over there select the format you are compiling with and then choose the
application you want in the "viewer" menu  (if the application is not in
the menu you need to add the path of the exe file of the pdf viewer to the
PATH prefix in "Tools->Preferences->Path" and then in
"Tools->Preferences>File Handling->File Formats" select in viewer custom
and write the path to the exe of the pdf viewer in the text field that will
open up). I've attached photos of my configuration to compile with PDF
(XeTeX) (my viewer is sumatrapdf).
[image: image.png]
[image: image.png]
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Syncing skim with LyX

2022-07-16 Thread sovhist via lyx-users
> 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?
> --

Hello.

There is guide how to use SyncTeX with Skim:
https://wiki.lyx.org/LyX/SyncTeX#toc4 
I don't own Mac so can't say about Skim, but instructions about other
viewers worked for me.

Hope that'll help,

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