aboutsummaryrefslogtreecommitdiff
path: root/test/command/3587.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/command/3587.md')
-rw-r--r--test/command/3587.md51
1 files changed, 41 insertions, 10 deletions
diff --git a/test/command/3587.md b/test/command/3587.md
index 1493a08c5..3016afa5a 100644
--- a/test/command/3587.md
+++ b/test/command/3587.md
@@ -15,13 +15,6 @@
```
% pandoc -f latex -t native
-\SI[round-precision=2]{\{\}}[\{\}]{\{\}}
-^D
-[Para [Str "{}\160{}\160{}"]]
-```
-
-```
-% pandoc -f latex -t native
\SI{30}{\milli\meter}
^D
[Para [Str "30\160mm"]]
@@ -38,7 +31,7 @@
% pandoc -f latex -t native
\SI{25}{\square\meter}
^D
-[Para [Str "25\160m\178"]]
+[Para [Str "25\160m",Superscript [Str "2"]]]
```
```
@@ -87,15 +80,53 @@
[Para [Str "4.5\160\176C\8211\&97367265.5\160\176C"]]
```
-## Squared units
+## Squared, cubed etc. units
```
% pandoc -f latex -t native
\SIrange{10}{20}{\square\meter}
^D
-[Para [Str "10\160m\178\8211\&20\160m\178"]]
+[Para [Str "10\160m",Superscript [Str "2"],Str "\8211\&20\160m",Superscript [Str "2"]]]
```
+```
+% pandoc -f latex -t native
+\SIrange{10}{20}{\cubic\meter}
+^D
+[Para [Str "10\160m",Superscript [Str "3"],Str "\8211\&20\160m",Superscript [Str "3"]]]
+```
+
+```
+% pandoc -f latex -t native
+\SIrange{10}{20}{\raisetothe{4}\meter}
+^D
+[Para [Str "10\160m",Superscript [Str "4"],Str "\8211\&20\160m",Superscript [Str "4"]]]
+```
+
+
+```
+% pandoc -f latex -t native
+\SIrange{10}{20}{\meter\squared}
+^D
+[Para [Str "10\160m",Superscript [Str "2"],Str "\8211\&20\160m",Superscript [Str "2"]]]
+```
+
+```
+% pandoc -f latex -t native
+\SIrange{10}{20}{\meter\cubed}
+^D
+[Para [Str "10\160m",Superscript [Str "3"],Str "\8211\&20\160m",Superscript [Str "3"]]]
+```
+
+```
+% pandoc -f latex -t native
+\SIrange{10}{20}{\meter\tothe{4}}
+^D
+[Para [Str "10\160m",Superscript [Str "4"],Str "\8211\&20\160m",Superscript [Str "4"]]]
+```
+
+
+
## Ignore round precision
`round-precision` option appears to be ignored by `\SI` as of 7c6dbd37e, so