all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Litvinov Sergey <slitvinov@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [babel] maxima support?
Date: Tue, 15 Mar 2011 14:27:41 +0000	[thread overview]
Message-ID: <87fwqompb6.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87r5a834lc.fsf@gmail.com> (Eric Schulte's message of "Tue, 15 Mar 2011 07:17:51 -0600")

"Eric Schulte" <schulte.eric@gmail.com> 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)

  reply	other threads:[~2011-03-15 14:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23  9:32 [babel] maxima support? Litvinov Sergey
2011-02-24 10:25 ` Eric S Fraga
2011-02-24 10:28   ` Eric S Fraga
2011-02-25  9:17   ` Litvinov Sergey
2011-02-25 23:58   ` Eric Schulte
2011-02-28 16:15     ` Eric S Fraga
2011-03-14 21:26       ` Eric Schulte
2011-03-15 10:47         ` Eric S Fraga
2011-03-15 13:17           ` Eric Schulte
2011-03-15 14:27             ` Eric S Fraga [this message]
2011-03-15 15:32               ` Eric Schulte
2011-03-15 16:39                 ` Eric S Fraga
2011-03-15 17:27                   ` Eric Schulte
2011-03-15 18:32                     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwqompb6.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    --cc=slitvinov@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.