EPUB metadata may be specified using the --epub-metadata
option, but if the source document is Markdown, it is better to use a YAML
metadata block. Here is an example:
---
title:
- type: main
text: My Book
- type: subtitle
text: An investigation of metadata
creator:
- role: author
text: John Smith
- role: editor
text: Sarah Jones
identifier:
- scheme: DOI
text: doi:10.234234.234/33
publisher: My Press
rights: © 2007 John Smith, CC BY-NC
ibooks:
version: 1.3.4
...
The following fields are recognized:
identifier
text
and
scheme
. Valid values for scheme
are
ISBN-10
, GTIN-13
, UPC
,
ISMN-10
, DOI
, LCCN
,
GTIN-14
, ISBN-13
,
Legal deposit number
, URN
, OCLC
,
ISMN-13
, ISBN-A
, JP
,
OLCC
.
title
file-as
and
type
, or a list of such objects. Valid values for
type
are main
, subtitle
,
short
, collection
, edition
,
extended
.
creator
role
,
file-as
, and text
, or a list of such objects.
Valid values for role
are MARC relators,
but pandoc will attempt to translate the human-readable versions (like
“author” and “editor”) to the appropriate marc relators.
contributor
creator
.
date
YYYY-MM-DD
format. (Only the year is
necessary.) Pandoc will attempt to convert other common date formats.
lang
(or legacy: language
)subject
text
,
authority
, and term
, or a list of such
objects. Valid values for authority
are either a reserved
authority value (currently AAT
, BIC
,
BISAC
, CLC
, DDC
,
CLIL
, EuroVoc
, MEDTOP
,
LCSH
, NDC
, Thema
,
UDC
, and WGS
) or an absolute IRI identifying a
custom scheme. Valid values for term
are defined by the
scheme.
description
type
format
relation
coverage
rights
belongs-to-collection
group-position
group-position
field indicates the numeric position in
which the EPUB Publication belongs relative to other works belonging to
the same belongs-to-collection
field.
cover-image
css
(or legacy: stylesheet
)page-progression-direction
ltr
or rtl
. Specifies the
page-progression-direction
attribute for the spine
element.
ibooks
iBooks-specific metadata, with the following fields:
version
: (string)specified-fonts
: true
|false
(default false
)ipad-orientation-lock
:
portrait-only
|landscape-only
iphone-orientation-lock
:
portrait-only
|landscape-only
binding
: true
|false
(default
true
)scroll-axis
:
vertical
|horizontal
|default