latex inside a python virtual environment
Project description
texenv
Compile LaTeX documents inside a virtual environment and call Python methods from LaTeX code.
Installation
pip install texenv
Usage
example.tex
\documentclass{article}
\import\texenv as \pym
\pydef\test true
\begin{document}
\pym\simple[argument1, arg2=\test]
Hello world!!\ \
\end{document}
texenv method:
def simple(arg1, arg2='default'):
return str(arg1) + str(arg2)
Compile on command line inside virtual environment:
texenv example.tex
License
texenv is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
texenv-0.0.1.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file texenv-0.0.1.tar.gz
.
File metadata
- Download URL: texenv-0.0.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 204b6e4d6efd93c777be71a4d6878501e7e8e01adb4f7ce7db9b25947c501d13 |
|
MD5 | c924a7e7f620553b9d2c2bb6e7e9ee18 |
|
BLAKE2b-256 | 13ccef880247e120004cfe280768dec8fc77e977044c789b98f182a510a138ae |
File details
Details for the file texenv-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: texenv-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc88ba993725aadda443fcd4472f2f1f7f216d7d06df443aa1389d05c2164c3 |
|
MD5 | 582520bd7225233e5b7d2c4d6d8ca2d8 |
|
BLAKE2b-256 | a034f6ab4d9b16397cdb7bf0a6ca42d40db206747b2af1e1e598b6d74df005c6 |