[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TIP] Exporting Maxima results to LaTeX
From: |
Fraga, Eric |
Subject: |
Re: [TIP] Exporting Maxima results to LaTeX |
Date: |
Wed, 8 Feb 2023 16:11:09 +0000 |
User-agent: |
gnus (Emacs 30.0.50) |
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