siunitx ver 3

asked 2021-07-12 19:51:41 +0200

updated 2021-07-12 19:54:02 +0200

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)

edit retag flag offensive close merge delete

Comments

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

qgfreire gravatar imageqgfreire ( 2021-07-12 20:02:00 +0200 )edit