#15 Feature Request (with patch): Recompile All

closed
nobody
None
5
2014-09-30
2014-04-01
Daniel Fett
No

When you use external files for keeping your styles (say, a macros.sty that you include in the preamble), if you change something in such a file, you need to manually recompile every TexMaths equation, which is very tedious. The following patch allows (in Impress) to recompile everything. As this is a rare case, I think there is no need to assign a button to this. If somebody needs this, s/he can run in through the Macros menu.

https://bitbucket.org/webhamster/texmaths/commits/a396a370e200e406a2b6471f2acf5d266221f72f?at=devel/recompile-all

Discussion

  • Roland Baudin

    Roland Baudin - 2014-04-10

    Here is a test version that includes this feature (with a GUI). It is not uncommon that one needs to change the font size or the image format of all equations (when writing a scientific paper for example) and so this function seems to me very useful. I started to think to it one year ago but didn't start it. Thanks for pushing me to do it!

    This test release also includes your other feature request and bug fixes, patches, etc.

    I need to review the help to include the new things and of course to fix more bugs, if any. I understand you are german, am I right? Perhaps, you could translate the missing strings in de.po?

    Thanks a lot,
    RB

     
  • Daniel Fett

    Daniel Fett - 2014-04-10

    Thanks for the updated version, I will test it over the next days.

    Here is the first observation: The Recompilation does not succeed when the user has last clicked on something in the slide preview column on the left. (E.g., after the user has duplicated a slide by rightclicking on the slide's preview.)

    For the recompilation, it is necessary that the main drawing area has the focus. I did not succeed in finding a way of setting the focus automatically, therefore I added the workaround in lines 929-932:

    https://bitbucket.org/webhamster/texmaths/src/34f1b02ba38e9a8960df9b5285fd8a96c2a42fcf/src/TexMathsEquations.bas#cl-929

     
  • Daniel Fett

    Daniel Fett - 2014-04-10

    And yes, I will provide the missing german translations.

     
  • Daniel Fett

    Daniel Fett - 2014-04-10

    There are two other issues:
    1) Font Size and Image Parameters are always changed. It would be useful to have a check box that enables or disables adjustment of these parameters. Otherwise, all my equations are transparent or not after recompilation.
    2) The recompilation can take a while, and the user should not click anywhere. There should be a warning for the user in the dialog ("Recompilation may take a while. Don't click anywhere until recompilation has finished.") and a MsgBox afterwards ("Recompilation successful.")

     
  • Daniel Fett

    Daniel Fett - 2014-04-10

    By the way, have you explored other ways of inserting the images instead of using clipboard? If not, I could put some time in this and see whether there is a reliable alternative.

     
  • Roland Baudin

    Roland Baudin - 2014-04-15

    No I didn't investigate a lot about this because compilation time was not an issue until now. I use a code from DannyB, found on the old oooforum.org site.

    Anyway, here is a new test version with the two issues solved, I hope. To avoid applying a change to all equations, select '---' in the lists, and for the transparency check box, select the third state.

    Of course, there are ne strings to translate... Please tell me if you see any other issue.

    Thanks,
    RB

     
  • Roland Baudin

    Roland Baudin - 2014-04-18

    An another test version that also works with Openoffice 4.0.x !
    Could you please update the de.po file ?
    Thanks a lot,
    RB

     
    Last edit: Roland Baudin 2014-04-18
  • Daniel Fett

    Daniel Fett - 2014-04-21

    I will test the new version and give feedback (and send you the new translations) as soon as possible.

    There is some useful code regarding inserting of images in this document: http://www.pitonyak.org/AndrewMacro.odt

    It avoids using the clipboard, which would be a nice-to-have thing (provided that it also works for SVG). It could be faster and more robust. Maybe this could be a feature for the next version? I will do some testing if I find the time.

     
  • Daniel Fett

    Daniel Fett - 2014-04-22

    Here is the new de.po file:
    https://bitbucket.org/webhamster/texmaths/commits/71696a6981be8833566cdae40905112b425c4231
    ..and I also translated the description:
    https://bitbucket.org/webhamster/texmaths/commits/e6701eb80af268065fca27373f01d3063d0f16b4
    ...however, I didn't have time to translate the help (yet).

    For the new version, I like the window that is shown when recompiling and that there is a cancel button.

    The new version does not recompile grouped equations (is that known?). I like that there is an option to keep font size etc. unchanged, but I suggest to make these options the default for every field. For the transparency check box, at least with my theme, I cannot see whether there is a "keep unchanged" option (the checkbox seems to have three states, but I see them as "checked", "unchecked", and "unchecked"). I suggest to use a drop down here as well (options "---", "yes", "no").

     
  • Roland Baudin

    Roland Baudin - 2014-04-28

    OK, thanks for your feedback (and the files). I'll try to improve things after my holydays (next week).
    RB

     
  • Daniel Fett

    Daniel Fett - 2014-06-16

    How are things going? Can I help you with anything? Just let me know!

     
  • Roland Baudin

    Roland Baudin - 2014-09-30
    • status: open --> closed
     
  • Roland Baudin

    Roland Baudin - 2014-09-30

    OK, I released today the new version. Thanks a lot for your help, and sorry for the delay.
    RB

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks