# How to write inline math variables, equations in Markdown inside Pluto?

**URL:** <https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041>\
**Category:** New to Julia\
**Tags:** question, latex, markdown, pluto, pluto-markdown\
**Created:** [February 18, 2025, 6:46pm UTC](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041 "2025-02-18T18:46:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghoshr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghoshr/32/215310_2.png) [@ghoshr](https://discourse.julialang.org/u/ghoshr)\
**Post date:** [February 18, 2025, 6:46pm UTC](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041/1 "2025-02-18T18:46:19Z")

</div>

I am trying to write some mathematical variables and equations **inline** in Markdown in Pluto. I am trying to write \dfrac{a}{b} = c and x _inside_ other sentences. And not a/b = c and x. This is how I did it here, and how I do inside \LaTeX documents and Jupyter Notebooks:

```md
I am trying to write $\dfrac{a}{b} = c$ and $x$ *inside* other sentences.

```

Single `$` pair enables rendering math equations inside sentences where double `$$` pair enables rendering of equation in a new paragraph in a centered manner.

But, I am unable to do that in Pluto.

Here’s my code:

```Julia
md"""
* $N$ is the number of atoms in a particular sample
* $dt$ is time difference
* $dN$ is number of atoms decayed in time $dt$
* $\lambda$ is proportionality constant, the value of which depends on the particular radioactive atom
"""

```

And here how it renders:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/2/02e491b4d091a9ecfbbd59e75ebf8ea879977049.png)

This is outright unusable and ugly. I want my mathematical variables to render _inside_ other sentences and bullet lists, and not in a different paragraph. How do I do that?

---

<div class="post-metadata">

**Author:** ![ghoshr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghoshr/32/215310_2.png) [@ghoshr](https://discourse.julialang.org/u/ghoshr)\
**Post date:** [February 18, 2025, 6:57pm UTC](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041/2 "2025-02-18T18:57:03Z")

</div>

I know now.

Double backticks `` is the way.

I changed my cell to:

```Julia
md"""
* ``N`` is the number of atoms in a particular sample
* ``dt`` is time difference
* ``dN`` is number of atoms decayed in time $dt$
* ``\lambda`` is proportionality constant, the value of which depends on the particular radioactive atom
"""

```

Now it renders as expected:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/1/714e4411d9c00b430c08c3a156ed23f5c5f2c719.png)

So, instead of a single dollar `$` pair, I need to use double backticks pair ``.

---

<div class="post-metadata">

**Author:** ![Vasily\_Pisarev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vasily_pisarev/32/7929_2.png) [@Vasily\_Pisarev](https://discourse.julialang.org/u/Vasily_Pisarev)\
**Post date:** [February 18, 2025, 7:40pm UTC](https://discourse.julialang.org/t/how-to-write-inline-math-variables-equations-in-markdown-inside-pluto/126041/3 "2025-02-18T19:40:06Z")

</div>

You can also add an extra space between a bullet and the first `$`, but otoh, I’ve found that double backticks are more robust in general, especially when used in expressions with string interpolations.
