Yet another TeX compilation tool: simple, human readable, no option, no magic.
Project description
SpiX 🦜 Yet another TeX compilation tool: simple, human readable, no option, no magic
SpiX is yet another compilation tool 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).
Why SpiX?
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:
- when you want to compile two years later, you don't have to guess the compilation process;
- you can send the
.texfile to someone, and that's it: no need to send detailed instructions or a Makefile along with it (everything is in the.texfile); - 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.
The .tex file
Write the compilation process of your .tex file as a shell script, before the preamble, as lines starting with %$:
% Compile this file twice with lualatex.
%$ lualatex foo.tex
%$ lualatex foo.tex
\documentclass{article}
\begin{document}
Hello, world!
\end{document}
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.
% Compile this file twice with lualatex.
%$ lualatex $texname
%$ lualatex $texname
Compilation
To compile the .tex file, run SpiX:
spix foo.tex
Spix will parse the .tex file, looking for shell snippets (lines before the preamble starting with %$), and run them.
That's all!
Documentation
The complete documentation is available on readthedocs.
To compile it from source, download and run:
cd doc && make html
What's new?
See changelog.
Download and install
-
The preferred way to get
SpiXworking is by using your distribution package manager. With Debian (and Ubuntu, and surely other distributions that inherit from Debian), it is in packagetexlive-extra-utils(since version 2020.20210202-3)::sudo apt install texlive-extra-utils
-
Otherwise, you can install SpiX using pip:
python3 -m pip install spix
-
Other installation methods can be found in the documentation.
License
Copyright 2020-2025 Louis Paternault
SpiX is licensed under the Gnu GPL 3 license, or any later version.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spix-1.5.1.tar.gz.
File metadata
- Download URL: spix-1.5.1.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ac38dbcc8e76aec0aa1ab8b484a2df3abf083191df7c123c1d5ad140bf78c52
|
|
| MD5 |
7f784f66ad47e882f07945a9a9ffcf55
|
|
| BLAKE2b-256 |
c95a9538e2719a107972132d6da567b3f52bdf1a09189853566e820b2a356c7d
|
File details
Details for the file spix-1.5.1-py3-none-any.whl.
File metadata
- Download URL: spix-1.5.1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e03455a0cbfdc03b18df1cd272b6f437d183fa1d104ef7c28efa29c6fe162d51
|
|
| MD5 |
953bdafb72414f6b7fdf59f5d1e01800
|
|
| BLAKE2b-256 |
0cf07925e15373eb75adccb8460317343b4f767ffbfd107bf43511d76449bb72
|