Debian Codegraph @

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

raw
1 # physunits
2 A LaTeX package that includes macros for SI, cgs, and some imperial units.
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 None.
20
21 # Build Dependencies
22 - some LaTeX distribution.
23 - `hyperref` package for LaTeX
24
25 # Files
26 ```
27 makefile GNU makefile to simplify building and installation on linux
28 README.md This file.
29 CHANGELOG.md List of changes
30 physunits.ins The installer file
31 physunits.dtx The package code and documentation
32 physunits.pdf The package user manual
33 ```
34
35 # Building the Package
36 ## Linux / Mac using make and xelatex
37 1. `make`
38
39 ## Otherwise
40 1. Run `latex` on `physunits.ins` to create the `.sty` file. e.g. `latex physunits.ins`.
41 1. The following steps apply only if you want the documentation (recommended).
42 1. Run `latex` on `physunits.dtx` to create the `.pdf` file. e.g. `xelatex physunits.pdf`.
43 1. Run `makeindex` to create the index, e.g. `makeindex -s gind.ist -o physunits.ind physunits.idx`.
44 1. Run `makeindex` to create the change log, e.g. `makeindex -s gglo.ist -o physunits.gls physunits.glo`.
45 1. Run `latex` on `physunits.dtx` to create the `.pdf` file with index and change log. e.g. `xelatex physunits.pdf`.
46 1. Run `latex` on `physunits.dtx` to get the labels sorted out. e.g. `xelatex physunits.pdf`.
47
48 Instructions that might help can be for windows can be found at [this post on StackExchange](https://tex.stackexchange.com/questions/369921/loading-packages-with-ins-and-dtx-files).
49
50 # Installation
51 First build the project as described above.
52
53 ## For a single project
54 1. Copy the `physunits.sty` into your project where your `.tex` files are located.
55
56 ## for all users and projects
57 ### Linux / Mac using make and xelatex
58 1. `make localinstall`
59
60 ### Otherwise
61 Instructions that might help can be for windows can be found at [this post on StackExchange](https://tex.stackexchange.com/questions/369921/loading-packages-with-ins-and-dtx-files).
62 1. Figure out where your LaTeX local packages are installed.
63 1. Create a directory named `physunits` in that location.
64 1. Copy the `.sty` file into the directory you just created.
65 1. Figure out where your LaTeX local package documentation is installed.
66 1. Create a directory named `physunits` in that location.
67 1. Copy the `.pdf` file into the directory you just created.
68 1. Run `texhash` or the equivalent to let LaTeX know the package is there.
69
70
71 # Uninstallation
72
73 ### Linux / Mac using make
74 1. `make localuninstall`
75 ### Otherwise
76 1. Figure out where your LaTeX local packages are installed.
77 1. Delete the directory named `physunits` in that location.
78 1. Figure out where your LaTeX local package documentation is installed.
79 1. Delete the directory named `physunits` in that location.
80 1. Run `texhash` or the equivalent to let LaTeX know the package is gone.
81