Menu

#75 TeXMaths does not work with Libreoffice 5.3 (tried on 5.3.1)

v1.0_(example)
closed-fixed
nobody
None
5
2017-03-23
2017-03-14
No

Libreoffice complains all the time about functions with missing ')' as in

BASIC syntax error.
Expected: ).

E.g. for a line

oTextStream.writeString(
"\documentclass[10pt]{article}" & chr(10) &

glb_sPreamble & chr(10) & chr(10) &
"\pagestyle{empty}" & chr(10) &

sLatexCode

Interestingly, I can have LibO 5.2 and 5.3 installed side to side, sharing the profile which includes the TeXMaths extension. If I use LibO 5.2, not only Libreoffice works perfectly. However, the extension code for the same snippet still seems to miss a closing ) which seems strange.

Discussion

  • Sergio Callegari

    Please see LibO bug https://bugs.documentfoundation.org/show_bug.cgi?id=106529

    As well as bug https://bugs.documentfoundation.org/show_bug.cgi?id=80731

    missing closing parenthesis in Basic expressions is now considered to be an error (which it really is) instead of being silently ignored

    Unfortunately, this has been pushed into a point release for the 5.3 branch without any previous deprecation timeframe.

    LibO developer says

    Please have extension authors fix their code

    This should be an easy fix for TeXMaths, but is now quite urgent IMHO.

     
  • Roland Baudin

    Roland Baudin - 2017-03-15

    Here is a fix for the missing ')' at the line you found.
    Are there any other place where a closing parenthesis is missing?

    Anyway, that's strange because I have no such issue with LibreOffice 5.3.0.3 on Ubuntu 16.04.

    [Edit] Oh yes, I see in your bug report, that the issue was introduced in 5.3.1. However, this version is not available for download on the LibreOffice web site, so I can't make other tests yet.

     

    Last edit: Roland Baudin 2017-03-15
    • Sergio Callegari

      Hi,

      thanks for the tentative fix.

      I think that there are more places with the issue. I wonder if it is possible to
      catch them in some sort of programmatic way rather than trying to test the
      extension in every possible way until all are caught.

      You are correct that there is no issue with 5.3.0.3. The behavioural change was
      pushed in with 5.3.1.x.

      I'm currently suggesting to have it pushed back to 5.4.0, since there might be
      (and probably are) other extensions affected.

      Best regards,

      Sergio

      On 15/03/2017 15:49, Roland Baudin wrote:

      Here is a fix for the missing ')' at the line you found.
      Are there any other place where a closing parenthesis is missing?

      Anyway, that's strange because I have no such issue with LibreOffice 5.3.0.3
      on Ubuntu 16.04.

      Attachments:


      [bugs:#75] https://sourceforge.net/p/texmaths/bugs/75/ TeXMaths does not
      work with Libreoffice 5.3 (tried on 5.3.1)

      Status: open
      Group: v1.0_(example)
      Created: Tue Mar 14, 2017 09:54 AM UTC by Sergio Callegari
      Last Updated: Wed Mar 15, 2017 02:08 PM UTC
      Owner: nobody

      Libreoffice complains all the time about functions with missing ')' as in

      BASIC syntax error.
      Expected: ).

      E.g. for a line

      oTextStream.writeString( /
      "\documentclass[10pt]{article}" & chr(10) &/
      glb_sPreamble & chr(10) & chr(10) &/
      "\pagestyle{empty}" & chr(10) &/
      sLatexCode

      Interestingly, I can have LibO 5.2 and 5.3 installed side to side, sharing the
      profile which includes the TeXMaths extension. If I use LibO 5.2, not only
      Libreoffice works perfectly. However, the extension code for the same snippet
      still seems to miss a closing ) which seems strange.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/texmaths/bugs/75/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Roland Baudin

    Roland Baudin - 2017-03-16

    OK, thanks for these informations.
    Here is a new version (unofficial, not well tested) that should completely fix the issue.

     
  • Sergio Callegari

    That was quick! Thanks. Gave a preliminary test and seems OK. I'll try it more extensively in the next days.

     
  • Romuald Poteau

    Romuald Poteau - 2017-03-22

    Had exactly the same problem with libreoffice 5.3.1.1. This new version fixes the issue.
    Thank you

     
  • Sergio Callegari

    The change in LibO will be reverted in 5.3.3, since other extensions are breaking too. Probably, it will be readded on the transistion to 5.4.x Nonetheless, I suggest that the new version of TeXMaths is released as soon as possible, since there will likely be a subset of users on 5.3.2 (and possibly some 5.2.x) having the issue.

     
  • Roland Baudin

    Roland Baudin - 2017-03-22

    I released today TexMaths 0.43 that fixes the issue.

     
  • Roland Baudin

    Roland Baudin - 2017-03-23
    • status: open --> closed-fixed
     

Log in to post a comment.