Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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'm using LyX under Windows XP, and, as the title says, it doesn't wrap underlined text - i.e., the underlined text is "overflowing" outside of the page.

share|improve this question
up vote 1 down vote accepted

What are you using to underline text? I'm guessing that it is something other than \underbar{} which doesn't affect the flow and wrapping. You can see the underlying TeX in LyX with View ➤ View Source.

Furthermore, in TeX generally, underlining should rarely be used as it is a convention of typewriters, not typesetters. Italics, font changes, even boxes are better ways to set off text in TeX. I'm also guessing that it was pretty hard to force LyX to underline and so you wound up accidentally forming an indivisible TeX box that - by definition - can't wrap.

LyX is pretty nifty for what it does, but it is only a wrapper for TeX and will likely produce more such mysteries when provoked. I'm not saying "learn TeX", I am suggesting that you become familiar with the 'real document' by keeping the source view open.

share|improve this answer
I used Ctrl+u to underline. How do I make LyX use underbar? – Amir Rachum Jul 2 '10 at 0:04
This current document is a prep case for a debate, should be read very quickly and therefore some sentences are underlined so they'll be noticed. How would you emphasize a certain sentence this way, using LyX? – Amir Rachum Jul 2 '10 at 0:08
Now I see it does use underbar, and it still does not wrap. – Amir Rachum Jul 2 '10 at 0:12
Tests have been done that show underlining reduces rapid readability as would any pixels that were not part of the letterforms. I'd use bold, font size increases, or font face changes in decreasing order of preference. as for your unbreakable underbar, show me the TeX code as an edit to your post above, I suspect there is something wrapped around it which makes a TeX box. – msw Jul 2 '10 at 2:08
I accept your claim, changed to italics. Thanks. – Amir Rachum Jul 13 '10 at 13:04

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.