From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [babel] maxima support? Date: Tue, 15 Mar 2011 14:27:41 +0000 Message-ID: <87fwqompb6.fsf@ucl.ac.uk> References: <5rbp23p04b.fsf@kana.aer.mw.tum.de> <87bp21ohkt.fsf@pinto.chemeng.ucl.ac.uk> <8762s7ipr7.fsf@gmail.com> <87y6503zkk.fsf@ucl.ac.uk> <874o75wfzf.fsf@gmail.com> <871v28slsr.fsf@ucl.ac.uk> <87r5a834lc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=60761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzVDx-0007nQ-Ka for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:27:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzVDw-00062a-Dp for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:27:49 -0400 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:45911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzVDw-000628-8V for emacs-orgmode@gnu.org; Tue, 15 Mar 2011 10:27:48 -0400 In-Reply-To: <87r5a834lc.fsf@gmail.com> (Eric Schulte's message of "Tue, 15 Mar 2011 07:17:51 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Litvinov Sergey , emacs-orgmode@gnu.org "Eric Schulte" writes: [...] > > Ah, I see the problem, I used let instead of let*. Please try this > updated version of the patch. Sorry I would test this myself, but I > don't have Maxima installed. No problem at all! I'm happy to test this as many times as necessary. In any case, this works fine in that maxima is indeed evaluated and output is returned. However, two problems arise: 1. lines of the form "rat: replaced XXX by YYY = ZZZ" are not deleted (as used to be by the grep -v replaced hack I had in the original ob-maxima). Essentially, we need to ignore output lines that match the regex "^rat: replaced .*$" (I think this should do it...). 2. The output is converted to an org table: --8<---------------cut here---------------start------------->8--- *** simple test #+begin_src maxima :results value programmode: false; eq: x**2-1 = 0; solution: solve(eq, x); print(solution); #+end_src #+results: | solve: | solution: | x | = | - | 1 | x | = | 1 | [%t1, | %t2] | --8<---------------cut here---------------end--------------->8--- This isn't necessary appropriate in this case... but I guess this is now a matter of adding all the normal frills given that the basic functionality is there? Thanks! -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.38.gf8c6.dirty)