Skip to main content

No project description provided

Project description

LatexToolkit 📝 → 📄

LatexToolkit is lightweight Python package working on top of magic-pdf. It is designed to convert documents into LaTeX format. Whether you're working with PDFs, markdown files, or other structured text formats, this toolkit is thought to streamline the workflow of LaTeX conversion.

Features

✔️ End to end pipeline from PDF to LaTeX .
✔️ Simple CLI tool for documents to LaTeX conversions.

Future features: Support of .doc , .docx , .ppt and .pptx. formats.

Code available here

Installation

1. Ensure to install first magic-pdf

Using Conda env:

conda create -n MinerU python=3.10
conda activate MinerU
pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com

Download model weight files:

pip install huggingface_hub
wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py
python download_models_hf.py

If using GPU follow magic-pdf Official installation

2. Install LatexToolkit via pip:

pip install LatexToolkit

Ussage

Run the tool from the terminal to convert a document:

latex_toolkit input_file.pdf

or use it in your Python scripts:

from LatexToolkit import to_latex

to_latex("input_file.pdf")

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

latex_toolkit-0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

latex_toolkit-0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file latex_toolkit-0.1.tar.gz.

File metadata

  • Download URL: latex_toolkit-0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for latex_toolkit-0.1.tar.gz
Algorithm Hash digest
SHA256 ab3951d136e47999967b3d3e823f3b264daf4c9522304027caa108167ca9d1e3
MD5 98c077c938a031034d545b698a773936
BLAKE2b-256 db5e25429862908c678511f01e40e32a5f2325ab974a687f49348a1c213e84c5

See more details on using hashes here.

File details

Details for the file latex_toolkit-0.1-py3-none-any.whl.

File metadata

  • Download URL: latex_toolkit-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for latex_toolkit-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc2ef1bc57f12ac8fd07ea89ffa0e191e2de034a9f076506d0ce963de1c587b9
MD5 3230caf02a1b25716550f175af25b1fc
BLAKE2b-256 685f082f30c764732f946edba01bcac8b369145b2ca6cec2c11b2791675bcc49

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