Menu

Reduce to LateX

Help
2014-10-19
2014-10-19
  • Mike Thompson

    Mike Thompson - 2014-10-19

    I'm not getting the expected output when using the RLFI package (I'm
    using the free version of Reduce on Linux - CSL, dated April 2011).
    After loading the package and setting the latex switch, the output of an
    expression is "tex(expression)", e.g. the result of entering (x + 1)^2;
    at the reduce prompt gives tex(x^2 + 2x + 1)", and I was expecting the
    output to be in latex format.

    Have I overlooked something?

    Thanks in advance for any advice!
    Mike

     
    • Arthur Norman

      Arthur Norman - 2014-10-19

      If I browse the sources and check the file
      trunk/packages/misc/rlfi.tst
      to try. I have just tried that with a versionm of Reduce made from the
      current subversion source files and it seems OK there.

      But AHA - if you are using the CSL version of Reduce and letting it run in
      a window then its "fancy" display appears to interact with this leadimg
      to the behaviour you describe. This is - I guess - going to be because the
      2D display code (source in tmprint.red) also enables TeX-style output and
      the two independent attempts to convert stuff to LaTeX are fighting!

      Thank you for reporting this! Youcan get around it by going "off fancy;"
      as well as "on latex;" and maybe we should make that happen automatically.
      Or if you launch Reduce from a console with the "--nogui" flag on the
      command line.

      I might also be seeing problems even loading rlfi with tmprint loaded -
      and will try to investigate. I hope you can imagine how TeX-generation
      packages mainly created by two different people (ie rlfi and tmprint) for
      different purposes might clash like this!

         Arthur
      

      On Sun, 19 Oct 2014, Mike Thompson wrote:

      I'm not getting the expected output when using the RLFI package (I'm
      using the free version of Reduce on Linux - CSL, dated April 2011).
      After loading the package and setting the latex switch, the output of an
      expression is "tex(expression)", e.g. the result of entering (x + 1)^2;
      at the reduce prompt gives tex(x^2 + 2x + 1)", and I was expecting the
      output to be in latex format.

      Have I overlooked something?

      Thanks in advance for any advice!
      Mike


      Reduce to LateX


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/reduce-algebra/discussion/899364/

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

       
  • Mike Thompson

    Mike Thompson - 2014-10-19

    Hi Arthur,

    Thanks for the feedback, but the "fancy" switch is off by default when I load RLFI and set "latex", and also I get an error when trying to run Reduce from a console with the "nogui" flag:

    Unknown extended option "--nogui"

    Not sure if it makes any difference but I have the 32 bit Ubuntu version but I'm using Salix (a Slackware based distro).

    However, LateX output is ok if I start Reduce using the option to output to a file, which actually suits my needs better. :-)

    cheers.

     

Log in to post a comment.