Re: [TIP] Exporting Maxima results to LaTeX

2023-02-14 Thread Leo Butler
On Sat, Feb 11 2023, Max Nikulin wrote: > On 09/02/2023 03:40, Leo Butler wrote: >> On Wed, Feb 08 2023, Max Nikulin wrote: >>> I am curious if it is possible to avoid duplication by e.g. using noweb. >> >> ... I am not aware of how to >> remove that duplication--all the examples I have found in

Re: [TIP] Exporting Maxima results to LaTeX

2023-02-11 Thread Max Nikulin
On 09/02/2023 03:40, Leo Butler wrote: On Wed, Feb 08 2023, Max Nikulin wrote: I am curious if it is possible to avoid duplication by e.g. using noweb. ... I am not aware of how to remove that duplication--all the examples I have found in the worg source do what I have done above. I have tri

Re: [TIP] Exporting Maxima results to LaTeX

2023-02-08 Thread Leo Butler
On Wed, Feb 08 2023, Max Nikulin wrote: > On 08/02/2023 04:40, Leo Butler wrote: >> Generate @@latex:\LaTeX{}@@ code from Maxima code. > > You can write just LaTeX, ox-latex recognizes such pattern. The bonus > is the it will be literally exported to HTML. Thanks. > >> #+begin_example >> ,#+beg

Re: [TIP] Exporting Maxima results to LaTeX

2023-02-08 Thread Fraga, Eric
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 teach

Re: [TIP] Exporting Maxima results to LaTeX

2023-02-08 Thread Max Nikulin
On 08/02/2023 04:40, Leo Butler wrote: Generate @@latex:\LaTeX{}@@ code from Maxima code. You can write just LaTeX, ox-latex recognizes such pattern. The bonus is the it will be literally exported to HTML. #+begin_example ,#+begin_src maxima :tangle maxima-init.lisp :exports none (def

Re: [TIP] Exporting Maxima results to LaTeX

2023-02-07 Thread Thomas S. Dye
Aloha Leo, Leo Butler writes: Attached is a self-documented setup to do what the subject line says. Comments/suggestions welcome. Best, Leo Please consider adding this to https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-maxima.org, which also has some notes on how to export M

[TIP] Exporting Maxima results to LaTeX

2023-02-07 Thread Leo Butler
Attached is a self-documented setup to do what the subject line says. Comments/suggestions welcome. Best, Leo #+TITLE: Tip for exporting Maxima results to LaTeX #+AUTHOR: Leo Butler #+OPTIONS: H:2 toc:nil num:nil tags:nil todo:nil #+LATEX_CLASS: article #+LATEX_HEADER: \usepackage{color} #+LATEX_