version bump 0.25 -> 0.29 --Bob McElrath?, Fri, 02 Apr 2004 13:08:24 -0800 reply

A couple people asked about too-similar version numbers between ZWiki and LatexWiki, and then I screwed up the download link and even referred to LatexWiki 0.29 in the docs!

So I officially bumped the version number to 0.29, and the friggin' download link works. Mea culpa.

version bump 0.25 -> 0.29 --Simon Michael, Fri, 02 Apr 2004 14:43:31 -0800 reply

And there was much rejoicing! :)

wikipage --Bob McElrath?, Thu, 12 Aug 2004 07:56:28 -0700 reply

> If I create a Zwiki page 'exercise', how does it know that it has to use
> wikipage.pt ?
> Can I have two pagetemplates, such that the 'exercise' page uses
> wikipage.pt and another ZWiki page (e.g. 'answer') uses sigbert.pt ?

This is hard-coded in the file UI.py (part of zwiki).

Though it is an interesting question...is multiple page templates workable/desirable? zwiki folk want to chime in here? How would you specify which page template a page is supposed to use?

Another way to do this would be to add the dtml pages standard_wiki_header and standard_wiki_footer which should be used instead of wikipage.pt if they are present. (note this will happen for ALL pages -- see UI.py:addSkinTo()) However, this is the old way of rendering wiki pages (before zwiki switched to page templates) and may be deprecated in the future.

Yet another way is to make two zwiki's. i.e.

http://your.host.here/exercises/ http://your.host.here/answers/

The directory exercises/ can contain a custom wikipage.pt, and the directory answers can contain a different wikipage.pt.

wikipage --Bob McElrath?, Thu, 12 Aug 2004 09:42:33 -0700 reply

Bob's Notes wrote:
> Hi Sigbert, Bob - I'm not up to speed with this whole thread, but some
> thoughts:
>
> - you can render just the page body (without the skin template added) by
> calling Page.render(REQUEST=REQUEST,bare=1), I believe.

Sigbert, you can do this by: http://your.host.here/Page?bare=1

Page.render... is relevant if you're writing python code.

Note that this does not add a proper HTML header to the page.

> - standard_wiki_header/footer wouldn't override wikipage - wikipage
> takes precedence

...if it is in the folder. If there is no wikipage but standard_wiki_{header|footer} they will take precedence over the default template.

Security Notice --Bob McElrath?, Thu, 03 Mar 2005 12:03:46 -0800 reply

It has been brought to my attention that with latex accessable from the web it may be possible for hostile attackers read and/or write system files from latex. For anyone currenly running latex, you should secure your latex distribution. Do this by editing the 'texmf.cnf' file and changing the variables 'openin_any' and 'openout_any' to 'p' (for "paranoid") to disallow reading and writing files outside pre-approved paths.

This file is located in '/usr/share/texmf/web2c/texmf.cnf' on tetex distributions. Debian users should edit '/etc/texmf/texmf.d/95NonPath.cnf' instead, and then run 'update-texmf' as root.

In the future I would like to advocate creating a "chroot jail" for latex and ghostscript to run in, to minimize any possible security flaws in those external programs. If anyone has time to work on this, or draw up some instructions, please let me know.

new branch --simon, Wed, 12 Apr 2006 17:42:44 -0700 reply

Hi all - I've simplified and updated LatexWiki to work with recent Zwiki. This version only provides the stxlatex page type and doesn't set up the latexwiki default wiki for you; see ChangeLog for more. The branch is at http://joyful.com/darcs .

new branch --Bob McElrath?, Wed, 12 Apr 2006 17:53:22 -0700 reply

Eh...interesting.

Do you want to maintain this version that works with ZWiki? I'd be happy to pass it off... ;)

Also I'd like to lay claim to the "LatexWiki" name since the new wiki will use a wiki syntax that is faux-latex. This is a source of much confusion on my pages...everyone thinks "latexwiki" means they can type any arbitrary latex, which will be sort-of-true in on my new wiki.

I suggest "ZWiki tex math plugin" or some such, which makes more sense...

new branch --Simon Michael, Wed, 12 Apr 2006 18:47:36 -0700 reply

I hope to.. in any case, it's a step forward and anyone else working with X should feel free to pull useful bits from it..

