Socket
Book a DemoInstallSign in
Socket

latexthings-mkudrin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

latexthings-mkudrin

A Python package for generating LaTeX code for tables, images, and document wrapping

pipPyPI
Version
0.1.0
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts