Debian Codegraph @

texmf-dist/doc/latex/physconst/README.md

raw
1 # physconst
2 A LaTeX package that includes macros for a variety of fundamental constants.
3
4 # License
5 Copyright (C) 2020 by Brian W. Mulligan <[email protected]>
6 -----------------------------------------------------------
7
8 This file may be distributed and/or modified under the conditions of
9 the LaTeX Project Public License, either version 1.3c of this license
10 or (at your option) any later version. The latest version of this
11 license is in:
12
13 http://www.latex-project.org/lppl.txt
14
15 and version 1.3c or later is part of all distributions of LaTeX
16 version 2006/05/20 or later.
17
18 # Dependencies
19 - [`physunits` package](https://github.com/astrobit/physunits) also available
20 at [CTAN](https://ctan.org)
21
22 # Build Dependencies
23 - some LaTeX distribution.
24 - `hyperref` package for LaTeX
25 - `xcolor` package for LaTeX
26 - `mdframed` package for LaTeX
27 - `imakeidx` package for LaTeX
28
29 # Files
30 ```
31 makefile GNU makefile to simplify building and installation
32 on linux
33 README.md This file.
34 CHANGELOG.md List of changes
35 physconst.ins The installer file
36 physconst.dtx The package code and documentation
37 physconst.pdf The package user manual
38 ```
39
40 # Building the Package
41 ## Linux / Mac using make and xelatex
42 1. `make`
43
44 ## Otherwise
45 1. Run `latex` on `physconst.ins` to create the `.sty` file. e.g.
46 `latex physconst.ins`.
47 1. The following steps apply only if you want the documentation (recommended).
48 1. Run `latex` on `physconst.dtx` to create the `.pdf` file. e.g.
49 `xelatex physconst.pdf`.
50 1. Run `makeindex` to create the index, e.g.
51 `makeindex -s gind.ist -o physconst.ind physconst.idx`.
52 1. Run `makeindex` to create the change log, e.g.
53 `makeindex -s gglo.ist -o physconst.gls physconst.glo`.
54 1. Run `latex` on `physconst.dtx` to create the `.pdf` file with index and
55 change log. e.g. `xelatex physconst.pdf`.
56 1. Run `latex` on `physconst.dtx` to get the labels sorted out. e.g.
57 `xelatex physconst.pdf`.
58
59 Instructions that might help can be for windows can be found at
60 [this post on StackExchange](https://tex.stackexchange.com/questions/369921/loading-packages-with-ins-and-dtx-files).
61
62 # Installation
63 First build the project as described above.
64
65 ## For a single project
66 1. Copy the `physconst.sty` into your project where your `.tex` files are
67 located.
68
69 ## for all users and projects
70 ### Linux / Mac using make and xelatex
71 1. `make localinstall`
72
73 ### Otherwise
74 Instructions that might help can be for windows can be found at
75 [this post on StackExchange](https://tex.stackexchange.com/questions/369921/loading-packages-with-ins-and-dtx-files).
76 1. Figure out where your LaTeX local packages are installed.
77 1. Create a directory named `physconst` in that location.
78 1. Copy the `.sty` file into the directory you just created.
79 1. Figure out where your LaTeX local package documentation is installed.
80 1. Create a directory named `physconst` in that location.
81 1. Copy the `.pdf` file into the directory you just created.
82 1. Run `texhash` or the equivalent to let LaTeX know the package is there.
83
84
85 # Uninstallation
86
87 ### Linux / Mac using make
88 1. `make localuninstall`
89 ### Otherwise
90 1. Figure out where your LaTeX local packages are installed.
91 1. Delete the directory named `physconst` in that location.
92 1. Figure out where your LaTeX local package documentation is installed.
93 1. Delete the directory named `physconst` in that location.
94 1. Run `texhash` or the equivalent to let LaTeX know the package is gone.
95