Hello.
I'm using WinEdt with "Soft wrapping mode". And when i typing a long string it wraps on the next line and WinEdt giving that line a next number. But this is the same line, just wrapped! Thus when receiving messages from latex about line numbers, I cannot really determine its position. Are there some ways to fix this problem?
Thanks.
WinEdt ⇒ How to show real line numbers?
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: How to show real line numbers?
I think the problem is with your text editor, not with LaTeX: my guess is, the "Soft Wrapping Mode" essentially inserts extra end-of-line characters where you would logically want them to go. This actually breaks the line, meaning LaTeX sees the text file with the lines wrapped and is thus returning the correct line numbers.
Try opening the file in another text editor; if you see wrapped lines and/or line numbers that correspond to the wrapped lines (not the unwrapped ones), it's actually saving the line breaks as hard line breaks. Turning off the soft wrapping mode may turn of this feature, returning your long lines to their former splendor.
If I'm interpreting your question incorrectly and what is actually happening is that WinEdt is creating fictitious line numbers for your "wrapped" lines and then writing the full line out when it saves, then you'll need to fix it by doing the opposite: tell it to save the hard line breaks, meaning LaTeX will see the lines in their broken form.
Try opening the file in another text editor; if you see wrapped lines and/or line numbers that correspond to the wrapped lines (not the unwrapped ones), it's actually saving the line breaks as hard line breaks. Turning off the soft wrapping mode may turn of this feature, returning your long lines to their former splendor.
If I'm interpreting your question incorrectly and what is actually happening is that WinEdt is creating fictitious line numbers for your "wrapped" lines and then writing the full line out when it saves, then you'll need to fix it by doing the opposite: tell it to save the hard line breaks, meaning LaTeX will see the lines in their broken form.