PTPi pushed a commit to branch master in repository groff. commit aaae0cb84d5b6c498886ae2c76bb29712b2d9bac Author: Peter Schaffter <pe...@schaffter.ca> AuthorDate: Thu Sep 14 15:46:30 2023 -0400
[mom]: Version 2.6 doc updates --- contrib/mom/momdoc/cover.html | 2 +- contrib/mom/momdoc/tables-of-contents.html | 43 +++++++++++++++++++++++++----- contrib/mom/momdoc/toc.html | 4 +-- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/contrib/mom/momdoc/cover.html b/contrib/mom/momdoc/cover.html index 7efee1f8d..a904066cb 100644 --- a/contrib/mom/momdoc/cover.html +++ b/contrib/mom/momdoc/cover.html @@ -227,7 +227,7 @@ block using mom’s typesetting macros to format the text. <p> Doc-cover and cover data—that is to say, the strings passed to reference macros that appear on doc cover and cover -pages—does not persist after +pages—do not persist after <a href="docprocessing.html#start">START</a>, however the formatting of the various parts (TITLE, AUTHOR, COPYRIGHT, etc.) does. diff --git a/contrib/mom/momdoc/tables-of-contents.html b/contrib/mom/momdoc/tables-of-contents.html index 1f9affbdc..0a6e1c583 100644 --- a/contrib/mom/momdoc/tables-of-contents.html +++ b/contrib/mom/momdoc/tables-of-contents.html @@ -906,14 +906,11 @@ Macro: <b>PAD_TOC_CHAPTER_NUMBERS</b> <kbd class="macro-args"><number of chap <i>Alias:</i> <b>PAD_TOC_SECTION_NUMBERS</b> </p> - <p> -If the number of chapters or major sections -(<a href="docprocessing.html#doctype">DOCTYPE DEFAULT</a>) -exceeds 9, you can have mom pad the numbers so the rightmost -numerals of the chapter numbers align. Simply invoke -<kbd>PAD_TOC_CHAPTER_NUMBERS</kbd> with the number of chapters in -the document. +If the number of chapters or major sections exceeds 9, you can have +mom pad the numbers so the rightmost numerals of the chapter numbers +align. Simply invoke <kbd>PAD_TOC_CHAPTER_NUMBERS</kbd> with the +number of chapters in the document. </p> <p> @@ -931,6 +928,38 @@ With padding: </span> </p> + +<!-- -PAD_TOC_HEAD_NUMBERS- --> + +<div id="toc-pad-ch-numbers" class="box-macro-args"> +Macro: <b>PAD_TOC_HEAD_NUMBERS</b> <kbd class="macro-args"><number of first-level headings></kbd> +</div> + +<p> +If the number of first-level headings in a chapter or major section +exceeds 9 and you have head numbering enabled (see +<a href="docelement.html#heading-control">Heading Control and Defaults)</a>, +you can have mom pad the numbers in the Table of Contents so the +rightmost numerals of first-level headings align. Simply invoke +<kbd>PAD_TOC_HEAD_NUMBERS</kbd> with the number of first-level +headings in the document. +</p> + +<p> +Without padding: +<br/> +<span class="pre-in-pp"> + 9. First-level heading.....................100 + 10. First-level heading....................123 +</span> +With padding: +<br/> +<span class="pre-in-pp"> + 9. First-level heading....................100 + 10. First-level heading....................123 +</span> +</p> + <!-- -TOC_ENTRY_NUMBERS- --> <div id="toc-entry-numbers" class="box-macro-args"> diff --git a/contrib/mom/momdoc/toc.html b/contrib/mom/momdoc/toc.html index 627375185..1a07693a3 100644 --- a/contrib/mom/momdoc/toc.html +++ b/contrib/mom/momdoc/toc.html @@ -20,7 +20,7 @@ FDL in the main directory of the groff source package. <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> - <title>Mom, version 2.5_d -- Table of Contents</title> + <title>Mom, version 2.6 -- Table of Contents</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> </head> @@ -31,7 +31,7 @@ FDL in the main directory of the groff source package. <div class="page"> <div class="version"> - mom, version 2.5_d + mom, version 2.6 </div> <h1 class="toc" style="margin-top: 9px;">Table of Contents</h1> _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit