Why do LaTeX equations disappear in Keynote PDFs and how do I fix it?

I like to use basic black for my slides, and I use the latex editor extensively, which makes nice presentations. However, I also like to make pdfs without the black background, in case people want to print them - save some toner! Keynote inverts the text, so that it appears black on a white background, but fails to do the same with the equations - you don't see them, presumably because they are still white text now on a white background! Is there a way to fix this (without having to change all the equations manually)? Thx


[Re-Titled by Moderator]

Mac mini, macOS 15.4

Posted on May 19, 2025 7:20 AM

Reply
8 replies

May 31, 2025 5:21 PM in response to mailQ

Your only option in Keynote to make your equation text visible in it and a Print panel saved PDF is to introduce a suitable text color other than black or white.


The equation editor supports color equations by prefacing the equation with \color{X}, where case-sensitive color names are on pages 4 & 5 of the blahtex PDF manual:



Usage:

\begin{aligned}
\color{NavyBlue}\Delta{f}=\frac{\partial^2\ f}{\partial x^2}+\frac{\partial^2\ f}{\partial y^2}+\frac{\partial^2\ f}{\partial z^2}
\end{aligned}




About LaTeX and MathML support in Pages, Numbers and Keynote - Apple Support (IN)


May 31, 2025 4:34 AM in response to mailQ

When you state "LaTeX Editor" are you implying the use of Apple's built-in equation editor in Keynote and its associated limitations described in: About LaTeX and MathML support in Pages, Numbers and Keynote - Apple Support (IN) . The blahtex manual found as a link in the preceding describes what is supported in the equation editor.


Or you are deriving the LaTeX content generated by another source and pasting into Keynote as an image or PDF?


May 19, 2025 12:24 PM in response to mailQ

I'm not a heavy LaTeX user, so I'm not certain, but I don't think you'll have much of an option here.


l suspect that the text's color is embedded in the LaTeX definition, so LaTeX is specifically defining the text to be drawn in white, not simply an inversion of the background color. I know LaTeX has support for background and text colors, but I think they're fixed and there isn't a simple 'invert' option, which is why I think you're down to editing them manually.

May 19, 2025 1:08 PM in response to Camelot

Thanks, that makes sense, but is a bit frustrating. One can change the color of the latex, in just the same way one selects the color of regular text, but you are probably right that is then part of the latex, not handled separately - I do wish there were a better way to handle this. I don't think I am particularly unique - keynote has its users in physics because of its latex capabilities, and I do like the black background look (at the risk of starting a debate!).


Thanks again - if apple is listening, can you think about addressing this?

Jun 2, 2025 8:42 AM in response to VikingOSX

Thanks for this work-around @VikingOSX, I appreciate it, and will try it. It still doesn't seem ideal - better if OSX treated latex as text, with this as a way to force a different color choice. I will try gray, but it is a bit unpleasing for inline equations to be a different color.


But as I say, I very much appreciate the suggestion - my gripe is with keynote!

Jun 2, 2025 12:45 PM in response to mailQ

The only place that Pages, Numbers, or Keynote show LaTeX as text is in the Equation Editor itself. Once the equation is added inline in these applications, it is a Pages object as MathML compatible with MS Word, and as a PDF stored internally as Data/equation-nn.pdf for backwards compatibility with older Apple application versions.

Why do LaTeX equations disappear in Keynote PDFs and how do I fix it?

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