Re: Basic citations: should default citation style have a name and style code?

2024-01-13 Thread William Denton
On Sunday, January 14th, 2024 at 00:08, William Denton wrote: > While we're talking about citations, I'm stuck on something else. If I run > "C-c C-x @" to insert a citation into a file, I'm shown a list of > bibliography entries and I can go up and down and hit RET on any I chose. > That wor

Re: Basic citations: should default citation style have a name and style code?

2024-01-13 Thread William Denton
On Saturday, January 13th, 2024 at 14:03, Ihor Radchenko wrote: > I tried to clarify about the default style and #+cite_export keyword in > the manual: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=56f6d8d1a > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=83

Re: Diary sexp and comparing dates, agenda

2024-01-13 Thread David Rogers
Ihor Radchenko writes: David Rogers writes: This setup seems to work so far. Does it look reasonable to you? Yes, but I may not be a reliable judge. I do not have a lot of practical experience with diary sexps other than when people report Org mode bugs :) Since it looks not-stupid to

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-13 Thread Juan Manuel Macías
Ihor Radchenko writes: > Juan Manuel Macías writes: > >>> In such scenario, we may technically violate what users ask us to do: >>> >>> #+begin_verse >>> I really want newline here\\ >>> #+end_verse >> >> I'm not sure if users asked for that specifically. >> ... >> This does not: >> >> #+begin_v

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-13 Thread gerard . vermeulen
On 13.01.2024 16:17, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: Attached you'll find a new patch addressing all you issues. Thanks! I tried to run make test, and I am getting FAILED test-ob/demarcate-block ((should (string= region-text (org-trim (nth 1 info :form (st

Re: Diary sexp and comparing dates, agenda

2024-01-13 Thread Ihor Radchenko
David Rogers writes: > This setup seems to work so far. Does it look reasonable to you? Yes, but I may not be a reliable judge. I do not have a lot of practical experience with diary sexps other than when people report Org mode bugs :) -- Ihor Radchenko // yantar92, Org mode contributor, Learn

Re: Basic citations: should default citation style have a name and style code?

2024-01-13 Thread Ihor Radchenko
Ihor Radchenko writes: >> "Most scholarly works have citations and a bibliography or reference >> section," wrote a computer scientist [cite:@friends]. > >> As far as I can tell, there's nothing that can be done to the first >> citation object to make it use the "default" style. The >> document

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-13 Thread Ihor Radchenko
Juan Manuel Macías writes: >> In such scenario, we may technically violate what users ask us to do: >> >> #+begin_verse >> I really want newline here\\ >> #+end_verse > > I'm not sure if users asked for that specifically. > ... > This does not: > > #+begin_verse > I really want newline here\\ >

Re: ob-shell: proposal to remove "posh"

2024-01-13 Thread Ihor Radchenko
Matt writes: > There was discussion about different shells, Eric asked for others, "posh" > was mentioned as "specially for POSIX compatibility checks", and then a > "posh" was added to ob-shell.el by Eric (fb09863f). > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=fb09863fbb3

Re: Tableofcontents

2024-01-13 Thread Tory S. Anderson
I was unaware of latexmk; installing now! Thanks! sad that the original problem is not helped by it, though. Ihor Radchenko writes: > web...@toryanderson.com (Tory S. Anderson) writes: > >> I don't run the cutting-edge org, but I often have to run my export twice to >> get things like page num

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-13 Thread Juan Manuel Macías
Ihor Radchenko writes: >> Can anyone think of a possible scenario where removing the '\\[0pt]' in >> the last line would cause a problem? If not, I might send a patch in the >> next few days. (I'm afraid that going back to abusing >> replace-regexp-in-string. I can't think of any other more elegan

Re: Tableofcontents

2024-01-13 Thread Horst Leps
Ihor Radchenko schrieb: You're right. I deleted all unnecessary latex header entries from the orgmode file and then a complete table of contents was created. I have to rebuild the latex header. Thanks. Horst Horst Leps writes: Running 'pdflatex -interaction nonstopmode -recorder "orgmo

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-13 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > Attached you'll find a new patch addressing all you issues. Thanks! I tried to run make test, and I am getting FAILED test-ob/demarcate-block ((should (string= region-text (org-trim (nth 1 info :form (string= "mark this line as region" "") :value ni

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-13 Thread Ihor Radchenko
Juan Manuel Macías writes: > Can anyone think of a possible scenario where removing the '\\[0pt]' in > the last line would cause a problem? If not, I might send a patch in the > next few days. (I'm afraid that going back to abusing > replace-regexp-in-string. I can't think of any other more elega

Re: [PATCH] org-babel-demarcate-block: split using element API

2024-01-13 Thread gerard . vermeulen
Attached you'll find a new patch addressing all you issues. I have integrated our discussion leading to https://list.orgmode.org/87ply6nyue.fsf@localhost/ Please feel free to add the line Co-authored-by: Ihor Radchenko to the commit message. I think you should. On 09.01.2024 15:49, Ihor Radc

Re: [BUG] org-table-eval-formula mishandles semicolons in formulas [9.7-pre (release_9.6.14-1019-g5092ec @ /home/nick/src/emacs/org/org-mode/lisp/)]

2024-01-13 Thread Ihor Radchenko
Nick Dokos writes: > `org-table-eval-formula' interprets *any* semicolon in a formula as the > beginning of a format specifier. So if the formula contains a literal > semicolon that is not a format specifier > > #+TBLFM: $3='(concat "COMMENT ON public.layout_forms." $1 " IS " (rc-sq > $2) ";

Re: Moving to the next heading does not always work

2024-01-13 Thread Ihor Radchenko
Rudolf Adamkovič writes: > REPRODUCTION STEPS: > ... > ACTUAL: > > The cursor moves to the end of file. Fixed, on main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c41a89676 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: Tableofcontents

2024-01-13 Thread Ihor Radchenko
web...@toryanderson.com (Tory S. Anderson) writes: > I don't run the cutting-edge org, but I often have to run my export twice to > get things like page numbers correct. Maybe it's not ideal, but if you run > the export a second time does it change the result? When available, Org mode uses late

Re: AW: AW: Tableofcontents

2024-01-13 Thread Ihor Radchenko
Horst Leps writes: > Running 'pdflatex -interaction nonstopmode -recorder "orgmode.tex"' > I can see a number of errors, likely originating from incorrect ox-latex configurations for custom packages (or #+LATEX_HEADER lines in the org file) and incorrect usage of some latex enviro

Re: ob-shell: proposal to remove "posh"

2024-01-13 Thread Matt
On Thu, 11 Jan 2024 21:30:59 +0100 Matt wrote --- > The change on August 26, 2022 should have caused a breaking error for > someone using the "Policy-compliant Ordinary SHell." The prompt for "posh" > in "org-babel-shell-set-prompt-commands" is valid PowerShell syntax (AFAIKT) >