Hi, On Mon, Aug 10, 2009 at 8:08 PM, Guillaume Lerouge <guilla...@xwiki.com>wrote:
> Hi, > > On Mon, Aug 10, 2009 at 4:33 PM, Thomas Mortagne > <thomas.morta...@xwiki.com>wrote: > > > On Mon, Aug 10, 2009 at 16:14, Sergiu Dumitriu<ser...@xwiki.com> wrote: > > > Hello Community, > > > > > > I have committed today the first implementation of a new XWiki feature: > > > rendering mathematical equations into images. It is available as a > > > standalone component, and as a syntax 2.0 macro. > > > > > > > > > > > > About the functionality. > > > > > > Equations are written in the TeX/LaTeX syntax, which is pretty simple, > > > and seems to be the syntax of choice for mathematical equations in > other > > > wikis, too. The macro can distinguish between inline and block > equations > > > and render them accordingly. The output can be either PNG (the default > > > one), GIF or JPEG. While PNG is definitely the best, I kept the other > > > two in case somebody really wants to use ancient browsers that only > > > understand GIF. > > > > > > Q: Should I leave just PNG as the output format? > > > > I think keeping PNG as the default format is fine too, most browsers accept > it without complaint. > > > > > > > > > > Another feature is that the font size can be specified, in order to > > > render larger or smaller equations. All the font size commands from > > > LaTeX (from \tiny to \Huge) have an equivalent. I renamed them to a > more > > > easy to understand name (also because the configuration is case > > > insensitive, so there's no difference between large and LARGE). > > > > > > By default images are generated so that the font looks relatively OK > > > with the default XWiki skin on a 72 or 96 DPI display. They might look > > > disproportionate with a different DPI, or with a different default font > > > size. > > > > > > Q: Is the default DPI setting OK? > > > > > > > > > > > > Second, a few technical details: > > > > > > The standalone component is located in > > > platform/core/xwiki-equation-rendering. I don't know if the name is the > > > > I don't like this name either "rendering" is too much linked to the > > rendering module now and this could be used by anyone, not only the > > equation macro. > > > > It's also true that xwiki-equation is not clear enough but you could > > maybe find something else. > > > xwiki-equation-displayer maybe ? > Few more suggestions: xwiki-equation-plotter, xwiki-formula-plotter, xwiki-formula - Asiri _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users