Skip to main content

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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytex_lib-0.1.7.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytex_lib-0.1.7-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file pytex_lib-0.1.7.tar.gz.

File metadata

  • Download URL: pytex_lib-0.1.7.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

Hashes for pytex_lib-0.1.7.tar.gz
Algorithm Hash digest
SHA256 051cf1ad9e3ddb9268ac9646893679817ceee021a4dd87bf85acfdd5a9f10c7a
MD5 2051ec41f17e152df890b78774db08d0
BLAKE2b-256 70fb31bdba4bb79f97a271def211fd70107091a304d0549bff40832a6e4b2407

See more details on using hashes here.

File details

Details for the file pytex_lib-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pytex_lib-0.1.7-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

Hashes for pytex_lib-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 17273aa9b6bafe0a615c7842186774a48d869782050fe7bae82a1071420730a2
MD5 8175a2c920871cbe890d7e6b9ed459b5
BLAKE2b-256 09a3fc785102197c14f32af6ba9a937fcd966fc2fa2bf48ad603961591222c78

See more details on using hashes here.

Supported by

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