Directory macros/latex/contrib/physunits
physunits
A LaTeX package that includes macros for SI, cgs, and some imperial units.
License
Copyright (C) 2020 by Brian W. Mulligan <bwmulligan@astronaos.com>
This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in:
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX version 2006/05/20 or later.
Dependencies
None.
Build Dependencies
- some LaTeX distribution.
hyperref
package for LaTeX
Files
makefile GNU makefile to simplify building and installation on linux README.md This file. CHANGELOG.md List of changes physunits.ins The installer file physunits.dtx The package code and documentation physunits.pdf The package user manual
Building the Package
Linux / Mac using make and xelatex
make
Otherwise
- Run
latex
onphysunits.ins
to create the.sty
file. e.g.latex physunits.ins
. - The following steps apply only if you want the documentation (recommended).
1. Run latex
on physunits.dtx
to create the .pdf
file. e.g. xelatex physunits.pdf
.
- Run
makeindex
to create the index, e.g.makeindex -s gind.ist -o physunits.ind physunits.idx
.
makeindex
to create the change log, e.g. makeindex -s gglo.ist -o physunits.gls physunits.glo
.- Run
latex
onphysunits.dtx
to create the.pdf
file with index and change log. e.g.xelatex physunits.pdf
.
latex
on physunits.dtx
to get the labels sorted out. e.g. xelatex physunits.pdf
.Instructions that might help can be for windows can be found at this post on StackExchange.
Installation
First build the project as described above.
For a single project
- Copy the
physunits.sty
into your project where your.tex
files are located.
for all users and projects
Linux / Mac using make and xelatex
make localinstall
Otherwise
Instructions that might help can be for windows can be found at this post on StackExchange.
- Figure out where your LaTeX local packages are installed.
- Create a directory named
physunits
in that location. - Copy the
.sty
file into the directory you just created. - Figure out where your LaTeX local package documentation is installed.
- Create a directory named
physunits
in that location. - Copy the
.pdf
file into the directory you just created. - Run
texhash
or the equivalent to let LaTeX know the package is there.
Uninstallation
Linux / Mac using make
make localuninstall
### Otherwise
- Figure out where your LaTeX local packages are installed.
- Delete the directory named
physunits
in that location. - Figure out where your LaTeX local package documentation is installed.
- Delete the directory named
physunits
in that location. - Run
texhash
or the equivalent to let LaTeX know the package is gone.
Download the contents of this package in one zip archive (109.2k).
physunits – Macros for commonly used physical units
This package provides a collection of macros to simplify using physical units (e.g. m for meters, J for joules, etc.), especially in math mode. All major SI units are included, as well as some cgs units used in astronomy.
Package | physunits |
Repository | https://github.com/astrobit/physunits |
Version | 1.2.0 2021-03-26 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2020 Brian W. Mulligan |
Maintainer | Brian W. Mulligan |
Contained in | TeX Live as physunits MiKTeX as physunits |
Topics | Scientific docs Physics Units |