table format during html export

2022-02-15 Thread Leo Butler
Hello, I have some tables like | a | b | | c | d | I would like to have this export (in html) to something like | a b | | c d | i.e., add a vertical bar on the extreme left and right. I have searched the org manual and online and I can't find a solution. TIA, Leo

Re: table format during html export

2022-02-16 Thread Leo Butler
Juan Manuel Macías writes: > Hi Leo, > > Leo Butler writes: > >> Hello, >> >> I have some tables like >> >> | a | b | >> | c | d | >> >> I would like to have this export (in html) to something like >> >> | a b | >>

[BUG] beamer export

2022-09-28 Thread Leo Butler
The following Org document shows a bug in the beamer exporter. #+TITLE: Writing Beamer presentations in org-mode #+AUTHOR:Eric S Fraga #+AUTHOR:(bug report by Leo Butler) #+EMAIL: e.fr...@ucl.ac.uk #+DATE: 2010-03-30 Tue #+DESCRIPTION: #+KEYWORDS: #+LANGUAGE: en #+OPTIONS

Re: Export of this table fails LuaLaTeX compilation

2022-10-13 Thread Leo Butler
On Thu, Oct 13 2022, Max Nikulin wrote: > On 13/10/2022 09:44, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> I am considering \noalign{} instead of \relax. I was never aware of its >>> effect, but accordingly to The TeXbook it should keep TeX in vertical >>> mode without any action due to

Re: [O] Maxima code blocks does not work in windows revisited

