Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-06 Thread M . ‘quintus’ Gülker


Am Samstag, dem 06. November 2021 schrieb András Simonyi:
> I've pushed a change to citeproc-el which should solve that problem --
> thanks for reporting it.

Thank you again! It works now properly.

  -quintus

-- 
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland  | kont...@guelker.eu| O<



Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-06 Thread András Simonyi
Dear All,

On Thu, 4 Nov 2021 at 20:26, M. ‘quintus’ Gülker
 wrote:

> The improper formatting on LaTeX  export I mentioned in the other e-mail[1] 
> however is still persisting,
> both with the @ and without it.

I've pushed a change to citeproc-el which should solve that problem --
thanks for reporting it.
best wishes,

András



Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-04 Thread M . ‘quintus’ Gülker
Dear all,

Am Donnerstag, dem 04. November 2021 schrieb Nicolas Goaziou:
> Great! Hopefully, OP's problem is completely solved, then.

I can confirm that the original example I gave (the one with the missing
@ sign) does not error anymore now. The improper formatting on LaTeX
export I mentioned in the other e-mail[1] however is still persisting,
both with the @ and without it.

Org mode version 9.5 (release_9.5-214-gced2b3 @ 
/home/quintus/.emacs.d/org-mode/lisp/)
Citeproc.el at e93b45fe125d2ed61c60136638b3836ec770f879

  -quintus

[1]: 
https://list.orgmode.org/87pmrgs2la@nicolasgoaziou.fr/T/#m04c52902b1b2cb813269cac8088b4de94f0fcf2b

-- 
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland  | kont...@guelker.eu| O<



Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-04 Thread Nicolas Goaziou
Hello,

András Simonyi  writes:

