From: Amery Gration <a.gration@surrey.ac.uk>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Cannot use Org Cite with Org Publish
Date: Wed, 29 Mar 2023 11:19:42 +0000 [thread overview]
Message-ID: <cca0cdb3-5720-a6b3-20e8-6f27dec4c755@surrey.ac.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 2127 bytes --]
I am having a problem using Org Cite with Org Publish (Emacs 28.1, Org 9.6.1). Publication of documents containing an Org Cite citation fails every time. Here's a minimum (not) working example. I have a file `publish.el` which contains the following vanilla Elisp.
```
(require 'package)
(setq package-user-dir (expand-file-name "./.packages"))
(setq package-archives
'(("melpa" . "https://melpa.org/packages/"<https://melpa.org/packages/>)
("elpa" . "https://elpa.gnu.org/packages/"<https://elpa.gnu.org/packages/>)))
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(require 'ox-publish)
(setq org-publish-project-alist
`(("website"
:base-directory "Content/"
:publishing-directory "Public/")))
(org-publish-all t)
```
The document I want to publish is `Content/index.org` and contains a citation.
```
#+bibliography: bibliography.bib
[cite/t:@edwards1992]
#+print_bibliography:
```
This refers to the bibliography file `Content/bibliography.bib`.
```
@book{edwards1992,
title = {Likelihood},
author = {Edwards, A. W. F.},
date = {1992},
edition = {Expanded edition},
publisher = {{Johns Hopkins University Press}},
location = {{Baltimore}},
}
```
When I try to publish this document, using the bash command `emacs -Q --script publish.el`, I get an error message and no output.
```
Resetting org-publish-cache
Publishing file /home/ag0082/Documents/Computing/Website/Mwe/Content/index.org using ‘org-html-publish-to-html’
Debugger entered--Lisp error: (error "Wrong value for ENTRY-OR-KEY: nil")
signal(error ("Wrong value for ENTRY-OR-KEY: nil"))
error("Wrong value for ENTRY-OR-KEY: %S" nil)
...
command-line-1(("-scriptload" "publish.el"))
command-line()
normal-top-level()
```
Strangely, I find I that I can export the file `Content/index.org ` (C-c C-e h o) with no problem.
Does anyone know what is going wrong?
Regards
Amery
Dr Amery Gration
Research Fellow in Astrophysics
Astrophysics Research Group
University of Surrey
GUILDFORD
GU2 7XH
[-- Attachment #2: Type: text/html, Size: 3002 bytes --]
next reply other threads:[~2023-03-29 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-29 11:19 Amery Gration [this message]
2023-03-29 14:48 ` Cannot use Org Cite with Org Publish Ihor Radchenko
[not found] ` <33b7fd5a-b7a1-6a73-101f-041d4f81044f@surrey.ac.uk>
2023-03-29 15:03 ` Ihor Radchenko
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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=cca0cdb3-5720-a6b3-20e8-6f27dec4c755@surrey.ac.uk \
--to=a.gration@surrey.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).