2022-11-01 Thread Leo Butler
On Tue, Nov 01 2022, Mati wrote: > On 01.11.2022 09:04, Ihor Radchenko wrote: > >> Do you mean that you changed the code at line 82 inside >> org-babel-execute:maxima to >> >> (let* ((cmdline (or (cdr (assoc :cmdline params)) "")) >>(in-file (org-babel-temp-file "maxima-" ".max")) >>

[BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-02 Thread Leo Butler
file. 3. Rename the tex code block to `tex-maxima' and change the results type to =latex= to generate correct output. TIA, Leo Butler [fn:1] https://orgmode.org/worg//org-contrib/babel/languages/ob-doc-maxima.html [fn:2] (info "(org) Results of Evaluation") diff --git a/org-contri

Re: Maxima code blocks does not work in windows revisited

2022-11-02 Thread Leo Butler
On Wed, Nov 02 2022, Max Nikulin wrote: > On 02/11/2022 11:47, Ihor Radchenko wrote: (for reference, this email is a followup of https://orgmode.org/list/ca+ikm3wqa33xp4c3pvv+f2a-gn0dbezsdx6vf2crd+37+u6...@mail.gmail.com) > > Ihor, you recently applied an alternative patch to Org main >

[PATCH] Re: Maxima code blocks does not work in windows revisited

2022-11-03 Thread Leo Butler
place for both. The existing tests pass when running 'make test'. Leo From 423340175a354463c82fac2b4b3a404391e67eb5 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Thu, 3 Nov 2022 10:39:28 -0500 Subject: [PATCH] lisp/ob-maxima.el: correct placement of $ in command string * ob-maxima.el

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-03 Thread Leo Butler
Hi Ihor, On Thu, Nov 03 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> In worg's documentation of ob-maxima.el[fn:1], there are several bugs. > > Thanks for reporting! Thank you for the feedback. I will comment inline below. > >> 1. In the subsection

Re: Clarification on :results file vs. :results graphics file

2022-11-04 Thread Leo Butler
On Fri, Nov 04 2022, Ihor Radchenko wrote: > Leo Butler writes: > >>>> @@ -145,7 +151,7 @@ This example is from >>>> [[http://maxima.sourceforge.net/maxima-gnuplot.html][a tuto >>>> ,#+name: 3d-maxima >>>> ,#+header: :file

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-04 Thread Leo Butler
versions. Leo From a4db0ed4af22e43e817ebca110872e7ee5222c2d Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Fri, 4 Nov 2022 15:23:27 -0500 Subject: [PATCH] org-contrib/babel/languages/ob-doc-maxima.org: correct docs * include the results of test-maxima and solve-maxima examples; * correct the :

Re: [BUG] ob-doc-maxima.org and ob-maxima.el

2022-11-07 Thread Leo Butler
On Sat, Nov 05 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> I believe the attached patch fixes all the problems that you saw with >> the previous versions. > > Thanks! > Applied onto master. > https://git.sr.ht/~bzg/worg/commit/c1440ba5f98634adf08209631d3

Re: [PATCH] Re: Maxima code blocks does not work in windows revisited

2022-11-07 Thread Leo Butler
On Sun, Nov 06 2022, Ihor Radchenko wrote: > Leo Butler writes: > >>> I do not have a Windows machine to test and not motivated enough to >>> try Emacs in wine. >> >> Max, a minor modification of the test you sent earlier shows that when >> system-typ

[PATCH] rfc: using ert-deftest with side-effects

2022-11-07 Thread Leo Butler
Hello, I am patching a bug in ob-octave.el (see attachment) involving the creation of graphics files. The bug itself is easy to fix: a single line in ob-octave.el ensures the special variable `ans' is bound, to prevent Octave from exiting with a non-zero exit code. However, I would like feedback/

[PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-11-08 Thread Leo Butler
On Tue, Nov 08 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> However, I would like feedback/suggestions on writing such a >> test. Issues include: >> >> 1. how to clean up the side-effects, including changes in the test >>buffer, filesystem and

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-11-09 Thread Leo Butler
Ihor, see below. On Wed, Nov 09 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> Ihor, >> Thanks for your feeback and the pointer. I have revised the tests and >> attach the revised patch. > > Thanks! > > Note that your patch is over 15LOC, which ex

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-11-15 Thread Leo Butler
On Mon, Nov 14 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> The amended patch is attached. Thanks for your helpful feedback. > > Thanks for the patch! > It looks good, and the tests are passing. However, there is a side effect > leaving testing/examples/oct

[BUG] exporting links with underscores

2022-12-16 Thread Leo Butler
Org version is 9.5.2; emacs version is 27.1. The manual does not indicate that underscores need to be escaped in links (and they can't be, as far as I can tell). The latex and html exporters interpret them as the start of a subscript. Leo #+AUTHOR: Leo Butler #+TITLE: Bug in proce

Re: [BUG] exporting links with underscores

2022-12-18 Thread Leo Butler
On Sat, Dec 17 2022, Mike Gauland wrote: > On 17/12/22 11:32, Leo Butler wrote: >> Org version is 9.5.2; emacs version is 27.1. >> >> The manual does not indicate that underscores need to be escaped in >> links (and they can't be, as far as I can tell). The latex

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-12-22 Thread Leo Butler
On Wed, Dec 21 2022, Ihor Radchenko wrote: > Ihor Radchenko writes: > >>> Upon confirming the FSF copyright assignment, I have applied the patch >>> onto bugfix. >>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=01c0ebee2 >> >> Your patch appears to not work in some environment

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-05 Thread Leo Butler
utput* buffer. That is killed on the first test, before the test is actually run. But GET-BUFFER behaves in an undocumented way: it returns a non-nil value, #. To remedy that, I have wrapped the calls in BUFFER-LIVE-P. See the attached patch. Leo From b84f2f50b88fe6da3dcca3d751f6d75f7177ddaf Mon

Re: [TASK] Enhance Worg HTML styling

2023-01-05 Thread Leo Butler
On Fri, Jan 06 2023, Tim Cross wrote: > alain.coch...@unistra.fr writes: > >> Tim Cross writes on Thu 5 Jan 2023 09:43: >> >> > As a simple example, try increasing the font size and see what >> > happens to the menus. Keep in mind that some users require a very >> > large font (for example, I

setting export_file_name during export

2023-01-06 Thread Leo Butler
Ideally, I would like to have a single function that retains only the current subtree that contains point, sets EXPORT_FILE_NAME based on the top heading, and exports it as a complete beamer pdf. TIA, Leo #+AUTHOR: Leo Butler #+TITLE: Lectures in Math #+OPTIONS: H:2 toc:t num:t #+LATEX_CLA

Re: setting export_file_name during export

2023-01-06 Thread Leo Butler
On Fri, Jan 06 2023, alain.coch...@unistra.fr wrote: > Leo Butler writes on Fri 6 Jan 2023 21:38: > > Hello, > > > > I am trying something new this semester: all my lecture notes are > > organized into a single org file. A minor problem: I want to export each &g

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-06 Thread Leo Butler
On Fri, Jan 06 2023, Ihor Radchenko wrote: > > Caution: This message was sent from outside the University of Manitoba. > **** > > Leo Butler writes: > >>>

Re: setting export_file_name during export

2023-01-10 Thread Leo Butler
On Tue, Jan 10 2023, Nick Dokos wrote: > Leo Butler writes: > >>> >>> So: if you insert >>> >>> :PROPERTIES: >>> :EXPORT_FILE_NAME: lecture-1.pdf >>> :END: >>> >> >> Aha! Thank you very much. I had forgotte

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-10 Thread Leo Butler
On Sat, Jan 07 2023, Leo Butler wrote: > On Fri, Jan 06 2023, Ihor Radchenko wrote: > >> >> Leo Butler writes: >> >>>> https://builds.sr.ht/~bzg/job/914954 >>>> 2 unexpected results: >>>>FAILED ob-octave/graphics-file ((shoul

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-11 Thread Leo Butler
On Wed, Jan 11 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>>>>> Leo, could you please take a look? >>>>> >>>>> An earlier test is creating that *Org Babel Error Output* buffer. >>> >>> I will try to look into impro

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-14 Thread Leo Butler
On Fri, Jan 13 2023, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> So, the test failure is real. > > The error buffer contents when the test fails is the following: > > warning: using the gnuplot graphics toolkit is discouraged > > The gnuplot graphics toolkit is not actively maintained an

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-24 Thread Leo Butler
On Mon, Jan 23 2023, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> Ihor Radchenko writes: >> >>> So, the test failure is real. >> >> The error buffer contents when the test fails is the following: >> >> warning: using the gnuplot graphics toolkit is discouraged >> ... >> [ Babel evaluatio

Re: [BUG] LaTeX aligned equations do not have right spacing [9.6.1 (release_9.6.1 @ /home/yhu/dev/prefix/org-mode/emacs/site-lisp/org/)]

2023-02-01 Thread Leo Butler
On Wed, Feb 01 2023, Ihor Radchenko wrote: > Rick Hu writes: > >> Example text in org mode: >> \begin{align} >> H_1(x) = & 3 x^2 - 2 x^3 \\ >> S_1(x) = & -2 x^2 + x^3 \\ >> \end{align} >> >> When I export this to html and display on a browser, the spacing >> between the equal sign and the terms

[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

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. &g

[PATCH] remove unused code in ob-octave.el

2023-02-09 Thread Leo Butler
In lisp/ob-octave.el: What is the point of ob-octave-prep-session:octave or its brother, ob-octave-prep-session:matlab? These two functions are unused in the existing code. Leo From f91562d9ea36d7f76f222e457c8fd1b0570e7e3d Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Thu, 9 Feb 2023 11:02

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 duplic

Re: [PATCH] remove unused code in ob-octave.el

2023-02-14 Thread Leo Butler
On Fri, Feb 10 2023, Max Nikulin wrote: > On 10/02/2023 04:21, Leo Butler wrote: >> In lisp/ob-octave.el: >> What is the point of ob-octave-prep-session:octave or its brother, >> ob-octave-prep-session:matlab? >> These two functions are unused in the existing cod

Re: Template for ob- packages?

2023-02-17 Thread Leo Butler
On Thu, Feb 16 2023, Matt wrote: > On Thu, 16 Feb 2023 16:10:51 -0500 Galaxy Being wrote --- > > Is there a generic starter template for writing an ob- > package, some sort of example code? > > Yes: > https://git.sr.ht/~bzg/worg/tree/master/item/org-contrib/babel/ob-template.el > > Whe

ox-beamer/latex questions

2023-02-28 Thread Leo Butler
Hello, I have a couple questions about TODO items, cookies and export. I am unable to find anything the manual that seems relevant. Please see the attached. TIA, Leo #+TITLE: ox-beamer/latex questions #+AUTHOR: Leo Butler #+OPTIONS: H:2 toc:t num:t tags:nil todo:nil #+LATEX_CLASS: beamer

Re: ox-beamer/latex questions

2023-03-01 Thread Leo Butler
On Wed, Mar 01 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> I have a couple questions about TODO items, cookies and export. I am >> unable to find anything the manual that seems relevant. Please see the >>

Re: ox-beamer/latex questions

2023-03-01 Thread Leo Butler
On Wed, Mar 01 2023, Leo Butler wrote: > On Wed, Mar 01 2023, Ihor Radchenko wrote: >> For cookies, just use stat:nil in OPTIONS. See "13.2 Export Settings" >> section of the manual. > > Anyhow, it does not work correctly for subtree export (or I am not > u

Re: ox-beamer/latex questions

2023-03-03 Thread Leo Butler
On Fri, Mar 03 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> This is because >>> *** DONE :B_block: >>> is actually parsed as a heading with DONE todo keyword and title >>> ":B_block:". Tag is not recognized. >>> >>&

[RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
Hello, I am using ob-C.el to work with a c++ library (capd::dynsys). The current behaviour creates a temporary src and bin file in `org-babel-temporary-directory'. There is currently no option to have these files named and put somewhere else. This behaviour is not quite right, in my opinion. I wo

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
On Fri, May 12 2023, Leo Butler wrote: > Hello, > > I am using ob-C.el to work with a c++ library (capd::dynsys). The > current behaviour creates a temporary src and bin file in > `org-babel-temporary-directory'. There is currently no option to have > these files named

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-12 Thread Leo Butler
On Fri, May 12 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> Comments? >> ... >> Replying to myself: it makes more sense to introduce a special-purpose >> header argument for this special purpose, than to use :file with a >> different meaning. Re

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-14 Thread Leo Butler
On Sat, May 13 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> IMHO, it will be more consistent with other backends to use :results file >>> :file /path/to/executable >> >> No, I don't think this is the way to do it. What happens in this

Re: [RFC/PATCH] naming src/bin files in ob-C.el

2023-05-15 Thread Leo Butler
On Mon, May 15 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> On the other hand, I don't see any sense in producing a link to the >> binary file. Org can't do anything with that link, so the user would >> need to write something like ":results file

[PATCH] float format specifier in ob-C.el

2023-05-31 Thread Leo Butler
In ob-C.el, line 339 has the format specifier (`floatp '("double" "%f")) to print literal floats. However, that format specifier rounds, which can result in errors. I think the correct approach is to print the float without rounding or padding or trying to guess at the desired accurac

Re: [PATCH] float format specifier in ob-C.el

2023-06-01 Thread Leo Butler
On Thu, Jun 01 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> In ob-C.el, line 339 has the format specifier >> >> (`floatp '("double" "%f")) >> >> to print literal floats. However, that format specifier rounds, whic

Re: [PATCH] float format specifier in ob-C.el

2023-06-02 Thread Leo Butler
On Fri, Jun 02 2023, Ihor Radchenko wrote: > Thanks! > Applied, onto bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d55a11214 Thanks, Ihor. Leo

org-cite: how to force a reparsing of the .bib file

2023-08-22 Thread Leo Butler
Hello, I am struggling with org-cite at the moment. One problem: it is not re-parsing my .bib file, so it is not picking up changes. How can I force it to pick up changes? TIA, Leo ps: (insert (format "\n%s\nOrg: %s" (emacs-version) (org-version))) GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, G

Re: org-cite: how to force a reparsing of the .bib file

2023-08-22 Thread Leo Butler
On Tue, Aug 22 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> I am struggling with org-cite at the moment. One problem: it is not >> re-parsing my .bib file, so it is not picking up changes. How can I >> force it to pick up changes? > > Please, provide m

Re: org-cite: how to force a reparsing of the .bib file

2023-08-23 Thread Leo Butler
On Wed, Aug 23 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> Does org-cite monitor contents or the timestamp? >> I am using a symlink to the bib file. > > Timestamp. > > Does the attached patch fix the problem? Thanks, Ihor. To avoid an unne

Re: org-cite: how to force a reparsing of the .bib file

2023-08-24 Thread Leo Butler
On Thu, Aug 24 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> Does the attached patch fix the problem? >> >> ... >> To avoid an unneeded setq, I applied the patch: >> >> (dolist (file (mapcar #'file-truename >> (org-cite-l

Re: [BUG] Consider replacing bachload with batch in ob-maxima. [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)]

2023-09-01 Thread Leo Butler
On Fri, Sep 01 2023, Lockywolf wrote: > Dear org developers, > > At the moment, ob-maxima has a straightforward way of evaluating > babel blocks, > > #+begin_src shell > maxima --very-quiet -r batchload\(\"/tmp/ob-maximaFOOBAR.mac\"\)\$ > #+end_src > > (line 87 of ob-maxima.el), > > I suggest rep

Re: [BUG] Consider replacing bachload with batch in ob-maxima. [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)]

2023-09-02 Thread Leo Butler
On Sat, Sep 02 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> I think that your request may be handled by one of two improvements: >> >> 1. Implement session support in ob-maxima.el; and >> 2. Many of the design decisions in the existing ob-maxima code sho

Re: [BUG] Consider replacing bachload with batch in ob-maxima. [9.6.6 (release_9.6.6 @ /usr/share/emacs/30.0.50/lisp/org/)]

2023-09-02 Thread Leo Butler
On Sat, Sep 02 2023, Ihor Radchenko wrote: > Lockywolf writes: > >> At the moment, ob-maxima has a straightforward way of evaluating >> babel blocks, >> >> #+begin_src shell >> maxima --very-quiet -r batchload\(\"/tmp/ob-maximaFOOBAR.mac\"\)\$ >> #+end_src >> (line 87 of ob-maxima.el), >> >> I s

Re: [MAINTENANCE] On how much we can expose internals into defcustom

2023-09-06 Thread Leo Butler
On Tue, Sep 05 2023, Ihor Radchenko wrote: > CCing Bastien, as he might want to intervene. > > Leo Butler writes: > >>> +(defcustom org-babel-maxima-command-arguments >>> + "--very-quiet" >> >>> +(defc

[PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-09-12 Thread Leo Butler
On Thu, Sep 07 2023, Ihor Radchenko wrote: > `org-babel-execute:maxima' relies on certain output that maxima > produces. Removing --very-quiet will make the assumptions in the code no > longer valid. Worse - it might happen that in the absence of --very-quiet > `org-babel-execute:maxima' (or its

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-09-15 Thread Leo Butler
On Fri, Sep 15 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> Attached is a patch that tries to address some of Ihor's concerns. I >> have added two header arguments for maxima src blocks: > > Thanks! > >> - :graphics-pkg lets the user choose the g

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-09-19 Thread Leo Butler
On Sat, Sep 16 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> Also, non-standard arguments should be defined in >>> `org-babel-header-args:maxima'. >>> >> >> Ok. I see that some packages (e.g. ob-gnuplot.el) use a `defvar' form, &

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-09-20 Thread Leo Butler
On Wed, Sep 20 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>>>> May you clarify the purpose of "linenum"? >>> Do I understand correctly that the above will simply affect debug output >>> when maxima references where a problematic line i

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-09-21 Thread Leo Butler
On Thu, Sep 21 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>>> +(defconst org-babel-header-args:maxima >>>> + '((batch . :any) >>> >>> Why :any? Only two values are allowed here. >>> >>>> +(grap

[PATCH] update urls in ob-doc-maxima.org

2023-09-26 Thread Leo Butler
Hello, The current project urls in ob-doc-maxima.org are out-of-date (the .net urls redirect to the new .io ones). The project image file has moved and no longer loads. This patch corrects those problems. Best, Leo From dceb35854fcda3e467c3b1bd8f7f343434f7fb2f Mon Sep 17 00:00:00 2001 From: Leo

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-10-02 Thread Leo Butler
On Fri, Sep 22 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> What is the purpose of this `unwind-protect'? >>> In its current form, it does nothing because no UNWINDFORMS are >>> provided. >> >> I copied the forms from tests I had wr

Re: [PATCH] ob-maxima.el, etc. (was Re: [MAINTENANCE] On how much we can expose internals into defcustom)

2023-10-04 Thread Leo Butler
On Wed, Oct 04 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> Attached is: >> >> - my previous patch, rebased against the latest HEAD and only modified >> to include a patch to etc/ORG-NEWS >> - a patch to the worg docs that corrects the url

Re: org-ditaa woes

2023-10-20 Thread Leo Butler
Hello Florin, On Thu, Oct 19 2023, Florin Boariu wrote: > Hello everyone, > > I am not on the mailing list, so I'm hoping that some kind soul with > moderator powers will have mercy and let my email through in a timely > manner :-) Also, please CC me in on the answer. (I'll happily > subscribe i

Re: org-ditaa woes

2023-10-20 Thread Leo Butler
On Fri, Oct 20 2023, "Dr. Arne Babenhauserheide" wrote: > Leo Butler writes: > >>>> [...] >>>>(cmd (concat "java " java " " org-ditaa-jar-option " " >>>> (shell-quote-argument >>

Re: bash source code block: problem after ssh commands

2023-10-25 Thread Leo Butler
On Wed, Oct 25 2023, alain.coch...@unistra.fr wrote: > Hello. > > For me, 'C-c C-c' on the following group > >#+begin_src bash :results output >echo "foo" >echo "bar" >#+end_src > > > works as I expect: 'foo' and 'bar' are echo'ed. But it fails on this > one: > >#+begin_src ba

Re: bash source code block: problem after ssh commands

2023-10-25 Thread Leo Butler
On Wed, Oct 25 2023, alain.coch...@unistra.fr wrote: > Thanks much for the detailed explanations. > > > It looks like an issue in comint-mode and the way that it is > > handling the temporary ssh session. This is not an issue with > > org-mode. > > So it is an issue with emacs, right? Yes, tha

Re: org-ditaa woes

2023-10-25 Thread Leo Butler
On Tue, Oct 24 2023, Ihor Radchenko wrote: > Florin Boariu writes: > >> I can offer to try my luck with writing a patch for ob-ditaa.el, but >> I'm not knowledgeable enough (or have enough time on my hands) to >> actually keep maintaining it :-p > > Writing a patch is also welcome. I am looking

Re: org-ditaa woes

2023-10-26 Thread Leo Butler
/env "$0" "$@" > > (or "$(basename "$0")") > > mounted to flatpak runtime and added to $PATH. Perhaps another > approach exist and it should be discussed with the packager and Emacs > developers. Florin, Max is right, there are work-arounds

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-08 Thread Leo Butler
forward. > > +1 > This is a relatively simple task. > One can indeed use ob-plantuml as a reference to extend ob-ditaa. > Patches welcome! While I was reviewing the documentation, ob-doc-ditaa.org, and the source, ob-ditaa.el, I realized that there is a simple way to run a script file

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-09 Thread Leo Butler
On Thu, Nov 09 2023, Max Nikulin wrote: > On 09/11/2023 10:17, Leo Butler wrote: >> While I was reviewing the documentation, ob-doc-ditaa.org, and the >> source, ob-ditaa.el, I realized that there is a simple way to run a >> script file instead of a jar file. > &

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> While I was reviewing the documentation, ob-doc-ditaa.org, and the >> source, ob-ditaa.el, I realized that there is a simple way to run a >> script file instead of a jar file. The documentation p

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-10 Thread Leo Butler
On Fri, Nov 10 2023, Max Nikulin wrote: > On 10/11/2023 10:19, Leo Butler wrote: >> On Thu, Nov 09 2023, Max Nikulin wrote: >> >>> diff --git a/lisp/ob-ditaa.el b/lisp/ob-ditaa.el > [...] >>> should allow to set :java to >>> >>>

Re: [TASK] Allow customizeable ditaa executable in ob-ditaa.el

2023-11-13 Thread Leo Butler
On Sat, Nov 11 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> And even if we do want to add certain features in future (like >>> supporting ditaa executable herein), it does not mean that we have to >>> rush them by any cost. >> >> Ihor

Re: bash source code block: problem after ssh commands

2023-11-17 Thread Leo Butler
On Fri, Nov 17 2023, Ihor Radchenko wrote: > I was only able to reproduce your problem with ssh asking a password. > We are discussing the reproduced case. > > If you see problems with > >#+begin_src bash :results output >ssh coch...@fruc.u-strasbg.fr "echo foo>foo_file" >echo "bar" >

Re: What is the status of ob-maxima.el? Is this a bug?

2023-12-05 Thread Leo Butler
On Tue, Dec 05 2023, "Fraga, Eric" wrote: > I think ob-maxima will only output the actual explicit "output" of the > script, so something like > > #+begin_src maxima > print(2+3); > #+end_src > > should work. With recent versions of ob-maxima.el, you can set header arguments to get the behaviour

Re: What is the status of ob-maxima.el? Is this a bug?

2023-12-05 Thread Leo Butler
On Tue, Dec 05 2023, "Fraga, Eric" wrote: > On Tuesday, 5 Dec 2023 at 16:42, Leo Butler wrote: >> With recent versions of ob-maxima.el, you can set header arguments to >> get the behaviour Eduardo expected: > > Thank you. This is great news. > > I'm g

Re: What is the status of ob-maxima.el? Is this a bug?

2023-12-05 Thread Leo Butler
On Tue, Dec 05 2023, "Fraga, Eric" wrote: > On Tuesday, 5 Dec 2023 at 16:59, Leo Butler wrote: >> You mentioned returning a value from a maxima code block. > > By this, I mean the value of the last sexp as some other src blocks do > (elisp? octave? Not sure which...

Re: Getting email from MS outlook into emacs

2023-12-07 Thread Leo Butler
On Thu, Nov 30 2023, "Fraga, Eric" wrote: > > Caution: This message was sent from outside the University of Manitoba. > > > On Wednesday, 29 Nov 2023 at 14:08, Presnell,Brett Douglas

Re: How to use mpirun with C or C++ Org-babel?

2023-12-08 Thread Leo Butler
On Fri, Dec 08 2023, tbanelwebmin wrote: > Caution: This message was sent from outside the University of Manitoba. > > On 23-12-08 00:10, Edgar Lux wrote: > > Hello, I found [1][2] that it is possible to change the compiler for C > and C++ > source blocks. I would like to know if there i

Re: How to use mpirun with C or C++ Org-babel?

2023-12-13 Thread Leo Butler
On Fri, Dec 08 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> I submitted an imperfect patch some time ago [1] that targeted your use >> case: allow ob-C.el to create a named binary. > Note that I did not oppose the above behaviour when the result of > evaluat

[PATCH] ob-C.el compile-only header argument, was Re: How to use mpirun with C or C++ Org-babel?

2023-12-19 Thread Leo Butler
On Thu, Dec 14 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> From 7d8e406bc4a92e2e2eab772b2671dcd72ca8c202 Mon Sep 17 00:00:00 2001 >> From: Leo Butler >> Date: Tue, 12 Dec 2023 12:32:41 -0600 >> Subject: [PATCH] lisp/ob-C.el: add :compile-only header to

Re: org-ditaa woes

2023-12-20 Thread Leo Butler
h to ob-ditaa.el (likely in January). Leo From 15cdaff68d3ecd1348ac8b3b3998cb146e6d5345 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Thu, 26 Oct 2023 20:49:41 -0500 Subject: [PATCH] org-contrib/babel/languages/ob-doc-ditaa.org: update documentation * org-contrib/babel/languages/ob-doc-ditaa.o

Re: How to use mpirun with C or C++ Org-babel?

2023-12-20 Thread Leo Butler
On Thu, Dec 14 2023, Ihor Radchenko wrote: > Leo Butler writes: > >> From 7d8e406bc4a92e2e2eab772b2671dcd72ca8c202 Mon Sep 17 00:00:00 2001 >> From: Leo Butler >> Date: Tue, 12 Dec 2023 12:32:41 -0600 >> Subject: [PATCH] lisp/ob-C.el: add :compile-only header to

Re: [PATCH] ob-C.el compile-only header argument, was Re: How to use mpirun with C or C++ Org-babel?

2024-01-04 Thread Leo Butler
On Fri, Dec 22 2023, Ihor Radchenko wrote: > Leo Butler writes: > >>> What will happen if we have something like :results value or :results >>> output instead of :results file link? >> >> Originally, I felt that only ":results file" makes sense.

Re: Developing Moodle resources/sites with Org Mode

2024-01-17 Thread Leo Butler
On Wed, Jan 17 2024, Edward Doolittle wrote: > Hello everyone, > > I'm new to Org Mode but I really enjoy working with it. > > I have begun thinking about how I might use Org mode to improve the > experience of developing resources for the open source Moodle LMS or > even developing entire Moodle

Re: Developing Moodle resources/sites with Org Mode

2024-01-18 Thread Leo Butler
On Thu, Jan 18 2024, Edward Doolittle wrote: > Thank you for your thoughts. > I have used org-mode to do all my STACK question authoring for a few > years now [1]. I do all the writing in emacs and then copy/paste into the > STACK textareas, test, repeat. It is not elegant, but it is easier than

Re: [BUG] beamer export

2024-01-25 Thread Leo Butler
On Wed, Jan 24 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>>> 1. ox-latex export bug for src blocks containing direct LaTeX when >>>>org-latex-src-block-backend is set to its default 'verbatim value >>> >>> This appears to

Re: [BUG] beamer export

2024-01-25 Thread Leo Butler
On Wed, Jan 24 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> I think the documentation and example needs to be corrected. I have >> attached a patch. > > Thanks! Applied. > https://git.sr.ht/~bzg/worg/commit/aedea59f Attached is a second patch to de-lint t

Re: [BUG] beamer export

2024-01-26 Thread Leo Butler
On Fri, Jan 26 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>> Apparently, LaTeX has really hard time processing verbatim code inside >>> beamer frames. >> >> I looked again at the solution here: >> https://tex.stackexchange.com/questions/14

Re: [BUG] beamer export

2024-01-29 Thread Leo Butler
On Fri, Jan 26 2024, Leo Butler wrote: > On Fri, Jan 26 2024, Ihor Radchenko wrote: > >> Leo Butler writes: >> >>>> Apparently, LaTeX has really hard time processing verbatim code inside >>>> beamer frames. >>> >>> I looked a

Re: [BUG] Unsolicited download of remote resources

2024-02-02 Thread Leo Butler
On Fri, Feb 02 2024, Max Nikulin wrote: > Hi, > > Org git main HEAD, try to open the following file: > > --- 8< --- > > #+setupfile: http://localhost:8000/setup-1234567890.org > > test > --- >8 --- > > I am trying to decline attempts to download the remote resource by > hitting "n" (skip), but O

Re: [BUG] Unsolicited download of remote resources

2024-02-05 Thread Leo Butler
On Sun, Feb 04 2024, Max Nikulin wrote: > On 03/02/2024 02:04, Leo Butler wrote: >> When I opened your email in Gnus, I was greeted with the same >> (bewildering) message. Given that Org still tried to download the >> setupfile after being told not to, I think this is a ma

Re: [BUG] Unsolicited download of remote resources

2024-02-06 Thread Leo Butler
On Mon, Feb 05 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> Q: if #+setupfile points to a real file available to download, does Org >> evaluate that file? > > keywords and startup options are taken from there. No Elisp code present > in #+SETUPFILE is evalu

Re: [BUG] beamer export

2024-02-14 Thread Leo Butler
On Thu, Feb 01 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> Replying to self: Attached is a patch that adds a property, >> BEAMER_FRAME, that lets the frame environment name be set on a >> frame-by-frame basis. In addition, it typesets any fragile frame in the &

Re: [BUG] beamer export

2024-02-20 Thread Leo Butler
On Mon, Feb 19 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>> What about not adding BEAMER_FRAME, but instead adding org-lint checker >>> that will detect when frame text contains the problematic \end{orgframe}? >> >> Ok, thanks for your feedback.

[BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink

2024-03-01 Thread Leo Butler
confirm this, please? Incidentally, I did propose that we introduce a BEAMER_FRAME property so that it could be manually set, but Ihor did not like that idea so it got scrapped. Thanks, Leo From 4fef88ac31272a39e948fcd334bee28e444a7535 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Fri, 1

Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink

2024-03-12 Thread Leo Butler
; to those frames that contain either \begin{frame} or \end{frame} in their body. This has the nice side-effect that one can include example frames generated by Org without causing an error (previously, Org exported latex that would not compile). See the attachments. Leo From cab7cd149868be86f80d2

  1   2   >