Posts

Showing posts with the label latex

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

Error in Latex: File ended while scanning use of \url. \bibliography{

If you try load urls in your bibliography with especial characters like Ʊ or vowels with accents, for example, Jabref automatically translate it to url encode syntax. The problem is when latex try to read it, doesn't know how interpret this url, for this reason you need to use the package url. To solve this follow error (or similar) you must call  \usepackage{url} File ended while scanning use of \url. \bibliography{name.bib} \begin{thebibliography} on input line 2 ended by \end{document}. \end{document}

IEEE journals with bibtex compatibility

If you want manage your bibliography with a .bib instead of bibitem, first you can do it with JabRef (see How to run JabRef on Ubuntu 15.10 ) A typical bibitem example is as follows: \begin{thebibliography}{1} \bibitem{IEEEhowto:kopka} H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus 0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999. \end{thebibliography} You need to replace it to: \bibliography{papers.bib}{} \bibliographystyle{IEEEtran} Where papers.bib is the file where you have all information about your bibliography. Now, compile it with TeXstudio (see  How to install TeXstudio 2.10.6 on Ubuntu 15.10 ) I couldn't open style file IEEEtran.bst To solve this we have 2 solutions Download IEEEtran.bst from CTAN with wget  http://tug.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst Or install it with  sudo apt-get install  texlive-publishers