# How to write subscripts in docs?

**URL:** <https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799>\
**Category:** General Usage\
**Created:** [March 12, 2019, 10:39pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799 "2019-03-12T22:39:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 12, 2019, 10:39pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/1 "2019-03-12T22:39:08Z")

</div>

If I try to write this (there are double back ticks around the latex expressions but can make it show here)

`Select map projection. lon\_0 \yen The following character determines det`

I get. Note that the yen symbol is rendered right but not the subscript.  
How do people write sub/super scripts in docs (Documenter here)?

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/4/7/47ff1ee357083867a6c3e95499a6a560dcdffbf8.jpeg)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 12, 2019, 10:44pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/2 "2019-03-12T22:44:33Z")

</div>

Why did you escape the `_`? Without that it works as expected for me.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 12, 2019, 10:51pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/3 "2019-03-12T22:51:14Z")

</div>

Well because I saw it [here (julia docs)](https://docs.julialang.org/en/v1/stdlib/Markdown/index.html#%5CLaTeX-1), that’s how it works on REPL and because that worked with the `\yen` case. But you are right, no escaping works (thought I had tried that too)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 12, 2019, 10:56pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/4 "2019-03-12T22:56:10Z")

</div>

I can’t find anything about subscripts on that page.

> [@joa-quim](#):
>
> that worked with the `\yen` case.

`\yen` is a latex command so not sure how that relates to `_`.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 12, 2019, 10:59pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/5 "2019-03-12T22:59:57Z")

</div>

\_0 is a latex command too. We can find it in that table, though it’s not obvious because it’s a very long table. There is one row that says

U+02080 ₀ \_0 Subscript Zero / Subscript Digit Zero

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 12, 2019, 11:03pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/6 "2019-03-12T23:03:44Z")

</div>

> [@joa-quim](#):
>
> \_0 is a latex command too.

Yea, and it works, but you added an additional `\` that breaks it.

Did you mean to link to [Unicode Input · The Julia Language](https://docs.julialang.org/en/v1/manual/unicode-input/) then? That is for input in the REPL which is not latex.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 12, 2019, 11:10pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/7 "2019-03-12T23:10:01Z")

</div>

I added the \ because it’s in that page (it was removed in the copy paste).  
My point is that if `\yen` works, it makes all the sense to expect that `\_0` works too (considering what we see in that table, be it for REPL only or not)

 ![Capture](https://global.discourse-cdn.com/julialang/original/3X/0/f/0fcf8f67e10e7ca6d7be425713053af7104451fd.jpeg)

 ![Capture_yen](https://global.discourse-cdn.com/julialang/original/3X/0/4/0413222c80720d2df4a2c60b23485b24709dce23.jpeg)

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 12, 2019, 11:12pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/8 "2019-03-12T23:12:35Z")

</div>

But that table is for tab completions in the REPL, and between ` ` `` you should write latex. The case for `\yen` just happens to coincide.

---

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 12, 2019, 11:18pm UTC](https://discourse.julialang.org/t/how-to-write-subscripts-in-docs/21799/9 "2019-03-12T23:18:08Z")

</div>

OK, bad luck in my picked example then. Anyway, I got the subscripts which the important.  
Thanks.
