On Sun, Aug 14, 2022 at 11:43:51AM +0200, Stephan Witt wrote: > > Am 13.08.2022 um 17:34 schrieb Pavel Sanda <sa...@lyx.org>: > > > > On Sat, Aug 13, 2022 at 02:41:30AM +0200, Enrico Forestieri wrote: > >>> 2) > >>> The LFUN_FORWARD_SEARCH implementation relies on the correct check in > >>> getStatus. The patch adds the explicit check for presence of current > >>> buffer and active output_sync state. Regarding the latter I???m not sure > >>> if someone is unhappy with it. In case of preamble code to activate > >>> synctex the LFUN_FORWARD_SEARCH would work but LyX doesn???t know that > >>> and it???s disabled. What is your opinion here? > >> > >> You can always initiate a forward search by simply defining the pdflatex > >> converter as "pdflatex --synctex=1 $$i", without any modification to the > >> sources. Now I have lost this possibility. > > > > Apart from reverting that maybe adding optional "force" argument ot the lfun > > would solve it for you? > > Pavel > > I’ve pushed an enhancement with converter check instead of revert it.
Works well. Thank you! Only a suggestion: I would simply check for "-synctex=" rather than "--synctex=1" because the double dash is optional and any value different from 0 would do (I don't think someone would specify it). $ pdflatex --help | grep -A1 synctex -synctex=N Generate SyncTeX data for previewers if nonzero. -- Enrico -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel