emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

org-cite and pandoc


From: Eric S Fraga
Subject: org-cite and pandoc
Date: Thu, 05 Aug 2021 15:01:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Dear list,

I am needing to export a document, written in org using the new cite
syntax, to pandoc (native).  The export fails.  I realise that org-cite
is new and I don't expect the export to process any [cite:@key] lines
properly but it would be good to have the export at least generate a
pandoc file I can then work with.  Is this possible?

I recognise fully that ox-pandoc is in contrib so I don't expect
anything as such!  In the meantime, I'll simply remove all [cite:]
entries but I thought I'd raise this issue.

The error (with paths elided and lines truncated) I get is:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (wrong-type-argument stringp ("..."))
  split-string(("...") "\n")
  (cons (car it) (split-string val "\n"))
  (list (cons (car it) (split-string val "\n")))
  (progn (list (cons (car it) (split-string val "\n"))))
  (if val (progn (list (cons (car it) (split-string val "\n")))))
  (let ((val (plist-get info (cdr it)))) (if val (progn (list (cons (car it) 
(split-string val "\n"))))))
  (closure ((info :export-options nil :back-end ...
  mapcar((closure ((info :export-options nil :back-end #s(org-export-backend 
:name pandoc
  (apply 'append (mapcar #'(lambda (it) (ignore it) (let ((val (plist-get info 
...)))
  (org-pandoc-put-options (apply 'append (mapcar #'(lambda (it) (ignore it) 
  org-pandoc-template(#("#+cite_export: natbi..." [...]))
  org-export-as(pandoc nil nil nil (:output-file "paper.tmpLAj6YU.org"))
  org-export-to-file(pandoc "paper.tmpLAj6YU.org" 
  org-pandoc-export(native nil nil nil nil nil 0)
  org-pandoc-export-to-native-and-open(nil nil nil nil)
  org-export-dispatch(nil)
  funcall-interactively(org-export-dispatch nil)
  command-execute(org-export-dispatch)
--8<---------------cut here---------------end--------------->8---


Thank you,
eric

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-607-g185706
: Latest paper written in org: https://arxiv.org/abs/2106.05096



reply via email to

[Prev in Thread] Current Thread [Next in Thread]