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 hashes)
Built Distribution
texenv-0.0.1-py3-none-any.whl
(8.0 kB
view hashes)