LaTeX Can We Glue Text? LaTeX vs Text

  • Thread starter Thread starter Hurkyl
  • Start date Start date
AI Thread Summary
The discussion centers around the challenge of preventing line breaks in mathematical expressions when posting in a forum. Users express a desire for a way to "glue" text together, such as using tags around expressions to maintain their integrity. While LaTeX is an option, there is concern that it may not be server-friendly. A workaround suggested is to eliminate spaces in the expressions, but this approach has limitations as some symbols still cause breaks. There is a consensus that starting a new line for lengthy expressions is a practical solution, although some participants express frustration with posts that stretch the layout, particularly on smaller screens. Overall, the conversation highlights the balance between readability and formatting in online discussions.
Hurkyl
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.
 

Similar threads

Replies
8
Views
2K
Replies
11
Views
4K
Replies
3
Views
2K
Replies
4
Views
4K
Replies
9
Views
15K
Replies
3
Views
13K
Back
Top