Debian Codegraph @

texmf-dist/doc/generic/advice/INSTALL.md

raw
1 # Installation from the TDS archive
2
3 If Advice is not (yet) offered by your TeX distribution, the easiest way to
4 install it is by downloading the TDS archive `advice.tds.zip` from [Advice's
5 CTAN page](https://ctan.org/pkg/advice), and unpacking it into your `texmf`
6 directory. You will most likely also have to do the same for an auxiliary
7 package Advice depends on: [CollArgs](https://ctan.org/pkg/collargs).
8
9 Read on only if you have an unstoppable urge to install from source and/or
10 compile the manual or the documented source code.
11
12 # Installation from the source
13
14 ## Getting the sources
15
16 There are several options:
17
18 * Download and unpack the zip archive of the package from [Advice's CTAN
19 page](https://ctan.org/pkg/advice).
20
21 * Download and unpack the TDS archive, or copy the files from your local
22 distribution. The sources reside in `<texmf>/source/generic/advice`.
23
24 * Clone the [GitHub repository of
25 Memoize](https://github.com/sasozivanovic/memoize).
26
27 ## Generating the runtime files
28
29 The easiest way to generate the runtime files is by running `make`. The
30 following command will generate runtime files for all supported formats
31 (currently: LaTeX, plain TeX and ConTeXt).
32
33 ```
34 make advice.sty
35 ```
36
37 Alternatively, you can generate these files manually. The source of this
38 package was written using [EasyDTX](https://ctan.org/pkg/easydtx). Therefore,
39 you first have to convert the `.edtx` file into a regular `.dtx`:
40
41 ```
42 edtx2dtx advice.edtx > advice.dtx
43 ```
44
45 The next step is standard. Produce the runtime files by compiling the
46 installation file:
47
48 ```
49 tex advice.ins
50 ```
51
52 Finally, if you require the ConTeXt runtime, replace all instances of
53 `\expanded` and `\unexpanded` in `t-advice.tex` by `\normalexpanded` and
54 `\normalunexpanded`, respectively. One way to do this is:
55
56 ```
57 sed -i -s -e 's/\\\(un\)\?expanded/\\normal\1expanded/g;' t-advice.tex
58 ```
59
60 ## Installation
61
62 It is recommended to install the files into a TDS-compliant `texmf` directory,
63 as usual. Inspect file `FILES` or the TDS archive `advice.tds.zip` to see what
64 goes where.
65
66 # Compiling the documentation
67
68 The documentation of this package is integrated into the documentation of
69 [Memoize](https://ctan.org/pkg/memoize), please continue there.