# Changes
## [1.0.0] - 2020/01/22
- Initial version
## [1.0.1] - 2020/01/25
### Added
- A changelog
- A readme
- Code for changelog into physconst.cpp
- `make dist` to create distributable tarball and zip
- line in .ins to force generation of the .sty
- nicer index entries (and some associated code in .cpp to generate them)
- added localuninstall and distuninstall targets to the makefile
### Changed
- Modified the makefile to split up generation of the .sty, and .pdf
- Added a newline in the middle of the title declaration (in .cpp)
- Added a newline in the middle of the \DoNotIndex declaration (in .cpp)
- fixed makefile install options to correctly find TEXMF path
## [1.0.2] - 2020/01/25
### Changed
- Switch compression of tarball to gzip to match requirement for CTAN
## [1.0.3] - 2020/01/26
### Added
- uninstall instructions in README.md
- installcheck in makefile
- force makefile to be run serial
### Changed
- Switch tarball/zip to include .dtx instead of .sty per CTAN requirement
- Clean up installation instructions in README.md
- Made some changes in the makefile to take better advantage of make
## [1.0.3a] - 2020/01/26
### Added
- Created a separate readme for the distribution
- Created a separate makefile for the distribution
### Changed
- modify the makefile to include .ins in the package files
- modify the makefile to include the new distrubution readme and makefile
- give instructions on using makefile for distribution
- Did a little more reformatting in the README.
## [1.0.3.d] - 2020/01/26
- there was some issues and mixup with tags in github. This is just a version 
number change to get the github tags to show up in the right order 
## [1.0.3.e] - 2020/01/26
### Changed
- add a section on just build instructions into readme
## [1.0.4] - 2020/03/26
### Changes
- kcal appeared to accept a prefix, though it was ignored; remove option for the
macro
- Celcius, Fahrenheit, and Rankine had the ^\circ outside of the ensuremath,
causing problems for text mode. The degree symbol is also typically typeset
with the unit instead of with the number. Correct both of these issues.
- correct version number and file date in dtx and pdf documentation
- Make sure \micro macro is compatable with siunitx
### Added
- Add acknowledgements to documentation
- Add bug reporting section to documentation
- Add prerequisites section to documentation
- Give some explanation of differences to siunitx in introduction
## [1.1.0] - 2020/11/02
### Added
- Added Celsius macro (correct spelling of Celcius). Retained incorrect
spelling for backward compatability.
## [1.2.0] - 2021/03/26
### Added
- Added centigrade macro. 
### Changes
- Fixed some versioning comments
## [1.3.0] - 2026/11/30
### Added
- Added section for volume
- Added macros for liter (liter and l)
- Added the remaining SI units and a large set of cgs, astronomical,
imperial, US customary and historical units (over 200 new unit macros),
grouped by quantity
- Added lower-case and title-case forms of the units (e.g. \newton and
\Newton; \Gilbert, \Oersted, \Maxwell, \Franklin, \Buckingham, \Fermi,
\Roentgen, \Curie, \Rutherford, \Eotvos, \Sverdrup, \Poiseuille and
\Morgan)
- Added all SI prefix macros, including ronna, quetta, ronto and quecto, and
\myria
- Added user-level unit constructors \punit, \punitDeg and \punitVar
- Added \physunitssetup for setting options in the document
- Added options for alternative unit symbols (arcmin, minute, hour, day, year,
au, gram, liter, kcal, Cal, btu, tonTNT, amu, and the imperial area, volume
and length units, among others), combined-slash for the combination units,
and degree-space
- Added the hide-exponent-one and hide-exponent-zero options (both default
true): an exponent equal to 1 (such as 1, +1, 1.0 or 1.000, ignoring spaces)
is not printed, and a unit with an exponent equal to 0 (such as 0, +0, -0 or
0.0) is not printed at all, together with its prefix and space
- Added the exponent-decimal-comma option (default true): a comma in an
exponent counts as a decimal comma for hide-exponent-one and
hide-exponent-zero (1,0 is treated as 1 and 0,0 as 0); when false, only a
decimal point is recognized
- Added named spacing macros (\pThinSpace, \pMediumSpace, \pThickSpace,
\pFullSpace)
- Added mho units (\mhounit, \statmho and \abmho, with synonyms \Mho,
\statMho and \abMho), using the font's mho glyph when amssymb or unicode-math is
loaded and a rotated Omega otherwise, with a small gap after a prefix. The
rotated Omega is built with \mathchoice, so it is smaller in subscripts and
superscripts
- Added a table of contents, a section on where to obtain the package, a
license section, an AI usage statement, and attribution for the shear code
used for the upright micro sign (from Bruno Le Floch, used under the LPPL
with his permission)
- Added title-case \Lambert, \Einstein, \Rayleigh and \Talbot
- Added short forms \gal (gallon), \impgal, \usgal, \floz, \hft (hoppus
foot), \htn (hoppus ton), \hhd and \bbl
- Added combination units \lbft and \lbin (pound-force foot and inch), and
\bps and \Bps (bit and byte per second, with an optional prefix)
- Added the disable-astro-mass-radii option, which leaves \solarmass,
\jupitermass, \earthmass, \moonmass, \solarradius, \jupiterradius,
\earthradius and \moonradius undefined for documents that define their own
- Added combination units \watthour and \amperehour (synonyms \Watthour,
\WattHour, \Wh and \Amperehour, \AmpereHour, \Ah; with Wh and Ah options
for W·h or Wh, and A·h or Ah) and
\molar (mol/L or mol L^-1, following combined-slash and the liter option),
each with an optional prefix
- Added \bohr and \Bohr, \rydberg and \Rydberg, \hartree and \Hartree
(with a hartree option for E_h or Ha), \solarluminosity, \magnitude,
\raddose, \dobsonunit, and \enzymeunit (with an enzymeunit option for U or
IU)
- Added a Ratios section with \percent (with a percent option: symbol,
percent, or per cent), \permille, \ppm and \ppb
- Added \basepair (with a basepair option: bp, b, or mixed, which gives bp
without a prefix and kb, Mb with one) and \nucleotideunit (nt), both with
prefixes
- Added a Climate and carbon section with \tonneC, \tonneCOtwo and
\tonneCOtwoeq (with a tonneCOtwoeq option for the e or -eq suffix); the
prefix applies to the tonne (GtC, MtCO2e)
- Added the disable option, which leaves any listed commands undefined (e.g.
disable={solarmass, ly}), and the skip-defined option, which leaves commands
that already exist when physunits is loaded unchanged. Commands built from a
disabled command still work
- Added \cupunit (with a cup option: c., C., or cup) and \KLOC (synonym of
\kloc), and \loc and \LOC (line of code), whose prefix can be any text, e.g.
\loc[K] for KLOC or \loc[\mega] for MLOC
- Added \revolution (rev), with synonym \rev
- Added \standardcubicmeter, \actualcubicmeter and \normalcubicmeter (with
metre synonyms) and the cubic-meter-symbol option (m3 for Sm^3, Am^3, Nm^3;
CM for SCM, ACM, NCM); they take a prefix, and in the m3 form an exponent
replaces the 3
- Added the cf, Scf and Acf values of the cuft option
- The non-SI area and volume units (\acre, the gallons, \quart, \pint,
\fluidounce, \tablespoon, \teaspoon, \cupunit, \teu, \feu, \hoppus,
\hoppuston, \hogshead, \stuck, \barrel, \rundlet, \tierces, \tun and the
square and cubic units) take a prefix, for industry prefixes given as text
(e.g. \cuft[MM], \barrel[M])
- The non-SI mass and force units (\carat, \hyl, \slug, \TME, \poundmass,
\grain, \hundredweight, \pennyweight, \troyounce, \troypound, \shortton,
\longton, \poundal and \poundforce, with their synonyms) take a prefix in the
same way (e.g. \lb[MM])
- \foot (\feet, \ft) and \inch take a prefix, for forms such as kft, Mft and
the microinch (\inch[\micro])
- Added \boardfoot (with synonym \boardfeet) and the boardfoot option (BF or
FBM; default BF); it takes a prefix, e.g. \boardfoot[M] gives MBF
- Added \lbs as a synonym for \poundmass, and the poundmass option (lb or lbs;
default lb), which sets the symbol of \poundmass, \lb and \lbs
- The square and cubic units (\sqin to \cumi) also take an exponent; in the
power forms (such as ft^3) it replaces the built-in power
- Documentation: a table of what each LaTeX engine loads and uses; the
prefix-capable and non-prefix units in the syntax section, including how to
put a space after a text prefix (\cuft[M\,]); the history of the
title-case and short forms; how the prefix of a combination unit applies only
to the leading unit; the symbol, prefix, degree sign, exponent and separator
of \punit, \punitDeg and \punitVar; that an exponent written as an
expression (such as 1+0) is printed as written; that a blank exponent keeps
the built-in power of units such as ft^3 (use 1 to drop it); and that non-SI
multiplier prefixes (c, M, MM) are given as text
- Moved the Package options section after the Syntax and Naming convention
sections
- Added Separator control and User-defined units subsections to the Syntax
section, the latter with a recommended way to define new unit macros with
\punit, \punitDeg and \punitVar
- Added the gallon option (gal, imp-gal or US-gal; default gal), which sets
the symbol of \gallon and \gal
- Added \masssolar, \massjupiter, \massearth, \massmoon, \radiussolar,
\radiusjupiter, \radiusearth, \radiusmoon and \luminositysolar as
synonyms of the astronomical units; disable-astro-mass-radii covers them too
- Added the astro-units-roman option, which sets the letter of the
astronomical masses, radii and solar luminosity in roman (as MNRAS requires)
- Added the earth-unit-subscript (symbol, E or Earth; default symbol),
solar-unit-subscript (symbol, S or Sun; default symbol) and
moon-unit-subscript (symbol, L, Lunar or Moon; default L) options, which
set the subscript of the Earth, solar and lunar masses, radii and the solar
luminosity. The moon symbol is \leftmoon from wasysym, which must be
loaded; without it a warning is given and L is used
### Changed
- An exponent equal to 1 is no longer printed (\meter[][1] gives m, not m^1),
and a unit with an exponent of 0 is no longer printed (3\meter[][0] gives 3); use
hide-exponent-one=false and hide-exponent-zero=false for the v1.2 behavior
- All unit macros reimplemented with \NewDocumentCommand; each takes
optional prefix, exponent and separator arguments, in that order. Units that
do not take SI prefixes (e.g. \Min, \h) no longer accept a prefix
- Package options are now key-value options, declared with expl3
(\keys_define:nn); amu, unit-space
and deka replace the old amu-, space- and deka- options
- Requires a LaTeX format dated 2020-10-01 or later (with formats older than
2022-06-01, l3keys2e is loaded to read the options); upgreek is no longer
loaded
- \micro is always an upright mu: sheared math italic mu under pdfLaTeX,
the upright text-font \textmu (TS1 encoding) in DVI mode (latex or
dvilualatex), and \upmu under XeLaTeX and LuaLaTeX
- LuaLaTeX in DVI mode (dvilualatex) uses the legacy math fonts, as
pdfLaTeX does, instead of loading unicode-math, whose OpenType fonts do
not work in DVI mode
- Default symbol for \tnt is now "ton TNT" (was "ton of TNT")
- \units@separator works as in v1.2: redefining it changes the space before
(and within) every unit. The unit-space option sets it; whichever is done
last takes effect
- Reorganized the documentation: units grouped by quantity, each split into
SI, cgs and semi-SI, and imperial, US customary and historical units
- \sqin, \sqft, \sqyd, \sqmi, \cuin, \cuft, \cuyd and \cumi take an
optional separator argument
- \Nm takes an optional prefix for the newton
- All combination units take an optional separator argument (the space
before the unit), as their last argument
- Fixed liter=ell, \ohm, \statohm and \abohm, which printed nothing under
XeLaTeX and LuaLaTeX
- Fixed \Angstrom under XeLaTeX and LuaLaTeX, where unicode-math replaced it
with its own symbol, and the placement of the ring on the angstrom symbol
- Fixed the accent of R\'e (\reaumur) under XeLaTeX and LuaLaTeX, which was
set beside the e instead of above it
- disable-astro-mass-radii also leaves \solarluminosity undefined
- Units are defined under internal names and refer to each other by those
names; the public commands are defined at the end of the package. A clash
with an existing command now gives an error that suggests disable or
skip-defined. disable-astro-mass-radii is a shortcut for disable
- The user manual no longer shows the implementation; the change history and
index are still included
- Package options in the documentation are grouped by unit type, in the same
order as the units
- Updated email address to txstate.edu
- Updated the readmes: current description, dependencies, copyright and
email, links to CTAN and GitHub, corrected build commands (run pdflatex or
xelatex on physunits.dtx), sudo for localinstall and localuninstall, and
typo fixes
- makefile: xelatex runs with -interaction=nonstopmode -halt-on-error; clean
also removes the .hd file; the install checks use $(MAKE); installcheck now
reports the copy of physunits.sty that LaTeX will actually use
- makefile: uses latexmk to build the documentation when it is installed,
and otherwise runs XeLaTeX and makeindex directly (make LATEXMK= forces the
direct build); clean also removes the latexmk files (.fls, .fdb_latexmk, .xdv)
- makefile and readmes: the direct build now runs XeLaTeX twice before
makeindex, so the index page numbers are correct (they were one page off)
