TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
694 stars 127 forks source link

Follow focus #246

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Synchronize the pdf window with the actual mouse location in the current text.
The synchronization process is triggered when the selection range changes.

Original issue reported on code.google.com by laurens....@gmail.com on 4 Dec 2009 at 2:06

GoogleCodeExporter commented 9 years ago
If I get you right, this is not possible at the moment. SyncTeX only provides
paragraph lookup, and cannot identify single words or characters.

Original comment by st.loeffler on 4 Dec 2009 at 2:40

GoogleCodeExporter commented 9 years ago
I understood the request as meaning that the PDF view would automatically 
switch pages/scroll (and perhaps 
highlight the relevant section?) as needed to follow the current cursor 
position in the source, not necessarily for 
more precise location. This seems like it should be feasible, though exactly 
how it'll "feel" in practice is a bit 
unclear to me.

Original comment by jfkth...@gmail.com on 2 Jan 2010 at 1:21

GoogleCodeExporter commented 9 years ago
In r.532, I've added an experimental "Auto-Follow Focus" option - see the 
Window menu of the source 
document to turn this on. I'm not happy with this as user interface, though; 
suggestions for both better 
terminology and where to put the option would be welcome.

(So I'd suggest not bothering to translate it just yet, for any localizers who 
are watching!)

When this option is enabled (it's off by default, and there's not currently a 
persistent pref for it), the preview 
should automatically follow the position of the cursor in the source window. 
The option currently applies only 
to the individual source window where it's selected; one question I have 
(assuming we want this at all) is 
whether it should be a global application setting instead?

Original comment by jfkth...@gmail.com on 2 Jan 2010 at 10:12

GoogleCodeExporter commented 9 years ago
I'd really like to see a persistent preference for this option. I suggest to 
place it into (Edit -) Preferences - Preview - Global preview options (NEW) - 
Auto-follow focus (NEW).

Original comment by thomas.t...@chello.at on 28 Jun 2010 at 8:36

GoogleCodeExporter commented 9 years ago
I'm not getting synchronization to work at all, in Linux or Windows.  I may 
open a new ticket on this.

Original comment by ariel.ba...@gmail.com on 19 Aug 2010 at 7:23

GoogleCodeExporter commented 9 years ago
@ariel: yeah, a new ticket would probably be a good idea. It would be excellent 
if could also answer the following questions there:
- What TeX distribution do you use? What version?
- Is a .synctex file created alongside the output file?
- Is there any message displayed in the preview's status bar when you open a 
file? If yes, what does it say?
- Does synctex work at all (using, e.g., ctrl+click)?

Original comment by st.loeffler on 26 Aug 2010 at 3:26