Document header and metadata
General
The header contains information about the document (metadata). You specify these metadata by using predefined document attributes, that look like this:
:document-attribute: some-valueMost of the attributes take a value, while others are simple flags without a value, like:
:novalid:Some of the metadata will be visible in your document, such as :title:, while others are not visible but still affect how your document is generated.
Specifying IHO metadata
In an IHO document, you can specify metadata about:
- Contributors: working group participants, ballot group members, standardization board members
- Document info: document type, document stages (draft, published, etc.).
- Dates: draft dates, revision dates, publishing date, copyright year, etc.
- Identifiers: document numbers, ISBNs, STD numbers
At a minimum, you will need to specify:
- Title
- Metanorma document class as
iho - Document number
- Document type, and optionally subtype
- Document stage
- Committee
- Author or editor
Document-specific attributes and basic operations
These are the basic document attributes for IHO.
= Recommended Practice for Preparing an IHO Standards Draft <1>
:docnumber: 987.6 <2>
:docstage: draft <3>
:version: 3 <4><1> IHO document title. <2> IHO document number. If draft, omit the "P" prefix as it will be automatically added. <3> IHO document stage. <4> If :docstage: is draft, enter the draft number in :version:.
These are operational concerns that are useful for the author.
:mn-document-class:must be set in order to set the flavor to IHO.:mn-output-extensions:determines what output to be produced.
:mn-document-class: iho <1>
:mn-output-extensions: xml,html,doc,pdf,rxl <2>
:local-cache-only: <3><1> Metanorma flavor. For IHO, enter iho. <2> Metanorma output formats. For IHO, supported formats are xml, html, pdf, doc and rxl. <3> Metanorma option to store data cache in the current directory.
Document types and subtypes
IHO offers three types of documents that differ in the level of the obligation of requirements.
The type is to be set via these two attributes:
:doctype:- for the document type
:docsubtype:- for the document subtype, necessary for certain
:doctypes:
Document types, set using the :doctype: attribute, include:
standard- This document is a Standard (default). This document provides mandatory requirements.
recommended-practice- This document is a Recommended Practice. This document only provides recommendations, not requirements.
guide- This document is a Guide. This document only provide guidelines, not requirements.
For each of these types, modification documents can be issued by using :docsubtype: with the following values:
document- This document is the standardization deliverable itself. (default)
amendment- This document details amendments made to the base document.
corrigendum- This document details technical error corrections made to the base document.
errata- This document details publication error corrections made to the base document.
:doctype: standard <1><1> IHO document type.
:doctype: standard
:docsubtype: amendment <1><1> IHO document subtype.
Document stages and progress dates
IHO deliverables go through various stages of approval.
The document stage is set via the :docstage: attribute.
Typically, a document goes through these processes:
- Started off as a draft. where
:docstage: draftis set, and draft number set to 1:version: 1. The:copyright-year:should always be set to the current year. - Draft number increases, e.g.
:version: 2, as the working group progresses. - The draft gets balloted by the working group when ready.
- Once the balloting group approves the document, it will be represented to the SA standardization board for approval.
- After approval, the date of approval should be entered as metadata using
:issued-date:. - Once the document is ready to be published, set
:docstage: publishedand remove the:version:attribute.
inactive by :docstage: inactive.:docstage: draft <1>
:version: 3 <2>
:copyright-year: 2021 <3>
:issued-date: 2021-01-01 <4><1> Document stage. <2> Document draft number. <3> Copyright year of document. <4> Date of approval by the standards board.
Table of contents: figures and tables
In IHO documents, a list of figures and tables are often provided in the TOC.
The following Metanorma setting will enable these tables of contents.
:toc-figures: true <1>
:toc-tables: true <2><1> Enables the TOC for figures. <2> Enables the TOC for tables.
Other metadata
Every IHO document has a list of keywords (for searching purposes) and is also issued identifiers like the ISBN.
This information can be set as follows.
:keywords: data fusion, IHO 2830™, shared machine learning, SML, ... <1>
:isbn-pdf: 978-1-5044-7724-6 <2>
:isbn-print: 978-1-5044-7725-3 <3>
:stdid-pdf: STD24807 <4>
:stdid-print: STDPD24807 <5><1> List of keywords, comma-delimited. <2> ISBN-13 for the PDF version. <3> ISBN-13 for the printed version. <4> STDID for the PDF version. <5> STDID for the printed version.