all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Butler <Leo.Butler@umanitoba.ca>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: What is the status of ob-maxima.el? Is this a bug?
Date: Tue, 5 Dec 2023 16:59:28 +0000	[thread overview]
Message-ID: <87y1e8d1qo.fsf@t14.reltub.ca> (raw)
In-Reply-To: <87lea8k310.fsf@ucl.ac.uk> (Eric Fraga's message of "Tue, 5 Dec 2023 16:49:47 +0000")

On Tue, Dec 05 2023, "Fraga, Eric" <e.fraga@ucl.ac.uk> wrote:

> On Tuesday,  5 Dec 2023 at 16:42, Leo Butler wrote:
>> With recent versions of ob-maxima.el, you can set header arguments to
>> get the behaviour Eduardo expected:
>
> Thank you.  This is great news.
>
> I'm going to have to upgrade as the version I'm currently using (from
> 1-2 months ago, I think) doesn't seem to pay attention to :cmdline
> --quiet and/or :results raw.

Yes, it is relatively recent work (see below).

You mentioned returning a value from a maxima code block. I wonder if
you could elaborate? I could imagine either the lisp sexp of the last
expression or the printed representation (e.g. in linear/1d form). But
maybe you have something else in mind?

Leo


#+begin_src elisp :exports results
  (org-version)
#+end_src

#+RESULTS:
: 9.7-pre

#+NAME: batch-quiet-maxima
#+HEADER: :batch batch
#+HEADER: :exports results
#+HEADER: :results raw
#+HEADER: :wrap example
#+HEADER: :cmdline --quiet
#+BEGIN_SRC maxima
  rat(1/(x+1) + x/(x-1));
#+END_SRC

#+RESULTS: batch-quiet-maxima
#+begin_example
(%i1) rat(1/(x+1)+x/(x-1))
                                  2
                                 x  + 2 x - 1
(%o1)/R/                         ------------
                                     2
                                    x  - 1
#+end_example

  reply	other threads:[~2023-12-05 17:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-05  1:41 What is the status of ob-maxima.el? Is this a bug? Eduardo Ochs
2023-12-05 10:36 ` Fraga, Eric
2023-12-05 11:34   ` Eduardo Ochs
2023-12-05 13:22     ` Fraga, Eric
2023-12-05 16:42   ` Leo Butler
2023-12-05 16:49     ` Fraga, Eric
2023-12-05 16:59       ` Leo Butler [this message]
2023-12-05 17:16         ` Fraga, Eric
2023-12-05 20:18           ` Leo Butler
2023-12-06 14:15             ` Fraga, Eric

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=87y1e8d1qo.fsf@t14.reltub.ca \
    --to=leo.butler@umanitoba.ca \
    --cc=emacs-orgmode@gnu.org \
    /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.