aboutsummaryrefslogtreecommitdiff
path: root/test/command/3587.md
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2021-12-29 15:00:59 +0200
committerIgor Pashev <pashev.igor@gmail.com>2021-12-29 15:00:59 +0200
commitb4361712899fd0183fea5513180cb383979616de (patch)
tree688ab7ee2ab3a8cd32b4e37b506099aec95388f7 /test/command/3587.md
parent726ad97faebe59e024d68d293e663c02bbe423c8 (diff)
parentd960282b105a6469c760b4308a3b81da723b7256 (diff)
downloadpandoc-b4361712899fd0183fea5513180cb383979616de.tar.gz
Merge https://github.com/jgm/pandoc
Diffstat (limited to 'test/command/3587.md')
-rw-r--r--test/command/3587.md96
1 files changed, 77 insertions, 19 deletions
diff --git a/test/command/3587.md b/test/command/3587.md
index 3016afa5a..0a3c389b9 100644
--- a/test/command/3587.md
+++ b/test/command/3587.md
@@ -2,14 +2,36 @@
% pandoc -f latex -t native
\SI[round-precision=2]{1}{m} is equal to \SI{1000}{mm}
^D
-[Para [Str "1\160m",Space,Str "is",Space,Str "equal",Space,Str "to",Space,Str "1000\160mm"]]
+[ Para
+ [ Str "1\160m"
+ , Space
+ , Str "is"
+ , Space
+ , Str "equal"
+ , Space
+ , Str "to"
+ , Space
+ , Str "1000\160mm"
+ ]
+]
```
```
% pandoc -f latex -t native
\SI[round-precision=2]{1}[\$]{} is equal to \SI{0.938094}{\euro}
^D
-[Para [Str "$\160\&1",Space,Str "is",Space,Str "equal",Space,Str "to",Space,Str "0.938094\160\8364"]]
+[ Para
+ [ Str "$\160\&1"
+ , Space
+ , Str "is"
+ , Space
+ , Str "equal"
+ , Space
+ , Str "to"
+ , Space
+ , Str "0.938094\160\8364"
+ ]
+]
```
@@ -17,35 +39,35 @@
% pandoc -f latex -t native
\SI{30}{\milli\meter}
^D
-[Para [Str "30\160mm"]]
+[ Para [ Str "30\160mm" ] ]
```
```
% pandoc -f latex -t native
\SI{6}{\gram}
^D
-[Para [Str "6\160g"]]
+[ Para [ Str "6\160g" ] ]
```
```
% pandoc -f latex -t native
\SI{25}{\square\meter}
^D
-[Para [Str "25\160m",Superscript [Str "2"]]]
+[ Para [ Str "25\160m" , Superscript [ Str "2" ] ] ]
```
```
% pandoc -f latex -t native
\SI{18.2}{\degreeCelsius}
^D
-[Para [Str "18.2\160\176C"]]
+[ Para [ Str "18.2\160\176C" ] ]
```
```
% pandoc -f latex -t native
\SI{18.2}{\celsius}
^D
-[Para [Str "18.2\160\176C"]]
+[ Para [ Str "18.2\160\176C" ] ]
```
# SIrange tests
@@ -56,19 +78,19 @@
% pandoc -f latex -t native
\SIrange{10}{20}{\gram}
^D
-[Para [Str "10\160g\8211\&20\160g"]]
+[ Para [ Str "10\160g\8211\&20\160g" ] ]
```
```
% pandoc -f latex -t native
\SIrange{35}{9}{\milli\meter}
^D
-[Para [Str "35\160mm\8211\&9\160mm"]]
+[ Para [ Str "35\160mm\8211\&9\160mm" ] ]
```
```
% pandoc -f latex -t native
\SIrange{4}{97367265}{\celsius}
^D
-[Para [Str "4\160\176C\8211\&97367265\160\176C"]]
+[ Para [ Str "4\160\176C\8211\&97367265\160\176C" ] ]
```
## Decimal range with simple units
@@ -77,7 +99,7 @@
% pandoc -f latex -t native
\SIrange{4.5}{97367265.5}{\celsius}
^D
-[Para [Str "4.5\160\176C\8211\&97367265.5\160\176C"]]
+[ Para [ Str "4.5\160\176C\8211\&97367265.5\160\176C" ] ]
```
## Squared, cubed etc. units
@@ -86,21 +108,39 @@
% pandoc -f latex -t native
\SIrange{10}{20}{\square\meter}
^D
-[Para [Str "10\160m",Superscript [Str "2"],Str "\8211\&20\160m",Superscript [Str "2"]]]
+[ 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"]]]
+[ 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"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "4" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "4" ]
+ ]
+]
```
@@ -108,21 +148,39 @@
% 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"]]]
+[ 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"]]]
+[ 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"]]]
+[ Para
+ [ Str "10\160m"
+ , Superscript [ Str "4" ]
+ , Str "\8211\&20\160m"
+ , Superscript [ Str "4" ]
+ ]
+]
```
@@ -136,12 +194,12 @@
% pandoc -f latex -t native
\SIrange[round-precision=2]{10}{20}{\gram}
^D
-[Para [Str "10\160g\8211\&20\160g"]]
+[ Para [ Str "10\160g\8211\&20\160g" ] ]
```
```
% pandoc -f latex -t native
\SIrange[round-precision=2]{10.0}{20.25}{\gram}
^D
-[Para [Str "10.0\160g\8211\&20.25\160g"]]
+[ Para [ Str "10.0\160g\8211\&20.25\160g" ] ]
```