Skip to content
Metanorma
On this page

Document attributes (AsciiRFC v2)

Note

The document attributes listed below are unique to Metanorma's processing of RFC XML v2 IETF documents. The document attributes particular to RFC XML v3, and used in the current version of this gem, are given separately.

For common document attributes, see Document attributes reference in general Metanorma author's documentation. That page describes attributes that apply to all Metanorma flavors, not just IETF.

For an introduction to Metanorma AsciiDoc document attributes and how Metanorma uses them, see the corresponding topic.

See /author/ietf/ref/global-options/ for header rules, author-suffixing conventions, and xml2rfc processing instruction guidance.

How to read this page. Each entry is annotated with chips: applicability (All flavors orIETF (RFC XML v2) only),Required, the value type,Default: …,Repeatable, and version chips such ascomponent ≥ v1.2.3(linked to release notes; amber/red marks deprecation). Entries inherited from Metanorma (all flavors) are collapsed per category.

Document type

:doctype:

IETF (RFC XML v2) onlyenumDefault: internet-draft

Specifies document status. Choices: Defaults to internet-draft.

internet-draft

sets the document as an Internet-Draft (default value):

  • rfc@docName will be set to the :name: attribute
rfc

sets the document as an RFC:

  • rfc@number will be set to the :name: attribute

Global options

:no-rfc-bold-bcp14:

IETF (RFC XML v2) onlyenumDefault: true

Optional. Default value true. Allowed values: true, false. Override default assumption that boldface uppercase BCP14 word is to be rendered with bcp14 tag.

true
false

:smart-quotes:

IETF (RFC XML v2) onlyenumDefault: true

Optional. Default value true. Allowed values: true, false. Permit smart quotes, when they are specified explicitly in AsciiDoc (as pass:[0], pass:['...']). When disabled, smart quotes are rendered as straight quotes, and Asciidoc's default conversion of straight apostrophes to smart is undone.

true
false

:inline-definition-lists:

IETF (RFC XML v2) onlyenumDefault: false

Optional. Default value false. Allowed values: true, false. Only applies to v2. By default, <vspace blankLines="1"> is inserted after the definition in a v2 definition list, to satisfy the requirement from idnits validation that definition terms be separated by a carriage return from the definition. That is, by default inline definition lists are rendered as paragraphing definition lists. If the option is on, the additional vspace element is not added, and inline definition lists are left as is.

true
false

:flush-caches:

IETF (RFC XML v2) onlyenumDefault: false

Optional. Default value false. Allowed values: true, false. Delete and reload the caches of references to be included externally, and of workgroups, during processing of this document. The caches are stored in ~/.metanorma-ietf-biblio-cache.json and ~/.metanorma-ietf-workgroup-cache.json.

true
false

:biblio-dir:

IETF (RFC XML v2) onlyboolean

Optional. Name of directory. If present, gives the name of a directory from which RFC XML references are to be read into the document, rather than assuming the references are already present in the document.

:normative:

IETF (RFC XML v2) onlycomma-list

Optional. Comma-delimited list of reference anchors. Used in conjunction with :biblio-dir:, which uses a single directory for all references: this attribute lists those references which are to be considered normative, and listed under the “Normative References” heading.

Document attributes

= Document Title

IETF (RFC XML v2) onlyRequiredstring

Mandatory. Title of document. RFC XML: rfc/front/title

:abbrev:

IETF (RFC XML v2) onlyRequiredstring

Mandatory. Abbreviation of document title. Usually the document name without the keyword draft-. RFC XML: rfc/front/title@abbrev

:name:

IETF (RFC XML v2) onlyRequiredstring

Mandatory. Sets the document's name. This should be a number if the document is an RFC, and a name (in the form of draft-ietf-somewg-someprotocol-07) if it is an Internet-Draft. When doctype is set to:

  • internet-draft: the value should be in the form draft-ietf-somewg-someprotocol-07.
    • RFC XML: rfc@docName
  • rfc: the value should be a number like 7991 as described

in here RFC XML: rfc@number NOTE: Usage here differs from usage in AsciiRFC v3.

:status:

IETF (RFC XML v2) onlyenum

Set the current status of this document. Synonym: :docstage:. The following values are allowed: RFC XML rfc@category NOTE: Usage here differs from usage in AsciiRFC v3.

standard

(mapped in v2 to: std)

informational

(mapped in v2 to: info)

experimental

(mapped in v2 to: exp)

bcp
historic

:intended-series:

IETF (RFC XML v2) onlyRequiredenum

Mandatory. Set the intended series of this document. For Internet Drafts, this indicates the intended series once the document is published as an RFC. For RFCs, this indicates the current status of the document. The following values are allowed: RFC XML front/@category (exp and historic only supported for Internet Drafts; document number not used) NOTE: Usage here differs from usage in AsciiRFC v3.

standard

(I.-D. only) (mapped in v2 to: std)

informational

(mapped in v2 to: info)

experimental

(mapped in v2 to: exp)

bcp

(I.-D. only)

bcp nnnn

(RFC only, where nnnn is the document number)

fyi

(I.-D. only)

fyi nnnn

(RFC only, where nnnn is the document number)

full-standard

(I.-D. only) (mapped in v2 to: std)

full-standard nnnn

(RFC only, where nnnn is the document number) (mapped in v2 to: std)

historic

:series-no:

IETF (RFC XML v2) onlystring

Optional. The document series is defined by the category attribute; seriesNo is only applicable to the values info ("FYI" series), std ("STD" series), and bcp ("BCP" series). RFC XML v3 counterpart: rfc@seriesNo NOTE: This attribute is only available in AsciiRFC v3.

:submission-type:

IETF (RFC XML v2) onlyenumDefault: IETF

Set document submission type for this document. The following values are allowed: RFC XML: rfc@submissionType NOTE: Usage here differs from usage in AsciiRFC v3.

Optional. Document stream of document described in RFC7841. Allowed values: IETF (default), independent, IAB, and IRTF. RFC XML: rfc@submissionType

IETF

(default)

independent
IAB
IRTF

:ipr:

IETF (RFC XML v2) onlyRequiredstringDefault: trust200902

Mandatory. IP status of document. See here. Defaults to trust200902. RFC XML: rfc@ipr

:ipr-extract:

IETF (RFC XML v2) onlystring

Optional. Identifies a section that can be extracted from text. See here. RFC XML: rfc@iprExtract

:obsoletes:

IETF (RFC XML v2) onlycomma-list

Optional. A comma-separated list of RFC numbers or Internet-Draft names that this document obsoletes. Delimited by comma + space. RFC XML: rfc@obsoletes

:updates:

IETF (RFC XML v2) onlycomma-list

Optional. A comma-separated list of RFC numbers or Internet-Draft names that this document updates. Delimited by comma + space. RFC XML: rfc@updates

:revdate:

IETF (RFC XML v2) onlydate

Optional. Latest revision date of document. Default value is current time. Accepts ISO 8601 date. Also accepts YYYY year, and YYYY[-]MM year/month. For consistency with AsciiDoc, :revdate: is given as an ISO 8601 date; the converter breaks it down into day, month name and year RFC XML: front/date@day, front/date@month, front/date@year

:area:

IETF (RFC XML v2) onlycomma-list

Optional. Comma delimited text on which IETF area this document relates to. Value should "be either the full name or the abbreviation of one of the IETF areas as listed on http://www.ietf.org/iesg/area.html". See here. RFC XML: front/area

