a processor for gnuplot and Latex (Re: [Moin-devel] gnuplot & latex with moinmoin)
Andreas Fuchs
asf at void.at
Sun Aug 25 01:37:03 EDT 2002
On 2002-08-17, Won Kyu Park <wkpark at chem.skku.ac.kr> wrote:
> and I make a gnuplot & latex processor for it.
>
> this two processor can be installed at lib/python/MoinMoin/processor
> and you can input as following syntax
>
> {{{#!latex
> $$
> \alpha \beta
> \gamma
> }}}
>
> {{{#!gnuplot
> splot x*x + y*y
> }}}
Before succeeding, I had to define these variables in my
/etc/moin_config.py:
caches = {'dir': '/var/www/wiki-caches/', 'url': '/wiki-caches'}
vartmp_dir = '/var/tmp'
external_latex = '/usr/bin/latex'
external_convert = '/usr/bin/convert'
Also, I would suggest you change the line that outputs the LaTeX
template to this:
data.write(r"""
\documentclass[10pt,notitlepage]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage[all]{xy}
\begin{document}
\pagestyle{empty}
%s
\end{document}
""" % texstr)
Now, all the LaTeXWiki examples (I stole those lines from these guys)
work.
Hell, Moin is fun (-:
--
Andreas Fuchs, <asf at acm.org>, asf at jabber.at, antifuchs
Was I helpful? Let others know:
http://svcs.affero.net/rm.php?r=antifuchs
More information about the Moin-devel
mailing list