A Python package for generating LaTeX code for tables, images, and document wrapping
Project description
latexthings
A Python package for generating LaTeX code for tables, images, and document wrapping.
Installation
pip install latexthings
Usage
from latexthings import latexTable, latexImage, wrapLatex
# Create a LaTeX table
table_data = [
["Header 1", "Header 2"],
["Row 1 Col 1", "Row 1 Col 2"],
["Row 2 Col 1", "Row 2 Col 2"]
]
latex_table = latexTable(table_data)
# Create a LaTeX image
latex_img = latexImage("path/to/image.png")
# Wrap content in a complete LaTeX document
document = wrapLatex(latex_table + "\n\n" + latex_img)
print(document)
Functions
latexTable(list): Converts a 2D list into a LaTeX tablelatexImage(image): Creates LaTeX code for including an imagewrapLatex(text): Wraps content in a complete LaTeX document structure
License
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
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 latexthings_mkudrin-0.1.0.tar.gz.
File metadata
- Download URL: latexthings_mkudrin-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06d11d6fec01c1fd5792a94f2c44b4a182d7dac043ce45c2bf682676c2a3084a
|
|
| MD5 |
94f93329d3f014cbc5133ebd225a0ff2
|
|
| BLAKE2b-256 |
9636848e45bf6045f1317d02405a8f837ee3eecd9d5b2e13bc4844afa343654d
|
File details
Details for the file latexthings_mkudrin-0.1.0-py3-none-any.whl.
File metadata
- Download URL: latexthings_mkudrin-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8aa836fec008c864351879f8441a949f74acf53c1d8da1f8dd935bb0fe1a0ab3
|
|
| MD5 |
aeb222828d37337d76f0719438a94715
|
|
| BLAKE2b-256 |
d8114bb2912d3924f852a06189091db7feee72ac2cb7decbbbbbfb7408987460
|