Menu

#24 LibreOffice 4 error and solution

open
nobody
None
5
2015-02-07
2013-02-12
Murilo Neto
No

Hi, I'm a fan of your software, and an active user for a long time.

Excuse the grammatical errors: this is an automatic translation (but corrected) with Google Translator.

I tested OOOLaTeX for the new version of LibreOffice, finding an error. Looking at the script, the error lies in the function DocInfo, in the OOOLaTeXTools module.

The line problem, which prevents the execution of the program is as follows:

oDocInfo StarDesktop.CurrentComponent.getDocumentInfo = ()

I commented this line, putting in place the following code:

oDocInfo ThisComponent.getDocumentProperties = ()

With this change, the program works normally. The error may have been caused by the recent changes and deletions in the LibreOffice API.

Please, do not let the project die. OOOLaTeX is still the best option for entering mathematical formulas in LibreOffice. TexMaths is good, but still has errors in alignment to the base line, which does not occur in OOOLaTeX.

Thanks for the nice job.

PS.: LibreOffice 4 changed the filter to display images. This greatly improved the display quality of the formulas in PNG.

Discussion

  • Murilo Neto

    Murilo Neto - 2013-03-05

    errata:
    Sorry: there is an error in the code I posted. The following lines replace their bad stretch above.

    --------------------------------------------------------------------------------------------------------------------------
    The line problem, which prevents the execution of the program is as follows:

    oDocInfo = StarDesktop.CurrentComponent.getDocumentInfo()

    I commented this line, putting in place the following code:

    oDocInfo = ThisComponent.getDocumentProperties()
    --------------------------------------------------------------------------------------------------------------------------

     
  • Dryden

    Dryden - 2014-02-04

    Thank you very much for the modification. Although, as you fear, oooLaTeX will become unusable if someone doesn't take up the task to improve it...

     

Log in to post a comment.