Directory macros/latex/contrib/physconst
physconst
A LaTeX package that includes macros for a variety of fundamental constants.
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
physunitspackage also available
at CTAN
Build Dependencies
- some LaTeX distribution.
hyperrefpackage for LaTeXxcolorpackage for LaTeXmdframedpackage for LaTeXimakeidxpackage for LaTeX
Files
makefile GNU makefile to simplify building and installation
on linux
README.md This file.
CHANGELOG.md List of changes
physconst.ins The installer file
physconst.dtx The package code and documentation
physconst.pdf The package user manual
Building the Package
Linux / Mac using make and xelatex
make
Otherwise
- Run
latexonphysconst.insto create the.styfile. e.g.
latex physconst.ins.
- The following steps apply only if you want the documentation (recommended).
latex on physconst.dtx to create the .pdf file. e.g. xelatex physconst.pdf.- Run
makeindexto create the index, e.g.
makeindex -s gind.ist -o physconst.ind physconst.idx.- Run
makeindexto create the change log, e.g.
makeindex -s gglo.ist -o physconst.gls physconst.glo.- Run
latexonphysconst.dtxto create the.pdffile with index and
xelatex physconst.pdf.- Run
latexonphysconst.dtxto get the labels sorted out. e.g.
xelatex physconst.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
physconst.styinto your project where your.texfiles 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
physconstin that location. - Copy the
.styfile into the directory you just created. - Figure out where your LaTeX local package documentation is installed.
- Create a directory named
physconstin that location. - Copy the
.pdffile into the directory you just created. - Run
texhashor 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
physconstin that location. - Figure out where your LaTeX local package documentation is installed.
- Delete the directory named
physconstin that location. - Run
texhashor the equivalent to let LaTeX know the package is gone.
Download the contents of this package in one zip archive (227.0k).
physconst – Macros for commonly used physical constants
This package consists of several macros that are shorthand for a variety of physical constants, e.g. the speed of light. The package developed out of physics and astronomy classes that the author has taught and wanted to ensure that he had correct values for each constant and did not wish to retype them every time he uses them.
The constants can be used in two forms, the most accurate available values, or versions that are rounded to 3 significant digits for use in typical classroom settings, homework assignments, etc.
Most constants are taken from CODATA 2018, with the exception of the astronomical objects, whose values are taken from International Astronomical Union specified values. Constants that are derived from true constants, e.g. the fine structure constant, have been calculated using the accepted values of the fundamental constants.
| Package | physconst |
| Bug tracker | https://github.com/astrobit/physconst/issues |
| Repository | https://github.com/astrobit/physconst |
| Version | 1.1.2 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 physconst MiKTeX as physconst |
| Topics | Physics Numbers |