Ask Your Question

Revision history [back]

siunitx ver 3

With the new version of the LaTex siunitx package (h**s://ctan.org/pkg/siunitx) the \SI command changed so my:

\newcommand{\sageSIu}[2][]{\sagestr{’\SI[#1]{’+str(#2.value)+’}{’+str(#2.unit)+’}’}}

that prints a quantity from PhysicalQuantities (h**s://physicalquantities.readthedocs.io/) is broken.

How can I change the command for: - old tex files compabilitie (I think \usepackage{siunitx}[=v2] will work) - new tex files

Thanx (many, many)

siunitx ver 3

With the new version of the LaTex siunitx siunitx package (h**s://ctan.org/pkg/siunitx) the \SI command changed so my:

\newcommand{\sageSIu}[2][]{\sagestr{’\SI[#1]{’+str(#2.value)+’}{’+str(#2.unit)+’}’}}

\newcommand{\sageSIu}[2][]{\sagestr{’\SI[#1]{’+str(#2.value)+’}{’+str(#2.unit)+’}’}}

that prints a quantity from PhysicalQuantities PhysicalQuantities (h**s://physicalquantities.readthedocs.io/) is broken.

How can I change the command for: - for:

  1. old tex files compabilitie (I think \usepackage{siunitx}[=v2] will work) - work)
  2. new tex files

Thanx (many, many)