Debian Codegraph @

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

raw
1 # `reptheorem`
2
3 When writing a large manuscript, it is sometimes
4 beneficial to repeat a theorem (or lemma or…) at
5 an earlier or later point for didactical purposes.
6 However, `thmtools`'s built-in `restatable`
7 only allows replicating theorems *after* they
8 have been stated, and only in the same document.
9 `reptheorem` solves the issue by making use
10 of the `.aux` file, and also introduces its own file
11 extension, `.thm`, to replicate theorems in other files.
12
13 # Installation
14 Run the following in the command line:
15 1. If reptheorem.ins is present:
16 `latex reptheorem.ins`
17 2. If reptheorem.ins is absent:
18 `latex reptheorem.dtx`
19
20 Move `reptheorem.sty` to a folder that TeX can find.
21
22 # Documentation
23 Run the following in the command line:
24 ```
25 pdflatex reptheorem.dtx
26 makeindex -s gind.ist -o reptheorem.ind reptheorem.idx
27 makeindex -s gglo.ist -o reptheorem.gls reptheorem.glo
28 pdflatex reptheorem.dtx
29 ```
30 This automatically unpacks the package, as well.
31
32 ---
33
34 © 2024- Jesse Straat
35
36 License: [LPPL1.3c](https://www.latex-project.org/lppl.txt)
37
38 [GitHub Repository](https://github.com/JesseStraat/reptheorem)
39
40