pipetex2tex
CLI to convert LaTeX source with piped \input{|...} commands into pure LaTeX.
Install
pip install pipetex2tex
Usage
pipetex2tex manuscript.tex > manuscript_with_executed_commands.tex
cat manuscript.tex | pipetex2tex > manuscript_cmds.tex
Or in python:
import pipetex2tex as p2t
tex = "There's \inp{|python -c 'print(int(24*60*60*365.25))'} seconds in a year."
print("source:", tex)
print("out :", p2t.convert(tex), '\n')
tex = "There's $\input { | ls -al ~ | wc -l }$ files/directories in your user directory."
print("source:", tex)
print("out :", p2t.convert(tex))
Results in
source: There's \inp{|python -c 'print(int(24*60*60*365.25))'} seconds in a year.
out : There's 31557600 seconds in a year.
source: There's $\input { | ls -al ~ | wc -l }$ files/directories in your user directory.
out : There's $ 62$ files/directories in your user directory.
Dependencies
pipetex2tex only uses the Python standard library.
License
This project is licensed under the MIT License.
Metadata
Release files for pipetex2tex 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipetex2tex-0.0.0.tar.gz | 4.9 kB | Without provenance | Details for pipetex2tex-0.0.0.tar.gz |
Release files / pipetex2tex-0.0.0.tar.gz
| Download URL | pipetex2tex-0.0.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ad38695f42a6b09d5c8d25db4c26ba0d70b35175ca4a5c8f41867f49128b0e8
|
|
BLAKE2b-256 checksum How to use checksums |
d1b9dc96a58247928d25026725b07135d9a40e9ce1d90098839d0be46625583c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for pipetex2tex 0.0.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.