emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Leo Butler <Leo.Butler@umanitoba.ca>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [BUG] ob-doc-maxima.org and ob-maxima.el
Date: Thu, 03 Nov 2022 06:51:16 +0000	[thread overview]
Message-ID: <87wn8c7cpn.fsf@localhost> (raw)
In-Reply-To: <87edulm9hk.fsf@t14.reltub.ca>

Leo Butler <Leo.Butler@umanitoba.ca> writes:

> In worg's documentation of ob-maxima.el[fn:1], there are several bugs.

Thanks for reporting!

> 1. In the subsection `Inline Display of Maxima LaTeX Output', the
> results are missing.

It is because source block evaluation is disabled on server side when
generating WORG website from org sources.

You basically need to evaluate the code block manually to have it
present in the original file without a need to evaluate during export.

I do not have maxima on my system. It would be welcome if you evaluate
the code blocks with missing results manually and submit a patch with.

> ... This is because the code block is named
> `solve-maxima', the same as in the section `Solver'. Export results in
> that output being put in the `Solver' section (I don't know if that
> should be considered a bug in Org).

No, the source block in the Solver section is different. It just has
the same name. Name duplicate should be fixed indeed.

> 2. In `3D Plots', the header arguments do not result in a link to a
> generated file being created on evaluation of the code block. I am
> unsure if this is a bug in Org, ob-maxima.el or ob-doc-maxima.org or
> what.
> On reading the description of the =:results graphics=
> header[fn:2], it looks like there is blame to go around.

Makes sense. Can you please report this inconsistency in more details in
a separate email? It looks like something is not right with ob-maxima
code in the treatment of :results graphics.

> @@ -145,7 +151,7 @@ This example is from [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto
>  ,#+name: 3d-maxima
>  ,#+header: :file images/maxima-3d.png
>  ,#+header: :exports results
> -,#+header: :results graphics
> +,#+header: :results graphics file

Using graphics together with file does not make sense.
We should probably fix ob-maxima with :results file first.
Ideally, the code here should be simply
,#+header: :results file

>  #+begin_example
> -,#+NAME: solve-maxima
> -,#+HEADER: :exports none
> -,#+BEGIN_SRC maxima :results raw
> +,#+NAME: tex-maxima
> +,#+HEADER: :exports results
> +,#+BEGIN_SRC maxima :results latex

This will break WORG page. We are exporting to HTML, not latex and the
results wrapped into #+begin_export latex will not be exported to the
website. What's wrong with raw?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  reply	other threads:[~2022-11-03  6:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-02 19:39 [BUG] ob-doc-maxima.org and ob-maxima.el Leo Butler
2022-11-03  6:51 ` Ihor Radchenko [this message]
2022-11-03 18:15   ` Leo Butler
2022-11-04  3:38     ` Ihor Radchenko
2022-11-04 20:49       ` Leo Butler
2022-11-05  3:40         ` Ihor Radchenko
2022-11-07 14:24           ` Leo Butler
2022-11-04  4:03     ` Clarification on :results file vs. :results graphics file (was: [BUG] ob-doc-maxima.org and ob-maxima.el) Ihor Radchenko
2022-11-04 19:11       ` Clarification on :results file vs. :results graphics file Leo Butler
2022-11-05  3:41       ` Clarification on :results file vs. :results graphics file (was: [BUG] ob-doc-maxima.org and ob-maxima.el) Ihor Radchenko

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=87wn8c7cpn.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=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 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).