Forums

Latex Everything
Running on Windows (5 posts)

  1. ElgeHelge
    Member
    Posted 10 months ago #

    Is it possible to run PDF Everything in Windows? Which modifications are needed?

    I changed
    exec( 'which pdflatex' )
    to
    exec( 'where.exe pdflatex' )
    but the_latex_url still returns just the permalink to the page/post that I am already viewing. And no PDF shows up in the Media Library.

    http://wordpress.org/extend/plugins/latex-everything/

  2. s_ha_dum
    Member
    Posted 10 months ago #

    This plugin requires pdflatex and pdftk installed. You can check for these by executing which pdflatex and which pdftk on your host.

    http://wordpress.org/extend/plugins/latex-everything/installation/

    As far as I know, pdflatex and pdftk are both *nix (Linux/BSD) applications that must be installed on your server for the plugin to work. I don't know if there are Windows equivalents but is clear that the creator of the plugin intended this to work on *nix servers as the instructions reference yet another *nix command, 'which'.

  3. ElgeHelge
    Member
    Posted 10 months ago #

    I am running both pdflatex and pdftk on my Windows machine without problems..

  4. s_ha_dum
    Member
    Posted 10 months ago #

    I said there might be Windows equivalents. I looked around and found MiKTeX and Tex Live. I may install one the other to see how they function.

    Anyway, 'which' is not a Windows command and is why I am pretty sure the plugin was intended this to work on *nix servers. I wish you the best of luck getting it to work but a Windows shell environment is pretty different from a *nix shell plus I have seen a lot of complaints about 'exec' on Windows. Conversion may be a big project.

  5. divinenephron
    Member
    Plugin Author

    Posted 10 months ago #

    As s_ha_dum suggested, this has been made presuming it's being run on a *nix operating system, and I don't plan to make it work on Windows myself. However, if you get it to work I'm happy to include your changes in the plugin and list you as an author.

    All the code for pdflatex and pdftk should be in the file class-latex-document.php.

    Find out which errors the plugin is producing by adding the following to the site's wp-config.php:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);

    Errors should then appear in wp-content/debug.log. I'm happy to help if you don't undertand what an error means.

Reply

You must log in to post.

About this Plugin

About this Topic