Skip to main content

Простой функциональный генератор 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 .tex using the provided sample.png.
  • artifacts/ — generated .tex and the sample PNG image.
  • Makefile — convenience targets example (generate .tex) and pdf (requires pdflatex).
  • Dockerfile and docker-compose.yml — containerized build of .tex and .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


Download files

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

Source Distribution

hw2_latex_generator-0.1.0.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.

hw2_latex_generator-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for hw2_latex_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 15dd637302046cf8ad3e4132cec5a562687d6423122e1813151485df166533bc
MD5 aae33d0361684a3a53bce95f02450cba
BLAKE2b-256 374f98936ed48ec324382f27bdab49b63a8332f054fa67d567ba85981b7c50fc

See more details on using hashes here.

File details

Details for the file hw2_latex_generator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hw2_latex_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 852cff29c9e31e2c330b72fc1d369085a8fd3bf8a9088aa8c923bc6820e9fe96
MD5 f409fc3b8f91e61a80ad50740a0840e3
BLAKE2b-256 1b10f1af9f1a6b9d63622be0f28f862f13aec8ce73bfdd8739753f63fa4847db

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