Re: Some thoughts on forward search UI

2010-05-24 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > ok here is the patch. i named the variables forward_ but actually > this is for both reverse/forward search. i just dont know how to call > them in a better way. output_sync_? Jürgen

Re: Some thoughts on forward search UI

2010-05-24 Thread Pavel Sanda
Pavel Sanda wrote: > this is for both reverse/forward search. i just dont know how to call > them in a better way. this would be the code for the icon part, again candidates for better naming are welcomed. > > pavel diff --git a/lib/ui/stdtoolbars.inc b/lib/ui/stdtoolbars.inc index 794f050..1da8

Re: Some thoughts on forward search UI

2010-05-24 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Pavel Sanda wrote: > > attached preliminary patch which adds buffer param for enabling forward > > search. if you agree with this direction i will add lyx2lyx routines, add > > advanced comboedit for advanced users to set their own preamble command > > and toggling icon

Re: Some thoughts on forward search UI

2010-05-24 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > attached preliminary patch which adds buffer param for enabling forward > search. if you agree with this direction i will add lyx2lyx routines, add > advanced comboedit for advanced users to set their own preamble command > and toggling icon into update toolbar. Looks good fro

Re: Some thoughts on forward search UI

2010-05-24 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > > > > i was thinking about this too... what about some combo in settings > > > > which provides one of the "include srcltx package"/"add > > > > --sync-tex=1"/"add src-specials" > > I would simply provide an option "enable forward/reverse search" and let LyX > care abo

Re: Some thoughts on forward search UI

2010-04-19 Thread Jürgen Spitzmüller
Enrico Forestieri wrote: > The same limitations apply to scrltx. See: > http://www.tug.org/TUGboat/Articles/tb29-3/tb93laurens.pdf I see. Then the respective warning just needs to be extended. Jürgen

Re: Some thoughts on forward search UI

2010-04-19 Thread Enrico Forestieri
On Mon, Apr 19, 2010 at 08:06:10AM +0200, Jürgen Spitzmüller wrote: > The manual already contains this warning: > "Note that PDFSync might affect the output layout of your document. It is > therefore advised to disable PDFsync for final documents." > > I'm not aware of similar problems with scrl

Re: Some thoughts on forward search UI

2010-04-19 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > if there is only info like "pdf1/2/3" then there is no problem (is it so?). Yes. Jürgen

Re: Some thoughts on forward search UI

2010-04-19 Thread Pavel Sanda
J?rgen Spitzm?ller wrote: > Pavel Sanda wrote: > > i must have missed it. we store any info/params about launching 3rd party > > apps in .lyx file now? this would be security issue which is best to be > > avoided... > > We store the the preferred output format (which is bound to a specific > view

Re: Some thoughts on forward search UI

2010-04-19 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > i must have missed it. we store any info/params about launching 3rd party > apps in .lyx file now? this would be security issue which is best to be > avoided... We store the the preferred output format (which is bound to a specific viewer) and the preferred bibtex/index gener

Re: Some thoughts on forward search UI

2010-04-19 Thread Pavel Sanda
J?rgen Spitzm?ller wrote: > Pavel Sanda wrote: > > its also not clear whether it should be in document or lyx preferences > > Since we have a per-doc setting for viewer and preferred chain in 2.0, why > not > both? i must have missed it. we store any info/params about launching 3rd party apps i

Re: Some thoughts on forward search UI

2010-04-19 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > its also not clear whether it should be in document or lyx preferences Since we have a per-doc setting for viewer and preferred chain in 2.0, why not both? Jürgen

Re: Some thoughts on forward search UI

2010-04-19 Thread Pavel Sanda
J?rgen Spitzm?ller wrote: > > I would simply provide an option "enable forward/reverse search" and let LyX > care about the details, unless the user edits some advanced settings, > > Clearly the synctex approach is to be favoured. scrltx is just a fallback for > older distros. ok. its also not

Re: Some thoughts on forward search UI

2010-04-18 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > > > Jürgen Spitzmüller wrote: > > > > * This should also take care about the required other selections. > > > > I.e., it should enable synctex (or, if this is not available, an > > > > alternative way to add src specials) > > > > > > > > > > > > i was thinking about this too.

Re: Some thoughts on forward search UI

2010-04-18 Thread Enrico Forestieri
On Sun, Apr 18, 2010 at 11:43:15PM +0200, Pavel Sanda wrote: > Enrico Forestieri wrote: > > On Sun, Apr 18, 2010 at 11:14:16PM +0200, Pavel Sanda wrote: > > > > > Jürgen Spitzmüller wrote: > > > > * This should also take care about the required other selections. I.e., > > > > it > > > > should

Re: Some thoughts on forward search UI

2010-04-18 Thread Pavel Sanda
Enrico Forestieri wrote: > On Sun, Apr 18, 2010 at 11:14:16PM +0200, Pavel Sanda wrote: > > > Jürgen Spitzmüller wrote: > > > * This should also take care about the required other selections. I.e., > > > it > > > should enable synctex (or, if this is not available, an alternative way > > > to a

Re: Some thoughts on forward search UI

2010-04-18 Thread Enrico Forestieri
On Sun, Apr 18, 2010 at 11:14:16PM +0200, Pavel Sanda wrote: > Jürgen Spitzmüller wrote: > > * This should also take care about the required other selections. I.e., it > > should enable synctex (or, if this is not available, an alternative way to > > add > > src specials) > > i was thinking ab

Re: Some thoughts on forward search UI

2010-04-18 Thread Pavel Sanda
Enrico Forestieri wrote: > > Or provide both: > > > > "Go here in PDF" > > "Go here in DVI" both renames are fine with me. > > (only visible, of course, if the respective format has been viewed). _and_ usage of synctex/etc has been requested by user. > That would be fine with me. Of course, th

Re: Some thoughts on forward search UI

2010-04-18 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > * This should also take care about the required other selections. I.e., it > should enable synctex (or, if this is not available, an alternative way to > add > src specials) i was thinking about this too... what about some combo in settings which provides one of the

Re: Some thoughts on forward search UI

2010-04-18 Thread Enrico Forestieri
On Sun, Apr 18, 2010 at 12:06:00PM +0200, Jürgen Spitzmüller wrote: > Enrico Forestieri wrote: > > > * Forward search should be aware of different chains. If a have viewed > > > both DVI and PDF, forward search only applies to DVI. There should be a > > > way to address the PDF viewer without res

Re: Some thoughts on forward search UI

2010-04-18 Thread Jürgen Spitzmüller
Enrico Forestieri wrote: > > * Forward search should be aware of different chains. If a have viewed > > both DVI and PDF, forward search only applies to DVI. There should be a > > way to address the PDF viewer without restarting LyX. > > We could select dvi or pdf depending on a most recent times

Re: Some thoughts on forward search UI

2010-04-18 Thread Enrico Forestieri
On Sun, Apr 18, 2010 at 10:48:27AM +0200, Jürgen Spitzmüller wrote: > * I think we should provide a switch "activate forward search" that selects a > working syntax for the selected viewer(s), and keep what we have now as > customization possibility. Yes. That means associating a forward search