..where X should now change to something other than "LatexWiki" ? Ok with me, even though there will be some confusion and slight backwards compatibility woes. I had called it latexwiki here for ease of hacking, it needs to be LatexWiki to keep old pages working after an upgrade, (can't import from Products.LatexWiki...) but we'll get over that and call it something else, I'd think with Zwiki in the name to indicate it's dependent add-on nature. Or "ZWiki", I suppose, if we must. Bill, any thoughts on all this ? You'll probably be the most impacted, as the biggest LW user (that I know of).

I got into this also to help make MathAction upgradable; clearly that product's directory will need a change too. I'd probably vote ZWikiLatex?, ZwikiLatex? and ZWikiMathAction?, ZwikiMathAction?, ZWikiMath?, ZwikiMath?, MathAction.

new branch --Bob McElrath?, Wed, 12 Apr 2006 18:55:50 -0700 reply

It's really not that important, yet. When I'm ready to release some code I'll let everyone know.

new branch --Bill Page, Wed, 12 Apr 2006 19:24:59 -0700 reply

I like the names ZwikiTex? add-on and ZwikiMath? add-on^2 where ZwikiTex? is a "peared down" old LatexWiki - called just ...Tex since it does not really implement that much of LaTeX? - only equations (display) and formulas (inline). I prefer to avoid pairs of adjacent capital letters for stylistic and agressive spellchecker reasons.

ZwikiMath? can be an add-on to the ZwikiTex? add-on such that:

MathAction = ZwikiTex + ZwikiMath

(more or less) so that ZwikiMath? is a Axiom/Reduce computer algebra interface that inherits from the ZWikiTeX? page type which in turns inherits from the ZWiki page type (stx?). The ZwikiMath? add-on also provides a new "pamphlet" page type that allows a fully general LaTeX? document with noweb literate programming extensions to be embedded in the page.

In the near future I would like to help Bob develop the new generation LatexWiki that provides more faux-LaTeX? and less stx in such a way that it also could be used with ZwikiMath?. I have thought about Restructured Text (rst) but even if we manange a Tex integration with rst then I don't think it is much of a net gain for mathematically-oriented wiki users. Faux-Latex would be superior for this purpose.

new branch --Simon Michael, Thu, 13 Apr 2006 01:20:45 -0700 reply

Bill Page wrote:
> with ZwikiMath?. I have thought about Restructured Text
> (rst) but even if we manange a Tex integration with rst
> then I don't think it is much of a net gain for
> mathematically-oriented wiki users. Faux-Latex would be
> superior for this purpose.

Probably, but if it's a choice between stx and rst I feel sure academic users would prefer rst... if it can be done easily I'll add this ability.

Kind of in the same topic - Bill, might you be able to pull Bob's later LW changes into mathaction when you get a chance ? Eg, pull from http://zwiki.org/repos/latexwiki , or from Bob's repo, into your MA repo. I've already pulled one change; the next one had conflicts and I figured it would be much better for a LW/MA expert to review these and select the best code in each case.

Next I hope we'll be able to pull in my changes so that MA will also benefit from the cleanup.

Re: Glossary --Simon Michael, Fri, 14 Apr 2006 14:51:07 -0700 reply

Bob McElrath? wrote:
>Simon Michael [simon@joyful.com]? wrote:
>> It works as you'd expect in Restructured Text, which doesn't yet support
>> LaTeX? (but might soon).
>
> ReStructured? Text is not an appropriate choice because:
> 1) ReST treats anything within $dollar signs$ as RCS keywords and
> strips it (but this can be turned off)
> 2) ReST has its own use for the backslash . It is an escape
> character that prevents ReST processing. This seems incompatible
> with begin{stuff}end{stuff} and [] etc. as appears in latex.
> 3) Math can in principle be included via the ReST directive syntax:
> .. latex:: x^2
> however this is very un-latex like.
>
> So, like any input syntax, it is always possible to put math in and
> process it with some tool, but it requires a perverse and un-latex like
> syntax. (see also MediaWiki?, twiki, etc.)

I see - thanks. I would turn off 1, but 2 might cause more trouble.

Re: Glossary --Simon Michael, Fri, 14 Apr 2006 14:55:24 -0700 reply

But perhaps I could do latex rendering before RST, or something.

Re: Glossary --Simon Michael, Fri, 14 Apr 2006 14:58:51 -0700 reply

And a general comment: in situations like this, with multiple rendering stages, I don't know when it's best to do it in multiple passes in Zwiki (which we mostly do) vs. when to integrate the added features as extra directives or whatever in the text markup processor (STX, RST etc.).

Re: Glossary --Bob McElrath?, Fri, 14 Apr 2006 15:02:34 -0700 reply

It's always better to integrate. Otherwise you can cause the first processor to generate output that will be recognized as a directive by the second one. This generates surprising errors and was a primary motivation for my work in 'newstx'. The successive-regex approach of zwiki has this problem.

In my new project I've switched to using a true grammar (bison/yacc), which will never have this problem.

@including LaTeX? --d2m, Fri, 14 Apr 2006 23:29:30 -0700 reply

check http://docutils.sourceforge.net/FAQ.html#how-can-i-include-mathematical-equations-in-documents (i do not know if the ".. raw:: latex" (or its inline form) is supported with the current zope-docutils runtime, but it could be added if necessary)

mathaction updates --Simon Michael, Wed, 10 May 2006 09:27:46 -0700 reply

