| 1 |
[](https://github.com/yegor256/fail-fast/actions/workflows/l3build.yml) |
| 2 |
[](https://ctan.org/pkg/fail-fast) |
| 3 |
[](https://github.com/yegor256/fail-fast/blob/master/LICENSE.txt) |
| 4 |
|
| 5 |
This LaTeX package helps you make your build more fragile, which is good if you care about quality. |
| 6 |
Every warning it will turn into an error and LaTeX engine will fail with a non-zero error message. |
| 7 |
|
| 8 |
First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages) |
| 9 |
from [CTAN](https://ctan.org/pkg/fail-fast) |
| 10 |
and then use in the preamble: |
| 11 |
|
| 12 |
```tex |
| 13 |
\documentclass{article} |
| 14 |
\usepackage{fail-fast} |
| 15 |
\begin{document} |
| 16 |
This reference is broken: \ref{foo} |
| 17 |
\end{fail-fast} |
| 18 |
\end{document} |
| 19 |
``` |
| 20 |
|
| 21 |
Otherwise, you can download [`fail-fast.sty`](https://raw.githubusercontent.com/yegor256/fail-fast/gh-pages/fail-fast/fail-fast.sty) and add to your project. |
| 22 |
|
| 23 |
If you want to contribute yourself, make a fork, then create a branch, |
| 24 |
then run `l3build ctan` in the root directory. |
| 25 |
It should compile everything without errors. If not, submit an issue and wait. |
| 26 |
Otherwise, make your changes and then run `l3build ctan` again. If the build is |
| 27 |
still clean, submit a pull request. |
| 28 |
|
| 29 |
Copyright (c) 2023 Yegor Bugayenko, MIT License |