:workgroup:

IETF (RFC XML v2) onlycomma-list

Optional. Comma delimited text on which IETF or IRTF workgroup or research group this document originates from. See here. RFC XML: front/workgroup

:keyword:

IETF (RFC XML v2) onlycomma-list

Optional. Comma delimited text for singular keywords used for RFC index and metadata. RFC XML: front/keyword

:xml-lang:

IETF (RFC XML v2) onlystringDefault: en

Optional. Set the document language. By default this is en. RFC XML: rfc@xml:lang

:consensus:

IETF (RFC XML v2) onlyenum

Set document consensus for this document. The following values are allowed: RFC XML: rfc@consensus

false

(mapped in v2 to: no)

true

(mapped in v2 to: yes)

Author attributes

Name and affiliation

:fullname{_i}:

IETF (RFC XML v2) onlystringRepeatable

Optional. Author's full name. Can set here instead of document header's “Author” line. RFC XML: front/author@fullname

:forename_initials{_i}:

IETF (RFC XML v2) onlystringRepeatable

Optional. Author's initials excluding surname. Defaults to dynamically calculated initials. Distinct from the AsciiDoc :initials: attribute, which includes surname. RFC XML: front/author@initials

:lastname{_i}:

IETF (RFC XML v2) onlystringRepeatable

Optional. Author's last name. Can set here instead of document header's “Author” line. RFC XML: front/author@surname

:role{_i}:

IETF (RFC XML v2) onlystringDefault: authorRepeatable

Optional. Defaults to author. Possible values: author, editor. If author is supplied, the attribute is not populated. RFC XML: front/author@role

:organization{_i}:

IETF (RFC XML v2) onlystringDefault: ""Repeatable

Optional. Defaults to "". Author's organization affiliation. RFC XML: front/author/organization

:organization_abbrev{_i}:

IETF (RFC XML v2) onlystringDefault: ""Repeatable

Optional. Defaults to "". Author's organization's abbreviation shown. RFC XML: front/author/organization@abbrev

Address

:email{_i}:

IETF (RFC XML v2) onlystringRepeatable

Email of author. RFC XML: front/author/address/email

:fax{_i}:

IETF (RFC XML v2) onlystringRepeatableDeprecated

Fax number of author. Deprecated in v3. RFC XML: front/author/address/facsimile

:uri{_i}:

IETF (RFC XML v2) onlystringRepeatable

URI of author. RFC XML: front/author/address/uri

:phone{_i}:

IETF (RFC XML v2) onlystringRepeatable

Author's phone number. Scheme-specific part of a tel URI (does not include the prefix tel:). See RFC3966 2. RFC XML: front/author/address/phone

:street{_i}:

IETF (RFC XML v2) onlystringRepeatable

Address of author, non-city/region/code/country portion. Multiple lines concatenated with "\ " will be split into separate <street> elements. RFC XML: front/author/address/postal/street

:city{_i}:

IETF (RFC XML v2) onlystringRepeatable

City portion of author's address RFC XML: front/author/address/postal/city

:region{_i}:

IETF (RFC XML v2) onlystringRepeatable

Region, state or province portion of author's address. For US/CA the 2-letter state code. RFC XML: front/author/address/postal/region

:country{_i}:

IETF (RFC XML v2) onlystringRepeatable

Country of author's address RFC XML: front/author/address/postal/country

:code{_i}:

IETF (RFC XML v2) onlystringRepeatable

Postal code of author's address RFC XML: front/author/address/postal/code

Attributes for `xml2rfc` processing instructions

Processing instructions for `xml2rfc`

:artworkdelimiter:

IETF (RFC XML v2) onlystring

when producing txt or nroff files, use this string to delimit artwork

:artworklines:

IETF (RFC XML v2) onlystring

when producing txt or nroff files, add this many blank lines around artwork

:authorship:

IETF (RFC XML v2) onlystring

render author information

:autobreaks:

IETF (RFC XML v2) onlystring

automatically force page breaks to avoid widows and orphans (not perfect)

:background:

IETF (RFC XML v2) onlystring

when producing a HTML file, use this image

:colonspace:

IETF (RFC XML v2) onlystring

put two spaces instead of one after each colon (“:”) in txt or nroff files

:comments:

IETF (RFC XML v2) onlystring

render <cref> information

:compact:

IETF (RFC XML v2) onlystring

when producing a txt/nroff file, try to conserve vertical whitespace (the default value is the current value of the rfcedstyle PI)

:docmapping:

IETF (RFC XML v2) onlystring

use hierarchical tags (e.g., <h1>, <h2>, etc.) for (sub)section titles

:editing:

IETF (RFC XML v2) onlystring

insert editing marks for ease of discussing draft versions

:emoticonic:

IETF (RFC XML v2) onlystring

automatically replaces input sequences such as |*text| by, e.g., <strong>text</strong> in html output

:footer:

IETF (RFC XML v2) onlystring

override the center footer string

:header:

IETF (RFC XML v2) onlystring

override the leftmost header string

:inline:

IETF (RFC XML v2) onlystring

if comments is "yes", then render comments inline; otherwise render them in an "Editorial Comments" section

:iprnotified:

IETF (RFC XML v2) onlystring

include boilerplate from Section 10.4(d) of http://tools.ietf.org/html/rfc2026

:linkmailto:

IETF (RFC XML v2) onlystring

generate mailto: URL, as appropriate

:linefile:

IETF (RFC XML v2) onlystring

