2022.2

Table Of Contents
l
Page count:Thetotalnumberofpagesinthedocument,includingpageswithnocontentsor
withoutapagenumber.
l
Content page number:Thecurrentpagenumberinthedocument,countingonlypageswithcon-
tentsthataresuppliedbythePrintsection.ApagethathasaMasterPage(assetintheSheet
Configurationdialog,see"ApplyingaMasterPagetoapageinaPrintsection"onpage464)but
nocontents,isnotincludedintheContentpagecount.
l
Content page count:Thisisthetotalnumberofpagesinthecurrentdocumentthathavecon-
tents,suppliedbythePrintsection.ApagethathasaMasterPagebutnocontents,isnot
includedintheContentpagecount.
l
Sheet number:Thecurrentsheetnumberinthedocument.Asheetisaphysicalpieceofpaper,
withtwosides(orpages).Thisisequivalenttohalfthepagenumber,forexampleifthereare10
pages,therewillbe5sheets.
l
Sheet count:Thismarkerisreplacedbythetotalnumberofsheetsinthedocument,whetheror
nottheyhavecontents.
Note: Whenamarkerisinserted,aclassisaddedtotheelementinwhichthemarkerisinserted.
Donotdeletethatclass.Itenablesthesoftwaretoquicklyfindandreplacethemarkerwhengen-
eratingoutput.Therespectiveclassesare:pagenumber,pagecount,contentpagenumber,
contentpagecount,sheetnumber,andsheetcount.
Tip: Insteadofpagenumbers,youmightwanttodisplaythecurrentrecord indexand/orthe
totalnumberofrecordsintherecordset,inthedocument.ThereisaHow-tothatexplainshowto
dothat:Howtogettherecordindexandcount.
Creating a table of contents
Atableofcontentscanonlybecreatedinascript.
Ifyouarelookingtocreateashort,simpletableofcontentsinone section,youcouldaddaStandard
ScriptthatusesthepageRef()function.Foranexample,see"pageref()"onpage1260.
Foramulti-page,cross-sectiontableofcontentsyoumustuseaPostPaginationScript;see"Creat-
ingaTableOfContents"onpage852.
Thebasicsofscript-writingintheDesignerareexplainedinthefollowingtopic:"Writingyourown
scripts"onpage808.
Configuring page numbers
BydefaultthepagenumbersareArabicnumerals(1,2,3,etc.)withoutleadingzerosnorprefix,and
pagenumberingstartswithpage1foreachsection.Butthiscanbechanged.Todothat:
Page 458