> On Wed, 3 Nov 2021 at 17:02, Nicolas Goaziou  wrote:
>> It looks like there's something to repair on the Citeproc side. I'm
>> Cc'ing András Simonyi for a better understanding of the problem.
>
> I think this problem has been fixed in citeproc-el (see PR #55)

Great! Hopefully, OP's problem is completely solved, then.

> you are probably using an earlier version.

I'm using latest stable release, indeed. Thanks for the answer.

Regards,
-- 
Nicolas Goaziou



Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-04 Thread András Simonyi
Dear All,

On Wed, 3 Nov 2021 at 17:02, Nicolas Goaziou  wrote:
> It looks like there's something to repair on the Citeproc side. I'm
> Cc'ing András Simonyi for a better understanding of the problem.

I think this problem has been fixed in citeproc-el (see PR #55) -- you
are probably using an earlier version.

best wishes,
András



Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-11-03 Thread Nicolas Goaziou
Hello,

Marvin Gülker  writes:

> trying to export the following org-document results in an Elisp error:
>
> #+TITLE: Test
> #+AUTHOR: Testauthor
>
> #+LANGUAGE: de
> #+bibliography: /tmp/mwe/mwe.bib
>
> #+cite_export: csl /tmp/mwe/juristische-schulung.csl
> 
> Test [cite:raubenheimer1996dongle p. 76; /Dreier/, in: @ds2018urhg § 69d 
> Rn. 10]

[...]

> This is mwe.bib:
>
> @Article{raubenheimer1996dongle,
> author   = {Andreas Raubenheimer},
> title= {Beseitigung/Umgehung eines technischen Programmschutzes 
> nach UrhG und UWG},
> journaltitle = {Computer und Recht},
> shortjournal = {CR},
> year  = {1996},
> pages = {69-79},
> langid= {german}}
> 
> @commentary{ds2018urhg,
> title = "Urheberrechtsgesetz",
> shorttitle = "UrhG",
> editor = "Thomas Dreier and Gernot Schulze",
> edition = "6",
> year = "2018",
> publisher = "C.H. Beck",
> location = "München"
> }
>
> juristische-schulung.csl is 
> https://github.com/citation-style-language/styles/raw/e22b8a566bad9b4c7f52720f60dd875057a5d210/juristische-schulung.csl
>
> I use Org mode version 9.5 (release_9.5-104-g2b1fc6 @ 
> /home/quintus/.emacs.d/org-mode/lisp/).
> Citeproc.el is at 34e66583d95a8d80fb5b9f2960f3382ca0e6d3ab.
>
> The following error is produced when exporting to HTML (C-c C-e h o):
>
> Debugger entered--Lisp error: (wrong-type-argument plistp (prefix . 
> #("Dreier, in:" 3 9 (:parent (italic (:begin 179 :end 187 
> :contents-begin 180 :contents-end 186 :post-blank 0 :parent 
> (citation-reference (:key "ds2018urhg" :begin 178 :end 217 :post-blank 0 
> :prefix ... :suffix ... :parent ...))) #("Dreier" 0 6 (:parent #7 13 18 
> (:parent (citation-reference (:key "ds2018urhg" :begin 178 :end 217 
> :post-blank 0 :prefix (#(" " 0 1 ...) (italic ... ...) #(", in: " 0 6 ...)) 
> :suffix (#(" § 69d Rn. 10" 0 13 ...)) :parent (citation (:style nil :begin 
> 143 :post-blank 0 :end 218 :prefix ... :contents-begin 178 :contents-end 217 
> :parent ...) #7)))

Indeed. There was an issue with global affixes in oc-csl.el. I think
I fixed it. Unfortunately, your ECM still does not work, because the
process encounters an error later on:

--8<---cut here---start->8---
Debugger entered--Lisp error: (wrong-type-argument sequencep splice)
  citeproc-rt--cquote-pstns-1(splice 66)
  citeproc-rt--cquote-pstns-1((nil #("raubenheimer1996dongle p. 76  
\\emph{Dreier}, in: " 0 29 (:parent (citation (:style nil :begin 145 
:post-blank 0 :end 221 :prefix (#("raubenheimer1996dongle p. 76 " 0 29 ...)) 
:contents-begin 181 :contents-end 220 :parent (footnote-reference (:label nil 
:type inline :contents-begin 145 :contents-end 221 :post-blank 0 :parent ...) 
#6)) (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 0 
:prefix (... ... ...) :suffix (...) :parent #6 36 42 (:parent (italic 
(:begin 182 :end 190 :contents-begin 183 :contents-end 189 :post-blank 0 
:parent (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 
0 :prefix ... :suffix ... :parent ...))) #("Dreier" 0 6 (:parent #6 43 48 
(:parent (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 
0 :prefix (#(" " 0 1 ...) (italic ... ...) #(", in: " 0 6 ...)) :suffix (#(" § 
69d Rn. 10" 0 13 ...)) :parent (citation (:style nil :begin 145 :post-blank 0 
:end 221 :prefix ... :contents-begin 181 :contents-end 220 :parent ...) #6) 
(nil (nil (nil (((font-style . "italic")) ((... ...) (... ...) "/" (... 
...) ", ") splice splice) 1)
  citeproc-rt--cquote-pstns((nil #("raubenheimer1996dongle p. 76  
\\emph{Dreier}, in: " 0 29 (:parent (citation (:style nil :begin 145 
:post-blank 0 :end 221 :prefix (#("raubenheimer1996dongle p. 76 " 0 29 ...)) 
:contents-begin 181 :contents-end 220 :parent (footnote-reference (:label nil 
:type inline :contents-begin 145 :contents-end 221 :post-blank 0 :parent ...) 
#6)) (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 0 
:prefix (... ... ...) :suffix (...) :parent #6 36 42 (:parent (italic 
(:begin 182 :end 190 :contents-begin 183 :contents-end 189 :post-blank 0 
:parent (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 
0 :prefix ... :suffix ... :parent ...))) #("Dreier" 0 6 (:parent #6 43 48 
(:parent (citation-reference (:key "ds2018urhg" :begin 181 :end 220 :post-blank 
0 :prefix (#(" " 0 1 ...) (italic ... ...) #(", in: " 0 6 ...)) :suffix (#(" § 
69d Rn. 10" 0 13 ...)) :parent (citation (:style nil :begin 145 :post-blank 0 
:end 221 :prefix ... :contents-begin 181 :contents-end 220 :parent ...) #6) 
(nil (nil (nil (((font-style . "italic")) ((... ...) (... ...) "/" (... 
...) ", ") splice splice))
  citeproc-rt-punct-in-quote((nil #("raubenheimer1996dongle p. 76  
\\emph{Dreier}, in: " 0 29 (:parent (citation (:style nil :begin 145 
:post-blank 0 :end 221 :prefix 

Re: [BUG] Elisp error when exporting citation [9.5 (release_9.5-104-g2b1fc6 @ /home/quintus/.emacs.d/org-mode/lisp/)]

2021-10-30 Thread Marvin Gülker
Am Samstag, dem 30. Oktober 2021 schrieb Marvin Gülker:
> trying to export the following org-document results in an Elisp error:
>
> #+TITLE: Test
> #+AUTHOR: Testauthor
> #+LANGUAGE: de
> #+bibliography: /tmp/mwe/mwe.bib
> #+cite_export: csl /tmp/mwe/juristische-schulung.csl
> 
> Test [cite:raubenheimer1996dongle p. 76; /Dreier/, in: @ds2018urhg § 69d 
> Rn. 10]

It turns out my cite command lacks an @ before `raubenheimer1996dongle'.
With the @ it does not error. I leave it to the org maintainers to
decide whether the resulting error should be more human-readable or not.

However, if exported to LaTeX the italic on the name `Dreier' comes out
wrong:

{ Dreier}, in: Dreier/Schulze

The braces are included literally in the PDF, with the first brace being
italicised. Exporting to HTML applies the italic correctly.

  -quintus

-- 
Dipl.-Jur. M. Gülker | https://mg.guelker.eu | PGP: Siehe Webseite
Passau, Deutschland  | kont...@guelker.eu| O<