File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ expected:
4343
4444``` @example main
4545latexify([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
4949A special case is an array where all elements have the same unit, and here
5050the extension does some extra work:
5151``` @example main
5252latexify([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
7373Another thing that ` siunitx ` does uniquely is lists and ranges of quantities.
7474To 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
7878latexify((1, 2, 3).*u"m")
You can’t perform that action at this time.
0 commit comments