emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Bruce D'Arcus" <bdarcus@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: org-cite and pandoc
Date: Thu, 5 Aug 2021 10:13:02 -0400	[thread overview]
Message-ID: <CAF-FPGNGZSYWJ0Y_zE1oE27wrg3-M1oTeGBhZ5Bpj-HLPJacOA@mail.gmail.com> (raw)
In-Reply-To: <87czqsm1mx.fsf@ucl.ac.uk>

Yeah, ideally ox-pandoc would be updated to support org-cite.

I also, FYI, submitted an issue to pandoc awhile ago to update it's
org-cite support (it has support for an early draft).


On Thu, Aug 5, 2021 at 10:07 AM Eric S Fraga <e.fraga@ucl.ac.uk> wrote:
> 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	other threads:[~2021-08-05 14:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 14:01 org-cite and pandoc Eric S Fraga
2021-08-05 14:13 ` Bruce D'Arcus [this message]
2021-08-05 14:41   ` Eric S Fraga
2021-08-05 15:00     ` András Simonyi
2021-08-05 15:27       ` Eric S Fraga
2021-08-05 15:32       ` Eric S Fraga
2021-08-05 15:38       ` Eric S Fraga
2021-08-07 20:09         ` Nicolas Goaziou
2021-08-09 12:16           ` Eric S Fraga
2021-08-05 15:29     ` Bruce D'Arcus
2021-08-05 15:37       ` Eric S Fraga
2021-08-05 15:34     ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF-FPGNGZSYWJ0Y_zE1oE27wrg3-M1oTeGBhZ5Bpj-HLPJacOA@mail.gmail.com \
    --to=bdarcus@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).