KLatexFormula

Utilities

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
6 .3
Description:

KLatexFormula 3.2 released!

Since KLatexFormula Version 3.0 was re-written for pure Qt 4, the project has moved to qt-apps.org. Follow the link here: http://www.qt-apps.org/content/show.php?content=103976.

KLatexFormula is an application to easily get an image (that you can copy, drag-n-drop or save to disk) from a LaTeX formula or equation.

The program has two modes, shrinked and expanded mode. Shrinked mode is straightforward, and expanded mode lets you to specify a few options.

You can use KLatexFormula in command-line mode (eg. for scripts)by invoking klatexformula_cmdl executable. Type klatexformula_cmdl --help for more information.

A help page is available by accessing the help menu in KLatexFormula or online on the KLatexFormula website (klatexformula.sf.net).

I hope this can be useful for someone. I'm not sure of having much time to spend for keeping this application up to date, but I was encouraged to publish it so here it is... :-)
Last changelog:

10 years ago

*** KLatexFormula 2.1.1
- Fixed a bug in configuration that made formula previews invisible to users who hadn't yet used KLatexFormula.

*** KLatexFormula 2.1.0
- the concept of *Library* for tagging, ordering and archiving equations.

*** KLatexFormula 2.0.1
- bug fix in KLFBackend
- et voilí  enfin une traduction en franí§ais pour ma petite application !

*** KLatexFormula 2.0.0 is out !
The source was subject to complete re-write for a cleaner API. See KLatexFormula homepage (klatexformula.sourceforge.net) for more information. (Note: The formula history of an older version of KLatexFormula can be imported in the newer version)
- New: A Symbols palette for insertinig in your code
- New: searching tagged history items
- New: Syntax highlighting
- Plus more features !

9

swiftscythe

10 years ago

Hi, Thanks for this program :D
I get this compilation error, could you help me?

http://pastebin.ca/1677704

Thanks in advance!

Report

C

phfaist

10 years ago

As pointed out by Tobias Winchen on the wiki page at http://klatexformula.sourceforge.net/klfwiki/index.php/Feedback, you need to uninstall the previous version of KLatexFormula, since the linker finds the globally installed library rather than the freshly compiled one.
Best regards,
Philippe

Report

rod

11 years ago

thank you for the very useful and user-friendly app.

Is there any plan for a kde4 port?

It is just a matter of look-and-feel really, but it would be great to have it integrated in my now more and more rock-solid kde4 desktop.

Thanks again!

Report

C

phfaist

11 years ago

Hi,
Actually I'm precisely in the process of re-writing it in Qt4, and I'll post the new version when I'm done!
Best regards,
Philippe

Report

sirromanov83

13 years ago

It took me some time to figure out why KLatexFormula didn't work for me.
Actually, TEXINPUTS was corrupted by a few lines in the `klfbackend.cpp' file.

I commented them so that now the temp document need to start with \documentclass{/usr/share/apps/klatexformula/klatexformula} instead of \documentclass{klatexformula}

Can you make sure this problem will be solved in future versions?

Btw, this is an awesome app; i love it... do you think you could talk to the Kile guys so to integrate it in Kile (say, I select a formula, click-right, klatexformula plug-in and hop! my formula gets popped up in a corner of the screen...). Kile is lacking this feature that does exist in XEmacs with auctex libraries...

What do you think?

Report

C

phfaist

13 years ago

Thank you for the information. I had corrected already a small bug reported to me in klfbackend.cpp that I suspect is the same as yours; did you try with latest version 2.0.1 ? If it doesn't work I'll see to try to correct this thing properly...
I'm kind of lacking free time right now, so I hope I'll be able to invest myself a bit more soon to consider integration with Kile, or as mentioned previously in another comment KOffice or OpenOffice, and maybe add a few more improvements if I get new ideas... suggestions welcome ...

Regards,

Philippe

Report

bender02

13 years ago

I have the same problem as mentioned in previous posts; but I can get it to work if I run it as
TEXINPUTS=: klatexformula
I don't know if it helps, but...
PS. Great program!

Report

ijon45

13 years ago

I have found this application really useful for me. Some comments than I think can improve usability:
I have found the tooltips over rendered formula and input widgets a bit annoying. I think it would be better to have a button to request showing of a larger picture and put the input tooltip contents in a lineedit or in the WhatsThis? help.

Report

rdglinux

13 years ago

Hello! Very nice software!

Suggestion: it would be interesting to see it integrated into koffice and OppenOffice.org.

Best regards!

Report

maze

13 years ago

hi,

I like your app - looks nice and would be really useful to me, BUT I'm not able to compile any LaTeX code with it.
Compiling/Installing the program itself was no problem (I created a Debian package with both Kubuntu edgy and feisty) and tried both tetex and texlive, always the same message:

Quote:This is pdfeTeX, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5)
entering extended mode
(/tmp/kde-maze//klatexformulatmp2-20-12-49.tex
LaTeX2e
Babel and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, german, ngerman, loaded.
(/usr/share/apps/klatexformula/klatexformula.cls
Document Class: klatexformula 2005/02/23 v1.0 Philippe's special Latex document
class for KLatexFormula

! LaTeX Error: File `geometry.sty' not found.

Type X to quit or to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.


l.13 ^^M

No pages of output.

I can use the package geometry with kile though...

Any help would be appreciated

maze

Report

sirromanov83

13 years ago

Same problem here...
I use TexLive libs instead of Debian usual packages... dunno if it might be a reason.

