Debian Codegraph @

texmf-dist/doc/support/spix/README.md

raw
1 # SpiX 🦜 Yet another TeX compilation tool: simple, human readable, no option, no magic
2
3 SpiX is [yet another compilation tool](https://www.ctan.org/topic/compilation) for ``.tex`` files. It aims at being simple and human readable. Every piece of configuration is written in the ``.tex`` file itself, in a clear format (a list of console commands).
4
5 ## Why SpiX?
6
7 With SpiX, the compilation process of a ``.tex`` file (Is it compiled using latex? pdflatex? xelatex? lualatex? Should I process its bibliography? with bibtex or biber? Is there an index?) is written in the ``.tex`` file itself, in a human-readable format (a shell script). That way:
8
9 - when you want to compile two years later, you don't have to guess the compilation process;
10 - you can send the ``.tex`` file to someone, and that's it: no need to send detailed instructions or a Makefile along with it (everything is in the ``.tex`` file);
11 - the compilation process is human readable: it can be understood by anyone who is able to read a very basic shell script. In particular, one can read it even if she does not know SpiX.
12
13 ### The ``.tex`` file
14
15 Write the compilation process of your ``.tex`` file as a shell script, before the preamble, as lines starting with ``%$``:
16
17 % Compile this file twice with lualatex.
18 %$ lualatex foo.tex
19 %$ lualatex foo.tex
20
21 \documentclass{article}
22 \begin{document}
23 Hello, world!
24 \end{document}
25
26 You can also replace the file name with ``$texname``. That way, you don't have to worry about the file name when writing your commands.
27
28 % Compile this file twice with lualatex.
29 %$ lualatex $texname
30 %$ lualatex $texname
31
32 ### Compilation
33
34 To compile the ``.tex`` file, run SpiX:
35
36 spix foo.tex
37
38 Spix will parse the ``.tex`` file, looking for shell snippets (lines before the preamble starting with ``%$``), and run them.
39
40 That's all!
41
42 ## Documentation
43
44 The complete documentation is available on [readthedocs](http://spix.readthedocs.io).
45
46 To compile it from source, download and run:
47
48 cd doc && make html
49
50 ## What's new?
51
52 See [changelog](https://framagit.org/spalax/spix/blob/main/CHANGELOG.md).
53
54 ## Download and install
55
56 * The preferred way to get `SpiX` working is by using your distribution package manager. With Debian (and Ubuntu, and surely other distributions that inherit from Debian), it is in package [`texlive-extra-utils`](https://packages.debian.org/search?keywords=texlive-extra-utils) (since version 2020.20210202-3)::
57
58 sudo apt install texlive-extra-utils
59
60 * Otherwise, you can install SpiX using pip:
61
62 python3 -m pip install spix
63
64 * Other installation methods can be found in the [documentation](https://spix.readthedocs.io/en/latest/install/).
65
66 ## License
67
68 *Copyright 2020-2021 Louis Paternault*
69
70 SpiX is licensed under the [Gnu GPL 3 license](https://www.gnu.org/licenses/gpl-3.0.html), or any later version.