Re: org doesnt recognize nested inline latex

2025-07-21 Thread Leo Butler
enough to those who work on org-mode since > its been one of the most useful tools for so long to me. Leo

Re: LaTeX to Org ? (also Auctex/Lyx)

2025-07-16 Thread Leo Butler
org file. My experience is that lualatex + tikz is very slow, though, so using pdflatex for previewing is quite helpful. > > 3. #+LATEX_HEADER: > > I've collected all my variations on RequirePackage{fancyvrb} for my listings > for documents and slides in one file, which I have in my Templates directory > to copy to the different documentation projects. > > As a plus, I also have a dir-locals.el to use with the feature and fix the > appearance of my slides/lecture notes. > > With the time, collecting and reusing has made the round-trip time +/- > equivalent to exporting to latex, fixing there and coming back. > That path, however, has been extemely usefull when implementing stuff > on the feature branch. Thanks for that work, btw. Leo

Re: LaTeX to Org ? (also Auctex/Lyx)

2025-07-16 Thread Leo Butler
ve added a tag, :private: or something like that, but I did not think of this issue until just now. Maybe I will re-vist your question when the next semester starts in the fall. Best regards, Leo > > Cheers > Matteo > > On mar, lug 15, 2025 at 03:50 Leo Butler wrote: >> On Mon,

Re: LaTeX to Org ? (also Auctex/Lyx)

2025-07-15 Thread Leo Butler
he keychord C-c ' on a latex block will pop you into a latex buffer. If your emacs is configured to use AucTeX, then you have the power of Org and AucTeX, all in one. Org has some good defaults for latex/beamer export, but it also has the power and flexibility to customize that export to replicate what you would get just by working in AucTeX on a latex file. Best regards, Leo

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

2025-05-02 Thread Leo Butler
n particular metricality is always relevant; correctness is > sometimes relevant; simplicity is usually most relevant. Correctness and simplicity are always most important. I balk at deferring to an ESL dictionary, but I do see the point that a less colourful, more technical writing style would be a good idea for worg. Leo

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

2025-05-02 Thread Leo Butler
er of English, this phrasing strikes me as quite natural and evocative. "Bite into this" suggests the reader has developped a taste for "this". That is likely the original intent and, if so, it is conveyed well. Leo

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 t

Re: org-latex-preview and font-locking

2025-04-16 Thread Leo Butler
ort LaTeX blocks. I think it is sensible to make this extension, even if it can't be done right now. Leo

Re: Parsing of incomplete LaTeX environments

2025-04-16 Thread Leo Butler
nd. Maybe it is better to think about how to provide editing tools that circumvent common mistakes (like removing \end{FOO}). My suggestion would be to add an `org-insert/delete-latex-environment' that could also delete matching pairs of environment delimiters. Leo

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
-theme RET modus-vivendi RET 6. M-x customize-variable RET org-preview-latex-default-process (set it to dvisvgm) 7. C-x C-f /tmp/bug.org 8. Type in \(x^2=2\) 9. C-c C-x C-l 10. M-x customize-variable RET org-format-latex-options RET (change :background from default to "Transparent") 11. Redo steps 8-9 on a new equation. Step 9 will display a white rectangle, step 11 will display the correct image. Leo

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
king paragraph > elements to be latex-like. Alternatively, why not fix Karthik's stated problem with some analogue to `org-insert-structure-template'? E.g. `org-insert-latex-environment'. It would insert a latex environment, after prompting for the name, or update the environment name if called with a region that started with \begin{FOO} and ended with \end{FOO}. FWIW, Leo

Re: org-latex-preview and font-locking

2025-04-14 Thread Leo Butler
ore typing; or - simply type M-x latex-in-b RET al TAB * RET which would cost 17 keystrokes; or - play around with keymaps so that I access the `latex-insert-block'. So this observation is really about my work-style, and why I prefer to use export latex blocks. The question about why export latex blocks are not available for preview remains. Leo

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

2025-04-12 Thread Leo Butler
t couple weeks. I use a lot of utf-8 in my org documents. Pdflatex just cannot compete for typesetting, even in preview. My feeling is that for modestly complicated snippets, lualatex is a better choice, despite the slower speed. Having said that, I do not use a continual previewer like Karthik demonstrated in one of his screencasts. So, my 2¢ is that there is no advantage to the bifurcation that you are suggesting. Leo

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

2025-04-08 Thread Leo Butler
way to do what you want from within luatex (and the luatex developpers are un-interested in speeding up luatex). I suppose that we could create a stable of luatex processes that are waiting for input. I don't know if that would speed things up appreciably, though. Leo [1] - https://ctan.org/te

org-latex-preview and font-locking

2025-04-07 Thread Leo Butler
ldn't `org-latex-preview' work on such blocks? Leo (insert (format "\nemacs=%s\norg=%s\n" (emacs-version) (org-version))) emacs=GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-03-16, modified by Debian org=9.7.25

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

