[texworks] Character-level synchronization

Alain Delmotte esperanto at swing.be
Sun Jul 13 09:06:31 CEST 2014

Hi Stefan,

Le 12/07/2014 22:55, Stefan Löffler a écrit :
> Hi,
> During a day on the train, I started implementing character-level
> synchronization between the source and the pdf. Think of it as SyncTeX
> with improved accuracy (actually, it is SyncTeX with some additional
> string searching). It should basically take you:
>   - from tex to pdf to the right word, and
>   - from pdf to tex to the right character.
> (the reason tex > pdf is not character-sensitive comes from the fact
> that it is rather difficult to see a single highlighted "i" or ".";
> besides, in the tex > pdf direction, one conceivable just wants to check
> the result, whereas in the pdf > tex direction, one might actually click
> on the point one wants to change).

Perhaps an intermediate system would be preferable: 
(sub)phrase-level synchronisation.

> Of course, no new feature comes without limitations. Character-level
> synchronization does not work with lines consisting of extensive,
> complex commands, and also not in math mode (because then there is no
> 1:1 relation easily recognizable without going through the whole tex'ing
> process). In those cases that the new method does not work, it simply
> highlights the whole corresponding line as before.

The limitations are important, but of course should be tested.

> The new builds should be available or become available soon. Please test.
> Cheers,
> Stefan


More information about the texworks mailing list