Skip to main content

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 .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);
  • 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 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 (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.

Metadata

Release files for spix 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spix 1.6.0
File Size Uploaded Provenance Actions
spix-1.6.0.tar.gz 1.2 MB Without provenance Details for spix-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spix 1.6.0
File Interpreter ABI Platform Actions
spix-1.6.0-py3-none-any.whl Python 3 none any Details for spix-1.6.0-py3-none-any.whl

Total release size: 1.2 MB

Release files / spix-1.6.0.tar.gz

Download URL spix-1.6.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
d06e95322913261a08541bc556f2006f1abde0698fc5bef3b9dd5dda3ec32713
BLAKE2b-256 checksum
How to use checksums
636c35cf9e920eaf515d538c087daeeb35e1103ef5798bf97cf4e7227d7a1a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / spix-1.6.0-py3-none-any.whl

Download URL spix-1.6.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e44d2703a63fb5c1da0d32d28216385535fc2f87d292414f575f3a0bc081fc9
BLAKE2b-256 checksum
How to use checksums
35118feba11d7467b74a82db9ae6dfc78c957e4abf054d9a1652e248fb0302a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for spix 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page