How to convert from LaTeX to HTML file
If you have a .tex file and you want to convert it to a .html file you can use LaTeXML.
# git clone https://github.com/brucemiller/LaTeXML.git
# sudo apt-get install libimage-size-perl libimage-magick-perl
# cd LaTeXML
# perl Makefile.PL
Warning: prerequisite Parse::RecDescent 0 not found.
Warning: prerequisite Text::Unidecode 0 not found.
Warning: prerequisite Image::Size 0 not found.
Warning: prerequisite XML::LibXSLT 1.58 not found.
To install these perl dependencies, you must use the following commands:
# sudo cpan z Parse::RecDescent
# sudo cpan z Text::Unidecode
# sudo cpan z Image::Size
# sudo cpan z XML::LibXSLT
looking for -lxslt... no
libxslt not found
Try setting LIBS and INC values on the command line
Or get libxslt and libxml2 from
http://www.libxml.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
No 'Makefile' created SHLOMIF/XML-LibXSLT-1.96.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
If you have this error, you must install libxslt and libxml2:
# sudo apt-get install libxslt1-dev libxml2-dev
# perl Makefile.PL
# make
# make test
# sudo make install
To create a html file from a .tex, you must run the following command:
# latexml doc.tex | latexmlpost --dest=doc.html -
Enjoy it!
# git clone https://github.com/brucemiller/LaTeXML.git
# sudo apt-get install libimage-size-perl libimage-magick-perl
# cd LaTeXML
# perl Makefile.PL
Warning: prerequisite Parse::RecDescent 0 not found.
Warning: prerequisite Text::Unidecode 0 not found.
Warning: prerequisite Image::Size 0 not found.
Warning: prerequisite XML::LibXSLT 1.58 not found.
To install these perl dependencies, you must use the following commands:
# sudo cpan z Parse::RecDescent
# sudo cpan z Text::Unidecode
# sudo cpan z Image::Size
# sudo cpan z XML::LibXSLT
looking for -lxslt... no
libxslt not found
Try setting LIBS and INC values on the command line
Or get libxslt and libxml2 from
http://www.libxml.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.
No 'Makefile' created SHLOMIF/XML-LibXSLT-1.96.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
If you have this error, you must install libxslt and libxml2:
# sudo apt-get install libxslt1-dev libxml2-dev
# perl Makefile.PL
# make
# make test
# sudo make install
To create a html file from a .tex, you must run the following command:
# latexml doc.tex | latexmlpost --dest=doc.html -
Enjoy it!
Comments
Post a Comment