2025-04-05 Thread Leo Butler
efault compiler would likely break these > users' > usage of LaTeX inside of org-mode. I think it's fine to leave `pdflatex' as > the > default and document how users could switch to LuaLatex if they wish to. Those packages should be basically the same Texlive distribution, and they should work more or less the same. Leo

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

2025-04-04 Thread Leo Butler
> with Unicode support > > \begin{verbatim} > /test > ├── file-a > ├── file-b > └── file-c > \end{verbatim} Thanks. The example compiles with lualatex, too. Leo

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

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

2025-04-02 Thread Leo Butler
eX for new LaTeX documents is here. > Source: > > https://www.texdev.net/2024/11/05/engine-news-from-the-latex-project That's my 2¢. Leo [1] https://list.orgmode.org/87r07ow94d@posteo.net/ On Wed, Apr 02 2025, Pedro Andres Aranda Gutierrez wrote: > To add an argume

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

2025-03-08 Thread Leo Butler
ines hist) ... Looking at org-plot.el, it looks like this can't be done with the existing code. Indeed, I understand that "specify a with option to be inserted for every col being plotted ..." means that the same `with' option is applied to each column. Leo

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

2025-03-07 Thread Leo Butler
> is, there is no error during export and I do see > > wc -w $filename > > 1 /tmp/test.r > > in the exported pdf file. > > Are the parentheses in the manual correct? If so, what is the rationale? > Thanks. Yes, they manual is correct, just not relevant to your second example. Leo

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
rying to upstream this addition? > I would go ahead and try to open a pull request following the > guidelines from this documentation > (https://orgmode.org/worg/org-contribute.html) if there are none. Or > is there a better way/no need for it in the first place? See the instructions at https://orgmode.org/worg/org-contribute.html#first-patch Best regards, Leo

Re: The less ambiguous math delimiters in tables

2024-12-27 Thread Leo Butler
g Org -> LaTeX, I suggest using something like the following: | \([x]\) | Depending on the flavour of LaTeX you use, you can use a package to typeset the left/right square brackets as |, e.g. \newunicodechar{[}{|} \newunicodechar{]}{|} Leo

[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
that wiki, nor can I find any other advice that works. DuckDuckGo suggested an AI, but that seems to be a source of infinitely many wrong guesses and about as much frustration (it's like trying to get a straight answer out of a C student). Any pointers or tips would be appreciated. TI

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
Benjamin, What if you remove the anchor at the beginning of the regexp? Does the following work with the other tests? (add-to-list 'org-babel-maxima--output-filter-regexps "(linenum:0,") Best regards, Leo On Fri, Dec 13 2024, Benjamin McMillan wrote: > Hi Leo, > The fir

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

2024-12-10 Thread Leo Butler
On Tue, Dec 10 2024, Benjamin McMillan wrote: > Hi Leo, > I get the following output: > > #+RESULTS: > > #+begin_example > (linenum:0, > #+end_example > > and from *messages*: > > Executing Maxima source code block > maxima -r \(linen

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

2024-12-09 Thread Leo Butler
<2024-12-11 Wed 19:00-21:00 @+03,Europe/Istanbul> Ihor, Thanks for sharing those slides, your Org file and your work on Org. Best regards, Leo

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
ould be outputting linenum:0 > > Setting linenum was introduced in > https://list.orgmode.org/orgmode/87jzsrai3x.fsf@localhost/ > > It clearly does not affect Linux, but Maxima on MacOS appears to have > slightly different behavior. > > I am CCing the author of the original

Re: Orgmode and Beamer

2024-10-28 Thread Leo Butler
o noexport when the export backend is latex and similar for latexonly. Add that function to the `org-export-before-processing-functions' so it gets executed before export begins. Attached is an example. Note that you likely would need to fiddle with conditionally loading packages, dependin

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

2024-10-25 Thread Leo Butler
#00212 Best regards, Leo On Thu, Oct 24 2024, John Ciolfi wrote: > To use org with MATLAB, one needs to advise the org functions to > change their behavior, and I'll like to eliminate that workaround, so > I'd like to propose some changes, but am not clear on how to prop

Re: Audio File in beamer and orgmode

2024-10-02 Thread Leo Butler
cludemedia[addresource=%s,flashvars={source=%s&autoPlay=true}]{\\fbox{%s}}{PLAYER}\n" path path description)) (t (format "") #+end_src should allow you to use

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

2024-07-22 Thread Leo Butler
, perhaps) and also be able to generate a new FDF with the edited structure. Best regards, Leo [1] https://xournalpp.github.io/ https://xournalpp.github.io/guide/whirlwind-tour/#annotating-pdf-files On Fri, Jul 19 2024, Balaji Bikshandi wrote: > Hi Ihor, > > Glad you are intereste

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

2024-05-02 Thread Leo Butler
't allow executables in /tmp folder! How about: (setq org-babel-temporary-directory (let ((temporary-file-directory "/path/you/prefer")) (make-temp-file "babel-" t))) Leo

[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
Debian (insert (org-version)) 9.6.23 and either terminal emacs (in an xterm) or gui emacs. Leo ‘M-’ (‘org-table-move-column-left’) Move the current column left. ‘M-’ (‘org-table-move-column-right’) Move the current column right. ‘M-S-’ (‘org-table-delete-column’) Kill the current

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

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Leo Butler
"export odt" with "export html"). But when I export to odt, something weird happens: contents.xml contains the fragment of mathml, but it is not displayed in libreoffice. On the other hand, the snippet in the third sub-section, that is saved to file, is handled correctly (the somewhat

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
ds to circumvent "\begin-or-end{frame} inside >> frame" -> set local variable in file AND newenvironment is generated AND >> frame is changed where it is strictly necessary, > > I do not like that users would need to do manual action in situation 2. > For situation 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

[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
tried to download the setupfile after being told not to, I think this is a majour security hole. This is also related to another thread concerning Org and email. https://list.orgmode.org/orgmode/87cyteyhif.fsf@localhost/ Leo

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
nclude correct image files, the whole randomization and > quality control subsystem (what STACK calls "deployment of > variants"). I don't know how the latter can be made sense of in Org > Mode. Even things like the random number seeds that index different > variants mig

Re: Developing Moodle resources/sites with Org Mode

2024-01-17 Thread Leo Butler
g graders in STACK is pretty tedious. I agree that we need ob-maxima.el to properly handle sessions. Note that you can use Maxima to create graphs, too. One thing that I am not sure I understand about your thoughts: do you envision a Moodle emulator based on org-mode, or do you just want to be able to write Moodle questions or glossaries with org-mode? Best regards, Leo [1] https://sourceforge.net/p/maxima/mailman/maxima-discuss/thread/87a6d4ajgk.fsf%40t14.reltub.ca/#msg37634141

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
!\n"; #+end_src #+begin_src bash :async t mpirun -np 4 ./hello-world #+end_src As I said, the patch I wrote was not perfect, but I am happy to re-visit the issue. The ability to create named binaries would significantly increase the usability of ob-C for projects where you want to compile the source once and run the binary repeatedly for potentially long periods of time. Leo [1] https://list.orgmode.org/87fs81egk5@t14.reltub.ca/

Re: Getting email from MS outlook into emacs

2023-12-07 Thread Leo Butler
stur.ifi.uio.no/ At the bottom of the thread, the developer of davmail recommends setting davmail.imapAlwaysApproxMsgSize=true in the configuration file. That one change has made MS outlook + gnus as fast (or slow) as it was before needing the davmail shim. Leo

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
tps://orgmode.org/worg//org-contrib/babel/languages/ob-doc-maxima.html Leo

Re: bash source code block: problem after ssh commands

2023-11-17 Thread Leo Butler
st.orgmode.org/orgmode/87bkcmlor9@t14.reltub.ca/ I mis-identified the culprit; you corrected me by pointing out the bug is in `process-file'. And you confirmed the bug: https://list.orgmode.org/orgmode/87fs1xbis1.fsf@localhost/ Russell Adams and I suggested ssh-specific work-arounds that prevent ssh from grabbing stdin (either -n or -f). Leo

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
ting a patch is also welcome. I am looking at ob-ditaa. Patching it looks within my reach. Is there no testsuite for it? Leo

Re: bash source code block: problem after ssh commands

2023-10-25 Thread Leo Butler
issue with emacs, right? Yes, that is my understanding. Perhaps you can report it to the emacs-devel mailing list. Leo

Re: bash source code block: problem after ssh commands

2023-10-25 Thread Leo Butler
md64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.3-1 (2023-09-13) x86_64 GNU/Linux Not working: #+begin_src bash :results output ssh SSH-HOST 'echo foo>/tmp/foo_file' echo $(uname -a) |tee /tmp/uname1.txt #+end_src If you look at /tmp after running the third example, you see that that second command line has not been executed. Leo

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
be changed? Please? :-) The deeper reason is likely that ob-ditaa worked for whomever wrote it, and users have either accepted its limitations (if noted), worked around them, or gave up. > > How can I make it accept a command line? > > Is there any "generic" way of making org-babel accept a command line, > not necessarily going through "org-ditaa", as a workaround? You could use ob-shell, but it would be preferable to fix the bug you have identified. > > Thanks & cheers, > Florin. Leo

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
ings. > > Yes. Attached is a patch that tries to address some of Ihor's concerns. I have added two header arguments for maxima src blocks: - :graphics-pkg lets the user choose the graphics package to use; - :batch lets the user choose which source-code loader Maxima will use. I ha

  1   2   3   4   5   6   7   8   >