Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a LaTeX source code compiled with synctex=1. If I open it in TeXShop and I can click in the viewer on a certain word then I am navigated exactly on the word in the source code. By contrast, if I open it in TeXworks and click on the same word, the whole paragraph containing the word is highlighted, which is a bit confusing when the paragraphs are quite long.

Any ideas how to force TeXworks to highlight only the particular word and not the whole paragraph?

share|improve this question

1 Answer 1

SyncTeX only includes stores information on a line-by-line basis in the source, not to the granulatiry of individual letters or words. It is possible for editors to set up a search-based approach to give better synchronisation, as for example discussed in forward-inverse search by synctex in a precison of a single word. However, that is not necessarily trivial!

For this reason (and others), many experiences TeX authors write their source with 'hard' line breaks, rather than using the word wrap feature of their editor. This means that synchronisation will match to a single line. With a typical line length of 70-80 characters, this is usually sufficiently accurate for real-world use.

share|improve this answer
    
One of the keyboard shortcuts I use more often is Command-I that I remapped to "wrap paragraph" (that is, use hard wrapping). –  egreg Mar 31 '12 at 14:41
    
"It is possible for editors to set up a search-based approach to give better synchronisation, as for example discussed in ...": How? The question now has a bounty, in case you have the answer... –  krlmlr Jun 13 '12 at 19:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.