diff --git a/author/jis/ref/document-attributes.adoc b/author/jis/ref/document-attributes.adoc index e3e7c039..e950dd8f 100644 --- a/author/jis/ref/document-attributes.adoc +++ b/author/jis/ref/document-attributes.adoc @@ -493,3 +493,10 @@ Email of personal author for this document (for document type `expert-commentary `:role_{i}:`:: Role of personal author for this document (for document type `expert-commentary` only) (default: `author`) + +== Document presentation + +`:presentation-metadata-autonumbering-style:` What numbering style to apply to automatically generated text +containing numbers [added in https://github.com/metanorma/metanorma-jis/releases/tag/v0.3.7]. +Applies to edition numbers, Japanese dates, clause numbers, and ordered list numbers (in PDF). +Allowed values are `arabic` (default) and `japanese`. diff --git a/author/ref/document-attributes.adoc b/author/ref/document-attributes.adoc index c8c073a6..956dc8f5 100644 --- a/author/ref/document-attributes.adoc +++ b/author/ref/document-attributes.adoc @@ -14,6 +14,22 @@ required document attributes. == Build and validation +`:mn-document-class:`:: +The flavor of Metanorma used to compile the document; e.g. `iso`, `nist`, `ogc`. Needs to be a supported version +of the document. Synonyms: `document-class`, `mn-flavor`, `flavor`. + +`:mn-output-extensions:`:: +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`. Synonym: `:output-extensions:`. + +`:mn-relaton-output-file:`:: +Output the bibliographic record describing the document as a Relaton XML file (with the suffix `.rxl`). +Synonym: `:relaton-output-file:`. + +`:mn-keep-asciimath:`:: +Do not translate Asciimath in the document to MathML. Synonym: `:keep-asciimath:`. + `:nodoc:`:: Instructs Metanorma to not generate Word and HTML output, means only XML output will be generated. @@ -909,6 +925,12 @@ A comma-delimited list of Metanorma block names, which should have numbering suppressed throughout the document [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.4.6]. Typically will be used for sourcecode fragemnts: `:block-unnumbered: sourcecode`. +`:coverpage-image:`:: 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. +`:innercoverpage-image:`:: Same, for images to be included on the (PDF) inside cover page. Currently only supported for BSI. +`:tocside-image:`:: Same, for images to be included on the (PDF) Table of Contents side page. Currently only supported for BSI. +`:backpage-image:`:: Same, for images to be included on the (PDF) back page. Currently only supported for BSI, JIS. + + == PDF protection and permissions All the following attributes relate to protection of PDF files as described diff --git a/develop/topics/metadata-and-boilerplate.adoc b/develop/topics/metadata-and-boilerplate.adoc index 128ead02..3c197bbb 100644 --- a/develop/topics/metadata-and-boilerplate.adoc +++ b/develop/topics/metadata-and-boilerplate.adoc @@ -390,9 +390,7 @@ or not depends on the value of `bibdata/status`.) [[boilerplate]] == Predefined text -=== XML - -The `boilerplate` element in Metanorma XML follows after `bibdata`, and +The `boilerplate` element in Metanorma Asciidoc follows after `bibdata`, and contains text that is repeatedly included in each instance of the document class, and that outlines the rules under which the document may be used. @@ -409,15 +407,15 @@ a title, multiple paragraphs, and subclauses. Because the predefined text is repeated for each document in its class, it is not expected to be supplied by the user (although the user can supply their own predefined text file using the `:boilerplate-authority:` document attribute). -Instead, the predefined text is included as a Metanorma XML file within the gem; by default, it is called -`boilerplate.xml`. +Instead, the predefined text is included as a Metanorma Asciidctor file within the gem; by default, it is called +`boilerplate.adoc`. [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.4.6] -Some of the predefined text may be populate with metadata specific to the current document, +Some of the predefined text may be populated with metadata specific to the current document, so the predefined text file is a Liquid template, populated with variables from the current flavour metadata Hash as with other templated text. The content in the `boilerplate` element is processed as part of the document preface, and converted to HTML or -Word like the rest of the Metanorma XML. However, predefined text usually ends up in the cover page or +Word like the rest of the Metanorma source text. However, predefined text usually ends up in the cover page or introductory page of the document instead. The following are the default conventions in Metanorma, although they can be overridden in the `IsoDoc::*::Converter.authority_cleanup` method (as is currently done in NIST): @@ -442,91 +440,7 @@ introductory page template; ** `
` appears in the title page template for the flavour; ** the CSS styling for the front page draft warning is styled as `boilerplate-license`. -A user-supplied boilerplate file need not provide all four statements [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.8.2]. -If the user-supplied element is missing an element in the default for the flavour, the default is retained. -If the element is to be deleted, provide it as an empty title. - -The following predefined text from metanorma-csa exemplifies all four statements in a predefined text, -and its processing as a Liquid template. - -[source,xml] ----- -© {{ docyear }} Cloud Security Alliance, LLC.
-This document is not a CSA Standard. It is distributed for review and - comment, and is subject to change without notice and may not be referred to as - a Standard. Recipients of this draft are invited to submit, with their - comments, notification of any relevant patent rights of which they are aware - and to provide supporting documentation. -
-All rights reserved. Unless otherwise specified, no part of this - publication may be reproduced or utilized otherwise in any form or by any - means, electronic or mechanical, including photocopying, or posting on the - internet or an intranet, without prior written permission. Permission can - be requested from the address below. -
-Cloud Security Alliance
-
- 2212 Queen Anne Ave N
- Seattle
- WA 98109
- United States of America
-
- copyright@cloudsecurityalliance.com
- www.cloudsecurityalliance.com
-
All rights reserved. Unless otherwise specified, no part of this - publication may be reproduced or utilized otherwise in any form or by any - means, electronic or mechanical, including photocopying, or posting on the - internet or an intranet, without prior written permission. Permission can - be requested from the address below. -
-