`geometry.sty' is located in:
/usr/local/texlive/2005/texmf-dist/tex/latex/geometry/geometry.sty

I tried to feed KLatexFormula with latex binary:
/usr/local/texlive/2005/bin/i386-linux/latex

But doesn't help...

Report

C

phfaist

13 years ago

Try commenting line 12 in src/klatexformula.cls:
%\usepackage[...]{geometry}
and make install again. (Or edit directly $KDEDIR/share/apps/klatexformula/klatexformula.cls)
This is a quick workaround, so please report if it doesn't work well; it seemed to work fine on my system.

Alternatively you may try to specify a path in TEXINPUTS environment variable when calling klatexformula. I don't know if this works but it may be worth a try.

Thank you for your comments
Philippe

Report

sirromanov83

13 years ago

Well, doesn't really help... I commented it, I even gave the whole path... seems to go through... but then comes the same issue for 'color.sty'... I tried to update this one too, and then 'font12.clo' or something of the like is missing...

That's a Path issue for sure... but i dunno ho to help it...

I also tried the ugly:

TEXINPUTS=/usr/local/texlive/2005/texmf-dist/tex/latex,/usr/local/texlive/2005/texmf-dist/tex/latex/graphics klatexformula

but it stops at:

(/usr/share/apps/klatexformula/klatexformula.cls
Document Class: klatexformula 2005/02/23 v1.0 Philippe's special Latex document
class for KLatexFormula
(/usr/local/texlive/2005/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2005/texmf-dist/tex/latex/graphics/color.sty

! Package color Error: No driver specified.

Report

C

phfaist

13 years ago

Some other ideas:
You need to separate paths with colons `:' in variable TEXINPUTS. Also, I noticed that adding an extra colon often helps latex find lots of stuff (I guess it tells latex to look into the default paths) for example:
TEXINPUTS=/a/path1:/a/path2:

You may try to specify a default latex color driver (by the way, I still don't understand well what that is) in the \usepackage[...]{color} in file src/klfbackend/klfbackend.cpp, line 118: edit the line to
<< "\\usepackage[dvips]{color}\n"


I hope this helps.
Philippe

Report

yuanjiayj

14 years ago

if you know chinese, you can download here

http://www.myswear.net/forum/viewthread.php?tid=6074&extra=page%3D1

Report

yuanjiayj

14 years ago

it's better than eqe.
if you can provide a .deb or .rpm file,I think it'll be more popular.

Report

C

phfaist

13 years ago

Finally I managed to make a Suse 10.0 RPM for this app. I'll work on building an rpm for suse 10.1 too.

Report

AntonChumak

14 years ago

this may be great feature for kile. One of it's tabs can display current rendered content of formula environment.

Report

vitormp

14 years ago

Interesting. I use Kile and never noticed that feature :-)

What do you mean exactly?

Vitor.

Report

shafff

14 years ago

this feature has yet to be implemented :)

Report

C

phfaist

14 years ago

That would probably mean editing the Kile code. If anyone would like to do it, feel free to do so.

Report

prophecy

14 years ago

Ohhh, that sounds really nice...

Report

prophecy

14 years ago

This is a cool app

It would be nice to see attached to kopete in some way, sure it could be done. The one thing that it is currently missing is a nice way to edit the preamble. I am sure that one can just edit the code to include any packages that he or she might need but that would be ugly. It would be cool if you could have a configuration region to include packages and then a small section where an "expert" could edit the preamble his or herself.

It would also be nice if there was a way to change the filetype to save as. Like make it an eps file or the such. I notice that it goes to pdf in the mean so this seems like it would be easy.

Report

C

phfaist

14 years ago

I'm sorry but I'm totally unfamiliar with Kopete and even less with how to attach code to it ...

However, you're right that a few options are missing. I'll work at it (namely including specific packages, or even maybe edit entire raw LaTeX code... I'll see about how easy it is to program .. :)

You can already save in all filetypes supported by your QT libs (but they're all _image_ filetypes (png, jpg, gif, ...) ). I'll try to work on saving in (E)PS or PDF, but gs'ing the direct LaTeX output (it has no meaning of converting to an image if you convert it back to ps!).

I thought that it may be interesting to add an option making the image background transparent, I don't know if you think it's important ...

Thanks anyway for your comment

Report

iseppo

14 years ago

A really nice and well implemented piece of software (the history is one especially good idea). I can think of couple of occasions when I would have had used it, so it will certainly remain on my harddrive.

Report

10 years ago

*** KLatexFormula 2.1.1
- Fixed a bug in configuration that made formula previews invisible to users who hadn't yet used KLatexFormula.

*** KLatexFormula 2.1.0
- the concept of *Library* for tagging, ordering and archiving equations.

*** KLatexFormula 2.0.1
- bug fix in KLFBackend
- et voilí  enfin une traduction en franí§ais pour ma petite application !

*** KLatexFormula 2.0.0 is out !
The source was subject to complete re-write for a cleaner API. See KLatexFormula homepage (klatexformula.sourceforge.net) for more information. (Note: The formula history of an older version of KLatexFormula can be imported in the newer version)
- New: A Symbols palette for insertinig in your code
- New: searching tagged history items
- New: Syntax highlighting
- Plus more features !

12345678910
2
product-maker swiftscythe Jan 24 2011 9 excellent
product-maker MichauSm Sep 29 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
deka
Oct 01 2013
swiftscythe
Jan 24 2011
iseppo
Feb 12 2010
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
3.2.0
updated Sep 28 2010
added Jun 06 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags app software