Skip to main content

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 table
  • latexImage(image): Creates LaTeX code for including an image
  • wrapLatex(text): Wraps content in a complete LaTeX document structure

License

MIT License

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

latexthings_mkudrin-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

latexthings_mkudrin-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for latexthings_mkudrin-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06d11d6fec01c1fd5792a94f2c44b4a182d7dac043ce45c2bf682676c2a3084a
MD5 94f93329d3f014cbc5133ebd225a0ff2
BLAKE2b-256 9636848e45bf6045f1317d02405a8f837ee3eecd9d5b2e13bc4844afa343654d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for latexthings_mkudrin-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8aa836fec008c864351879f8441a949f74acf53c1d8da1f8dd935bb0fe1a0ab3
MD5 aeb222828d37337d76f0719438a94715
BLAKE2b-256 d8114bb2912d3924f852a06189091db7feee72ac2cb7decbbbbbfb7408987460

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