Allows you to output your python functions directly to a LaTeX file.
Project description
pytex-lib
Allows you to output your python functions directly to a LaTeX file.
TODO
- Figure out out how to core file allows you to import it easier
Example Usage
Import with
from pytex_lib.core import write_to_latex
Then you can use the write_to_latex decorator to output your functions to a LaTeX file.
@write_to_latex
def f(x):
return x**2
You call the function with the directory and the keyword like this
file_path = "Path/to/latex/doc"
keyword = "keyword in latex doc"
f(file_path=file_path, keyword=keyword)
Then your latex doc should look like this
\documentclass{article}
\begin{document}
The answer is
% keyword in latex doc
(answer form f(x) = x^2)
\end{document}
Installation
pip install pytex-lib
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytex_lib-0.1.6.tar.gz.
File metadata
- Download URL: pytex_lib-0.1.6.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/5.15.0-131-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13e0639d3c1949018c14b89ac8cde41abf505c771283c880ceaf59bcfb40bf9a
|
|
| MD5 |
b4fb9670d162385c94b3f143bb383891
|
|
| BLAKE2b-256 |
83d67f218acdf81648166ba1b30d525eb4e1217e266fc5e9e99a2f9f84d1b7b2
|
File details
Details for the file pytex_lib-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pytex_lib-0.1.6-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.10.12 Linux/5.15.0-131-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41a477082856ace94f4833f4acf95f16ae60b5020da072b2922267365355bcbd
|
|
| MD5 |
6505390cbf0d971264baee07e5a4d577
|
|
| BLAKE2b-256 |
8565ed8e4b3dfff3e4824498a62fee71be01408d6c7e22b688dda22be1482d51
|