Bill, since you're ignoring my begging I have worked a little more on pulling Bob's latest latexwiki patches into my mathaction repo. I really could not figure out which code was best to choose for many of these conflicts; a certain amount of random guessing and pressing of buttons was used, as you can probably tell at http://joyful.com/darcsweb/darcsweb.cgi?r=mathaction . If there are regressions, you will hopefully be able to spot my wrong decisions easily in the history here and correct them later.

I've pulled and resolved about half of Bob's dozen or so patches, but I had to stop at "I hate darcs" - many conflicts. Bob, what was this patch about ? Could I ignore it ?

Thanks.. see http://zwiki.org/DarcsRepos for my latest code.

Re: you're ignoring my begging --Bill Page, Wed, 10 May 2006 09:43:51 -0700 reply

Sorry, Simon. I do not mean to appear to be ignoring your email. In fact I am very conscious of your request that I help with this and I appreciate your efforts so far to do this merging. I am very glad that you are pushing on this... keep pushing me (and Bob? :-). Sometimes I need this or these things end up at the bottom of the pile.

My problem is the same as everyone else's: not enough time and too many things I want to do with Axiom for my own research versus those things that might directly benefit other users. Right now there are no Axiom users who are bugging me much about how MathAction is working so I have allowed this issue to continue to slip a little. And I will be travelling all next week so it might be a little while until I can get back to this. :(

Re: you're ignoring my begging --Simon Michael, Wed, 10 May 2006 11:13:24 -0700 reply

Ok good, thanks for the update Bill. Just trying to provoke a "I hear you" response to make sure I'm on the right track, I hope the implicit smiley was clear. Sometimes I get tired of writing them everywhere, with their little colon eyes, their inanely grinning parentheses, their.. anyway.

Smileys --Bill Page, Wed, 10 May 2006 11:31:45 -0700 reply

This is offtopic but I am just curious why the AddingSmiliesPatch apparently never made it into the mainstream ZWiki code. Moinmoin seems to have even more extensive support for Smileys

I think a user option that allows one to turn on and off such decorations might be nice. B)

mathaction updates --Bob McElrath?, Wed, 10 May 2006 15:48:42 -0700 reply

"I hate darcs" had something to do with darcs completely hosing my repository. I would just grab the entire repo and diff it rather than try to merge past that point.

how to install LatexWiki built in ZWiki-0.56 or later? --masakatsu, Mon, 02 Oct 2006 00:31:10 -0700 reply

I've installed ZWiki-0.56.0.tar.gz in Plone-2.1.2 with Zope-2.8.6-final, and python-2.3.5 (Linux). But, when I tried 'Structured Text + LaTex?', ZWiki issued an error message :

Traceback (innermost last):
Module ZPublisher?.Publish, line 114, in publish Module ZPublisher?.mapply, line 88, in mapply Module ZPublisher?.Publish, line 40, in call_object Module Products.ZWiki.Editing, line 290, in edit Module Products.ZWiki.Editing, line 98, in create Module Products.ZWiki.Editing, line 799, in setText Module Products.ZWiki.ZWikiPage, line 280, in preRender Module Products.ZWiki.plugins.latexwiki.stxlatex, line 40, in preRender Module Products.ZWiki.plugins.latexwiki.ReplaceInlineLatex?, line 43, in replaceInlineLatex

ImportError?: cannot import name renderNonexistingImages

So I'm wondering if I should have installed some other products or some other versions of them. I suppose that the installation procedure in http://zwiki.org/Installing is not enough for using LatexWiki. What is worse is that other web page, http://mcelrath.org/Notes/LatexWiki doese not seem to be valid for later versions of ZWiki and the related products. I'm totally at a loss.

Could please anybody tell me the right web page for using LatexWiki, any hints or advice ?

how to install LatexWiki built in ZWiki-0.56 or later? --Simon Michael, Mon, 02 Oct 2006 00:47:20 -0700 reply

Hi.. I don't experience that problem, eg at http://plone.demo.zwiki.org/APage .

You should not require anything more, but is the file ZWiki/plugins/latexwiki/latexWrapper.py present ? Does it define the renderNonexistingImages function ? It should.

how to install LatexWiki built in ZWiki-0.56 or later? --masakatsu, Mon, 02 Oct 2006 03:21:33 -0700 reply

Hi, thank you for your prompt reply. I've confirmed that my Zope Product directory (~zope/instance/Products/) has the file ZWiki/plugins/latexwiki/latexWrapper.py and that this file has the definition of renderNonexistingImages(...) function.

But strangely, when I try 'Structured Text + LaTex?' to make a ZWiki page, my plone site still issues an error : <pre><code> Traceback (innermost last):

Module ZPublisher?.Publish, line 114, in publish
;
Module Products.ZWiki.plugins.latexwiki.ReplaceInlineLatex?, line 43, in replaceInlineLatex

ImportError?: cannot import name renderNonexistingImages </code></pre>

how to install LatexWiki built in ZWiki-0.56 or later? --rncarpio, Mon, 22 Jan 2007 21:00:45 -0800 reply

I had to install PIL and LocalFS and manually create the images dir.