Navigation
0 users online :: 0 Guests and 0 Registered
Records in this category
- How to convert LaTeX files into HTML files?
- How to change the bibliography/reference names?
- How to make a list of abbreviations or a glossary in the appendices?
- How to include source code (programs) in LaTeX?
- How to create multiple indexes?
- I prefer to have my own bibliography appearance, e.g., customize my bibliography for a particular publication, how to do that?
- I need to generate both DVI and PDF, what should I write in the source code?
- How to use hyperref and pdflatex?
- Error: Package hyperref Warning:Token not allowed in a PDFDocEncoded string?
- Error message: ! pdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored ...
- How can I draw a tree quickly and easily?
- I have to deal with TeX macros... Any online Tex macro programming tutorial?
- Can I install LaTeX/TeX systems on a shared host like BlueHost?
- Why latexrender based on LaTeX does not work in my WordPress/blog?
- Can I install latex2html on a shared host?
- Why LaTeX cannot find my own style/class file, e.g., llncs.cls?
- How to use latex2html to convert my paper to webpages?
- How to enable math on MediaWiki?
- How to resolve this problem: Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert) in MediaWiki when I try to enable math?
Tags
Sticky FAQs
Education » Computer Science » LaTeX
ID #1029
Why latexrender based on LaTeX does not work in my WordPress/blog?
Latexrender has a plugin for WordPress, which can be donwloaded here. However, this plugin has a butch of problems, so to use it properly really needs some efforts... at least from my perosnal experiences..
Download the zipped plugin, and follow the instructions to change the source files in PHP. Things to note:
- In the file class.latexrender.php, to add the path of LaTeX, dvips, etc., remember to add the full path of each executable binary, e.g., for DVIPS the path may be /home/domainname/texlive/2008/bin/dvips. NOTE that the path for convert is /usr/bin/convert for the convert binary is installed by the host server admin. If you've followed the advice in LaTeX installation, then the binaries are already site-wide accessible, so the path can be shortened to dvips.
- Unparseable or potentially dangerous latex formula. Error 6 or 4. (* 0 OK
* 1 Formula longer than 500 characters
* 2 Includes a blacklisted tag
* 3 (Not used) Latex rendering failed
* 4 Cannot create DVI file
* 5 Picture larger than 500 x 500 followed by x x y dimensions
* 6 Cannot copy image to pictures directory) Error 4 is normally caused by the incorrect config of the above binaries -> just check the path. Error 6 arises because the pictures folder has a wrong permission -> make it writable. Error 6 may also be caused because the image is not correctly converted due to the incorrect path of ImageMagick. Refer to this post.(this is not the case for HosMonster since the convert and gs is indeed installed in /usr/bin/) - The image is created in /pictures but not displayed, instead, only the orginal command is shown in WordPress. One possible solution is to change the image type to be converted to. -> in class.latexrender.php, var $_image_format = "png"; (
- Note that the two files class.latexrender.php and latex.php (together with pictures and tmp directories) should be located in a directory readable by the world, while the latexrender-plugin.php shuould be under the plugins directory of WordPress.
- Troubleshooting (suggested by Steven): Try commenting out the 6 unlink lines at the end of class.latexrender.php with // then have a look at the files that are generated in /tmp. There should be .tex .log .dvi .aux .ps and .gif files. Which are missing? Are those that are there correct?
Tags: installation
Related entries:
- How to convert LaTeX files into HTML files?
- How to change the bibliography/reference names?
- How to include source code (programs) in LaTeX?
- I prefer to have my own bibliography appearance, e.g., customize my bibliography for a particular publication, how to do that?
- I need to generate both DVI and PDF, what should I write in the source code?
Last update: 2009-01-14 18:54
Author: Admin
Revision: 1.8
You can comment this FAQ