Generalhow to glue two signs fastly

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Marek
Posts: 20
Joined: Wed Jan 30, 2008 3:36 pm

how to glue two signs fastly

Post by Marek »

There are in my text many sequences like:

"...sample text about temperature -70$^{\circ}$C and about other quantities..."

and standard LeTeX formating gives sometimes the sign "-" in the end of one line and the number "70" in the next one. How to tell LeTeX not to break the line in such case. Using tilde sign, i.e. ~ between produces extra space and seems not to be right solution. \nolinebreak command probably works but I would have about 100 cases to insert it. Is there here less complicated solution?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: how to glue two signs fastly

Post by balf »

Try the units package : it takes care of the problems of spacing between the value and the unit, and of line breaking.

B.A.
Marek
Posts: 20
Joined: Wed Jan 30, 2008 3:36 pm

Re: how to glue two signs fastly

Post by Marek »

Thank you. I will try it.
Post Reply