Timeline for How to make text in math mode which would cause an `overfull \hbox` automatically start on the next line?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 24, 2012 at 17:29 | comment | added | Hendrik Vogt | @Ryan: Using \nobreak (as egreg suggests) is superior to {...} since the former doesn't effect the spacing of the formula. The latter causes the spaces to be set to their natural width. | |
| Dec 14, 2011 at 7:49 | comment | added | Ryan Reich | @mbork: I actually prefer to use \mid for set-building notation, but @jamaicanworm put some effort into making the colon look good so I figured he'd want the version that does it automatically. In this case, what's good for the goose is good for the gander. | |
| Dec 14, 2011 at 7:43 | comment | added | mbork | Actually, \colon is meant for expressions like $f\colon A\to B$. I see nothing wrong with $\{x:x>0\}$, but you can always say \newcommand{\setselector}[2]{\{#1\,:\,#2\}} (or put | in place of :). | |
| Dec 14, 2011 at 6:33 | comment | added | Ryan Reich | @jamaicanworm: Yes, I mean that. If you want to discourage a particular break you may put braces around that part: $A = {B \cup C}$, which in math mode has the effect of creating an unbreakable \hbox, but beware that this increases the likelihood of the expression becoming too long and making an overfull \hbox. Don't expect anything you put in the text to have total visual integrity; that is exactly what a display is for. | |
| Dec 14, 2011 at 6:31 | history | edited | Ryan Reich | CC BY-SA 3.0 | amsmath |
| Dec 14, 2011 at 6:29 | comment | added | jamaicanworm | When you say "display," do you mean put inside \[...\] so that the math text is on its own line? I may want to write something as simple as $A = B \cup C$ within a paragraph, and if that happened to be towards the end of the line, LaTeX would automatically insert a line break after the \cup... | |
| Dec 14, 2011 at 6:10 | history | answered | Ryan Reich | CC BY-SA 3.0 |