Bug 100233 - Preview of LaTeX environments (similar to emacs)
Summary: Preview of LaTeX environments (similar to emacs)
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: part (show other bugs)
Version: 2.3
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 10:57 UTC by Matthias Pospiech
Modified: 2012-10-29 06:12 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 Matthias Pospiech 2005-02-25 10:57:06 UTC
Version:           2.3 (using KDE 3.3.0, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.4.1 (Mandrakelinux (Alpha 3.4.1-3mdk)
OS:                Linux (i686) release 2.6.8.1-12mdk

Emacs gains currently lots of users because of its (great) preview function for LaTeX environments. Even people who would never use emacs use emacs because of this functionality.

What is necessary for katepart to achieve the same would be the possibility to use different fonts inside the editor and embed boxes (inluding preview graphics) with the possibility to change between code and preview via mouse (or different) and to update the preview automatically.

For more Information it would be best to try emacs with this function.

Matthias
Comment 1 Anders Lund 2005-02-25 11:14:40 UTC
This is beoynd the scope of Kate I guess.
Comment 2 Matthias Pospiech 2005-02-25 11:34:46 UTC
Well, Kile uses katepart.
If we ever want a competetive Editor we need the ability to have different fonts inside an editor and to embed objekts.

This may sound more like a word processor, but that is not what I want. I want code dependend capabilites.

If there is no future for either of the two subjects this would make emacs the one and only LaTeX Editor for years...
Comment 3 Jeroen Wijnhout 2005-02-25 14:17:43 UTC
We (the Kile team) also have no intention of implementing such a thing. Kile will be an environment to assist the user in writing LaTeX documents, it does not want or tries to be LyX or something in between.

Btw, Kile is competetive and so is Kate. Each have different strengths and weaknesses. There are many things in Kile that are not in Emacs, and there are a zillion things in Emacs that are not in Kile (and most of them wouldn't belong in Kile).

Remember Emacs and Vim are not for everybody, neither is Kile/Kate/whatever. 

best,
Jeroen
Comment 4 Dominik Haumann 2005-02-25 15:52:14 UTC
To improve the visual feedback one could add additional rules to the syntax highlighting like \emph{italic font here} or \underline{underlined text}. But his has nothing to do with a preview I fear :)
Comment 5 Matthias Pospiech 2005-02-25 16:09:26 UTC
Actually I asked for two different feature, preview is just one of them. The other is what you wrote.

I think we would need two features for that:
1) correct parsing of latex documents combined with (scriptable) rules what to do with the different environments.
2) The possibility to use different fonts in one document.

I have asked a few month ago for usage of serif fonts for the text part in latex documents for better readability. The commands should however stay monospaced, because they are better readable that way.
This would require both features.

And I do not thing that this is too much lyx like. lyx has a complete different approach. Here we still deal with code based documents. Nevertheless it should be easy to work with the code - and therefore these approaches might be usefull.

Comment 6 Thorben Kröger 2005-08-05 23:27:06 UTC
Here is a screenshot of xemacs running preview-latex: http://www.gnu.org/software/auctex/img/preview-screenshot.png

This is how it works: a script scans the current document for begin/end tags for formulas for example, than runs latex on those and produces png images which then are inserted into the document, replacing their code representation. 
This works like a kind of code folding, you just click in the image and you're back to the code.

I think it would be great for kate to be able to fold code into images and back. It makes working with long latex documents a lot easier, you quickly know where you are and what your formula will look like.

I also read about John Tapsell's summer of code project:
http://developer.kde.org/summerofcode/varanalysis.html
He writes: "This could work with code folding so that the actual code could be folded leaving only the math equation."
[He wants to analyze what a function does and then display it as a mathml formula]
You see, folding code to make way for other kinds of presentation could be used in other situations as well, not just LaTeX
Comment 7 Dominik Haumann 2010-11-20 13:59:28 UTC
The latex preview of e.g. formula will not happen within Kate. The LaTeX highlighting improved over the years.
I'd like to close this report as wont-fix, does anyone disagree?
Comment 8 Matthias Pospiech 2010-11-20 14:52:13 UTC
If the kate developers agree to never implement the ability to include media objects into their text editor you have to close the request. However it basically means to give up the chance to have a Qt based editor component which could compete with emacs!

Kile has got new competitor in the past years: texmaker(x) and TexWorks. Currently there killing feature is the integrated pdf preview, and TexWorks coming with integrated QtSCript. If any of them should integrate this proposed preview feature it could make kile obsolete. And kile is still is not available on Windows (with Kde on windows being basically dead anyway, but thats another topic).
Comment 9 Christoph Cullmann 2012-10-29 06:12:27 UTC
We will never have this, that is not possible with the design of our document/view. Sorry, but we can't fulfill all needs in one tool.