Text Formatting ⇒ new line with math symbol
new line with math symbol
I am a newbie with latex so this may be a trivial question, but one I haven't found an answer for online.
I have a document with a macro:
\newcommand{\myVar}{hello\ensuremath{\wedge}goodbye}
When I use this macro, if \myVar is near the end of the line, the text (hello^goodbye) goes beyond the normal length of the line.
I would like this macro to automatically "jump" to a new line and not go beyond normal line length.
However, I do not want to change my macro because it is used in other places.
Thank you,
Eyal
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
new line with math symbol
Code: Select all
\mbox{here's my really long sentence that has no chance of not breaking it over a line yet it's forced to because of the mbox around it.}
Code: Select all
\newcommand{\myVar}{hello\ensuremath{\wedge}\allowbreak{}goodbye}