Incorrect spacing around decimal point in Keynote built-in LaTeX equations for some math alphabet commands

  • with macOS 26.5.1, Keynote 15.3
  • Equations inserted using Insert → Equation (built-in LaTeX support)

The built-in LaTeX equation renderer inserts excessive spacing around the period (.) with certain math alphabet commands, both in the equation preview and in the rendered equation on the slide. The problem affects decimal numbers as well as periods between letters.

The period entered is the standard ASCII full stop (Unicode U+002E), not a middle dot or multiplication dot. The Mac OS number format is set to use the period as decimal point. The same character is rendered correctly in ordinary text and in some LaTeX math styles.


Expressions rendered correctly with normal spacing around the decimal point : 123.456, \mathrm{123.456}, \boldsymbol{123.456}


Expressions rendered incorrectly with excessive spacing (like 123 . 456 or ABC . DEF) around the decimal point : \mathbf{123.456}, \mathit{123.456}, \mathsf{123.456}, and \mathtt{123.456}, \mathit{ABC.DEF}, \mathsf{ABC.DEF}, and \mathcal{ABC.DEF}


With \mathbf{1.2+3.4} both decimal points receive the excessive spacing.

Using braces does not solve the problem. \mathbf{123{.}456} exhibits the excessive spacing.


Comparison with comma : the expression \mathbf{123,456} shows the expected punctuation spacing after the comma only. This indicates that the renderer distinguishes between commas and periods, but treats the period incorrectly in some math alphabet commands.


Workaround : replacing the period with a text-mode period eliminates the problem: \mathbf{123\text{.}456} renders correctly.

MacBook Pro 14″, macOS 26.5

Posted on Jul 2, 2026 6:43 AM

Reply
2 replies

Jul 2, 2026 11:56 AM in response to iag22

The blahtex syntax for normal appear periods without surrounding spacing is:


or



You may wish to use the following \text format instead of the \math operators as the syntax gets gnarly with multiple decimal points.



The LaTeX interpretation in Pages, Numbers, or Keynote Equation editors is based on Apple incorporating the third-party blahtex interpreter that translates entered equations into MathML objects. It is far from supporting all of the [La]TeX feature set.


See About LaTeX and MathML support in Pages, Numbers, and Keynote - Apple Support


The blahtex PDF document is linked in that article. It is the lingua franca for using LaTeX in the Equation editor.

Incorrect spacing around decimal point in Keynote built-in LaTeX equations for some math alphabet commands

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.