create new tag
, view all tags
I'm brandly new to TWiki. I'm developing tools for web teaching. I was also considering hypernews ( http://www.hypernews.org ).

In both cases I want to add the possibility of inserting mathematics and plots or drawings into the text.

I think to insert mathematics via an external converter latex->html like hevea ( http://para.inria.fr/~maranget/hevea/ ), and plot via gnuplot.

I was able to perform simple substitutions with hevea by adding in wikicfg.pm

sub handleLaTeX
    my( $arg ) = @_;
    # to do: check syntax
    open FILE, '>/tmp/hevea.tex';
    print FILE $arg;
    return `/usr/bin/hevea < /tmp/hevea.tex`;

    $text =~ s/%LATEX{(.*?)}%/&handleLaTeX($1)/ges;                         
 sub extendHandleCommonTags 

I was not able to avoid using a temporary file (maybe using Expect?), and certainly it would be useful to have a latex->html converter in perl.

Do anybody have any suggestion?

-- FrancoBagnoli - 25 Aug 2000

Have you tried TTH or Latex2html or Tex2ht?

-- AndreaSterbini - 26 Aug 2000

tth should be as good as hevea, I have not yet performed comparisons. Hevea seems to have a slight more open licence (Q public licence). From the perspective of rewriting them in perl, tth is written in C while Hevea is in objective caml, so the source of the first is presumably more understandable (at least to me).

Latex2html generates symbols as images, which have to be processed by latex, ghostscript and other tools. It requires a lot of supplementary software to be installed, and it is very slow. On the other hand it is in perl....

-- FrancoBagnoli - 28 Aug 2000

This LaTeX code is a perfect example of extending the TWiki syntax. We could enhance TWiki so that TWiki extensions can be discovered automatically, see TWikiPluginAPI.

-- PeterThoeny - 26 Sep 2000

I've written a plugin called MathModePlugin that lets you include mathematics in TWiki page just like math-mode in LaTeX. Enclose your math strings in dollar signs, and latex2html is used to render images of the expression, which are then displayed when you view the page. Check it out, and tell me what you think.

-- GraemeLufkin - 04 Apr 2002

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2002-05-05 - MikeMannix
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.