LaTeX Generator
Простая библиотека для генерации LaTeX кода.
Установка
pip install latex-generator-itmo-kulyaskin
Использование
Генерация таблиц
from latex_generator import generate_table
data = [
["Имя", "Возраст", "Город"],
["Иван", "25", "Москва"],
["Мария", "30", "Санкт-Петербург"]
]
latex_table = generate_table(
data,
caption="Пример таблицы с данными пользователей",
label="tab:users"
)
print(latex_table)
Генерация изображений
from latex_generator import generate_image
latex_image = generate_image(
"cat.png",
caption="Котик",
label="fig:cat",
width="0.8\\textwidth"
)
print(latex_image)
Release files for latex-generator-itmo-kulyaskin 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| latex_generator_itmo_kulyaskin-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| latex_generator_itmo_kulyaskin-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / latex_generator_itmo_kulyaskin-0.1.0.tar.gz
| Download URL | latex_generator_itmo_kulyaskin-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fbd16c5e84d3d39c0afdb1806043930e59096baf7b4a2e09e9763d885245235
|
|
BLAKE2b-256 checksum How to use checksums |
c704243cf2cd2bc9027504909fe0ecfd1eb35d4f6d9f879de72077a871e068a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.5 Darwin/24.2.0
|
Release files / latex_generator_itmo_kulyaskin-0.1.0-py3-none-any.whl
| Download URL | latex_generator_itmo_kulyaskin-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6000b13b9023277cc3fb823b9bffa18a36016cc5386b81e8a4324f20482f6a8
|
|
BLAKE2b-256 checksum How to use checksums |
421cb2987e61208b1004570b24a8b64390c916852b2c230dda679e9b7b9a5ba1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.12.5 Darwin/24.2.0
|