Text Formatting ⇒ Prevent Separation of Number and Unit Symbol
Prevent Separation of Number and Unit Symbol
Anyways, I have the term '4 \textcelsius' in my source file to get the term 4 °C. However, LaTeX insists on splitting 4 and °C on two separate lines. Is there any way of forcing it to put them together? I only seem to have this problem once as yet, so a solution that will work for one instances is more than perfect!
Thanks
Ann
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Prevent Separation of Number and Unit Symbol
Code: Select all
4~\textcelsius
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Prevent Separation of Number and Unit Symbol
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{siunitx}
\begin{document}
\SI{4}{\celsius}
\end{document}
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Prevent Separation of Number and Unit Symbol
Ann