summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/lua-physical/physical-quantity.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/lua-physical/physical-quantity.lua')
-rw-r--r--Master/texmf-dist/scripts/lua-physical/physical-quantity.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/Master/texmf-dist/scripts/lua-physical/physical-quantity.lua b/Master/texmf-dist/scripts/lua-physical/physical-quantity.lua
index 47a02063c5d..d89fdd2836b 100644
--- a/Master/texmf-dist/scripts/lua-physical/physical-quantity.lua
+++ b/Master/texmf-dist/scripts/lua-physical/physical-quantity.lua
@@ -46,9 +46,9 @@ Quantity._base = {}
Quantity._prefixes = {}
-- modes for the function tosiunitx()
-Quantity.siunitx_SI = 0
-Quantity.siunitx_num = 1
-Quantity.siunitx_si = 2
+Quantity.SIUNITX_SI = 0
+Quantity.SIUNITX_num = 1
+Quantity.SIUNITX_si = 2
-- constructor
@@ -416,20 +416,20 @@ end
-- convert quantity to an siunitx expression
function Quantity:tosiunitx(param,mode)
- mode = mode or self.siunitx_SI
+ mode = mode or self.SIUNITX_SI
param = param or ""
if param ~= "" then
param = "["..param.."]"
end
- if mode == Quantity.siunitx_SI then
+ if mode == Quantity.SIUNITX_SI then
return "\\SI"..param.."{"..tostring(self.value).."}".."{"..self.unit:tosiunitx().."}"
- elseif mode == Quantity.siunitx_num then
+ elseif mode == Quantity.SIUNITX_num then
return "\\num"..param.."{"..tostring(self.value).."}"
- elseif mode == Quantity.siunitx_si then
+ elseif mode == Quantity.SIUNITX_si then
return "\\si"..param.."{"..self.unit:tosiunitx().."}"
else