Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yegor256/iexec
Execute a command-line command from LaTeX, check the exit code, and then \input the result into the document
https://github.com/yegor256/iexec
latex latex-package shell
Last synced: 3 months ago
JSON representation
Execute a command-line command from LaTeX, check the exit code, and then \input the result into the document
- Host: GitHub
- URL: https://github.com/yegor256/iexec
- Owner: yegor256
- License: mit
- Created: 2021-07-08T19:48:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-28T13:38:16.000Z (3 months ago)
- Last Synced: 2024-09-29T04:42:09.791Z (3 months ago)
- Topics: latex, latex-package, shell
- Language: TeX
- Homepage: https://ctan.org/pkg/iexec
- Size: 273 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![l3build](https://github.com/yegor256/iexec/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/iexec/actions/workflows/l3build.yml)
[![CTAN](https://img.shields.io/ctan/v/iexec)](https://ctan.org/pkg/iexec)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/iexec/blob/master/LICENSE.txt)This LaTeX package helps you execute commands from the document and then input
their output. The package uses [`shellesc`](https://ctan.org/pkg/shellesc) package.
The development of this package was motivated by [this](https://stackoverflow.com/questions/3252957).First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
from [CTAN](https://ctan.org/pkg/iexec)
and then use in the preamble:```tex
\documentclass{article}
\usepackage[unskip]{iexec}
\begin{document}
Today is \iexec{date +\%e-\%b-\%Y}.
\end{document}
```Otherwise, you can download
[`iexec.sty`](https://yegor256.github.io/iexec/iexec.sty) and add to your project.The full example and all commands are available in the
[`iexec.pdf`](https://ftp.agdsn.de/pub/mirrors/latex/dante/macros/latex/contrib/iexec/iexec.pdf) file.If you want to contribute yourself, make a fork, then create a branch,
then run `make` in the root directory.
It should compile everything without errors. If not, submit an issue and wait.
Otherwise, make your changes and then run `make` again. If the build is
still clean, submit a pull request.