User:Zoeannl/Project guideline/Proofreader’s Guide/Table of Contents


 * (page numbers) DJVU page link: In the index namespace, it will show the proofreading status of the pages as a background colour.
 * anchor pg e.g. 21 Page:Makers_of_British_botany.djvu/390

TOCstyle

Contents over multiple pages
| starting = yes  )  | continuing = yes ) as appropriate in text | completing = yes ) ) if continued ) place in top/bottom box


 * row1pageribbon=yes where PAGE (on row 1) is not to be transcribed


 * row1model=r|


 * row1model=r|

---

=
-

--

=
---

Entire text formatting
These are included as header in subsequent pages


 * Formatting for entire TOC
 * |compact=yes
 * |chapter-width=xem
 * |page-width=xem
 * |width=#em for indent width
 * |width=calc(100% - 8em) for both margins
 * |depth=#em for hanging indent depth
 * |style=

Look up Template:Table_style


 * |style=font-size:85%;line-height:1;
 * |style=font-variant:small-caps;
 * |style=margin-left:2em;width:calc(100% - 2em) for indented list
 * |style=text-indent:-2em; margin-left:4em; for hanging indent ?
 * |style=text-indent:-2em; margin-left:10em;width:calc(100% - 12em) for left hanging + right indented list

Page:Handbook for Boys.djvu/20

Leaders (dots)
Where page numbers are like linked to text by a line of leaders-dots, dashes, bullets etc. The type is specified in the model description—default dots; otherwise with HTML character codes: &bull;, &sdot;, _, -, –, —, &sdot; (square dot), .. No symbol will leave a blank line.


 * leadersym=

The space between leaders is defined globally:


 * leaderspacing=2em


 * N.B. leadersym need not be a single character. Effects are possible like this:

Model descriptions
TOC columns: The elements of a Table of Contents are
 * 1. A Chapter column
 * 2. A text Description
 * 3. A page number column

There are innumerable variations on this, and the TOCstyle template can be used in other ingenious ways for different purposes. The table below attempts to enable you to define the elements to give you a TOC that faithfully represents the printed page.

Debugging: If a column is buggy, check it is wide enough for the longest text (increase chapter-width and/or page-width). Put = in curly brackets. width=0.1

Standard default

 * chapter-width=5em|depth=5em|page-width=2em (defaults: these happen if nothing else is specified)

Without Page Numbers

 * page-width=0em
 * leadersym=

Description with hanging indent

 * default=5em;


 * else |depth= em

Indented Description with hanging indent

 * Default=5em;


 * else |chapter-width= em and |depth= em

Centered Description

 * c:("center") Output row is constructed from single field, centred. Use for headings.

Justified Description

 * j:("justify") Output row is constructed from single field, justified. Useful for title pages or ads.

Right Aligned Description

 * r:("right") Output row is constructed from single field, right-aligned.

Description with Page Number
Output row is a pair of input fields (separated by |). The first field is unformatted text and the latter is right-lower-aligned page reference.

Description with Hanging Indent and Page Number

 * default=5em hanging indent;


 * else |depth= em

Indented Description and page number
As above; add to Chapter-width.
 * Default=5em

Indented Description with Hanging Indent and Page Number

 * default=5em hanging indent;


 * else |chapter-width= em |depth= em

Chapter, Description, Page
Output row is a triple of input fields. The first field is presented as right-aligned within a (5em) column, followed by text. Finally the third field is presented right-lower-aligned page reference.

Chapter, Description, Page, no leaders

 * default chapter-width=5em, page-width=2em


 * else |chapter-width= em |page-width= em

Indented Chapter, Description, Page
Add to chapter-width

Chapter, Description with hanging indent, Page

 * default


 * else |depth= em |chapter-width= em

Indented Chapter, Description with hanging indent, Page
As above, with increased chapter-width

Including leaders (dots)
All Variations above with |leadersym=
 * You can add the leader of your choice
 * Remove |leadersym= to have the default dot.


 * Default

Custom leaders

 * CD5.P:("Chapter, Description, dot-leader, Page") Variant of CD.P without padding following Chapter field; otherwise identical.


 * CD.P/s: variant of CD.P. Initial fragment to be continued on next page.
 * CD.P/e: Completion of fragment commenced by CD.P/s.


 * 2H3P/s:("Indented Hanging Indent initial page crossing section") Build TOC fragment per 2H3P above but with expectation the fragment will continue on a later Page. (Differing HTML is constructed for demonstration and presentation name spaces.)
 * 2H3P/e:("Indented Hanging Indent terminal page crossing section") Continuation of TOC fragment commenced by 2H3P/s. (Differing HTML is constructed for demonstration and presentation name spaces.)


 * lcr:("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of running header with three parameters specified.


 * lccr:("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of running header with four parameters specified.
 * lcccr:("left-centred-right") Output row is constructed from triples of input fields in a fashion reminiscent of rh/5.
 * lr:("left-right") Output row is constructed from pairs of input fields in a fashion reminiscent of running header with the "center" parameter omitted. (Degenerate form of model "lcr".)

Format changes for lines or sections

 * Rows are counted from the template start. Each | counts as one.
 * Multiple rows can be listed e.g. 1,3,5,7
 * Ranges can be specified 1-3, 1to3

Model changes

 * row#model=

Style changes

 * |row#style=font-style:normal;

Standard formatting can be used inline (e.g., text ). To change formatting for a section or multiple rows, use row#style.


 * |row#style=font-variant:small-caps;
 * |row#style=font-variant:normal;
 * |row#style=font-style:italic;
 * |row#style=font-style:normal;
 * |row#style=font-size:83%; (smaller)
 * |row#style=font-size:120%; (larger)

Indented

 * row#style=margin-left:2em

Examples and Exemplars

 * Page:Poems that every child should know (ed. Burt, 1904).djvu/21
 * Page:The Complete Poems of Francis Ledwidge, 1919.djvu/25