Skip to content

daniel-j/html2latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Convert HTML/CSS to LaTeX, fully customizable

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages