Zim

Support inline latex code for equations

Bug #347326 reported by sirix
70
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Wishlist
Unassigned

Bug Description

Implement an option to generate images on-the-fly out of a latex code in the page sourcecode -
such an option could be activated only for particular notebooks, or
even pages in the notebook.

This would allow Zim to be used as a notebook for mathematical ideas - it's rather impossible using the equation editor.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Would be an extension to the current equation editor allowing choice between having inline latex and saving them as separate files. Images for inline latex could be generate the same as is done by the editor. Saving the images by MD5 of the latex input seems a good way to reduce the number of times an image needs to be rendered.

Main advantage is in typing equations inline; rendering would happen at reload (^R). To modify an equation that is already rendered one would either need the equation editor (move to image and press ^E) or go to "Tools->Edit Source" and edit the raw wiki source.

Need syntax for having an equation on a single line and for multi-line blocks. Using "$$ .. $$" seems to be the default for latex equations within a sentence. The block syntax could be something like "{{{ render:latex ... }}}". By explicitly defining the block as latex we can also use the same extension mechanism for other languages (e.g. gnuplot, graphviz, etc.).

Changed in zim:
importance: Undecided → Wishlist
status: New → Confirmed
summary: - Feature Request: improving Latex handling
+ Support inline latex code for equations
tags: added: embedded equationeditor latex objects
tags: added: embedded-objects
removed: embedded objects
Revision history for this message
Phil P (palma519-sw) wrote :

Hi. Just wondering if there is any update on this issue or possible workarounds for including a latex call from the markdown, either specifically for math (ie. $$ .. $$) or a generic call ( ie. {{{ render: latex ... }}} ). With inline latex, you'd be able to easily cut and paste markdown of equations between wiki pages without having to go through the equation editor. For pages with a lot of math this is invaluable. This would presumably boost the usage amongst science and math users.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 347326] Re: Support inline latex code for equations

On Thu, Dec 20, 2012 at 8:05 AM, Phil P <email address hidden> wrote:
> Hi. Just wondering if there is any update on this issue or possible
> workarounds for including a latex call from the markdown, either
> specifically for math (ie. $$ .. $$) or a generic call ( ie. {{{ render:
> latex ... }}} ). With inline latex, you'd be able to easily cut and
> paste markdown of equations between wiki pages without having to go
> through the equation editor. For pages with a lot of math this is
> invaluable. This would presumably boost the usage amongst science and
> math users.

No update - have been to busy fixing bugs that this new feature is
shelved for the moment.

-- Jaap

Revision history for this message
Chris Olin (chris.olin) wrote :

It's been a few months shy of a year. Has there been any progress on this?

If not, this is something I really need and will look into implementing.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Chris, feel free to have a stab at it - I have a tree with refactoring code
for the pageview to untangle a lot of the stuff in there, but not close to
being released as is, so wil have to merge any fixes anyway.

Regards,

Jaap

On Wed, Sep 18, 2013 at 5:03 AM, Chris Olin <email address hidden>wrote:

> It's been a few months shy of a year. Has there been any progress on
> this?
>
> If not, this is something I really need and will look into implementing.
>
> --
> You received this bug notification because you are subscribed to Zim.
> https://bugs.launchpad.net/bugs/347326
>
> Title:
> Support inline latex code for equations
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zim/+bug/347326/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.