<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LaTeX Markdown in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/149730#M53163</link>
    <description>&lt;P&gt;It looks like in-line LaTeX is not supported in Markdown cells. Is that accurate?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peterlewis_0-1772564790286.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24499iD5CEE8148E298379/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peterlewis_0-1772564790286.png" alt="peterlewis_0-1772564790286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2026 19:08:59 GMT</pubDate>
    <dc:creator>peterlewis</dc:creator>
    <dc:date>2026-03-03T19:08:59Z</dc:date>
    <item>
      <title>LaTeX Markdown</title>
      <link>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/149730#M53163</link>
      <description>&lt;P&gt;It looks like in-line LaTeX is not supported in Markdown cells. Is that accurate?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="peterlewis_0-1772564790286.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24499iD5CEE8148E298379/image-size/medium?v=v2&amp;amp;px=400" role="button" title="peterlewis_0-1772564790286.png" alt="peterlewis_0-1772564790286.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 19:08:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/149730#M53163</guid>
      <dc:creator>peterlewis</dc:creator>
      <dc:date>2026-03-03T19:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: LaTeX Markdown</title>
      <link>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/149735#M53165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/217046"&gt;@peterlewis&lt;/a&gt;,&lt;/P&gt;
&lt;P data-path-to-node="0"&gt;On doing some research, I believe your assumption is correct. In Databricks notebooks, inline LaTeX (using single dollar signs like &lt;CODE data-index-in-node="87" data-path-to-node="0"&gt;$ \sqrt{2} $&lt;/CODE&gt;) is generally not supported in Markdown cells.&lt;/P&gt;
&lt;P data-path-to-node="1"&gt;Databricks uses a specific flavour of Markdown that is optimised for display blocks rather than rich text integration.&amp;nbsp;&lt;/P&gt;
&lt;P data-path-to-node="1"&gt;If you truly hate the gaps created by block LaTeX, you can try a "hack" using HTML &lt;CODE data-index-in-node="89" data-path-to-node="10"&gt;&amp;lt;span&amp;gt;&lt;/CODE&gt; tags, though results vary by Databricks runtime version and is not something I would recommend.&amp;nbsp;&lt;/P&gt;
&lt;P data-path-to-node="1"&gt;Here is an example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Snapshot.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/24500iEC4C4EC4D424C7CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snapshot.png" alt="Snapshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%md
The value &amp;lt;span style="font-family: serif; italic"&amp;gt;√2&amp;lt;/span&amp;gt; is irrational.&lt;/LI-CODE&gt;
&lt;P class="p1"&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;STRONG&gt;&lt;I&gt;If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.&lt;/I&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;I&gt;Regards,&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 21:44:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/149735#M53165</guid>
      <dc:creator>Ashwin_DSA</dc:creator>
      <dc:date>2026-03-03T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Hi @peterlewis, Databricks notebooks support LaTeX mathem...</title>
      <link>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/150328#M53364</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/217046"&gt;@peterlewis&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Databricks notebooks support LaTeX mathematical notation inside %md (markdown) cells. The rendering engine uses MathJax, so standard LaTeX math syntax works. Here is a rundown of how to use it and some common patterns.&lt;/P&gt;
