Skip to main content

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


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)

Uploaded Source

Built Distribution

texenv-0.0.1-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page