MimeTeX-Talk

Summary: Talk page for MimeTeX.
Maintainer: Pm
Users: +2 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

I've made the update to get this working under Perl5.5

Markup('{$', 'directives',
  '/\\{\\$(.*?)\\$\\}/e',
  "Keep(Mimetex(PSS('$1')))");

To

Markup_e('{$', 'directives',
  '/\\{\\$(.*?)\\$\\}/',
  "Keep(Mimetex(\$m[1]))");

Be careful with the quote levels on this change (in particular, you need to remove them from PSS(\$m[1]).

Also, if you are having trouble getting the mimetex.cgi script to run:

  1. Make sure that it is in a place where your server recognizes as appropriate for running scripts (e.g., a cgi-bin directory).
  2. Make sure it has the proper execute permissions (755 on a Linux server), including the right http_context if your system uses selinux permissions (Run chcon --type=httpd_fastcgi_script_exec_t mimetex.cgi )
  3. Make sure that the mimetex.cgi path is set correctly in the config.php file. I use $MimetexUrl = '../../cgi-bin/mimetex.cgi'; . You can check this by viewing source on the page created by pmwiki. It should have an <img> tag with a link to the cgi program. Verify that that is the correct path on your server.

I hope this is of help to people.

Russell Almond? March 23, 2016, at 08:55 PM

You need to remove the call to the PSS() function when updating for PHP 5.5 otherwise you'll lose some of your backslashes (corrected). --Petko March 23, 2016, at 09:55 PM


Please find updated version:
It is possible to fix by using a different approach.

  TEST-BED:
  Pmwiki: v2.2.145
  Server: nginx-1.22.0
  Php:    php-fpm-8.0.19
  Os:     AlpineLinux(v3.16)

Attach: mimetex-vc-20230127.phpΔ
Can this be enabled in MimeTeX-Test? page, I can replace the original page once examples from it are migrated ? VKrishn


Talk page for the MimeTeX recipe (users).