A LaTeX package that includes macros for SI, cgs, and some imperial units.
Copyright (C) 2020 by Brian W. Mulligan [email protected]
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.
None.
- some LaTeX distribution with
xelatex
. The makefile assumes you have texlive. hyperref
package for LaTeX- GNU
make
README.md This file.
README.dist.md A readme file suitable for distribution.
CHANGELOG.md List of changes
CHANGELOG.dist.md A list of changes suitable for distribution.
physunits.ins The installer file
physunits.dtx The package code and documentation
makefile GNU makefile to create and install the package
makefile.dist A makefile suitable for distribution.
The following distributable files can be created as described below.
physunits.tar.gz Tarball containing package, documentation, and
this README
physunits.zip Zip file containing package, documentation, and
this README
Each distributable file contains the following:
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
make
to generate the package
Instructions that might help can be for windows can be found at this post on StackExchange.
- Run
latex
on physunits.ins - Run
latex
of some form (e.g.xelatex
) onphysunits.dtx
- Run
makeindex -s gind.ist -o physunits.ind physunits.idx
- Run
makeindex -s gglo.ist -o $(pkgname).gls $(pkgname).glo
- Run
latex
of some form (e.g.xelatex
) onphysunits.dtx
to create the index - Run
latex
of some form (e.g.xelatex
) onphysunits.dtx
to get the right links and labels.
To create a disribution on linux (or mac?)
- Build the package as described above.
make dist
to generate the distributable tarball and zip file
- Build the package as described above.
- Create a directory named
physunits
- Copy
physunits.ins
,physunits.dtx
,physunits.pdf
, andCHANGELOG.md
into the directory - Copy
README.dist.md
into the directory asREADME.md
- Copy
CHANGELOG.dist.md
into the directory asCHANGELOG.md
- Copy
makefile.dist
into the directory asmakefile
- Create a
.zip
file from the directory.
- Build the package as described above.
- Copy the
physunits.sty
into your project where your.tex
files are located.
- Build the package as described above.
make localinstall
to generate the package.
- Build the package as described above.
- 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
physunits.sty
into the new directory. - Figure out where your LaTeX local package documentation is installed.
- Create a directory named
physunits
in that location. - Copy
physunits.pdf
into the new directory. - Run
texhash
or the equivalent to let latex know the package is there.
sudo make localuninstall
- 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.