Debian Codegraph @

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

raw
1 # Execute Shell from LaTeX
2
3 [![l3build](https://github.com/yegor256/iexec/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/iexec/actions/workflows/l3build.yml)
4 [![CTAN](https://img.shields.io/ctan/v/iexec)](https://ctan.org/pkg/iexec)
5 [![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/iexec/blob/master/LICENSE.txt)
6
7 This LaTeX package helps you execute commands from the document and then input
8 their output. The package uses [`shellesc`](https://ctan.org/pkg/shellesc) package.
9 The development of this package was motivated
10 by [this](https://stackoverflow.com/questions/3252957).
11
12 First,
13 [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
14 from [CTAN](https://ctan.org/pkg/iexec)
15 and then use in the preamble:
16
17 ```tex
18 \documentclass{article}
19 \usepackage[unskip]{iexec}
20 \begin{document}
21 Today is \iexec{date +\%e-\%b-\%Y}.
22 \end{document}
23 ```
24
25 Otherwise, you can download
26 [`iexec.sty`](https://yegor256.github.io/iexec/iexec.sty) and add
27 to your project.
28
29 The full example and all commands are available in the
30 [`iexec.pdf`][pdf] file.
31
32 If you want to contribute yourself, make a fork, then create a branch,
33 then run `make` in the root directory.
34 It should compile everything without errors. If not, submit an issue and wait.
35 Otherwise, make your changes and then run `make` again. If the build is
36 still clean, submit a pull request.
37
38 [pdf]: https://ftp.agdsn.de/pub/mirrors/latex/dante/macros/latex/contrib/iexec/iexec.pdf