Add Math Support: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(Added detailed description)
Line 2: Line 2:
== Rationale ==  
== Rationale ==  
I often wanted to have a tool that allows complicated layouts but still is easy to use. This is exactly what scribus does. However for scientific papers I lacks one main capability: Formulas. So I want to add these as my summer of code project.
I often wanted to have a tool that allows complicated layouts but still is easy to use. This is exactly what scribus does. However for scientific papers I lacks one main capability: Formulas. So I want to add these as my summer of code project.
The bugtracker also lists requests for math support
* [http://bugs.scribus.net/view.php?id=128 TeX Rendering]
* [http://bugs.scribus.net/view.php?id=1030 Math support]
there's a feature request in the Debian database
* [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=270618 #270618 scribus: what about equations?]
and it's also on the
* [[1.3.x_Roadmap|Roadmap]].


== Details ==
So quite a lot of people seem to want this feature.
 
== Overview ==


In IRC we came to the conclusion that it probably is the best to use a approch like [http://www.bluesky.com/mathsetter/index.html MathSetter].
In IRC we came to the conclusion that it probably is the best to use a approch like [http://www.bluesky.com/mathsetter/index.html MathSetter].
Line 10: Line 19:
* Read latex's output
* Read latex's output
* Display this output instead of the source.
* Display this output instead of the source.
== Details ==
=== Objects ===
There will be a new object that consists of a group of vector objects (these objects are created by importing the EPS or PDF output of latex) and which has a property that stores the latex source. For editing this property either a simple text dialog (syntax highlighting?) is displayed or LyX is started with the existing text loaded as the default file.
=== Processing the latex input ===
When the user has finished editing latex is run with a temporary file created by inserting the userinput to the template (see below). preview.sty is used to create a DVI file with a matching boundingbox. The DVI is converted to either PDF or EPS and then imported (functions for import are already included in scribus).
=== Handling missing latex / wrong syntax ===
When latex is missing the display of the object is replaced by the error message (or the source?) and a problem is flagged in the preflight verifier.
== Related ==
* The barcode generator works similar to this, but has a major drawback: It's not possible to edit it once a barcode is placed.
* Various LaTeX to HTML tools might be a good starting point to check how the EPS/PDF is best created.


== Links ==
== Links ==
* [http://bugs.scribus.net/view.php?id=128 TeX Rendering] (Discussion)
* [http://bugs.scribus.net/view.php?id=128 TeX Rendering] (Discussion)
* [http://bugs.scribus.net/view.php?id=1030 Math support] (Discussion)
* [http://bugs.scribus.net/view.php?id=1030 Math support] (Discussion)

Revision as of 13:45, 17 March 2007

Add Math Support

Rationale

I often wanted to have a tool that allows complicated layouts but still is easy to use. This is exactly what scribus does. However for scientific papers I lacks one main capability: Formulas. So I want to add these as my summer of code project. The bugtracker also lists requests for math support

there's a feature request in the Debian database

and it's also on the

So quite a lot of people seem to want this feature.

Overview

In IRC we came to the conclusion that it probably is the best to use a approch like MathSetter.

  • Let the user enter LaTeX source (perhaps using LyX's editor)
  • Run latex
  • Read latex's output
  • Display this output instead of the source.

Details

Objects

There will be a new object that consists of a group of vector objects (these objects are created by importing the EPS or PDF output of latex) and which has a property that stores the latex source. For editing this property either a simple text dialog (syntax highlighting?) is displayed or LyX is started with the existing text loaded as the default file.

Processing the latex input

When the user has finished editing latex is run with a temporary file created by inserting the userinput to the template (see below). preview.sty is used to create a DVI file with a matching boundingbox. The DVI is converted to either PDF or EPS and then imported (functions for import are already included in scribus).

Handling missing latex / wrong syntax

When latex is missing the display of the object is replaced by the error message (or the source?) and a problem is flagged in the preflight verifier.

Related

  • The barcode generator works similar to this, but has a major drawback: It's not possible to edit it once a barcode is placed.
  • Various LaTeX to HTML tools might be a good starting point to check how the EPS/PDF is best created.

Links

  • TeX Rendering (Discussion)
  • Math support (Discussion)
  • KFormula (Formula editor, output does not look satisfying)
  • TeXmacs (very good looking formula editor, not based on TeX or Emacs despite its name)
  • LyX (WYSIWYG LaTeX editor)