Bug 98304 - Support for message rendering using LaTeX
Summary: Support for message rendering using LaTeX
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: GUI (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 23:28 UTC by Dik Takken
Modified: 2012-08-19 00:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2005-01-31 23:28:56 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
OS:                Linux

It would be great if KMail could optionally render an email message using LaTeX, for more convenient scientific communication. ;) That would give us three options for message rendering: Plain, HTML and LaTeX. 

Maybe the Postscript viewing KPart of KGhostView could be used to do this. Or maybe even KPDF, which might be able to render URL's in the message body that can actually be clicked on..

By the way, Kopete also has a LaTeX rendering thing.
Comment 1 Thiago Macieira 2005-02-02 01:26:38 UTC
Just to say that this is a longshot, but there's precedent: Kopete has a LaTeX plugin. If enabled, and if LaTeX is installed on the host, it will render $$math-code$$ as an equation.

Do you know of any mailers that support sending text/x-tex MIME parts?
Comment 2 Dik Takken 2005-02-02 10:45:13 UTC
> Do you know of any mailers that support sending text/x-tex MIME parts?

Nope.. :)

I guess, either KMail needs to autodetect if an incoming plain-text message contains LaTeX commands (only when the user configured KMail to do so), or there should be an option to set the LaTeX renderer as default renderer for plain-text messages. Even if a plain-text message does not contain any LaTeX at all, it will still look good when fed to LaTeX, provided that you replace empty lines with paragraph markers and such.
Comment 3 Till Adam 2005-02-02 17:37:51 UTC
On Wednesday 02 February 2005 10:45, Dik Takken wrote:

> I guess, either KMail needs to autodetect if an incoming plain-text message
> contains LaTeX commands (only when the user configured KMail to do so), or
> there should be an option to set the LaTeX renderer as default renderer for
> plain-text messages. Even if a plain-text message does not contain any
> LaTeX at all, it will still look good when fed to LaTeX, provided that you
> replace empty lines with paragraph markers and such.

You can do that yourself by writing a BodyPartFormatter plugin for text/plain. 
Check out kdepim/plugins/kmail/bodypartformatter for examples. The text/diff 
one is probably a good example case. Make sure to share it, if you write such 
a thing. :)

Comment 4 Dik Takken 2005-02-02 21:14:11 UTC
> You can do that yourself by writing a BodyPartFormatter plugin

Ah, but can this body formatter also pass the formatted body to LaTeX and tell KMail to use the KGhostview KPart to display it? This involves a little bit more than plain text processing...
Comment 5 Till Adam 2005-02-03 09:48:03 UTC
On Wednesday 02 February 2005 21:14, Dik Takken wrote:

> > You can do that yourself by writing a BodyPartFormatter plugin
>
> Ah, but can this body formatter also pass the formatted body to LaTeX and
> tell KMail to use the KGhostview KPart to display it? This involves a
> little bit more than plain text processing...

No, the bpf plugin writes into KMail's html buffer, which is then rendered. So 
you'd need to somehow produce html with temp images and pass that back in. 
Should be doable, though.

Till

Comment 6 Ingo Klöcker 2005-05-22 12:07:11 UTC
This will surely be implemented once we have "decorator" plugins which are used to "decorate" the HTML which has been produced by some bpf plugin.
Comment 7 Myriam Schweingruber 2012-08-18 08:59:56 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 8 Luigi Toscano 2012-08-19 00:44:23 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.