Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-11 Thread Jonathan Gregory
On 11 Jan 2020, adam wrote: > Still no success in tangling the examples modal-cycle.org modal-cycle2.org > shown here, > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > My current problem is Emacs rejecting the addition of either Lilypond or > lilypond, in

Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-11 Thread Jonathan Gregory
On 20 Apr 2019, Jakob Schöttl wrote: > Hi, > > I'm trying (second attempt), to setup orgmode to export PDFs with > images generated by Babel/LilyPond. > > I followed the setup instructions here: > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-lilypond.html > > I have > > a

Re: [O] Orgmode Latex Export with Babel/LilyPond

2020-01-13 Thread Jonathan Gregory
Hello On 12 Jan 2020, adam wrote: > On Sun, 2020-01-12 at 10:43 +1300, adam wrote: >> On Sun, 2020-01-12 at 09:04 +1300, adam wrote: >> > >> > On Sat, 2020-01-11 at 12:30 -0300, Jonathan Gregory wrote: >> > > >> &g

Re: Org-babel-lilypond always renders full pages

2020-04-02 Thread Jonathan Gregory
Hi On 02 Apr 2020, stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Jonathan Gregory writes: > >> Hi >> >> On 30 Mar 2020, stardiviner wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA256 >

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
Hi On 30 Mar 2020, stardiviner wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > stardiviner writes: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> >> You might want to try this: >> >> #+begin_src emacs-lisp >> (add-to-list 'org-babel-default-header-args:lilypond

Re: Org-babel-lilypond always renders full pages

2020-03-31 Thread Jonathan Gregory
ce-add 'org-babel-lilypond-set-header-args :filter-return (lambda (_mode) (setq org-babel-default-header-args:lilypond (append org-babel-default-header-args:lilypond '((:epilogue . "\\paper{ oddFooterMarkup=##f }&quo

Re: Org-babel-lilypond always renders full pages

2020-03-29 Thread Jonathan Gregory
Hi On 29 Mar 2020, Oliver Heck wrote: > Hi, > > I am trying to use org-babel-lilypond and basically got it running. > But somehow I always get full lilypond pages back instead of a small > snippet. > This is what I have in my org-file: > > #+NAME: Lilypond > #+BEGIN_SRC lilypond :file test.png

Re: [PATCH] ob-lilypond: allow user configuration of header-args

2021-01-12 Thread Jonathan Gregory
Hi Jamie On 10 Jan 2021, Jamie Bayne wrote: Hi all, I hit the problem described in https://www.mail-archive.com/emacs-orgmode@gnu.org/msg127317.html - I couldn't see that anyone else had fixed it so I had a go. The problem is that, unusually, ob-lilypond has some conditional logic on its

Re: Get list of top-level headings

2021-05-19 Thread Jonathan Gregory
Hello Florian On 19 May 2021, Florian Lindner wrote: Hello, I, an Emacs Lisp newbie, want to get a list of all top-level headings of the current buffer. My approach so far is: (defun test-org-map() (interactive) (setq headings '()) (org-map-entries (lambda ()

Re: Get list of top-level headings

2021-05-19 Thread Jonathan Gregory
Hi On 19 May 2021, John Kitchin wrote: I think this is all you need to get a list of titles of level 1 headings as strings (org-map-entries (lambda () (fifth (org-heading-components))) "LEVEL=1") this also works for me: #+BEGIN_SRC emacs-lisp (org-map-entries (lambda ()

Re: ob-lilypond.el doesn't generate midi files

2021-08-28 Thread Jonathan Gregory
Hi Michael On 28 Aug 2021, Michael Maurer wrote: So out of curiosity I changed the entry for midi-player to random gibberish, and the same message pops up, "no midi file generated so can't play". Toggling arrange-mode has no effect. I can play the generated midi-file from the command line

Re: ob-lilypond.el doesn't generate midi files

2021-08-26 Thread Jonathan Gregory
Hi On 26 Aug 2021, Michael Maurer wrote: I've installed lilypond and customized ob-lilypond to use the appropriate helper programs, but although it generates & shows pdfs just fine, generating a midi file it does not. I execute tangle on the codeblock, and all I get is "No midi file

Re: ob-lilypond.el doesn't generate midi files

2021-08-30 Thread Jonathan Gregory
pretty confident *.mid is the default setting for lilypond on win, and not my doing. I attached a patch to use a different suffix on Windows. Thanks for your help. -- Jonathan >From 1929b8082b9cff2a4bd99c573b2a2bd50b76b184 Mon Sep 17 00:00:00 2001 From: Jonathan Gregory Date: Mon, 30 Aug 2

Re: ob-lilypond.el doesn't generate midi files

2022-11-01 Thread Jonathan Gregory
Hi Ihor, On 01 Nov 2022, Ihor Radchenko wrote: Jonathan Gregory writes: Yep, that's it. Modified ob-lilypond.el and recompiled it. Timidity works as helper, couldn't get vlc to work. Maybe the file ending should be modifiable via org-babel-lilypond-commands as well, or make ob-lilypond.el

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-11-28 Thread Jonathan Gregory
Hi On 27 Nov 2022, Ihor Radchenko wrote: Contributions for other languages are also welcome. For Portuguese, I'd use the following: ("pt" "Arquivo" "N" "Data e hora" "Título" "Hora" "TODOS" "Hora total" "Hora do arquivo" "Resumo das horas em") -- Jonathan

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-12-04 Thread Jonathan Gregory
On 04 Dec 2022, Ihor Radchenko wrote: Jonathan Gregory writes: Contributions for other languages are also welcome. For Portuguese, I'd use the following: ("pt" "Arquivo" "N" "Data e hora" "Título" "Hora" "TODOS" &quo