There are two ways to specify metadata for an EPUB. The first is to
use the --epub-metadata option, which takes as its argument
an XML file with Dublin
Core elements.
The second way is to use YAML, either in a YAML
metadata block in a Markdown document, or in a separate YAML file
specified with --metadata-file. Here is an example of a
YAML metadata block with EPUB metadata:
---
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: 'urn:doi:10.234234.234/33'
- scheme: ISBN-13
text: 'urn:isbn:9780000000000'
publisher: My Press
rights: © 2007 John Smith, CC BY-NC
ibooks:
version: 1.3.4
...
The following fields are recognized:
identifiertext and
scheme (optional), or a list of such objects. Valid values
for scheme are ISBN-10, GTIN-13,
UPC, ISMN-10, DOI,
LCCN, GTIN-14, ISBN-13,
Legal deposit number, URN,
OCLC number, Co-publisher’s ISBN-13,
ISMN-13, ISBN-A, JP e-code,
OLCC number, JP Magazine ID,
UPC-12+5, BNF Control number,
ISSN-13, ARK,
Digital file internal version number. In the
text field, it is advisable to specify a URN as in the
examples above. Note that quotes are needed around a YAML field
containing a colon.
titletext,
file-as (optional) and type (optional), or a
list of such objects. Valid values for type are
main, subtitle, short,
collection, edition, extended.
creatortext,
role (optional), and file-as (optional), 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.
contributorcreator.
dateYYYY-MM-DD format. (Only the year is
necessary.) Pandoc will attempt to convert other common date formats.
lang (or legacy: language)subjecttext,
authority (optional), and term (optional), 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.
descriptiontypeformatrelationcoveragerightsbelongs-to-collectiongroup-positiongroup-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-imagecss (or legacy: stylesheet)page-progression-directionltr or rtl. Specifies the
page-progression-direction attribute for the spine
element.
accessModes["textual"].
accessModeSufficient["textual"].
accessibilityHazards["none"].
accessibilityFeatures- "alternativeText"
- "readingOrder"
- "structuralNavigation"
- "tableOfContents"
accessibilitySummaryibooksversion: (string)specified-fonts: true|false
(default false)ipad-orientation-lock:
portrait-only|landscape-onlyiphone-orientation-lock:
portrait-only|landscape-onlybinding: true|false (default
true)scroll-axis:
vertical|horizontal|default