git.iko.soy/typeable/pandoc
on master help sign in
Change SIRange to SIrange (#6617)
commit6cfb31bbe22a843d7066450f832bbc1b3ae235ab authorEmerson Harkin <emerson.f.harkin@gmail.com> dateFri 14 Aug 2020, 14:30 (6 years ago) parente65c6b0
2 files changed+13−13
src/Text/Pandoc/Readers/LaTeX.hs+4−4 test/command/3587.md+9−9
src/Text/Pandoc/Readers/LaTeX.hs+4−4
@@ -259,9 +259,9 @@ dosiunitx = do
259259 emptyOr160 unit,
260260 unit]
261261
262−-- converts e.g. \SIRange{100}{200}{\ms} to "100 ms--200 ms"
263−doSIRange :: PandocMonad m => LP m Inlines
264−doSIRange = do
262+-- converts e.g. \SIrange{100}{200}{\ms} to "100 ms--200 ms"
263+doSIrange :: PandocMonad m => LP m Inlines
264+doSIrange = do
265265 skipopts
266266 startvalue <- tok
267267 startvalueprefix <- option "" $ bracketed tok
@@ -1098,7 +1098,7 @@ inlineCommands = M.union inlineLanguageCommands $ M.fromList
10981098 , ("acsp", doAcronymPlural "abbrv")
10991099 -- siuntix
11001100 , ("SI", dosiunitx)
1101− , ("SIRange", doSIRange)
1101+ , ("SIrange", doSIrange)
11021102 -- hyphenat
11031103 , ("bshyp", lit "\\\173")
11041104 , ("fshyp", lit "/\173")
test/command/3587.md+9−9
@@ -55,25 +55,25 @@
5555[Para [Str "18.2\160\176C"]]
5656```
5757
58−# SIRange tests
58+# SIrange tests
5959
6060## Integer range with simple common units
6161
6262```
6363% pandoc -f latex -t native
64−\SIRange{10}{20}{\gram}
64+\SIrange{10}{20}{\gram}
6565^D
6666[Para [Str "10\160g\8211\&20\160g"]]
6767```
6868```
6969% pandoc -f latex -t native
70−\SIRange{35}{9}{\milli\meter}
70+\SIrange{35}{9}{\milli\meter}
7171^D
7272[Para [Str "35\160mm\8211\&9\160mm"]]
7373```
7474```
7575% pandoc -f latex -t native
76−\SIRange{4}{97367265}{\celsius}
76+\SIrange{4}{97367265}{\celsius}
7777^D
7878[Para [Str "4\160\176C\8211\&97367265\160\176C"]]
7979```
@@ -82,7 +82,7 @@
8282
8383```
8484% pandoc -f latex -t native
85−\SIRange{4.5}{97367265.5}{\celsius}
85+\SIrange{4.5}{97367265.5}{\celsius}
8686^D
8787[Para [Str "4.5\160\176C\8211\&97367265.5\160\176C"]]
8888```
@@ -91,7 +91,7 @@
9191
9292```
9393% pandoc -f latex -t native
94−\SIRange{10}{20}{\square\meter}
94+\SIrange{10}{20}{\square\meter}
9595^D
9696[Para [Str "10\160m\178\8211\&20\160m\178"]]
9797```
@@ -99,17 +99,17 @@
9999## Ignore round precision
100100
101101`round-precision` option appears to be ignored by `\SI` as of 7c6dbd37e, so
102−`\SIRange` will ignore it as well.
102+`\SIrange` will ignore it as well.
103103
104104```
105105% pandoc -f latex -t native
106−\SIRange[round-precision=2]{10}{20}{\gram}
106+\SIrange[round-precision=2]{10}{20}{\gram}
107107^D
108108[Para [Str "10\160g\8211\&20\160g"]]
109109```
110110```
111111% pandoc -f latex -t native
112−\SIRange[round-precision=2]{10.0}{20.25}{\gram}
112+\SIrange[round-precision=2]{10.0}{20.25}{\gram}
113113^D
114114[Para [Str "10.0\160g\8211\&20.25\160g"]]
115115```