Skip to content

Commit

Permalink
JIS xslt updated for termnote style, metanorma/metanorma-jis#9
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Mar 30, 2023
1 parent 880c8b4 commit 467a265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions xslt_src/common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3356,6 +3356,7 @@
</xsl:if>
<xsl:if test="$namespace = 'jis'">
<xsl:attribute name="provisional-distance-between-starts">7.5mm</xsl:attribute>
<xsl:attribute name="space-after">4pt</xsl:attribute>
</xsl:if>
<xsl:if test="$namespace = 'm3d'">
<xsl:attribute name="provisional-distance-between-starts">6mm</xsl:attribute>
Expand Down
3 changes: 2 additions & 1 deletion xslt_src/jis.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@
<xsl:variable name="margin-top">
<xsl:choose>
<xsl:when test="@ancestor = 'foreword' and $level = 1">9mm</xsl:when>
<xsl:when test="$level = 1">4.5mm</xsl:when>
<xsl:when test="$level = 1">6.5mm</xsl:when>
<xsl:when test="@ancestor = 'foreword' and $level = 2">0mm</xsl:when>
<xsl:when test="@ancestor = 'annex' and $level = 2">4.5mm</xsl:when>
<xsl:when test="@ancestor = 'bibliography' and $level = 2">0mm</xsl:when>
Expand All @@ -796,6 +796,7 @@
<xsl:variable name="margin-bottom">
<xsl:choose>
<xsl:when test="@ancestor = 'foreword' and $level = 1">9mm</xsl:when>
<xsl:when test="$level = 1 and following-sibling::jis:clause">8pt</xsl:when>
<xsl:when test="$level = 1">12pt</xsl:when>
<xsl:when test="$level &gt;= 2">12pt</xsl:when>
<xsl:when test="@type = 'section-title'">6mm</xsl:when>
Expand Down

0 comments on commit 467a265

Please sign in to comment.