Skip to content

Commit 023d8f4

Browse files
committed
docs(escapes): add section on escaping $ symbols in LaTeX
1 parent 5038157 commit 023d8f4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

content/latex-example.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,24 @@ $$
101101
\textit{Italic text.}\\
102102
\texttt{Typewriter text.}\\
103103
$$
104+
105+
---
106+
107+
## Escape Characters
108+
109+
To disambiguate the use of the dollar sign, you can use the backslash
110+
character to escape it: `\\$`.
111+
112+
Example:
113+
114+
```text
115+
> To write the dollar sign, use \\$ in your text. That way, if there is another
116+
> dollar sign in your text like this \\$, it will not be confused with the start of a math
117+
> environment.
118+
```
119+
120+
This will render as:
121+
122+
> To write the dollar sign, use \\$ in your text. That way, if there is another
123+
> dollar sign in your text like this \\$, it will not be confused with the start of a math
124+
> environment.

0 commit comments

Comments
 (0)