Metadata-Version: 2.1
Name: texenv
Version: 0.0.1
Summary: latex inside a python virtual environment
Author-email: Rick Lyon <rlyon14@gmail.com>
Project-URL: repository, https://github.com/ricklyon/texenv
Keywords: latex,tex,environment
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: click
Provides-Extra: dev
Requires-Dist: black ; extra == 'dev'
Requires-Dist: flake8 ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'

# texenv

Compile LaTeX documents inside a virtual environment and call Python methods from LaTeX code.

## Installation

```bash
pip install texenv
```

## Usage

example.tex
```tex
\documentclass{article}

\import\texenv as \pym
\pydef\test true

\begin{document}
   
   \pym\simple[argument1, arg2=\test]
   
	Hello world!!\ \
\end{document}
```
texenv method:
```python
def simple(arg1, arg2='default'):
    return str(arg1) + str(arg2)
```

Compile on command line inside virtual environment:
```bash
texenv example.tex
```

## License

texenv is licensed under the MIT License.
