Posts

Showing posts with the label html

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   /us...

How to enable Sphinx documentation in Pycharm

Image
Sphinx is a tool that makes it easy to create documentation. It was originally created for the new Python documentation, and enables to create it on html, LaTeX or linkcheck. See this blog for more information about Shpinx First, you need install Shpinx it on your system: pip install Sphinx Now, you need configurate the project folder from Pycharm on Tools/Sphinx Quickstart You should get this error: ReStructuredText Error  No sdk specified To solve it, use the same solution that in this previous post Now, you can compile your code to generate a html or a LaTeX file. Go to your project folder on your terminal and write: #if you want html make html #if you want LaTeX make latex If you want generate this from Pycharm, you need create an external tool. Go to  File/Settings.../Tools/External Tools/  and add the following configuration: Go to  Tools/External Tools/Generate HTML and you will see the following ...