From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aK9WABJlY2O1MgEAbAwnHQ (envelope-from ) for ; Thu, 03 Nov 2022 07:52:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cJBUABJlY2ORzQAA9RJhRA (envelope-from ) for ; Thu, 03 Nov 2022 07:52:02 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A5BA529604 for ; Thu, 3 Nov 2022 07:52:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqU4H-0006Xs-Nd; Thu, 03 Nov 2022 02:51:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqU3u-0006NS-C5 for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:50:56 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqU3q-0003y5-SA for emacs-orgmode@gnu.org; Thu, 03 Nov 2022 02:50:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C33FB240026 for ; Thu, 3 Nov 2022 07:50:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667458244; bh=my5RHh3mrx/VJweTbo7u75heTi1VGKjVl/IJeNxMQP4=; h=From:To:Cc:Subject:Date:From; b=beAR7PG43U29zxlZPJIfYwgDUd/hUdpFEFilr6c4C/CJjG9HbZo9l/2XeqMZtt3YX 1LHQAgo2gJS4fvuNFlWDMU41sGrbRhTrRGzpamQnX2mSe8abj+NbqQomsOWzFqGH4T /3++sDeYJpSCKl1ko/9rxK+0w+HJDQ4/+bD8AIfKVL23DWA8IVM7BcuvYeH4iCpqDl JQcVs3uN/43lsZ1UTPv3L6rf9pTPAxNoX11jGjF00tsCkNZqawWpY+ZReHhzwGrA7n hLTTCrPRxd0JubXMz4GfXj33YRB5R/UPeErgaQ8jeOPkl8WDZrczLSLFu3dlZLKmYV 7ohLceTZIQwaQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N2vXf4BmVz9rxG; Thu, 3 Nov 2022 07:50:42 +0100 (CET) From: Ihor Radchenko To: Leo Butler Cc: Org Mode Mailing List Subject: Re: [BUG] ob-doc-maxima.org and ob-maxima.el In-Reply-To: <87edulm9hk.fsf@t14.reltub.ca> References: <87edulm9hk.fsf@t14.reltub.ca> Date: Thu, 03 Nov 2022 06:51:16 +0000 Message-ID: <87wn8c7cpn.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667458321; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6hL7JzygTAZtgNDLtnJxoVUL8PkPYlPEsowyPrZfjqw=; b=ihwlBweb7Z6gNOx/L4VY2+MWLJRTR+WTcXP0ruQ4/xxKYTl96wCHFhPeO5cBZOQJoiRPGx YOHBtuNjyha3qnZEcRGu7rH7qMyyzD65rOXbNZcJ+hfXkvuI1aAQow41ZU6SuDm58ZC5Uo +UjGUhxHU76p6Zt1tCgVHtkGFThx8pHlh1Jf5JYyOkEBRjrO/6iRA8e/Ou1h/+xuzi6DYE m8MjgbR+Li6ChlykGFoBX8u3sMzQ9XyggXWkBP2IQhL+JzJNhI6y2i2AKiTLf7NulRv0cz 4ba0fp0WSwGQA/fRjoKyKsrinzJWq5h0RImK1ddS63ENGDUrTTgKqZs6nkFjJA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667458321; a=rsa-sha256; cv=none; b=S3zGMfSNW88Py1BbnOMpSPhWyyxExXIqPDLDOaU6f3qJgoolFo4+SsjdmAN50lvQH01v/d NcejYrNT1IlfhytR+YV/qI3F0NR7W12ARvxlbxq1EuLlSA6c+q/GFhHgDtpCdrLZtP0yEV ygxPFI/+H3UVJfblg1x8nJL2HDB8W3kk1Ha/D5jMuJ15srZMEj+Eft+pnaDbecWwwwh8xQ yK1ZM5yeN0KAO1AwE2J32f//ES7zAtEkWBOBmuMjwcDT3F5i3kqH5gaNQu2dvzOF+yS4F7 tqOU2gpMoR/73ZuR3Z3zdDlFFbeYqBOiZU/58t2IMNh/YMpB6mfxyo6j5e4Klw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=beAR7PG4; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=beAR7PG4; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A5BA529604 X-Spam-Score: -3.49 X-Migadu-Scanner: scn1.migadu.com X-TUID: OV9rWOmuIjl0 Leo Butler 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 . Support Org development at , or support my work at