A journal requires midline decimal points (e.g. 0·02). \cdot is available, but leaves a space either side. \!\cdot\! is an obvious fix, but not ideal. Any ideas of a better solution?
Thank you!
Text Formatting ⇒ Midline Decimal Point
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Midline Decimal Point
A quick fix would look like this.
Global formatting for decimal numbers can be done with the siunitx package (especially regarding numbers in tables)
Thorsten
Code: Select all
0{\cdot}02
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{siunitx}
\sisetup{
output-decimal-marker={\cdot}
}
\begin{document}
$0{\cdot}01$ \num{0.01}
\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Midline Decimal Point
Maybe you could use the siunitx for it?
It would have the advantage that you could change the layout afterwards easily if you'd wished to.
Code: Select all
\documentclass{article}
\usepackage{siunitx}
\sisetup{output-decimal-marker=\cdot}
\begin{document}
\num{.02} vs $0\cdot02$ vs $0\!\cdot\!02$ vs $0{\cdot}02$
\end{document}
site moderator & package author