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/")
("elpa" . "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