Unless someone has expanded the math plugin, it does not recognize
trig functions or pi. Just simple numbers and arithmetic symbols. It's
also available in the core like this:

{ (3+5)/2 } should output 4...

Oops. The () aren't recognized. The pattern in line 27 of markups.php
should be changed to '/\{ (\+|\-|\=)?([-+0-9\/.*() =]+)? \}/e'. Next
release...

It works as is without the (), but of course you get 5.5. Also, no
spaces can be entered in this format. Anyway, I've had on my list to
revisit the math/counter capabilities in the core for awhile. Perhaps
in the next round of releases.

But as for the original question, there is no support of latex in the
core of BoltWire, and no plugin. It would be great to have one if
someone could pull it together. To be honest, I know next to nothing
about latex, but would be happy to help if anyone has questions or
gets stuck with something specific.

Cheers,
Dan


On Wed, Nov 11, 2009 at 6:53 PM, DrunkenMonk <[email protected]> wrote:
> The math plugin simply allows you to perform numerical calculations,
> like
>
> * [(math "sin(pi * 5)")]
>
> which would display:
>
> * -1
>
> As far as I know, there is no way to (easily) insert latex into
> boltwire (yet). You could write a plugin for it, though.
> You would need a plugin defining markup that:
>
> a) checks for an image defined by the math-input
> b) creates the image if it does not exist by calling latex and dvipng
> c) calls img markup to insert the relevant image in the code.
>
> You would need:
> * a working latex installation with access to something like dvipng
> * some kind of file cache. You will want to delete old pictures
> automatically.
> * some boltwire code to define a new markup for the latex-images.
>
> It's not too difficult, and when you're done, there will be a plugin
> for it. I can help you if you're interested in building it.
> I'll probably need it one day.
>
> On Nov 11, 6:51 pm, Maxime <[email protected]> wrote:
>> Hi
>>
>> Is there any way to have math formulas in articles ? With Latex or
>> whatever ;)
>>
>> I installed the math plugin but i don't know how it works :/
>>
>> Thanks
>> Have a good night!

--

You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=.


Reply via email to