Peter Danenberg | 11 Feb 2005 15:59
X-Face

WikiTeX 1.0.1

Salvete,

     Plans  for  the  upcoming  1.0.1:  deprecate  <chem> in
favour of <xym>; rename chem -> ppch, and xym -> chem.

     Eventually like to  institute  <schema>  for  schematic
capture with gschem:

     http://www.geda.seul.org/tools/gschem

It  may  require a virtual frame buffer, and is probably not
readily hand-tweakable (cf. SVG); but may, spitefully, work.

--
Peter Danenberg                                           .
wikisophia.org                                           ..:
Peter Danenberg | 18 Feb 2005 04:46
X-Face

Liberal Lilypond

     I've  noticed  that  for serious musical endeavors, our
Lilypond template is too constrictive; I'd  like,  in  addi-
tion,  to  remove {hash | #}-moratorium and rely on `--safe-
mode'.

     Guile directives are, they say, where  real  work  gets
done.

--
Peter Danenberg                                           .
wikisophia.org                                           ..:
Jonathan Pennington | 25 Feb 2005 20:21

Gnuplot questions

Peter,
Great software! I was looking for just this thing to help my wiki for my 
mathematical modeling environment Pyarie. I've got a couple of questions 
that you may be able to answer. Hopefully these'll be helpful in the 
archives too.

Getting gnuplot: Just for information, I'm using a sourceforge server 
and gnuplot is not available. I've compiled a version on my local box 
and put it is the cgi-bin, then changed the path manually in wikitex.sh 
to reflect the path. Seems to work 
(http://pyarie.sf.net/index.php/Gnuplot/). Other users might benefit 
from this knowledge. However, some of my problems explained below MAY be 
due to the unusual setup.

External data: Where would we put datafiles to plot? I've tried to plot 
data by accessing files in an htdocs/data directory and in wikitex/tmp 
by the following method:

plot "/path/to/htdocs/extensions/wikitex/tmp/Explicit.txt" using 1:2

and also using (which I figured wouldn't work, but was worth a try):

plot "http://pyarie.sourceforge.net/data/Explicit.txt" using 1:2

I get the unfortunate response "Wikitex: Directive non gratum"

Gnuplot failures: Is there a way to get an idea of the failures 
associated with a plot (a log or otherwise). I get a lot of 'non 
gratum', and 'gnuplot reported a failure' responses with plots that work 
if I use gnuplot from the command line. I'm not sure how to fix the 
(Continue reading)

Jonathan Pennington | 25 Feb 2005 21:21

Mediawiki's $wgUseTex conflict?

Does the $wgUseTex variable conflict with WikiTex's math rendering? I 
got a certain error when trying to use texvc, and get that error when 
using the <math> tag now.

Failed to parse (PNG conversion failed; check for correct installation 
of latex, dvips, gs, and convert): 
\frac{\sin\left(\sqrt{x^2+y^2}\right)}{\sqrt{x^2+y^2}}:

All of these are in the path and working, however, as this is the same 
problem I had before, I assumed it was my texvc installation.

However, if I comment out the $wgUseTex variable in LocalSettings.php, I 
just get the text directly printed to the screen (i.e. not rendered, 
just printed directly). An example of this is currently up at
http://pyarie.sf.net/index.php/Sandbox/

Any ideas?
Cheers,
-John
--

-- 
JW Pennington	| My Mind Map:http://oregonstate.edu/~penningj/
Masters Student: Bioresource Engineering & Geosciences
Oregon State Univ., Wilkinson 017, Corvallis Or. 97331
     "A computer without windows is like a dog
         without bricks tied to its head."
Jonathan Pennington | 25 Feb 2005 21:48

Re: Gnuplot questions

Well, I figured out a couple of issues.

The formatting problem was actually my use of <blockquote> before the 
<plot> tag. It seems as though the endtag for blockquote was not called. 
Removing that tag fixed that problem.

Also, it appears that some graphs do actually work, of sorts. They plot 
surfaces, but if 'unset surface' is called, there's just an empty plot. 
Strange. Color rendering works from the commandline, but I get nothing 
if used through the wiki.

Cheers,
-John
--

-- 
JW Pennington	| My Mind Map:http://oregonstate.edu/~penningj/
Masters Student: Bioresource Engineering & Geosciences
Oregon State Univ., Wilkinson 017, Corvallis Or. 97331
     "A computer without windows is like a dog
         without bricks tied to its head."
Peter Danenberg | 26 Feb 2005 04:24
X-Face

Re: Gnuplot questions

> Other users might benefit from this knowledge.

Well  said,  John;  another  solution  would  be  to  update
Apache's $PATH.  I'll add something to that effect.

> External data: Where would we put datafiles to plot?

WikiTeX restricts local I/O out-of-the-box;  but  if  you're
running  in  a  protected environment, consider relaxing the
quote   restriction    in    wikitex.php    on    line    82
($arrBlack['plot']).  Then it's a matter of negotiating with
the web server; but absolute paths should do the trick.

> Gnuplot failures: Is there a way to get an idea of the failures
> associated with a plot (a log or otherwise).

Great idea; let's get complete error dumps with, say, a con-
figurable threshold.

> When Wikitex gives one of the previously defined errors, the
> mediawiki formatting is left indented to the location of the WikiTeX
> output.

Would you mind scripting up a quick reproduction?

     As  far as the color irregularities: gnuplot depends on
libpng, I believe; see if you can't determine which  version
SF is running.

     P.S.   Line  46  in  wikitex.sh  under wt_anch() should
(Continue reading)

Peter Danenberg | 26 Feb 2005 04:39
X-Face

Re: Mediawiki's $wgUseTex conflict?

> Does the $wgUseTex variable conflict with WikiTex's math rendering?

     No,  but  we were forced to switch to <amsmath> when it
became clear that MediaWiki won't disassociate texvc anytime
soon (though the idea has been floated).

     The  name  of  the tag can be tweaked from within wiki-
tex.inc.php ($arrRend, line 28); but  in  order  to  achieve
<math>  on  Wikisophia,  I  have to remove all references to
texvc in Parser.php.

     One option is to distribute a modified  Parser.php  for
those that want <math>.

--
Peter Danenberg                                           .
wikisophia.org                                           ..:
Jonathan Pennington | 27 Feb 2005 03:29

Math, Gnuplot

Peter,
Thanks so much for the help. I think that the SF site might offer me a 
few more problems. <amsmath> got a little farther, but there's a LaTeX 
error, and the commandline LaTeX gives similiar problems with math. I'll 
have to see what I can do about that (math being fairly critical to a 
mathematical modeling software site). I guess I could limit 
documentation to PDF and LaTeX, but I liked the idea of site-available docs.

Thanks for the help on the Pyarie site with Gnuplot as well. 
Interestingly, I saw that you set up an account to leave some notes and 
that led me to find that 2 or 3 others have accounts as well. I'm just 
getting things started and didn't realize people would find it so 
quickly (Google typically waits a month). Guess this means I'll have to 
get this Beta version coded up quickly.

Thanks again for the software and help, I'll try to track down the 
libpng and latex issues.

Cheers,
-John
--

-- 
JW Pennington	| My Mind Map:http://oregonstate.edu/~penningj/
Masters Student: Bioresource Engineering & Geosciences
Oregon State Univ., Wilkinson 017, Corvallis Or. 97331
     "A computer without windows is like a dog
         without bricks tied to its head."
Peter Danenberg | 28 Feb 2005 11:02
X-Face

Positive Security

     Thanks to Johannes Berg's inquiry;* through the use  of
ulimit, quotas, chroot; and a properly configured texmf.cnf;
we should be able to wean ourselves off of our ad-hoc black-
lists.

     Upshot:  a  less  restrictive, more secure environment;
caveat: installation of WikiTeX would require superuser per-
missions.**

-----------
  * http://www.mail-archive.com/tetex-WMH0Fc3rTAN0D0CFxkINrg <at> public.gmane.org
nover.de/msg00459.html
  ** It may already effectively do so.
Jonathan Pennington | 28 Feb 2005 19:23

Math linebreaks

Peter,
(onlist for archival) Take a look at the wikisophia sandbox. I made an 
edit at the bottom with a "Math" title. It seems that latex causes 
linebreaks sometimes, but not other times.

The interesting thing is that if you change the text (i.e. add text 
before or after the math, so that the placement of the math within the 
paragraph is different), the linebreaks may change. Playing around with 
the sandbox edit, you can make the word '\Pi arie' have a break in it 
and remove the break after \pi or \sum. I haven't quite figured out how 
to predict where/when the breaks will occur, nor do I know whether they 
are browser/client specific (but why would they be).

Also, as is illustrated in the sandbox, some linebreaks result in a box 
surrounding the next line and some don't. This is also unpredictable. Is 
there a problem with my usage of the tags?

Not often do I explicitly need inline math, but it's something I thought 
you should know about, incase it's a more endemic problem.

Cheers,
-JW

Peter Danenberg wrote:
>      pyarie.wikisophia.org  should  be  propagated  by  now,
> John; if you don't mind switching, I can remove that symlink
> hack in the root directory.  ;)
> 
> --
> Peter Danenberg                                           .
(Continue reading)


Gmane