a string like "35:file.xml" or just "35" (file name then defaults to the containing file's real name or to the latest linefile specification that changed it) that will be used to override xml2rfc's reckoning of the current input position (right after this PI) for warning and error reporting purposes (line numbers are 1-based)

:notedraftinprogress:

IETF (RFC XML v2) onlystring

generates "(work in progress)", as appropriate

:private:

IETF (RFC XML v2) onlystring

produce a private memo rather than an RFC or Internet-Draft

:refparent:

IETF (RFC XML v2) onlystring

title of the top-level section containing all references

:rfcedstyle:

IETF (RFC XML v2) onlystring

attempt to closely follow finer details from the latest observable RFC-Editor style so as to minimize the probability of being sent back corrections after submission. This directive is a kludge whose exact behavior is likely to change on a regular basis to match the current flavor of the month; presently, it will:

  • capitalize the adjective “This” in automatically generated headings,
  • use the variant “acknowledgement” spelling instead of Merriam Webster's main “acknowledgment” dictionary entry,
  • use the “eMail” spelling instead of Knuth's more modern “email” spelling,
  • only put one blank line instead of two before top sections,
  • omit “Intellectual Property and Copyright Statements” and “Author's Address” from the table of content, and
  • not limit the indentation to a maximum tag length in <references> sections.

:rfcprocack:

IETF (RFC XML v2) onlystring

if there already is an automatically generated Acknowledg(e)ment section, pluralize its title and add a short sentence acknowledging that xml2rfc was used in the document's production to process an input XML source file in RFC-2629 format

:slides:

IETF (RFC XML v2) onlystring

when producing a html file, produce multiple files for a slide show

:sort-refs:

IETF (RFC XML v2) onlystring

(sortrefs) sort references

:strict:

IETF (RFC XML v2) onlystring

try to enforce the ID-nits conventions and DTD validity

:subcompact:

IETF (RFC XML v2) onlystring

if compact is "yes", then you can make things a little less compact by setting this to "no" (the default value is the current value of the compact PI)

:sym-refs:

IETF (RFC XML v2) onlystring

(symrefs) use anchors rather than numbers for references

:text-list-symbols:

IETF (RFC XML v2) onlystring

modify the list of symbols used (when generated text) for list type="symbols". For example, specifying "abcde" will cause "a" to be used for 1st level, "b" for the 2nd level, etc, cycling back to the first character "a" at the 6th level. Specifying "o*" will cause the characters "o" and "*" to be alternated for each successive level.

:toc-include:

IETF (RFC XML v2) onlystring

(toc) generate a table-of-contents

:tocappendix:

IETF (RFC XML v2) onlystring

control whether the word "Appendix" appears in the table-of-content

:toc-depth:

IETF (RFC XML v2) onlystring

if :toc-include: is "yes", then this determines the depth of the table-of-contents

:tocindent:

IETF (RFC XML v2) onlystring

if :toc-include: is "yes", then setting this to "yes" will indent subsections in the table-of-contents

:tocnarrow:

IETF (RFC XML v2) onlystring

affects horizontal spacing in the table-of-content

:tocompact:

IETF (RFC XML v2) onlystring

if :toc-include: is "yes", then setting this to "no" will make it a little less compact

:topblock:

IETF (RFC XML v2) onlystring

put the famous header block on the first page

:useobject:

IETF (RFC XML v2) onlystring

when producing a HTML file, use the <object> HTML element with inner replacement content instead of the <img> HTML element, when a source XML element includes an src attribute

Build and configuration

Inherited from Metanorma (all flavors) (8 attributes)

:document-class:

All flavorsstring

The flavor of Metanorma used to compile the document; e.g. iso, nist, ogc. Needs to be a supported version of the document.

Also accepted: :flavor:

Legacy names: :mn-document-class:, :mn-flavor:

:flavor:

All flavors

:output-extensions:

All flavorscomma-list

The output formats to generate for the document, comma-delimited; e.g. xml,presentation,html,doc,pdf. The formats supported vary for each flavor, but all flavors support xml (Semantic XML), presentation (Presentation XML), and one of html or pdf.

Legacy names: :mn-output-extensions:

:imagesdir:

All flavorsstring

(Optional) Directory in which images are located: all local image file locations are prefixed with this directory. Accepts a directory path.

:nodoc:

All flavorsstring

Instructs Metanorma to not generate Word and HTML output, means only XML output will be generated.

:novalid:

All flavorsstring

Suppress document validation.

:index-terms:

Terms (and symbols) are indexed automatically in postprocessing. See automatic terms indexing.

:relaton-output-file:

All flavorsstring

Output the bibliographic record describing the document as a Relaton XML file (with the suffix .rxl).

Legacy names: :mn-relaton-output-file:

Bibliography

Inherited from Metanorma (all flavors) (10 attributes)

Reference lookup

:no-isobib:

All flavorsboolean

If set, do not use the relaton or iev gem functionality to look up ISO and IEV references online, nor the cache of relaton and iev searches.

Publication date cutoff

:bibliography-cutoff-date:

Override the publication date used for the bibliographic cutoff, instead of deriving it from the document's own date attributes. Accepts a date (YYYY, YYYY-MM, or YYYY-MM-DD); the value none (or false) disables the cutoff entirely, so references resolve to their latest editions and current status.

Caching

:no-isobib-cache:

All flavorsboolean

If set, use the relaton and iev gem functionality to look up ISO and IEV references online, but do not use the cache of relaton and iev searches.

:local-cache:

All flavorsstring

Use the local Relaton and iev search caches to override the global relaton and iev search caches. If a directory name is given for the attribute, that name overrides relaton as the cache name.

:local-cache-only:

All flavorsstring

Use the local Relaton and iev search caches to the exclusion of the global relaton and iev search caches. If a directory name is given for the attribute, that name overrides relaton as the cache name.

:relaton-data-source:

Allows specification of an external bibliographic file to be imported. The value of the field is the file name. If the format also needs to be specified, this is done as file=PATH/TO/FILE,format=FORMAT. Valid formats are follows.

bibtex

The BibTeX format. Currently, only this is supported as a format, all other formats will raise an error.

:relaton-data-source-{id}:

Allows specification of multiple external bibliographic files to be imported. The different bibliographic sources are differentiated through the value of the {id} identifier.

Example
:relaton-data-source-bib1: PATH/TO/FIRST/FILE
:relaton-data-source-bib2: PATH/TO/SECOND/FILE

Reference sort order

:sort-biblio:

All flavorsbooleanDefault: truemetanorma-standoc ≥ 3.3.0

If set to false, do not sort the bibliography; references are left in document order. Sorting is on by default.

Sort bibliographies in the document according to criteria set by the flavor Default: true. .

:sort-biblio-{abbrev}:

Override the publisher sort ranking for the bibliography, one attribute per publisher. The attribute-name suffix {abbrev} is the publisher's abbreviation; the value is the sort rank (lower sorts earlier) followed by the publisher's full name, separated by a colon ({rank}: {name}). A reference is matched to a publisher by its abbreviation (case-insensitive) or its name; matched publishers sort in the given rank order, followed by other standards, then other references. This is the mechanism a Metanorma taste uses to set a house bibliographic sort order: the taste configuration compiles to these document attributes. Because they are ordinary document attributes, an author can equally set them directly in a single document to override the sort order for that document alone.

Sort OIML references ahead of ISO and IEC:
:sort-biblio-OIML: 1: International Organization of Legal Metrology
:sort-biblio-ISO: 2: International Organization for Standardization
:sort-biblio-IEC: 3: International Electrotechnical Commission

Reference rendering

:relaton-render-config:

Override the default configuration of Relaton Render selectively, with attributes from the named configuration YAML file. See Relaton Render specification for description of the configuration file format. We recommend you inspect the configuration compiled into the flavor gem (lib/relaton/render/config.yml) and include modifications of that in the override config file.

Math and scientific formatting

Inherited from Metanorma (all flavors) (6 attributes)

:keep-asciimath:

All flavorsstring

Do not translate Asciimath in the document to MathML.

Legacy names: :mn-keep-asciimath:

:suppress-asciimath-dup:

By default, MathML in the Metanorma XML has equivalent AsciiMath added to it in a comment. This AsciiMath can be used as an accessibility alternative to the MathML expression. The generation of this AsciiMath can be suppressed.

:stem:

All flavorsstringDefault: asciimath

(Defaults to asciimath) The default language for stem:[...] and [stem] blocks expressions in the document. (AsciiMath, MathML, or LaTeX). For example, if you want the stem expressions in your document to be interpreted as LaTeX by default, use :stem: latexmath.

Read more about mathematical expressions.

:number-presentation:

Sets the formatting options for the number:[] command in the document. Please refer to the dedicated section at numbers for usage.

Using the :number-presentation: attribute
:number-presentation: notation=e,exponent_sign=plus,precision=4

number:341[]

:number-presentation-profile-{NAME}:

Sets the formatting options for the number:[] command in the document as profile {NAME}. Please refer to the dedicated section at numbers for usage.

Using the :number-presentation-profile-{NAME}: attribute
:number-presentation-profile-3: notation=scientific,exponent_sign=nil,decimal=","
..

number:342[profile=3]

:number-presentation-formula:

Sets the formatting options for numbers contained in formulas. Please refer to the dedicated section at numbers in formulas.

Languages and localization

Inherited from Metanorma (all flavors) (6 attributes)

:i18nyaml:

All flavorsstring

Name of YAML language template file. Use if you wish to output an standard in a language that's not supported out of the box. For more on how to customize localization, see Localization.

:language:

All flavorsstringDefault: en

Two-letter code (ISO 639-1) of the language the document is written in. Defaults to en.

:script:

All flavorsstringDefault: Latn

The script of the document (ISO 15924). Defaults to Latn. Must be supplied as Hans for Simplified Chinese.

:locale:

The locale of the document (currently expected to be a two-letter country code, ISO 3166-1 alpha-2).

:boilerplate-authority:

File containing predefined text of document, in Metanorma XML. The document predefined text needs to follow the structure described in Predefined text; compare examples of Metanorma predefined text files such as that in ITU .

:localize-number:

Template for how to present localized numbers. The localization template string is in the following form: :localize-number: +++#,##0.### ###+++ TIP: See Number localization for how numbers are localized in Metanorma.

Document information

Inherited from Metanorma (all flavors) (29 attributes)

:publisher{_i}:

The standards agency publishing the standard. NOTE: Prior to 1.7.0, this field accepted comma-delimited values. NOTE: Prior to 2.7.0, this field accepted semicolon-delimited values. These are processed via CSV, recognising quote marks. This functionality is maintained in later versions, but other attributes of organisations are ignored (publisher_logo, pub-address, etc.)

:publisher_abbr{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v3.0.7

The abbreviation of the publisher; if not provided, and the standards organisation is the home organisation of the standard, the SDO's abbreviation will already be available to Metanorma, and will be supplied.

:publisher_logo{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.7.0

The path to the logo of the publisher, specified as an image file; the numbers in the attribute align to the :publisher{_i}: attributes.

:sponsor{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.7.0

An organization sponsoring the publication of this document. NOTE: If a person needs to be nominated as the responsible party for a sponsoring organization, that person should be treated as a personal contributor (:surname{_i}:, :affiliation{_i}:, etc.), with a :role: attribute of enabler.

:copyright-holder:

The copyright holder, if distinct from the publisher; can be multiple (semicolon-delimited: processed via CSV, recognising quote marks).. NOTE: Prior to 1.7.0, this field accepted comma-delimited values.

:docnumber:

All flavorsstring

The numeric component of the document identifier. The full identifier is formed by prefixing and suffixing this element with other strings derived from metadata.

:docidentifier:

The :docidentifier: attribute is an alternative to docnumber and other attributes (such as doctype and docstage). WARNING: :docidentifier: should be avoided unless absolutely necessary due to the limitations its usage brings. Metanorma maintains the pubid-* set of software libraries to generate document identifiers for different Metanorma flavours, and those libraries should be updated to deal with the novel use case. The value here is the "full document identifier" and overrides the composition of the automatically-constructed document identifier. If :docidentifier: is supplied, :docnumber: and the other related attributes are ignored when composing the identifier for the document. The :docidentifier: attribute is used for document identifiers that do not follow normal SDO conventions, and for which the identifier cannot be constructed out of :docnumber: in the normal way.

Note

:docidentifier: is a preformatted value and is opaque to Metanorma. This means that Metanorma cannot make any inference about the internal structure of the identifier. For example, Metanorma cannot generate undated or language-specific variants of the identifier, or mark up the part number separately from the document number, as is required by ISO.

However, the :docidentifier: content can be a Liquid template.

Refer to Default metadata values for the typical values that can be used in metadata-driven Liquid templates under Metanorma.

:docidentifier-additional:

All flavorscomma-listmetanorma-standoc ≥ v2.8.2

This attribute provides additional primary identifiers for the document, to be used alongside the native identifier generated from docnumber or docidentifier. It is intended for copublished standards with multiple primary identifiers. The list of identifiers is comma-delimited, and is specified as TYPE:VALUE; e.g. :docidentifier-additional: IDF:IDF 21, RFC:RFC 97.

:edition:

All flavorsstring

The document edition.

:version:

The document version. The distinction between :edition: and :version: is specific to the SDO, but the overall trend is that :edition: corresponds to major versions, and are what corrigenda and amendments apply to, while :version: corresponds to minor versions and patches, including pre-publication versions (drafts). However, only :version: is used if the SDO uses semantic versioning throughout. Before :version: was added to Metanorma, :draft: fulfilled that function instead.

:library-ics:

All flavorscomma-list

The ICS (International Categorization for Standards) number for the standard. There may be more than one ICS for a document; if so, they should be comma-delimited. (The ICS identifier is added to the document metadata, but may not be visible in the resulting document, depending on Metanorma flavor.)

:isbn:

The ISBN-13 number of the document. This value is optional.

:isbn10:

The ISBN-10 number of the document This value is optional.

:title:

All flavorsstring

The title of the document. If not supplied, the built-in AsciiDoc title (first line of document header) is used instead.

:title-{langcode}:

All flavorsstring

The title of the document in the language langcode. langcode is a ISO 639-1 code.

Example

:title-en:, :title-fr:

:title-{type}-{langcode}:

The title of the document in the language langcode, and of type type.

The title of the document in the language langcode, and of type type. Note: this was previously supported only in individual flavours.

Example

:title-main-en:, :title-intro-fr: + NOTE: This was previously supported only in individual flavours that required title parts, such as ISO that supports main, intro, part, complementary, addendum. It is now supported generically in Metanorma.

:doctype-abbrev:

The document type abbreviation; e.g. TN for "technical note". Can be used in document metadata, e.g. cover page. .

:docsubtype:

The document subtype; by default, used to provide an ad hoc, user defined document class, unless provided for explicitly in the flavour, as in OGC

:docstage:

All flavors

Alias of :status:

:docstage-abbrev:

The document stage abbreviation; e.g. D for "draft". Can be used in document metadata, e.g. cover page. .

:docstage-published:

Whether the current document stage should be considered as published. Boolean. If not provided, and if there is no setting specific to the flavor, the default is that only the stage "published" is considered published.

:docstage-valid:

All flavorscomma-listmetanorma-standoc ≥ v3.4.9

Comma-delimited list of the statuses recognised as valid for this document, superseding the flavour's own repertoire in status validation. Normally set by a Metanorma taste rather than by authors: a taste that defines its own stages advertises through this attribute the base stages it maps them to, so that the underlying flavour does not report them as unrecognised.

:docsubstage:

All flavorsstring

The substage code for the document status, where applicable.

:iteration:

All flavorsstring

The iteration of a stage, in case there have been multiple drafts (e.g. 2 on a CD: this is the second iteration through the CD stage).

:keywords:

All flavorscomma-list

Comma-delimited list of keywords associated with the document.

:classification:

All flavorscomma-listmetanorma-standoc ≥ v1.9.1

Comma-delimited list of classification tokens, expressed as type:value pairs; if no prefix is given to a value, "default" is supplied as the type. There can only be one value per type in a token; if there are multiple classification values of the same type, repeat the type in a new token; e.g. :classification: Dewey:563.5.081, Dewey:537.71.

:draft:

If present, reviewer notes will be rendered (otherwise those are suppressed). Is also ued as a legacy equivalent of :version:.

:document-scheme:

Document content arrangement that Metanorma will enforce for this document. Accepted values are flavour-specific. Depending on the document scheme, Metanorma may insert clauses with predetermined text and orders clauses in accordance with the style prescribed by the SDO. If those styles are updated, this attribute indicates to Metanorma which iteration of the prescription to enforce. NOTE: As of this writing, implemented in the IEEE, BSI, ITU and ISO flavours.

Generic metadata

Inherited from Metanorma (all flavors) (11 attributes)

:semantic-metadata-{name}:

All flavorscomma-list

Comma-delimited list of values, relating to name as semantic metadata about the document. Stored in the document under //metanorma-extension/semantic-metadata/{name}, with repeating tags for each value.

:presentation-metadata-{name}:

All flavorscomma-list

Comma-delimited list of values, relating to name as presentation metadata about the document. Stored in the document under //metanorma-extension/presentation-metadata/{name}, with repeating tags for each value.

The following instances of generic metadata are applicable to all flavors of Metanorma; other instances are specific to flavors, and are documented there:

:semantic-metadata-headless:

All flavorsstring

This document is to be compiled without adding initial document boilerplate to it. This is used for compiling Metanorma AsciiDoc boilerplate documents themselves.

:presentation-metadata-doctype-alias:

All flavorsstringisodoc ≥ v3.2.0

Specify how the document type is to be rendered. This overrides the language-specific internationalization of the supplied document type, and is used in Metanorma tastes, to override the base flavor document type rendering.

:presentation-metadata-custom-charset-font:

All flavorsstringisodoc ≥ v2.7.0

Specify a custom character set for Unicode "Private Use Area" (PUA) character codepoints

presentation-metadata-publisher-{doc|html|pdf}-{width|height}[{_i}]

All flavorsstringRepeatableisodoc ≥ v3.2.0

Specify height and width of the publisher logo, for each of the standard output formats of Metanorma. The publishers are read in the same sequence for logo attributes as they are for publisher names and abbreviations, and the numbering includes the primary publisher of the document as the first publisher (for which a logo typically does not need to be specified.)

Example

For example, presentation-metadata-publisher-pdf-height_2 specifies the height of the coverpage logo in PDF of the second specified publisher.

:presentation-metadata-ul-label-list:

All flavorscomma-listisodoc ≥ v3.2.2

Specify the characters to be used as bullets for unordered lists, as a comma-delimited list of strings, each string corresponding to a deeper level of list. The bullet list rotates once the list is exceeded. NOTE: Custom unordered list bullets are only processed for PDF output.

Example

:presentation-metadata-ul-label-list: *,&#x2013;,"x,x" will use * at level 1; &#x2013; at level 2, x,x at level 3, then go back to * at level 4.

:presentation-metadata-annex-delim:

All flavorsstringisodoc ≥ v3.2.7

Delimiter between the line heading giving the number of an annex, and the title of the annex (Metanorma XML, default <br/><br/>) .

:presentation-metadata-middle-title:

All flavorsstringisodoc ≥ v3.2.7

Presentation XML Liquid template for middle title (document title at the start of the main section of the document) (Metanorma XML, default "<p class='zzSTDTitle1'>{{ doctitle }}</p>") . Refer to Default metadata values for the typical values that can be used in metadata-driven Liquid templates under Metanorma.

:presentation-metadata-admonition-icon-{type}:

Add the Unicode character as an icon in front of the label for all admonitions of type {type}; overrides any value given in admonition-icon under the i18n internationalization file . If the admonition type contains spaces, replace them with underscores in the attribute name: an admonition of type Safety Precautions is matched by :presentation-metadata-admonition-icon-safety_precautions: .

:presentation-metadata-html-details-open:

All flavorsstringDefault: trueisodoc ≥ v3.6.12

Whether the details element in HTML (used for collapsible examples) should be open or closed for HTML documents. Defaults to true, and corresponds to <details open="open"> vs <details>. .

Document relations

Inherited from Metanorma (all flavors) (2 attributes)

Part of

:part-of:

All flavorsstring

document identifier that the current document is a part of.

Translated from

:translated-from:

All flavorsstring

document identifier that the current document is a translation of.

URIs

Inherited from Metanorma (all flavors) (6 attributes)

:uri:

All flavorsuri

The URI to which this standard is published.

:xml-uri:

All flavorsuri

The URI to which the (Metanorma) XML representation of this standard is published.

:html-uri:

All flavorsuri

The URI to which the HTML representation of this standard is published.

:pdf-uri:

All flavorsuri

The URI to which the PDF representation of this standard is published.

:doc-uri:

All flavorsuri

The URI to which the DOC representation of this standard is published.

:relaton-uri:

All flavorsuri

The URI to which the Relaton XML representation of this standard is published.

Timestamps

Inherited from Metanorma (all flavors) (16 attributes)

:copyright-year:

All flavorsstring

The year which will be claimed as when the copyright for the document was issued.

:announced-date:

The date on which the publication of the standard was announced by the issuing authority.

The date on which the document was announced as forthcoming.

:issued-date:

All flavorsdate

The date on which the standard was issued (authorised for publication by the issuing authority).

:published-date:

All flavorsdate

The date on which the standard was published (distributed by the publisher).

:implemented-date:

All flavorsdate

The date on which the standard became active.

:created-date:

All flavorsdate

The date on which the first version of the standard was created.

:updated-date:

All flavorsdate

The date on which the current version of the standard was updated.

:corrected-date:

The date on which the current version of the standard was corrected, without that correction amounting to a distinct update.

:obsoleted-date:

All flavorsdate

The date on which the standard was obsoleted/revoked.

:confirmed-date:

All flavorsdate

The date on which the standard was reviewed and approved by the issuing authority.

:unchanged-date:

All flavorsdate

The date on which the standard was last renewed without any changes in content.

:circulated-date:

All flavorsdate

The date on which the unpublished standard was last circulated officially as a preprint. For standards, this is associated with the latest transition to a formally defined preparation stage, such as Working Draft or Committee Draft.

:accessed-date:

All flavorsdate

The date on which the standard was last accessed by the compiler of the bibliography; e.g. for a cited online resource, the date on which the document author viewed the resource.

:date:

All flavorsdate

An arbitrary date in the production of the standard. Content of the attribute should be a token, giving the type of date, then space, then the date itself. Multiple dates can be added as :date_2:, :date_3:, etc.

:vote-started-date:

The date on which the voting process starts for this document.

:vote-ended-date:

The date on which the voting process ends for this document.

Author information

Inherited from Metanorma (all flavors) (42 attributes)

:technical-committee_{1}:

All flavorsstringRepeatable

The name of the relevant editorial group. The document attribute name for editorial groups varies by flavor, and there can be multiple types of editorial group, each with its own document attribute; see Contributor metadata: Groups for the value for each flavor.

Example

In the following list, technical-committee can be replaced by each of the allowed editorial group labels; for example, if workgroup is an editorial group label, then :workgroup-label: and :workgroup-type: are document attributes, instead of :technical-committee-label: and :technical-committee-type:.

:technical-committee-number{_i}:

All flavorsstringRepeatable

The identifier of the editorial group.

:technical-committee-type{_i}:

All flavorsstringRepeatable

The type of the editorial group. Typically this is used as the abbreviation prefixed to the editorial group number.

Example

:technical-committee-number: 2, :technical-committee-type: TC, giving TC 2.

:technical-committee-agency{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v3.1.4

The agency that the editorial group lies under, if it is other than the home agency (the publisher of the document). Only needed for multiple editorial groups.

:technical-committee-agency-abbr{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v3.1.4

The abbreviation of the agency that the editorial group lies under. In most flavors, the abbreviation of the SDO is already available for lookup in Metanorma, and users need not provide this attribute.

Example

For example, under metanorma-iso, :technical-committee-agency: can be specified as ISO, rather than needing to specify both :technical-committee-agency: International Standardization Organization and :technical-committee-agency-abbr: ISO.

:technical-committee_logo{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v3.3.0

The logo of the editorial group, specified as an image file.

:committee-types:

All flavorscomma-listmetanorma-standoc ≥ v3.3.0

Comma-delimited list of committee types to be recognized for the document. Overrides the preset committee types set for the flavor. .

:corporate-author{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v3.1.5

The organization authoring the standard. This document attribute **should not** be provided if the authoring organization is identical to the publishing body, as its value is automatically set to that of :publisher:. Use :corporate-author: **only when** a standard is authored or co-authored by an agency distinct from the publishing body, and only the publishing agency is credited as the publisher. Multiple agencies can be specified as corporate authors (similar to :publisher:). The first agency specified is expected to be the publishing body. Use :corporate-author_2:, :corporate-author_3:, etc. for additional agencies. NOTE: For personal authors, use :fullname: or :surname: and :givenname: instead.

:surname{_i}:

All flavorsstringRepeatable

The surname of a person who is a contributor to the document.

:givenname{_i}:

All flavorsstringRepeatable

The given name(s) of a person who is a contributor to the document.

:initials{_i}:

All flavorsstringRepeatable

The initials(s) of a person who is a contributor to the document.

:contributor-credentials{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.3.9

Credentials of the person, appearing after their name in Metanorma flavour-specific contexts.

The credentials of the person (e.g. "PhD, F.R.Pharm.S"); these are often displayed inline with the person's name.

:role-description{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.7.5

A more detailed description of the role of a person who is a contributor to the document.

:affiliation{_i}:

All flavorsstringRepeatable

The organization that a person who is a contributor to the document is affiliated with.

:affiliation_abbrev{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.3.12

The abbreviation of the organization that a person who is a contributor to the document is affiliated with.

:affiliation_subdiv{_i}:

The subdivision of the organization that a person who is a contributor to the document is affiliated with. The subdivisions can be multiple (semicolon-delimited: processed via CSV, recognising quote marks), and they can also be hierarchical, with multiple levels of subdivision (comma-delimited, from larger to smaller) ; the different hierarchical levels can optionally be prefixed with type and a colon.

:affiliation_logo{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.7.0

The logo of the organization that a person who is a contributor to the document is affiliated with, specified as an image file.

:contributor-position{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.3.9

The position of the person within the organization.

:address{_i}:

All flavorsstringRepeatable

The organizational address of a person who is a contributor to the document. Mutually exclusive with street/city/region/country/postcode.

:postcode{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.9.4

The postcode component of the organization address of a person who is a contributor to the document.

:contributor-uri{_i}:

All flavorsstringRepeatable

The URI of a person who is a contributor to the document.

:subdivision:

The subdivision of the organization that is responsible for this document. The subdivisions can be multiple (semicolon-delimited: processed via CSV, recognising quote marks), and they can also be hierarchical, with multiple levels of subdivision (comma-delimited, from larger to smaller) ; the different hierarchical levels can optionally be prefixed with type and a colon.

:subdivision-abbr:

The abbreviation of the subdivision of the organization that is responsible for this document.

:pub-address{_i}:

The address of the organization responsible for this document, if it overrides the default.. The number of this and subsequent attributes aligns with the number of :publisher{_i}:

Note

Each line in a multi-line address must end with + \, e.g.

:pub-address: 1 Infinity Loop + \
California + \
United States of America

NOTE: As of 2.7.0, if :publisher: is semicolon-delimited, instead of using numbered attributes, this and subsequent publisher attributes are ignored.

:pub-phone{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.6.1

The phone number of the organization responsible for this document, if it overrides the default.

:pub-fax{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.6.1

The fax number of the organization responsible for this document, if it overrides the default.

:pub-email{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.6.1

The email of the organization responsible for this document, if it overrides the default.

:pub-uri{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v1.6.1

The URI of the organization responsible for this document, if it overrides the default.

:authorizer{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.8.3

The organisation that authorised this document.

:authorizer_logo{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.8.3

The path to the logo of the authorizing organization, specified as an image file; the numbers in the attribute align to the :authorizer{_i}: attributes .

:authorizer-address{_i}:

All flavorsstringRepeatablemetanorma-standoc ≥ v2.8.3

The address, phone number, fax number, email, URI of an organization authorizing this document.

:authorizer-phone{_i}:

All flavorsRepeatable

:authorizer-fax{_i}:

All flavorsRepeatable

:authorizer-email{_i}:

All flavorsRepeatable

:authorizer-uri{_i}:

All flavorsRepeatable

:authorizer-subdivision{_i}:

All flavorscomma-listRepeatablemetanorma-standoc ≥ v2.8.3

The subdivision of the organization that is authorizing this document. The subdivisions can be multiple (semicolon-delimited: processed via CSV, recognising quote marks), and they can also be hierarchical, with multiple levels of subdivision (comma-delimited, from larger to smaller) ; the different hierarchical levels can optionally be prefixed with type and a colon.

Style customization

Inherited from Metanorma (all flavors) (26 attributes)

Fonts

:fonts:

All flavorscomma-listmetanorma-standoc ≥ v2.0.7

Semicolon-delimited listing of fonts to be used for this document, in addition to the fonts predefined for the flavour.

Valid values are font names supported by Fontist. The full font name listing is available from the Fontist Formulas repository.

NOTE: This is currently only used in PDF generation.

Example of setting a custom font to Euphemia

The Euphemia font is an openly licensed font for end-users only commonly used to render Canadian Syllabics. The font name Euphemia is supported by Fontist for unattended install. In a document that contains Canadian Syllabics, the following attributes can be used.

:fonts: Euphemia
:font-license-agreement: agree-to-terms

:font-license-agreement:

All flavorsenumDefault: no-install-fontsmetanorma-standoc ≥ v2.0.7

The response to the license agreement prompt by fontist for the fonts specified in :fonts:.

Valid values are:

no-install-fonts

(default) do not install any additional fonts, even when listed in :fonts:.

agree-to-terms

agree to all terms of the fonts that will be installed in an unattended manner.

continue-without-fonts

do not warn if a font is not available on the system.

:body-font:

All flavorsstring

Font for body text; will be inserted into CSS, overriding the default set for the particular Metanorma flavour.

:header-font:

All flavorsstring

Font for headers; will be inserted into CSS, overriding the default set for the particular Metanorma flavour.

:monospace-font:

All flavorsstring

Font for monospace; will be inserted into CSS, overriding the default set for the particular Metanorma flavour.

HTML

:html-stylesheet:

All flavorsstring

SCSS stylesheet to use for HTML output. Defaults to built-in stylesheet for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :htmlstylesheet:

:html-stylesheet-override:

CSS stylesheet to use for HTML output, inserted after the built-in stylesheet for the particular Metanorma flavour, and can be used to override it.

Legacy names: :htmlstylesheet-override:

:html-cover-page:

All flavorsstring

HTML template for cover page. Defaults to built-in template for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :htmlcoverpage:

:html-intro-page:

All flavorsstring

HTML template for introductory section. Defaults to built-in template for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :htmlintropage:

:scripts:

All flavorsstring

JavaScript scripts for HTML output. Defaults to built-in scripts for the particular Metanorma flavour. Overriding is not recommended.

:scripts-override:

JavaScript scripts for HTML output. Inserted after any built-in scripts for the particular Metanorma flavour, and can be used to override them.

:scripts-pdf:

All flavorsstringDeprecated

JavaScript scripts for HTML to PDF output. Defaults to built-in scripts for the particular Metanorma flavour. Overriding is not recommended.

PDF

:presentation-metadata-papersize:

All flavorsenum

PDF document page size. Can be used to override the page size in built-in stylesheet for the particular Metanorma flavour. Valid values are: Letter, letter, A4 or a4.

Letter
letter
A4
a4

:pdf-stylesheet:

XSLT stylesheet to use for PDF output. Defaults to built-in stylesheet for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :pdfstylesheet:

:pdf-stylesheet-override:

XSLT stylesheet to use for PDF output, inserted after the built-in stylesheet for the particular Metanorma flavour, and can be used to override it.

Legacy names: :pdfstylesheet-override:

Word

:word-stylesheet:

All flavorsstring

Primary SCSS stylesheet to use for Word output. Defaults to built-in stylesheet for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :wordstylesheet:

:standard-stylesheet:

All flavorsstring

Secondary SCSS stylesheet use for Word output. Defaults to built-in template for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :standardstylesheet:

:word-stylesheet-override:

All flavorsstringisodoc ≥ v1.8.7

CSS stylesheet to use for Word output, inserted after the built-in stylesheet for the particular Metanorma flavour, and can be used to override it.

Legacy names: :wordstylesheet-override:

:word-cover-page:

All flavorsstring

Word template for cover page. Defaults to built-in template for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :wordcoverpage:

:word-intro-page:

All flavorsstring

Word template for introductory section. Defaults to built-in template for the particular Metanorma flavour. Overriding is not recommended.

Legacy names: :wordintropage:

:ulstyle:

All flavorsstring

Word CSS selector for unordered lists in supplied stylesheets. Defaults to value for built-in stylesheet. Overriding is not recommended.

:olstyle:

All flavorsstring

Word CSS selector for ordered lists in supplied stylesheets. Defaults to value for built-in stylesheet. Overriding is not recommended.

Cover page

:coverpage-image:

All flavorscomma-list

Comma-delimited list of image locations, for images to be included on the (PDF) cover page. All image locations are relative to the source document. Currently only supported for BSI, ITU, JIS, Plateau. If the supplied image(s) is to replace the cover page(s) of the document in its entirety, and already includes title information, add the attribute :presentation-metadata-full-coverpage-replacement: true (supported for all flavours).

:innercoverpage-image:

All flavorsstring

Same, for images to be included on the (PDF) inside cover page. Currently only supported for BSI.

:tocside-image:

All flavorsstring

Same, for images to be included on the (PDF) Table of Contents side page. Currently only supported for BSI.

:backpage-image:

All flavorsstring

Same, for images to be included on the (PDF) back page. Currently only supported for BSI, JIS.

Image handling

Inherited from Metanorma (all flavors) (5 attributes)

Data URI

:data-uri-image:

All flavorsstringDefault: truemetanorma-standoc ≥ v1.11.0

Encode all images in Metanorma XML and HTML output as inline data-URIs. Defaults to true..

:data-uri-maxsize:

All flavorsbooleanDefault: 13981013metanorma-standoc ≥ v2.9.1

Set the maximum permitted size of a Data URI-encoded image, in bytes. Defaults to 13981013 bytes (size of the Base-64 encoding of a 10 MB image). If set to 0, no maximum is enforced..

:data-uri-attachments:

All flavorsstringDefault: truemetanorma-standoc ≥ v2.8.10

Encode all attachments in Metanorma XML as inline data-URIs. Defaults to true..

SVG

:svg-conform-profile:

Profile of the 0 software library to apply for SVG validation and repair. See SVG Profiles for the available profile values. Metanorma by default uses the metanorma profile by default, except for IETF, which uses svg_1_2_rfc.

PlantUML

:plantuml-image-format:

All flavorsenumDefault: pngmetanorma-standoc ≥ v3.0.9

Format to generate PlantUML diagrams as. Legal values are png, svg. Defaults to png..

png
svg

Cross-references

Inherited from Metanorma (all flavors) (5 attributes)

:xrefstyle:

All flavorsenumDefault: shortmetanorma-standoc ≥ v2.2.6

Override the default rendering style of internal cross-references to other locations in the document. Available styles as follows:

short

(default) the clause type and number is used as the cross-reference.

Example of a cross-reference rendered in the "short" style

"Clause 3.1.2"

basic

the title of the clause is used as the cross-reference.

Example of a cross-reference rendered in the "basic" style

"Other considerations"

full

combines the title with the clause type/number cross-reference.

Example of a cross-reference rendered in the "full" style

"Clause 3.1.2, Other considerations"

idmetanorma-standoc ≥ v2.2.7

the cross-reference is to be rendered as the target anchor identifier (or any identifier aliasing the anchor).

Example of a cross-reference rendered in the "id" style

The following cross-reference:

[[my-anchor]]
=== My title
...

=== Another place
<<my-anchor>>

Renders the cross-reference as:

"my-anchor"

:erefstyle:

Override the default rendering style of cross-references to bibliographic entries . The legal values for such override are drawn from General citation style types.

:originstyle:

Override the default rendering style of source references to bibliographic entries . The legal values for such override are drawn from General citation style types.

:modspec-identifier-base:

(optional) Base identifier pattern for ModSpec instances throughout the document. The attribute value provides a prefix that will be removed from all ModSpec instance identifiers used to cross-reference ModSpec instances. The specification of the pattern only affects the rendering of cross-references, not the underlying XML representation of the ModSpec instances. See more details at ModSpec identifier base.

:block-unnumbered:

All flavorscomma-listmetanorma-standoc ≥ v2.4.6

(optional) A comma-delimited list of Metanorma block names, which should have numbering suppressed throughout the document. Typically will be used for sourcecode fragments: :block-unnumbered: sourcecode.

Smart quotes

Inherited from Metanorma (all flavors) (1 attributes)

:smartquotes:

All flavorsenumDefault: true

Apply “smart quotes” and other auto-formatting to the XML output (and hence the downstream outputs). Available values below:

  • " and ' followed by space, with optional punctuation intervening, are treated as closing,

and converted to smart closing quotes and .

  • " and ' preceded by space, with optional punctuation intervening, are treated as opening,

and converted to smart opening quotes and .

  • Midword apostrophes are treated as closing: Sana'a becomes Sana’a.
  • Initial apostrophes before numerals are treated as closing: '80s becomes ’80s.
  • There are many possible exceptions to these default rules, such as initial apostrophes

(fish ’n’ chips), and quote pairs used to illustrate the punctuation (Use smart quotes (" ")). For such cases, use either real smart quotes (the literal characters “ ” ‘ ’) or the Asciidoc ASCII codes, "&#x060; &#x060;", '&#x060; &#x060;'

The smart quotes converted by Metanorma postprocessing are specifically those of English. Other languages' smart quotes will need to be entered as the correct characters.

NOTE: :smartquotes: is a document-wide toggle. To keep specific runs of text as straight quotes while the rest of the document remains smart-quoted — for example, literal characters quoted from a specification, such as PDF string-delimiter operators — use 1.

true

(default) Smart quotes are not applied to the following type of text:

  • text in source code;
  • text in pseudo-code;
  • text in monospace.
false

The AsciiDoc default is used to generate smart quotes: "&#x060; &#x060;", '&#x060; &#x060;'. The rules for smart formatting follow the sterile gem, and are given in smart_format_rules.rb. In particular:

Table of contents

Inherited from Metanorma (all flavors) (8 attributes)

:toclevels:

All flavorsintegerDefault: 2

Number of table of contents levels to render. Accepts an integer value. (default: 2). Can be overridden with output-specific options (htmltoclevels, doctoclevels).

:toclevels-html:

All flavorsintegerDefault: 2metanorma-standoc ≥ v2.7.5

Number of table of contents levels to render in HTML output; used to override :toclevels: for HTML output. Accepts an integer value. (default: 2). Formerly :htmltoclevels:.

:toclevels-doc:

All flavorsintegerDefault: 2metanorma-standoc ≥ v2.7.5

Number of table of contents levels to render in Microsoft Word "DOC" output; used to override :toclevels: for Word DOC output. Accepts an integer value. (default: 2). Formerly :doctoclevels:.

:toclevels-pdf:

All flavorsintegerDefault: 2metanorma-standoc ≥ v2.7.5

Number of table of contents levels to render in PDF output; used to override :toclevels: for PDF output. Accepts an integer value. (default: 2)

:toc-figures:

Introduce table of contents for figures. No attribute value needed. Only numbered and/or captioned figures are included. Disabled if given the value false.

:toc-tables:

Introduce table of contents for tables. No attribute value needed. Only numbered and/or captioned tables are included. Disabled if given the value false.

:toc-examples:

Introduce table of contents for examples. No attribute value needed. Only numbered and/or captioned examples are included. Disabled if given the value false.

:toc-requirements:

Introduce table of contents for requirements, recommendations, and permissions. No attribute value needed. Only numbered and/or captioned requirements, recommendations, and permissions are included. Disabled if given the value false.

Tables

Inherited from Metanorma (all flavors) (1 attributes)

:break-up-urls-in-tables:

If present, long strings in table cells are broken up on rendering, to help tables fit within the page width. No attribute value needed.. The current behaviour is: strings are broken by zero-width spaces; words are broken up every 10 characters on punctuation (e.g. URIs on / ), and every 20 characters if there is no punctuation in the word, in order to deal with very narrow columns. (Because the break is zero-width, it will not be visible unless it coincides with the end of a column.)

Sourcecode

Inherited from Metanorma (all flavors) (6 attributes)

:sourcecode-markup-start:

Initial delimiter for markup inserted in sourcecode

:sourcecode-markup-end:

Final delimiter for markup inserted in sourcecode

:source-highlighter:

All flavorsbooleanDefault: truemetanorma-standoc ≥ v2.3.2

Whether to use a source highlighter for sourcecode; default value is true

:source-linenums-option:

All flavorsbooleanDefault: falsemetanorma-standoc ≥ v2.3.2

Provided a source highlighter is being used, whether to display line numbers; default value is false

:bare:

(optional) The document is rendered in “bare form” -- without the cover page, boilerplate, or introductory text expected of a complete document. This is typically used for HTML output, e.g. clauses as standalone documents, or document attachments.

:base-asset-path:

(optional) All media paths in the XML path are relative to the given directory; used when the Metanorma XML file to be processed is not necessarily in the same directory as the source Metanorma AsciiDoc file, and the media file paths are given as relative and not absolute file locations (and are not encoded as data URIs via :data-uri-image:).

Logging

Inherited from Metanorma (all flavors) (3 attributes)

:log-filter-severity:

Filter from error log all warnings at the given severity level or above it. See Validation for valid values.

:log-filter-category:

All flavorscomma-listmetanorma-standoc ≥ v2.9.7

Filter from error log all warnings belonging to one of the named categories; comma-delimited. See Validation for valid values.

:log-filter-error-ids:

All flavorscomma-listmetanorma-standoc ≥ v3.2.1

Filter from error log all warnings with the identifiers of individual errors to exclude (comma-delimited). See Error ID. .

PDF protection and permissions

Inherited from Metanorma (all flavors) (13 attributes)

:pdf-encrypt:

All flavorsenumDefault: false

Specify encryption of PDF output.

true

Applies encryption to PDF output.

false

Do not encrypt PDF output. (default)

:pdf-encryption-length:

All flavorsenumDefault: 256

Specify encryption strength.

256

Use 256-bit AES keys (default)

128

Use 128-bit AES keys.

:pdf-user-password:

All flavorsstring

Specify user password needed to open the encrypted PDF document. The attribute value sets the user password.

:pdf-owner-password:

All flavorsstring

Specify owner password to bypass restrictions on encrypted PDF document. The attribute value sets the owner password.

:pdf-allow-copy-content:

All flavorsenumDefault: true

Allow content to be copy-pasted from the PDF document.

true

Content can be copy-pasted from the PDF document. (default)

false

Content cannot be copy-pasted from the PDF document.

:pdf-allow-edit-content:

All flavorsenumDefault: true

Allow content of the PDF document to be edited.

true

Content of the PDF document can be edited. (default)

false

Content of the PDF document cannot be edited.

:pdf-allow-assemble-document:

All flavorsenumDefault: true

Allow inserting, deleting, or rotating pages in the PDF document.

true

Inserting, deleting or rotating pages in the PDF document is allowed. (default)

false

Inserting, deleting or rotating pages in the PDF document is disallowed.

:pdf-allow-edit-annotations:

All flavorsenumDefault: true

Allow annotations and signatures to be added to the PDF document.

true

Annotations and signatures can be added to the PDF document. (default)

false

Annotations and signatures cannot be added to the PDF document.

:pdf-allow-print:

All flavorsenumDefault: true

Allow PDF document to be printed, physically or to a file.

true

PDF content can be printed, physically or to a file. (default)

false

PDF content cannot be printed, physically or to a file.

:pdf-allow-print-hq:

All flavorsenumDefault: true

Allow PDF document to be printed in high quality.

true

PDF content can be printed in high quality. (default)

false

PDF content cannot be printed in high quality.

:pdf-allow-fill-in-forms:

All flavorsenumDefault: true

Allow forms to be filled in the PDF document.

true

Forms in the PDF document can be filled in. (default)

false

Forms in the PDF document are read-only, they cannot be filled in.

:pdf-allow-access-content:

All flavorsenumDefault: true

Allow text and graphics extraction from the PDF document for accessibility purposes.

true

Text and graphics can be extracted from the PDF document. (default)

false

Text and graphics cannot be extracted from the PDF document.

:pdf-encrypt-metadata:

All flavorsenumDefault: true

Specify encryption of the metadata stream.

true

The PDF metadata stream will be encrypted. (default)

false

The PDF metadata stream will not be encrypted.