Skip to content

Commit 0061231

Browse files
committed
latex example
1 parent b6d5a61 commit 0061231

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
44
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
55
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
66
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365"
7+
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
78

89
[sources]
910
DocumenterVitepress = {path = ".."}

docs/make.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ using Documenter
22
using DocumenterVitepress
33
using DocumenterCitations
44
using DocumenterInterLinks
5-
using DataFrames
65

76
# Handle DocumenterCitations integration - if you're running this, then you don't need anything here!!
87
documenter_citations_dir = dirname(dirname(pathof(DocumenterCitations)))

docs/src/manual/markdown-examples.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,29 @@ You can also use fenced code blocks with the `math` tag for equations!
475475
```math
476476
\nabla^2 \Phi = \rho
477477
```
478+
479+
## LaTeXStrings
480+
481+
```@example latexstring
482+
using LaTeXStrings
483+
```
484+
485+
:::tabs
486+
487+
== text string
488+
489+
```@example latexstring
490+
L"an equation: $\alpha^2$"
491+
```
492+
493+
== text/latex display
494+
495+
```@example latexstring
496+
LaTeXString("an equation: \$\\alpha^2\$")
497+
```
498+
499+
:::
500+
478501
## DataFrame
479502

480503
```@example

0 commit comments

Comments
 (0)