This forum has been archived. All content is frozen. Please use KDE Discuss instead.

usage of formula editor

Tags: None
(comma "," separated)
breadbread1984
Registered Member
Posts
2
Karma
0
OS

usage of formula editor

Tue May 22, 2012 10:39 am
I need formula editor in my daily editing work. The one with libreoffice is not so friendly but is the only one I can use in linux before I installed calligra suite. I found there is a formula editor in calligra words, but don't know how to edit formula with it. Could you give some advices on how to use it. Thanks
marko_knoebl
Registered Member
Posts
3
Karma
0
OS

Re: usage of formula editor

Mon Jun 04, 2012 10:12 pm
Hi! I think the formula editor of Calligra is not yet ready for normal usage as it still lacks many layouting features and is complicated to use.

However I'll try to explain how to use it to enter the term "a^2+b"

In the "Add Shape" docker, select "formula" and click somewhere on the page.
Double-click on the newly created shape to activate the formula editing mode. You will see a cursor inside a blue rectangle.
In the formula editing tool select "insert superscript" from the menu. You will see another blue rectangle appearing.
Click inside the first rectangle and type "a"
Use the arrow keys to put the cursor into the second rectangle and type "2"
Use the arrow keys to go to the end of the formula and type "+"
Press the right arrow key once
Type "b"

Hope this helps!
boemann
KDE Developer
Posts
80
Karma
0
OS

Re: usage of formula editor

Mon Jun 04, 2012 10:41 pm
There is a GSoC project going on that tries to improve the formula shape and tool.
If you want to help out I suggest maybe contacting us on irc #calligra
JoHasp
Registered Member
Posts
6
Karma
0
OS

Re: usage of formula editor

Tue Aug 14, 2012 11:14 am
Formula editor is indeed not very usable in Calligra Words.

An alternative is using TeXmacs (www.texmacs.org). I experience it as the most productive way to produce even complex mathematical equations.

Typing
" $$a^2+b " and you are done with the example.

Maybe Calligra can implement the equation editor is a similar way.

Johan
ingwa
Moderator
Posts
49
Karma
0
OS

Re: usage of formula editor

Tue Aug 14, 2012 11:25 am
The formula shape is indeed not very useful as it is. There is a Google Summer of Code project that is aimed at improving it. There already are improvements in the layout and rendering and some work has been done on the editing too.

Texmacs does sound interesting but the problem is that parsing of tex is not a trivial task. Do you know if there is any code for translating TeX math expressions into MathML? If there was, we could easily incorporate it and have a pretty good formula editor pretty quickly.
JoHasp
Registered Member
Posts
6
Karma
0
OS

Re: usage of formula editor

Wed Aug 15, 2012 8:36 am
@ingwa

I don't about a separate translator to Mathml.

From what I understood TeXmacs itself does not use TeX as the native format. TeXmacs itself has converter to/from xml. Using the example a^2+b it gives the following:

Code: Select all
<?xml version="1.0"?>

<TeXmacs version="1.0.7.14">
  <style><tuple>generic</tuple></style>
 
  <body>
    <tm-par>
      <math>a<rsup>2</rsup>+b</math>
    </tm-par>
  </body>
 
  <initial>
    <collection>
      <associate>
        <tm-arg>language</tm-arg>
        <tm-arg>dutch</tm-arg>
      </associate>
    </collection>
  </initial>
</TeXmacs>


Maybe this helps
User avatar
redsteakraw
Registered Member
Posts
12
Karma
0
OS

Re: usage of formula editor

Thu Aug 30, 2012 1:10 am
I would love to be able to just type the LaTeX formula syntax then have the formula editor render it. The GUI right now is a bit clunky and the formulas are small and the focus changes so it is hard to type it in and it doesn't work well to use the mouse to click the status. A good gui is needed and is key, but for power users would like a command syntax like libreOffice but not creating a new one just reuse LaTeX. Wikipedia uses LaTeX for the math formulas and it is being used in other KDE apps like telepathy-kde. Now if I could just type $$ x /in y$$ and have the formula just render after the last $$ it would really speed up my workflow in taking notes and writing math equations in Calligra. And since it would be using a standard that is used in other programs and projects(wikipedia, telepathy-kde) more people would be able to take advantage of it. GUI wise the old KFormula had one of the Best formula editing GUIs the new interface will be just as good if the issues stated above are fixed. I also think that if they grouped the symbols in the same way that Kile does(not copy the tabbed interface but just use the gui that it has now just group it in the same way that Kile does) it would be easier add symbols. Also if the command + Gui approach would be implemented having the command show up in the tooltip when the mouse hovers over the symbols in the symbol selection popup would help novices learn the commands quicker. Now this is somewhat unrelated but would be awesome if there was a cantor shape in which you put in a formula and have cantor make a plot(using its backends like sage, octave, R or Kalgebra) which gets put into the document.
hm
Registered Member
Posts
3
Karma
0

Re: usage of formula editor

Mon Sep 17, 2012 9:12 pm
Couldn't Calligra use itex2MML to convert LaTeX to MathML (like Abiword)?
User avatar
cyrille
Moderator
Posts
110
Karma
1

Re: usage of formula editor

Tue Sep 18, 2012 11:37 am
matlab/latex style input is indeed on the radar, it is actually already partly implemented in a branch (at least for matlab). For latex, I would have wished for a library that can do latex->mathml and mathml -> latex , but it does not seem to exist, so yes, itexToMML is a possibility for the support of latex syntax.


Cyrille Berger
Krita developer and Calligra release coordinator
blog


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell