https://github.com/daniel-j/html2latex
Convert HTML/CSS to LaTeX, fully customizable
https://github.com/daniel-j/html2latex
html-conversion latex
Last synced: about 1 year ago
JSON representation
Convert HTML/CSS to LaTeX, fully customizable
- Host: GitHub
- URL: https://github.com/daniel-j/html2latex
- Owner: daniel-j
- Created: 2017-10-19T07:01:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T19:24:17.000Z (almost 7 years ago)
- Last Synced: 2025-03-26T19:04:35.382Z (about 1 year ago)
- Topics: html-conversion, latex
- Language: Python
- Size: 14.6 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
html2latex
==========
Dependencies
------------
Arch Linux: `# pacman -S python3 python-lxml python-cssutils python-cssselect`
Ubuntu: ``# apt install python3-lxml python3-cssutils python3-cssselect`
Pip: `pip3 install lxml cssutils cssselect`
Usage
-----
`example.py [--input HTML FILE] [--output TEX FILE] [--style CSS FILE]`
* To convert a HTML/XHTML file to LaTeX:
`./example.py --style stylesheet.css --input document.html --output document.tex`
* To convert several HTML files at once, just add more `--input` and `--output` arguments:
`./example.py --style stylesheet.css --input document.html --output document.tex --input other.xhtml --output other.tex`
Make a copy of `example.py` and modify it.