CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/physics-patch

README.txt
physics-patch 2.8

Improved version of the physics package

This package is released under the LaTeX Project Public License (LPPL) 1.3c
See https://www.latex-project.org/lppl/lppl-1-3c for the details of that license
Many parts of this package are modified from the physics package, created by Sergio C. de la Barrera and licenced under LPPL 1.3
See https://ctan.org/pkg/physics for the details of that package

This package requires amsmath, etoolbox, xcolor, xparse, and xstring package.
Commands that have different definitions come with PT in the beginning of their name (e.g. \PTmqty).
physics-patch has covered all commands in physics since version 2.0, so there's no need to load physics.
It is ok to load physics before this package. This package will silently overrides macros in physics with an improved version. To use the original version provided by physics, load physics before this package and use the nooverride option (not recommended).
This package pretends that physics package is loaded so that this package won't be overriden if loading physics is called afterward and packages loaded afterward that checks whether physics is loaded to determine its behavior (e.g. siunitx) work correctly. To disable this, use the nopretend option (not recommended).
If siuitx is loaded before this package, this package will define \ITquantity and \ITqty as the integration of the improved definition of physics's \qty (in \PHquantity and \PHqty) and siuitx's \SI. You can optionally set siintegrate option to override \PTquantity and \PTqty with \ITqty (not recommended).
If two opposite options which one of them with the name of the other prefixed with a no are loaded at the same time, the one without the no in the name will be used. If two opposite options which have the same suffix and different prefix are loaded at the same time, the default one will be used.

Author: Willie Shen (Willie169)
Repository: https://github.com/Willie169/physics-patch
Last update: May 13, 2025

For documentation, see physics-patch.pdf

Download the contents of this package in one zip archive (123.3k).

physics-patch – Improved version of the physics package

This package requires the amsmath, etoolbox, xcolor, xparse, and xstring packages.

Commands that have different definitions come with PT in the beginning of their name (e.g. \PTmqty).

physics-patch has covered all commands in physics since version 2.0, so there’s no need to load physics.

It is ok to load physics before this package. This package will silently override macros in physics with an improved version. To use the original version provided by physics, load physics before this package and use the nooverride option (not recommended).

This package pretends that the physics package is loaded so that this package won’t be overriden if loading physics is called afterwards and packages loaded afterwards that check whether physics is loaded to determine their behavior (e.g. siunitx) work correctly. To disable this, use the nopretend option (not recommended).

If siunitx is loaded before this package, this package will define \ITquantity and \ITqty as the integration of the improved definition of physics’s \qty (in \PHquantity and \PHqty) and siuitx’s \SI. You can optionally set the siintegrate option to override \PTquantity and \PTqty with \ITqty (not recommended).

If two opposite options — one of them with the name of the other prefixed with a no — are loaded at the same time, the one without the no in the name will be used. If two opposite options which have the same suffix and different prefixes are loaded at the same time, the default one will be used.

Packagephysics-patch
Bug trackerhttps://github.com/Willie169/physics-patch/issues
Announcementshttps://github.com/Willie169/physics-patch/releases
Repositoryhttps://github.com/Willie169/physics-patch
Version2.8 2025-05-13
LicensesThe Project Public License 1.3c
MaintainerWillie Shen
Contained inTeX Live as physics-patch
MiKTeX as physics-patch
TopicsMaths
Scientific docs
Physics
See alsophysics
...
Guest Book Sitemap Contact Contact Author