[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#882767: ITP: libreoffice-texmaths -- TexMaths is a LaTeX equation editor for LibreOffice



Hi Kurt,

On Mon, Nov 27, 2017 at 03:50:55AM -0600, kkremitzki@gmail.com wrote:
> Hello Nicholas,
> 
> On Sun, 2017-11-26 at 22:06 -0500, Nicholas D Steeves wrote:
> > Hi Kurt,
> > 
> > On Sun, Nov 26, 2017 at 08:44:44AM -0600, Kurt Kremitzki wrote:
> > > 
> > > TexMaths is an extension for LibreOffice designed to provide LaTeX
> > > support. 
> > > LaTeX equations can be inserted as images (SVG or PNG formats) and
> > > the LaTeX
> > > code is saved into the image attribute for further editing.
> > > 
> > 
> > I know it's missing from the upstream description, but if TexMaths
> > can
> > also generate an SVG or PNG (I'm assuming it can) can the Debian
> > description read more like this?:
> > 
> > - LaTeX equations can be inserted as images (SVG or PNG formats) and
> > the LaTeX
> > - code is saved into the image attribute for further editing.
> > + TexMaths generates SVG or PNG images from LaTeX equations, inserts
> > them into
> > + the document, and the LaTeX code is embedded into the image
> > attribute for
> > + further editing.
> > 
> 
> Thanks for the feedback, this sounds better.

You're welcome. :-)

> > Also, re: "the image attribute" I'm curious if it's embedded as
> > SVG/PNG metadata ( maybe XMP, or something from
> > https://www.w3.org/TR/2003/REC-PNG-20031110/#11textinfo )?  Or is it
> > as a LibreOffice property of the inserted image object?  Either way,
> > cool stuff!
> > 
> > Cheers,
> > Nicholas
> 
> I can't exactly tell if it's SVG or LibreOffice metadata, but I created
> a simple test.odt with only a TexMaths equation inside. After unzipping
> this .odt, I can see the original LaTeX in content.xml in a <svg:desc>
> node. I tried copying and pasting the image from LibreOffice to
> Inkscape, but I couldn't find the original LaTeX in the resultant SVG.

Thank you for investigating this.  It sounds like the "image
attribute" is an attribute specific to the "<svg:desc>" node, which is
specific to the odt format (content.xml), and not to SVG or PNG
metadata.  Because of this, I think the following phrase should be
changed like this:

- and the LaTeX code is embedded into the image attribute for further
- editing.
+ and the LaTeX [code|expression|equation|source, your choice. I like
+ "source"] is stored alongside the image in the ODT format. You can
+ later use TexMaths to edit the LaTeX [source] and regenerate the
+ image. If ever you find yourself without LibreOffice, you can unzip
+ the ODT and extract the source from content.xml to transfer the
+ LaTeX to another TeX editor.

This is possibly a bit verbose, but I think it's important to say how
work done with TexMaths can be transferred to another editor.  eg:
someone begins work with TexMaths and he/she needs to get some work
done on a system where LibreOffice cannot be installed.  And besides,
isn't that sort of thing part of the beauty/utility of TeX? ;-)

Kind regards,
Nicholas

Attachment: signature.asc
Description: PGP signature


Reply to: