This question about Using an extension: Asked

LatexModePlugin installation help needed

Hi all!

I shall install the LatexModePlugin extension. I have to say that somebody tried it and now its my task...

I updated the plugin to the newest version and enabled it, but nothing worked... Then i found the install-instructions on the following page:

there, the following is mentioned:

Plugin Installation Instructions

First, confirm that the external software needed by the plugin is installed on the Foswiki server. This includes: Rendering can be performed by ( latex and dvipng) or ( latex and dvips and convert) or ( pdflatex and convert) or ( mimetex). The first three options allow one to include almost any LaTeX markup in a Foswiki topic, whereas mimetex has very limited functionality. Among the first three options, dvipng is the fastest by a significant margin. The tweakinline processing (v2.5 and above) to align the baseline of LaTeX expressions with HTML text uses convert. mimetex can be used in server environments where a full LaTeX installation is impractical (e.g. on shared-server installations). mimetex provides rendering of equations independently of external font files. This provides a very lightweight and fast mechanism to show equations. However, the number of colors is limited to 4 (black, red, blue, green) and only the mathmode and picture LaTeX environments are supported. Also, the preamble, density, and gamma settings are ignored.

Our IT department chose the mimetex solution and installed mimetex on the system. Now I read the following what confused me:

Now, customize the installation specific configuration settings.
  • Set the local disk paths for the rendering methods employed. This can be done by copying the needed lines from the following list to lib/LocalSite.cfg
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{latex} = '/usr/bin/latex';
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{pdflatex} = '/usr/bin/pdflatex';
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{dvips} = '/usr/bin/dvips';
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{dvipng} = '/usr/bin/dvipng';
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{convert} = '/usr/X11R6/bin/convert';
    • $Foswiki::cfg{Plugins}{LatexModePlugin}{mimetex} = '/usr/bin/mimetex';

which lines have to be added? I added all of them and enabled the plugin, created a site with the example from the extension page (This is an example of the %BEGINLATEX{inline="1" density="200" gamma="1.0" color="Purple"}%\LaTeX%ENDLATEX% rendering possibilities using the LatexModePlugin.) and an error occurs.

When i reduce it to the line

$Foswiki::cfg{Plugins}{LatexModePlugin}{mimetex} = '/usr/bin/mimetex';

then i still get errors...

The error looks like this:

Software error:

exec of /usr/share/texmf/bin/latex  -interaction=nonstopmode   %FILE|F%  failed: No such file or directory at /var/www/foswiki/lib/Foswiki/ line 543.

For help, please send mail to the webmaster ( webmaster@localhost), giving this error message and the time and date of the error.

Software error:

[Fri Aug 31 12:54:37 2012] save: exec of /usr/share/texmf/bin/latex  -interaction=nonstopmode   %FILE|F%  failed: No such file or directory at /var/www/foswiki/lib/Foswiki/ line 543.
 at /usr/share/perl5/CGI/ line 354
	CGI::Carp::realdie('[Fri Aug 31 12:54:37 2012] save: exec of /usr/share/texmf/bin...') called at /usr/share/perl5/CGI/ line 446
	CGI::Carp::die('Error::Simple=HASH(0x22b6aa0)') called at /usr/share/perl5/ line 184
	Error::throw('Error::Simple=HASH(0x22b6aa0)') called at /usr/share/perl5/ line 437
	Error::subs::try('CODE(0x755f10)', 'HASH(0x1063aa8)') called at /var/www/foswiki/lib/Foswiki/ line 435
	Foswiki::UI::_execute('Foswiki::Request=HASH(0xfc61c8)', 'CODE(0x101a388)', 'save', 1) called at /var/www/foswiki/lib/Foswiki/ line 277
	Foswiki::UI::handleRequest('Foswiki::Request=HASH(0xfc61c8)') called at /var/www/foswiki/lib/Foswiki/Engine/ line 37
	Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0xa67560)') called at /var/lib/foswiki/bin/save line 24

For help, please send mail to the webmaster ( webmaster@localhost), giving this error message and the time and date of the error.

Any suggestions??

greets, Christian

-- ChKoaser - 31 Aug 2012


QuestionForm edit

Subject Using an extension
Extension LatexModePlugin
Version Foswiki 1.1.5
Status Asked
Related Topics
Topic revision: r1 - 31 Aug 2012, ChKoaser - This page was cached on 03 Jun 2020 - 18:20.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy