Простой функциональный генератор LaTeX для таблиц и картинок
Project description
HW 2 — functional LaTeX generator
Minimal, dependency-free helpers to generate LaTeX for tables and images, plus a ready-made example that produces artifacts/table_and_image.tex using the committed artifacts/sample.png.
What’s included
latex_gen.py— pure functions for table/image blocks and full document rendering.create_example.py— builds the example.texusing the providedsample.png.artifacts/— generated.texand the sample PNG image.Makefile— convenience targetsexample(generate.tex) andpdf(requirespdflatex).Dockerfileanddocker-compose.yml— containerized build of.texand.pdf.
Run locally
cd hw_2
python3 create_example.py # writes artifacts/table_and_image.tex and sample.png
# optional if LaTeX is installed:
make pdf # pdflatex -> artifacts/table_and_image.pdf
Docker
Build image once:
cd hw_2
docker build -t hw2-latex .
Generate pdf using the built image (no rebuild needed):
cd hw_2
docker run --rm -v "$PWD/artifacts:/app/artifacts" hw2-latex
# or make docker-run (after make docker-build once)
Or via docker-compose (builds first time, then reuses):
cd hw_2
docker-compose up --build
Artifacts land in artifacts/ on the host.
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 hw2_latex_generator-0.1.0.tar.gz.
File metadata
- Download URL: hw2_latex_generator-0.1.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15dd637302046cf8ad3e4132cec5a562687d6423122e1813151485df166533bc
|
|
| MD5 |
aae33d0361684a3a53bce95f02450cba
|
|
| BLAKE2b-256 |
374f98936ed48ec324382f27bdab49b63a8332f054fa67d567ba85981b7c50fc
|
File details
Details for the file hw2_latex_generator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hw2_latex_generator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852cff29c9e31e2c330b72fc1d369085a8fd3bf8a9088aa8c923bc6820e9fe96
|
|
| MD5 |
f409fc3b8f91e61a80ad50740a0840e3
|
|
| BLAKE2b-256 |
1b10f1af9f1a6b9d63622be0f28f862f13aec8ce73bfdd8739753f63fa4847db
|