Menu

#55 not working with libreoffice 5.0

v1.0_(example)
closed
nobody
None
5
2015-12-20
2015-09-09
Burk Siev
No

Hi,
I have a fresh installation of win10 (64bit) and I have installed LibreOffice 5.0.1.2 (64bit).
Unfortunately libreoffice crashes every time by using TexMaths 0.41.
Do you have an idea for solving this problem?
Thank you in advance.

burki007

Discussion

  • Roland Baudin

    Roland Baudin - 2015-09-13

    Hi,

    I tested TexMaths 41 under Libreoffice 5.0.1.2 (64 bits) with MikTex 2.9.5721 (64 bits) and dvisvgm 1.10 (64 bits) under Windows 7.
    TexMaths works as expected (though there is a small issue with a transient DOS window) and equations are produced normally and can be edited as usual.

    I suggest you reinstall TexMaths completely, using this tip :

    1. Uninstall TexMaths from the Tools / Extension Manager menu of LibreOffice Writer
    2. Turn on hidden files view in Windows Explorer
    3. Remove the directory: C:\texmaths-<your username=""></your>
    4. Remove the directory C:\Users\<your username="">\AppData\Roaming\LibreOffice\4\user\TexMaths</your>
    5. Reinstall TexMaths
     
  • Burk Siev

    Burk Siev - 2015-09-13

    Thank you very much for the answer,

    I have tested now the TexMaths Extension with open OfficeOffice 4.1.1 on my 64bit machine. It works very fine. Your Extension is excellent.
    Next week, I will try your suggestion also for LibreOffice.
    Thank You.
    burki007

     
  • Alexander

    Alexander - 2015-10-15

    Hey,

    I have the same problem. My specs.
    Windows 10 (64 bit)
    LibreOffice 5.0.2.2 (64 bit)
    TexMaths 0.41

    I also have the problem on a Windows 8.1 (64 bit) machine. It seems to work fine with a LibreOffice 4.x version.

     
  • Alex Angerhofer

    Alex Angerhofer - 2015-11-16

    I have a similar problem.
    Windows 7(64 bit)
    LIbreOffice 5.0.3.2
    MikTeX 2.9.5721
    tried to reinstall TexMaths following suggestions in this thread to no avail.
    I am getting the following error:
    BASIC runtime error.
    An exception occurred
    Type: com.sun.star.container.NoSuchElementException
    Message: .
    while the My Macros & Dialogs.TexMaths - LibreOffice Basics window hangs at
    DialogLibraries.LoadLibrary( "TexMaths" )
    Thanks for any pointers. Alex.

     
  • Roland Baudin

    Roland Baudin - 2015-11-20

    I investigated a bit about this crash problem with LibreOffice 5 and here is what I found:

    1. the crash only occurs on Windows, there is no crash with LO 5 on Linux
    2. the crash only happens when the clipboard is empty before launching TexMaths. If the clipboard is not empty, there is no crash and TexMaths works as expected

    I found the location of the problem in the code and it appears to be a LibreOffice bug in the basic module. So I filled a bug report to the LO team but I guess it won't be fixed soon...

    Anyway, here is aworkaround for this problem (in TexMaths 0.41):

    1. Open the macro dialog in Writer using the menu Tools / Macros / Organize Macros / LibreOffice Basic
    2. Click on the small + in front of the word TexMaths to expand the list of macros
    3. Click on TexMathsEquations in the left most list and on MakeEquation in the right most list and then click on the Edit button
    4. In the MakeEquation macro, comment the following lines as they appear below:

    ' Save initial clipboard content because it will be lost when pasting the image
    'Dim sClipContent as String
    'sClipContent = ClipboardToText()

    (at the beginning of the macro)

    and

    ' If Writer is installed, restore initial clipboard content
    'If ComponentInstalled( "Writer" ) Then
    'TextToClipboard(sClipContent)
    'End If

    (near the end of the macro).

    1. Close Writer

    After that, you should be able to enter and edit TexMaths equations as usual. However, the clipboard is no more restored between calls of the TexMaths macro but this not a major issue.

     

    Last edit: Roland Baudin 2015-11-20
  • Roland Baudin

    Roland Baudin - 2015-12-20

    I implemented a workaround for Windows and you should be able to run TexMaths with LibreOffice 5.x on Windows. I also filled in a bug report to the LlibreOffice team.
    So I think I can close the bug now.

     
  • Roland Baudin

    Roland Baudin - 2015-12-20
    • status: open --> closed
     

Log in to post a comment.

Monday.com Logo