Skip to content

Commit 243efcb

Browse files
authored
Small fixes for new Latexify docs page (#809)
* Remove equation numbers * Add a missing verb
1 parent 3159e56 commit 243efcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/latexify.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ expected:
4343

4444
```@example main
4545
latexify([12u"m", 1u"m^2", 4u"m^3"])
46-
LaTeXString("\$\$" * ans * "\$\$") # hide
46+
LaTeXString("\$" * chopsuffix(chopprefix(ans, "\\begin{equation}\n"), "\n\\end{equation}\n") * "\$") # hide
4747
```
4848

4949
A special case is an array where all elements have the same unit, and here
5050
the extension does some extra work:
5151
```@example main
5252
latexify([1, 2, 3]u"cm")
53-
LaTeXString("\$\$" * ans * "\$\$") # hide
53+
LaTeXString("\$" * chopsuffix(chopprefix(ans, "\\begin{equation}\n"), "\n\\end{equation}\n") * "\$") # hide
5454
```
5555

5656

@@ -72,7 +72,7 @@ print(ans) # hide
7272

7373
Another thing that `siunitx` does uniquely is lists and ranges of quantities.
7474
To get `siunitx`'s list behavior, pass a tuple instead of an array;
75-
if you want a tuple to be written as an array instead, use `collect(x)` or `[x...]` to explicitly it into an array first.
75+
if you want a tuple to be written as an array instead, use `collect(x)` or `[x...]` to convert it into an array first.
7676

7777
```@example main
7878
latexify((1, 2, 3).*u"m")

0 commit comments

Comments
 (0)