&lt;P&gt;INLINE MATH&lt;/P&gt;
&lt;P&gt;Wrap your expression with single dollar signs or backslash-parenthesis delimiters:&lt;/P&gt;
&lt;PRE&gt;%md
The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ and applies when $a \neq 0$.&lt;/PRE&gt;
&lt;P&gt;Both $...$ and \(...\) work for inline expressions.&lt;/P&gt;
&lt;P&gt;DISPLAY (BLOCK) MATH&lt;/P&gt;
&lt;P&gt;For centered, standalone equations use double dollar signs or backslash-bracket delimiters:&lt;/P&gt;
&lt;PRE&gt;%md
$$
E = mc^2
$$&lt;/PRE&gt;
&lt;P&gt;Or equivalently:&lt;/P&gt;
&lt;PRE&gt;%md
\[
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
\]&lt;/PRE&gt;
&lt;P&gt;COMMON LATEX COMMANDS THAT WORK IN %md CELLS&lt;/P&gt;
&lt;P&gt;Here are frequently used commands:&lt;/P&gt;
&lt;PRE&gt;Fractions:       \frac{a}{b}
Square root:     \sqrt{x}  or  \sqrt[n]{x}
Subscript:       x_i  or  x_{ij}
Superscript:     x^2  or  x^{n+1}
Greek letters:   \alpha, \beta, \gamma, \theta, \sigma
Summation:       \sum_{i=1}^{n} x_i
Product:         \prod_{i=1}^{n} x_i
Integral:        \int_a^b f(x)\,dx
Limit:           \lim_{x \to \infty} f(x)
Matrix:          \begin{bmatrix} a &amp;amp; b \\ c &amp;amp; d \end{bmatrix}
Aligned eqs:     \begin{aligned} ... \end{aligned}&lt;/PRE&gt;
&lt;P&gt;MULTI-LINE ALIGNED EQUATIONS&lt;/P&gt;
&lt;PRE&gt;%md
$$
\begin{aligned}
f(x) &amp;amp;= x^2 + 2x + 1 \\
&amp;amp;= (x + 1)^2
\end{aligned}
$$&lt;/PRE&gt;
&lt;P&gt;USING displayHTML FOR MORE CONTROL&lt;/P&gt;
&lt;P&gt;If you need rendering outside of a markdown cell (for example, inside a Python cell or with custom MathJax configuration), you can use displayHTML:&lt;/P&gt;
&lt;PRE&gt;displayHTML("""
&amp;lt;script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"&amp;gt;
&amp;lt;/script&amp;gt;
&amp;lt;p&amp;gt;Inline: \\( e^{i\\pi} + 1 = 0 \\)&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;Display:&amp;lt;/p&amp;gt;
$$\\frac{d}{dx}\\left( \\int_0^x f(t)\\,dt \\right) = f(x)$$
""")&lt;/PRE&gt;
&lt;P&gt;Note the double backslashes in the Python string to escape the LaTeX backslashes.&lt;/P&gt;
&lt;P&gt;TROUBLESHOOTING TIPS&lt;/P&gt;
&lt;P&gt;1. If equations render as raw text, make sure the cell starts with %md on the very first line (no leading spaces or blank lines before it).&lt;/P&gt;
&lt;P&gt;2. If you are using a notebook-scoped library that overrides the default JavaScript environment, it can interfere with MathJax. Try restarting the notebook session.&lt;/P&gt;
&lt;P&gt;3. Dollar signs intended as literal currency symbols can accidentally trigger math mode. Escape them with a backslash: \$ to display a literal dollar sign.&lt;/P&gt;
&lt;P&gt;4. Very long or complex LaTeX (e.g., large tikz diagrams) is not supported because MathJax handles math typesetting, not full LaTeX document compilation.&lt;/P&gt;
&lt;P&gt;5. In the new notebook editor, make sure you are viewing the rendered output of the markdown cell (click outside the cell or press Esc) rather than the raw editing view.&lt;/P&gt;
&lt;P&gt;DOCUMENTATION REFERENCE&lt;/P&gt;
&lt;P&gt;The official docs confirm that %md cells support "text, images, and mathematical formulas and equations":&lt;BR /&gt;
&lt;A href="https://docs.databricks.com/en/notebooks/notebooks-code.html" target="_blank"&gt;https://docs.databricks.com/en/notebooks/notebooks-code.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;For a full list of supported LaTeX math commands, refer to the MathJax documentation:&lt;BR /&gt;
&lt;A href="https://docs.mathjax.org/en/latest/input/tex/macros/index.html" target="_blank"&gt;https://docs.mathjax.org/en/latest/input/tex/macros/index.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If you can share more details about what specifically you are trying to render or any error you are seeing, I am happy to help with a more targeted example.&lt;/P&gt;
&lt;P&gt;* This reply used an agent system I built to research and draft this response based on the wide set of documentation I have available and previous memory. I personally review the draft for any obvious issues and for monitoring system reliability and update it when I detect any drift, but there is still a small chance that something is inaccurate, especially if you are experimenting with brand new features.&lt;/P&gt;
&lt;P&gt;If this answer resolves your question, could you mark it as "Accept as Solution"? That helps other users quickly find the correct fix.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 05:45:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/latex-markdown/m-p/150328#M53364</guid>
      <dc:creator>SteveOstrowski</dc:creator>
      <dc:date>2026-03-09T05:45:09Z</dc:date>
    </item>
  </channel>
</rss>

