emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Max Nikulin <manikulin@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [TIP] Exporting Maxima results to LaTeX
Date: Wed, 8 Feb 2023 16:11:09 +0000	[thread overview]
Message-ID: <87ttzwxhlu.fsf@ucl.ac.uk> (raw)
In-Reply-To: <ts0fum$nv2$1@ciao.gmane.io> (Max Nikulin's message of "Wed, 8 Feb 2023 22:43:17 +0700")

On Wednesday,  8 Feb 2023 at 22:43, Max Nikulin wrote:
> At first glance :prologue header argument might be an alternative, but
> likely I have missed something obvious.

Indeed.  I use, for instance, the following

#+PROPERTY: header-args:maxima :prologue "fpprintprec: 2; linel: 50;"

for my teaching slides to ensure that Maxima output fits on my slides
(and only print relevant digits in the answers).

There's also an epilogue which I use to automatically format the
solution of my Maxima codes (all my examples have a particular form):

#+PROPERTY: header-args:maxima :epilogue "for j: 1 thru length(solution) do (print(\"\"), print(\"Solution\", j), print(\"\"), for i: 1 thru length(solution[j]) do grind(solution[j][i]))$"

All my Maxima blocks define a "solution" variable.

-- 
: Eric S Fraga, with org release_9.6-201-gb58fba in Emacs 30.0.50

  reply	other threads:[~2023-02-08 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-07 21:40 [TIP] Exporting Maxima results to LaTeX Leo Butler
2023-02-07 22:13 ` Thomas S. Dye
2023-02-08 15:43 ` Max Nikulin
2023-02-08 16:11   ` Fraga, Eric [this message]
2023-02-08 20:40   ` Leo Butler
2023-02-11 11:39     ` Max Nikulin
2023-02-14 15:13       ` Leo Butler

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87ttzwxhlu.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).