TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use TeX Live 2011, WinEdt 6.0 and SumatraPDF, the inverse and forward PDF search can only mark and navigate to the paragraph, how to make them point to the line ?

share|improve this question
Have you written the entire paragraph on a single line in your .tex file? You can see the line numbers by selecting View --> Line numbers. – Torbjørn T. Dec 4 '11 at 12:59
@Torbjørn T. yes, I write the entire paragraph on a single line, it's word wrap. That's the reason. Thanks. So I should break the line by hand, then the inverse search can mark the line. – Pig Cry Dec 4 '11 at 14:14
Yep, that's right. I'll add an answer. – Torbjørn T. Dec 4 '11 at 14:15
up vote 8 down vote accepted

In a text file, lines are separated by a newline character, which you get by hitting enter. Even if a single line is broken by the editor (word wrap), as far as SyncTeX is concerned, it is still just a single line.

Take the following screenshot from WinEdt. You'll see that even though the first part is divided over several lines in the editor, everything is on line number four of the file.

enter image description here

The above predictably gives this output:

enter image description here

If I in Sumatra double click anywhere in the "All of this text is written on the same line"-part, WinEdt highlights line four:

enter image description here

If I double click "This is on a new line", I get

enter image description here

and double clicking the last sentence gives

enter image description here

Many prefer either creating a new line for every 65-80 characters, or having one sentence per line, which is beneficial both for synchronization and version control.

share|improve this answer

Your Answer


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.