Preventing line breaks in text expressions

  • Context: LaTeX 
  • Thread starter Thread starter Hurkyl
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 3K views
Staff Emeritus
Science Advisor
Gold Member
Messages
14,922
Reaction score
28
It would really be nice if I could glue text; e.g. if I could put some sort of tag around an expression like [X, Y](f) = (XY - YX)(f), to guarantee that the browser won't insert a line break in the middle of the expression. I suppose I could just make it into LaTeX, but I'm assuming the server is happier if I write it as text.
 
Physics news on Phys.org
In the pre-LaTeX days the only reliable way I could think of to do that was to start another line.

The Lie bracket of X and Y is:

[X,Y]=XY-YX


and so forth.
 
One method that might work... Don't use spaces. [X,Y](f)=(XY-YX)(f) [X,Y](f)=(XY-YX)(f) [X,Y](f)=(XY-YX)(f) [X,Y](f)=(XY-YX)(f) [X,Y](f)=(XY-YX)(f)

(resize your browser window)
 
That works for some formulae. Alas, there are a lot of symbols my broswer will break. e.g. with what you wrote, I see:

... [X,Y](f)=(XY-
YX)(f) ...
 
Well, personally, if it's going to be that long, I'd be somewhat annoyed if someone put in a command to stop it from breaking. I dislike when posts get all stretched because someone does something that prevents the lines from breaking, especially if I'm trying read from my laptop with a small screen.

I think Tom's suggestion is best, just start a new line.
 
Moonbear said:
Well, personally, if it's going to be that long, I'd be somewhat annoyed if someone put in a command to stop it from breaking. I dislike when posts get all stretched because someone does something that prevents the lines from breaking, especially if I'm trying read from my laptop with a small screen.

I think Tom's suggestion is best, just start a new line.
Well, I would have expected the line break would be placed before the expression, rather than after.