siunitx ver 3

asked 3 years ago

updated 3 years ago

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:

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

Thanx (many, many)

Preview: (hide)

Comments

See exemple of usage in h**p://reactor.ist.utl.pt/tenta1/ for use. Sory, is portuguese!

qgfreire gravatar imageqgfreire ( 3 years ago )