Re: [PATCH] worg-about.org: Fixed several grammatical errors

2025-05-02 Thread Leo Butler
On Fri, May 02 2025, kwen-ai-kant via "General discussions about Org-mode." wrote: > 'Example of codes' is the error, for me. Yes. "Code samples", "Code snippets" or "Code examples" would all work. > 'Other Org-ers around' is also not idiomatic to my non-American > ear. 'Other Org-ers', 'Org-e

Re: [PATCH] worg-about.org: Fixed several grammatical errors

2025-05-02 Thread Leo Butler
On Fri, May 02 2025, Ihor Radchenko wrote: >>> > Worg was started by [[http://bzg.fr][Bastien]] in the hope that other >>> Org-ers around will >>> > -bite into this and start sharing tutorials, example of codes, etc. >>> > +participate and start sharing tutorials, example of codes, etc. >>> >>>

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-18 Thread Leo Butler
On Thu, Apr 17 2025, Ihor Radchenko wrote: > Leo Butler writes: > >>> Better https://elpa.nongnu.org/nongnu/cdlatex.html >> >> Take 2. >> -from [[https://elpa.nongnu.org/][NonGNU ELPA]] with the >> [[https://www.gnu.org/software/emacs/manual/html_node

Re: Error 502 when trying to pull from Org-mode git

2025-04-17 Thread Leo Butler
It is you. I was able to navigate to that URL by placing point on the url (on the error: 502 line) and typing M-x eww RET in Gnus/Emacs. I could also pull from the repo using magit. Leo On Thu, Apr 17 2025, Sébastien Gendre wrote: > Hello, > > I wanted to pull the latest commit of the branch m

Re: org-latex-preview and font-locking

2025-04-16 Thread Leo Butler
On Tue, Apr 15 2025, Karthik Chikmagalur wrote: > `org-cdlatex-mode' provides several ways to quick-insert environments > and LaTeX macros. With this mode enabled, there are many equivalents of > C-c C-e in LaTeX buffers: > > - C-c { > - Type in "beg" and press TAB > - Type in "env" and press TA

Re: Parsing of incomplete LaTeX environments

2025-04-16 Thread Leo Butler
On Tue, Apr 15 2025, Karthik Chikmagalur wrote: >>> Basically, we need a specialized parser that will guess that a given >>> paragraph of text is actually an incomplete or broken latex fragment. >>> You may try writing one. For example, by additionally checking paragraph >>> elements to be latex-

Re: [PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Ihor Radchenko wrote: > Leo Butler writes: > >> Subject: [PATCH] doc/org-manual.org: update CDLaTeX url >> ... >> -[[https://staff.fnwi.uva.nl/c.dominik/Tools/cdlatex/]]. Do not use >> +[[https://github.com/cdominik/cdlatex][CDLaTeX's G

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Max Nikulin wrote: > On 15/04/2025 02:47, Leo Butler wrote: >> I experience problems typesetting mathematical expressions. I cannot >> find anything as good as the unicode-math package for lualatex. >> Consider generating a preview of this fragment

[PATCH] org-manual and cdlatex url (was Re: org-latex-preview and font-locking)

2025-04-15 Thread Leo Butler
anual.org attached. Leo From 6f1e7e59a98a377564e58708a7c936538c66bdde Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Tue, 15 Apr 2025 13:12:13 -0500 Subject: [PATCH] doc/org-manual.org: update CDLaTeX url --- doc/org-manual.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: Parsing of incomplete LaTeX environments

2025-04-15 Thread Leo Butler
On Tue, Apr 15 2025, Rudolf Adamkovič wrote: > Leo Butler writes: > >> Alternatively, why not fix Karthik's stated problem with some analogue >> to `org-insert-structure-template'? E.g. `org-insert-latex-environment'. > > This would be a nice addition

Re: [BUG] Unable to use dvisvgm to preview LaTeX fragments when using dark theme

2025-04-15 Thread Leo Butler
On Mon, Apr 14 2025, Ihor Radchenko wrote: > Billy Lei writes: > >> When using themes with background color set to #00, and >> org-preview-default-process is set to dvisvgm, the LaTeX fragments are >> displayed incorrectly. >> >> To reduplicate: >> >> 1. Switch to a theme with background c

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-14 Thread Leo Butler
On Sun, Apr 13 2025, Max Nikulin wrote: > On 12/04/2025 21:11, Leo Butler wrote: >> I use a lot of >> utf-8 in my org documents. Pdflatex just cannot compete for typesetting, >> even in preview. > > Certainly PdfTeX has enough limitations. I am curious however what

Re: Parsing of incomplete LaTeX environments

2025-04-14 Thread Leo Butler
On Sun, Apr 13 2025, Ihor Radchenko wrote: > Karthik Chikmagalur writes: > >> If I delete the last line, so it looks like >> >> \begin{align} >> x = 1 >> >> And now place the cursor anywhere on the first line (with the \begin...) >> and call (org-element-context), it parses it as a `latex-fragme

Re: org-latex-preview and font-locking

2025-04-14 Thread Leo Butler
On Sun, Apr 13 2025, Karthik Chikmagalur wrote: >>> Q: Why does `org-latex-preview' not work on blocks like: >>> >>> #+begin_export latex >>> \begin{equation} >>> x^2 + y^2 = z^2 >>> \end{equation} >>> #+end_export >>> >>> I use these blocks to take advantage of syntax highlighting (and it is >>>

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-12 Thread Leo Butler
On Thu, Apr 10 2025, Pedro Andres Aranda Gutierrez wrote: > Jürgen writes: > >>Am 03.04.25 um 09:37 Uhr schrieb Ihor Radchenko: I don't agree. Users who are apparently happy with LuaLaTeX should have no problems with pdflatex and UTF8. >>> If you know an easy and universal way to suppor

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-08 Thread Leo Butler
On Thu, Apr 03 2025, Ihor Radchenko wrote: > Karthik Chikmagalur writes: > >> For org-latex-preview, one of the other things we tried was to keep all >> utf-8 font-related settings out of the header that is precompiled. If >> we manage this precompilation can work (somewhat unreliably) with >>

org-latex-preview and font-locking

2025-04-07 Thread Leo Butler
Q: Why does `org-latex-preview' not work on blocks like: #+begin_export latex \begin{equation} x^2 + y^2 = z^2 \end{equation} #+end_export I use these blocks to take advantage of syntax highlighting (and it is quicker to write than not including the export block around the latex). Shouldn't `org

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-05 Thread Leo Butler
On Wed, Apr 02 2025, "Rohit Patnaik" wrote: > I'm against moving to `luatex' as the default compiler. I'm decently familiar > with LaTeX, having used it to write papers and even my resume. I just tried > to compile a relatively simple LaTeX file using `luatex' on my Fedora Linux > machine with

Re: Best way to represent a directory tree in Org-mode

2025-04-04 Thread Leo Butler
On Sun, Mar 30 2025, Jean Louis wrote: > * Sébastien Gendre [2025-03-30 22:55]: >> >> Exemple of LaTeX verbatim that lose its special chars when exported to >> PDF: >> >> \begin{verbatim} >> /test >> ├── file-a >> ├── file-b >> └── file-c >> \end{verbatim} > > here below is version that works:

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Leo Butler
Karthik, thanks for the email, including those screencasts. You are right, lualatex is too slow for use in generating previews. Do you have any ideas about how we could improve the handling of utf-8 without sacrificing the speed of the preview system? Leo On Wed, Apr 02 2025, Pedro Andres Aranda

Re: [DISCUSSION] Setting LuaLaTeX as default when exporting to LaTeX/PDF

2025-04-02 Thread Leo Butler
I generally agree with Pedro about making lualatex the default. Personally, I moved to it several years ago because of the weak, and unstable, support for unicode in pdflatex. Note that Juan Manuel Macías posted here the following quote from Joseph Wright [1]: >> The time to move to LuaTeX for ne

Re: PLOT: Different "with:option" on same plot

2025-03-08 Thread Leo Butler
On Mon, Mar 03 2025, Colin Baxter wrote: > I want to plot from a table and use > > #+PLOT: title:"Whatever" ind:2 deps:(3 4) type:2d "with:lines" set:"yrange > [0:100]" > > Great, that works. The second column in the table gives me my x-axis, and > the 3rd. and 4th. columns give me two graphs. >

Re: Org manual: Confused about parentheses in "filename=(buffer-file-name)" in code block header

2025-03-07 Thread Leo Butler
On Fri, Mar 07 2025, alain.coch...@unistra.fr wrote: > #+BEGIN_SRC sh :var filename=(buffer-file-name) :exports both >wc -w $filename > #+END_SRC (buffer-file-name) is evaluating the Emacs Lisp function `buffer-file-name', which returns a string with the buffer's filename. > >

Re: Org Crypt problems

2025-02-28 Thread Leo Butler
On Thu, Feb 27 2025, David Masterson wrote: > Leo Butler writes: > >> On Tue, Feb 25 2025, David Masterson wrote: >> >>> 1. If you enter a bad password (even a blank password) to >>> org-decrypt-ent*, how do you tell Emacs to forget the password so &

Re: Org Crypt problems

2025-02-26 Thread Leo Butler
On Tue, Feb 25 2025, David Masterson wrote: > I have org-crypt mostly working, but a couple of things annoy me and I > may look into fixing them after checking here to see if they are already > fixed: > > 1. If you enter a bad password (even a blank password) to > org-decrypt-ent*, how do

[PATCH] Re: Q: Documentation question on beamer and org

2025-02-13 Thread Leo Butler
ask. > > It is funny how different people use the manual. IIRC, I started wtih the example at the end of the section. I don't recall why (likely a good guess), but I added the single header #+STARTUP: beamer from §13.8.5 in order to play with editing. When I tried exporting, I had no dif

Re: render math in README.org on github

2025-01-07 Thread Leo Butler
On Sat, Dec 21 2024, Max Nikulin wrote: > On 21/12/2024 01:51, Leo Butler wrote: >> On Fri, Dec 20 2024, Nikolaos Chatzikonstantinou wrote: >> >>> Do you want mathjax when viewing the readme file? >> >> Yes. The only documentation I have seen refers to ma

Re: Language support for C# in org-babel

2025-01-06 Thread Leo Butler
On Mon, Jan 06 2025, poverobuosodonati wrote: > > > > > Hi guys, > > > > I am a newbie in that I've never contributed so far. Thus, I would like to > start this journey with pinging the mailing list first as it is indicated in > the contributing documentation. > Welcome. > > > A

Re: The less ambiguous math delimiters in tables

2024-12-27 Thread Leo Butler
On Wed, Dec 25 2024, Rudolf Adamkovič wrote: > Ihor Radchenko writes: > >> It is a syntax limitation. >> Org parser is outer-inner - the table row is parsed first. >> So, | are unconditionally used as table delimiters, *before* verbatim >> LaTeX markup is recognized. > > How is that not a parser

[PATCH] Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-20 Thread Leo Butler
Ihor, Please find attached the amended patch. All things considered, I think this is the best option to fix the issue that has arisen. Leo From db509cf4b81f78a5c85cf12c7f7b2879f2a47397 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Sun, 15 Dec 2024 21:20:26 -0600 Subject: [PATCH] lisp/ob

Re: render math in README.org on github

2024-12-20 Thread Leo Butler
e meant to work and how they can be configured. Leo > > Or do you want mathjax in the generated html in a github pages? That can be > done... > > Another place that org doesn't work (at all) is pypi. > > On Fri, Dec 20, 2024, 12:26 PM Leo Butler wrote: > >> Hel

render math in README.org on github

2024-12-20 Thread Leo Butler
Hello, I am trying to use MathJax with a README.org file on github, but I am having no luck. I believe that this "just works" with markdown on github. The best that I could find was a bug report by karthink [fn:1] that refers to following instructions on a wiki. But, I can't find that wiki, nor c

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-17 Thread Leo Butler
On Tue, Dec 17 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> Putting that into the batch file will result in it appearing in the >> output of the source-code block. We are trying to stop that. > > FYI, I have basically no experience with Maxima. So, I was simpl

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-16 Thread Leo Butler
On Mon, Dec 16 2024, Ihor Radchenko wrote: > Leo Butler writes: > >> Attached is a patch to fix the problem that Benjamin has encountered. > > Thanks! > >> + '("(linenum:0," ;; remove fragment from command-line (see >> `org-bab

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-15 Thread Leo Butler
Ihor, Attached is a patch to fix the problem that Benjamin has encountered. Best regards, Leo From acc099ca608b59c60f941d8dbff25a17e7adbf8c Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Sun, 15 Dec 2024 21:20:26 -0600 Subject: [PATCH] lisp/ob-maxima.el: fix Mac-related bug * ob-maxima.el

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-14 Thread Leo Butler
--quiet > > (assume(z>0), > integrate(exp(-t)*t^z, t, 0, inf)); > #+end_src > > #+RESULTS: ob-maxima/batch+verbatim > #+begin_example > > (%i1) (linenum:0, > (%i1) (assume(z > 0),integrate(exp(-t)*t^z,t,0,inf)) > (%o1)gamma(z + 1

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-10 Thread Leo Butler
file (which I also attach) are: > > build_info(); > > If there's more information I can give, just let me know. > Thanks, > Benjamin > > On Tue, Dec 10, 2024 at 9:17 AM Leo Butler wrote: > >> On Mon, Dec 09 2024, Leo Butler wrote: >> >> > O

Re: [ANN] Tomorrow at EmacsConf 2024: The Future of Org

2024-12-09 Thread Leo Butler
On Mon, Dec 09 2024, Ihor Radchenko wrote: > Ihor Radchenko writes: > >> Tomorrow, at EmacsConf 2024, I will talk about the future of Org mode. >> >> My talk: https://emacsconf.org/2024/talks/org-update/ > > Attaching the talk slides, as an Org and pdf files, for your reference. > > Also, tomorr

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-09 Thread Leo Butler
On Mon, Dec 09 2024, Leo Butler wrote: > On Sun, Dec 08 2024, Ihor Radchenko wrote: > >> Benjamin McMillan writes: >> >>> This outputs >>> #+RESULTS: >>> | (linenum:0, | >>> | 4 | >>> >>> I suppose the issue

Re: [BUG] ob-maxima outputs linenum:0 in results on MacOS

2024-12-09 Thread Leo Butler
On Sun, Dec 08 2024, Ihor Radchenko wrote: > Benjamin McMillan writes: > >> This outputs >> #+RESULTS: >> | (linenum:0, | >> | 4 | >> >> I suppose the issue is the "linenum:0". In fact, running any of the test >> src blocks does that, e.g. >> #+begin_src maxima :results verbatim :batch

Re: Orgmode and Beamer

2024-10-28 Thread Leo Butler
On Mon, Oct 28 2024, David Masterson wrote: > Does anyone have a recommendation on how to structure an Org document > such that it can be exported to either Latex or Beamer? Suppose you > have a (small) thesis that you are writing and you want to generate > Beamer slides of a high-level view of t

Re: ob-octave.el - org-babel-matlab-with-emacs-link

2024-10-25 Thread Leo Butler
Hi John, Have you had a look at https://orgmode.org/worg/org-contribute.html ? The best way to suggest your changes is likely to write a patch and send it to this mailing list. For example, here is a recent discussion: https://lists.gnu.org/archive/html/emacs-orgmode/2024-10/threads.html#00212

Re: Audio File in beamer and orgmode

2024-10-02 Thread Leo Butler
On Wed, Oct 02 2024, Orm Finnendahl wrote: > Hi Luís, > > it doesn't work OOTB in org-mode, but you can always embed LaTex > verbatim in Org files using the #+LATEX: prefix. > > My recommendation: Generate a LaTex file from org beamer with some > blind text at a place where you need your link a

Re: [O] Generate and fill PDF-forms by org-mode?!

2024-07-22 Thread Leo Butler
Hi Balaji, This is an ingenious solution, but wouldn't something like xournal(++) be easier to use[1]? A drawback to either method is that the PDF file that is created no longer has the form data available for subsequent edits. This is a serious drawback when one needs to fill in some parts of a

Re: [BUG] #+CALL - permission error -bash

2024-05-02 Thread Leo Butler
On Thu, May 02 2024, vita...@gmx.com wrote: > in org-babel-sh-evaluate > file:~/.emacs.d/elpa/org-9.6.28/ob-shell.el::300 > > this do apply: (process-file "/tmp/babel-NfRG9P/sh-script-jmKNA4" > "/tmp/babel-NfRG9P/sh-stdin-o3CEm5" # nil nil) > > I don't allow executables in /tmp folder! How abou

[PATCH] updating org-plot.org on worg, was Re: Can we add PLOT to org-element-multiple-keywords?

2024-04-24 Thread Leo Butler
for advice on later sections, below. From 4e262898feb349dad2f5b5afe8960c8e09723862 Mon Sep 17 00:00:00 2001 From: Leo Butler Date: Wed, 24 Apr 2024 12:57:58 -0500 Subject: [PATCH] org-tutorials/org-plot.org: update documentation and examples - Replace dead link to org-plot.el with link to it on

Re: orgmode tables

2024-04-22 Thread Leo Butler
> "There are four boxes to be used in defense of liberty: > soap, ballot, jury, and ammo. > Please use in that order." > Ed Howdershelt 1940. > > On Mon, 22 Apr 2024, Leo Butler wrote: > >> (info "(org)Built-in Table Editor") >> >>

Re: orgmode tables

2024-04-22 Thread Leo Butler
(info "(org)Built-in Table Editor") ‘M-S-’ (‘org-table-insert-column’) Insert a new column at point position. Move the recent column and all cells to the right of this column to the right. Leo On Mon, Apr 22 2024, Jude DaShiell wrote: > when making a table in orgmode, I forgot to ad

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Leo Butler
On Thu, Apr 18 2024, "Fraga, Eric" wrote: > Hello all, > > I am having (for my sins) to write some Word documents. I don't even > have Word on my system but that's by the by. The documents have some > mathematical expressions. In the past, I have used LaTeX to create > images of these expressi

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

2024-03-17 Thread Leo Butler
On Sun, Mar 17 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>>> I'd prefer to keep this information in the INFO channel. >>>> It will be more consistent. >> >> Apologies, I messed up the patch in the previous email. >> >&

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

2024-03-16 Thread Leo Butler
On Sat, Mar 16 2024, Leo Butler wrote: > On Fri, Mar 15 2024, Ihor Radchenko wrote: > >> Leo Butler writes: >> >>>> Leo, may you improve the patch to avoid defining >>>> `org-beamer-frame-environment' when it is not used in all the frames? &g

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

2024-03-16 Thread Leo Butler
On Fri, Mar 15 2024, Ihor Radchenko wrote: > Leo Butler writes: > >>> Leo, may you improve the patch to avoid defining >>> `org-beamer-frame-environment' when it is not used in all the frames? >> >> "all the" should be "any of" i

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

2024-03-14 Thread Leo Butler
be "any of" in that last sentence. -- How about the attached patch? The previous org file exports in the same way, and exporting just the final heading shows that no newenvironment is emitted. Leo From 22d829089fc2ca153f1541abe1d5415d311b33d3 Mon Sep 17 00:00:00 2001 From: Leo Butler

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

[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] 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.

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] 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] 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-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] 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] 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-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-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: 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: 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: [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: 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: 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

[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: 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

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: 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: 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: 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: > 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: 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: [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: [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-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-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-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: 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: 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: 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: 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: 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: 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: [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: [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

[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-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

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-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-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

[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: [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

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: [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-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

  1   2   >