6
Documentdivisions
Forthischapterthepedersenchapterstylehasbeenusedinordertodemonstratehowit
appears.
InthischapterIfirstdiscussthevariouskindsofdivisionswithinabookandthecom-
mandsfortypesettingthese.
AfterthatIdescribetheclassmethodsformodifyingtheappearanceofthechapterand
othersectionaltitles(subheads).Thefacilitiesdescribedhereprovideroughlythesameas
youwouldgetifyouusedthetitlesec[Bez99]andsectsty[McD98]packagestogether;the
commandsaredifferent,though.
6.1 L
OGICALDIVISIONS
Asdescribed earlierthere are three mainlogicaldivisionstoabook; ; the e front matter,
mainmatterandbackmatter.TherearethreeLaTeXcommandsthatcorrespondtothese,
namely
\frontmatter
,
\mainmatter
and
\backmatter
.
\frontmatter\frontmatter*
The
\frontmatter
declarationsetsthefoliostobeprintedinlowercaseromannumer-
als,startsthepagenumberingfromi,andprohibitsanynumberingofsectionaldivisions.
Caption,equations,etc.,willbenumberedcontinuously. Thestarredversionofthecom-
mand,
\frontmatter*
,issimilartotheunstarredversionexceptthatitmakesnochanges
tothepagenumberingortheprintstyleforthefolios. Eventhough
\chapter
andother
divisionswillnotbenumberedtheirtitleswillbeaddedtotheToC.
Ifitistobeusedatall,the
\frontmatter
declarationshouldcomebeforeanytextis
set,otherwisethepaginationschemewillbeindisarray(inbookspaginationstartsonthe
firstpage).
\mainmatter\mainmatter*
The
\mainmatter
declaration, whichisthedefaultatthestartofadocument, setsthe
foliostobeprintedinarabicnumerals,startsthepagenumberingfrom1,andsectionsand
abovewillbenumbered. Floatcaptions,equations,etc.,willbenumberedperchapter.
Thestarredversionofthecommand,
\mainmatter*
,issimilartotheunstarredversion
exceptthatitmakesnochangestothepagenumberingortheprintstyleforthefolios.
Pleasenotethat
\mainmatter
willnotonlychangethefolionumberstoarabicand
restartitat1,itwillalsomakesureitstartsatthenextcomingrectopage. (Evenwhen
runningunderthe
openany
option).
\backmatter
The
\backmatter
declarationmakesnochangetothepaginationorfoliosbutdoespro-
hibitsectionaldivisionnumbering,andcaptions,etc.,willbenumberedcontinuously.
Ifyouhaveothertypesoffloatsthatmightbeusedinthefront-main-orbackmatter,then
youcanchangesomeinternalstoaddthesetobenumberedinthesamemanneraswedo
withfiguresandtables.Theyaredefinedas
Chapterlastupdated2013/05/13 (revision459)
73
Convert pdf to editable text - SDK application service:C# PDF Convert to Text SDK: Convert PDF to txt files in C#.net, ASP.NET MVC, WinForms, WPF application
C# PDF to Text (TXT) Converting Library to Convert PDF to Text
www.rasteredge.com
Convert pdf to editable text - SDK application service:VB.NET PDF Convert to Text SDK: Convert PDF to txt files in vb.net, ASP.NET MVC, WinForms, WPF application
VB.NET Guide and Sample Codes to Convert PDF to Text in .NET Project
www.rasteredge.com
6. D
OCUMENTDIVISIONS
\newcommand\@memfront@floats{%
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}}
\newcommand\@memmain@floats{%
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}}
\newcommand\@memback@floats{%
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\setcounter{figure}{0}
\setcounter{table}{0}}
Themacroscanalsobechangedincaseyouwanttohaveconsecutivefigurenumbering
throughout,i.e.,
\makeatletter
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\renewcommand\@memfront@floats{}
\renewcommand\@memmain@floats{}
\newcommand\@memback@floats{}
\makeatletter
inthepreamble.
6.2 S
ECTIONAL DIVISIONS
Thememoir classletsyou divide adocument upintoeightlevelsofnameddivisions.
Theyrangefrombook,partthroughchapteranddowntosub-paragraph.Aparticularsec-
tionaldivisionisspecifiedbyoneofthecommands
\book
,
\part
,
\chapter
,
\section
,
\subsection
,whichisprobablyasdeepasyouwanttogo.Ifyoureallyneedfinerdivi-
sions,theyare
\subsubsection
,
\paragraph
andlastly
\subparagraph
.Thesectional
commands,exceptfor
\book
and
\part
,havethesameform,soratherthandescribing
eachoneinturnIwilluse
\section
asmodelforallbutthetwoexceptions.
\section[
toc-title
][
head-title
]{
title
}
\section*{
title
}
Therearetwoformsofthecommand; thestarredversionissimpler,soI’lldescribe
itseffectsfirst—itjusttypesetstitleinthedocumentintheformatforthatparticular
sectionaldivision. Likethe e starredversion, theplainversionalsotypesetstitleinthe
document,butitmaybenumbered. Diferentformsofthedivisiontitleareavailablefor
theTableofContents(ToC)andarunningheader,asfollows:
 Nooptionalargument: : titleisusedforthedivisiontitle,theToCtitleandapage
headertitle.
 Oneoptionalargument:titleisusedforthedivisiontitle;toc-titleisusedforthe
ToCtitleandapageheadertitle.
 Twooptionalarguments:titleisusedforthedivisiontitle;toc-titleisusedforthe
ToCtitle;head-titleisusedforapageheadertitle.
74
SDK application service:C# Create PDF Library SDK to convert PDF from other file formats
The PDF document file created by RasterEdge C# PDF document creator library is searchable and can be fully populated with editable text and graphics
www.rasteredge.com
SDK application service:C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
Quick to remove watermark and save PDF text, image, table Convert PDF to multiple MS Word formats such as .doc Create editable Word file online without email.
www.rasteredge.com
6.2. Sectionaldivisions
A
\section
commandrestartsthenumberingofany
\subsection
sfromone. For
mostofthedivisionsthetitleisputonthepagewherethecommandwasissued. The
\book
,
\part
and
\chapter
commandsbehavealittledifferently.
The
\book
and
\part
commandsaresimplerandbothbehaveinthesameway.
\book{
title
}
\part{
title
}
The
\book{
title
}
commandputsthebookname(default
Book
),numberandtitleon
apagebyitself. Thenumberingofbookshasnoeffectonthenumberingof
\part
sor
\chapter
s. Similarlythe
\part{
title
}
commandputsthe partname (default
Part
),
numberandtitleonapagebyitself. Thenumberingofpartshasnoeffectonthenum-
beringof
\chapter
s.
LaterI’llgivealistofLaTeX’sdefaultnames,like
Part
.
\chapter[
toc-title
][
head-title
]{
title
}
\chapter*[
head-title
]{
title
}
The
\chapter
command starts s a a new page e and puts the chapter name (default
Chapter
), numberandtitleatthe topofthe page. . Itrestartsthe e numberingofany
\section
sfromone.Ifnooptionalargumentsarespecified,titleisusedastheToCen-
tryandforanypageheadings. Ifoneoptionalargumentisspecifiedthisistoc-titleand
isusedfortheToCentryandforpageheadings.Ifbothoptionalargumentsarespecified
thehead-titleisusedforpageheadings.
The
\chapter*
commandstartsanewpageandputstitleatthetopofthepage. It
makesnoToCentry,changesnonumbersandbydefaultchangesnopageheadings.Ifthe
optionalhead-titleargumentisgiven,thisisusedforpageheadings.Useoftheoptional
argumenthastheside-effectthatthe
secnumdepth
counterissetto
maxsecnumdepth
(see
belowforanexplanationofthese).
Whenthearticleoptionisineffect,however,thingsareslightlydifferent.Newchapters
donotnecessarilystartonanewpage.The
\mainmatter
commandjustturnsonsectional
numberingandstartsarabicpagenumbering;the
\backmatter
commandjustturnsoff
sectionalnumbering.The
\tableofcontents
commandandfriends,aswellasanyother
commandscreatedvia
\newlistof
,always
1
call
thispagestyle{chapter}
. Ifyouare
usingthearticleoptionyouwillprobablywanttoensurethatthechapterpagestyleisthe
sameasyounormallyuseforthedocument.
Unlikethestandardclassesthetitleistypesetraggedright. Thismeansthatifyou
needtoforcealinebreakinthetitleyouhavetouse
\newline
insteadofthemoreusual
\\
.Forinstance
\section{A broken\newline title}
Inthestandardclassesa
\section
orothersubheadthatistooclosetothebottomof
apageismovedtothetopofthefollowingpage. Ifthishappensand
\flushbottom
is
ineffect,thecontentsoftheshortpagearestretchedtomakethelastlineflushwiththe
bottomofthetypeblock.
1
Thisisaconsequenceoftheinternaltimingofmacrocalls.
75
SDK application service:C# PDF Text Box Edit Library: add, delete, update PDF text box in
framework. Able to create a fillable and editable text box to PDF document in C#.NET class. Support to change font color in PDF text box.
www.rasteredge.com
SDK application service:Online Convert PDF to Text file. Best free online PDF txt
PDF document conversion SDK provides reliable and effective .NET solution for Visual C# developers to convert PDF document to editable & searchable text file.
www.rasteredge.com
6. D
OCUMENTDIVISIONS
\raggedbottomsection
\normalbottomsection
\bottomsectionskip
\bottomsectionpenalty
The
\raggedbottomsection
declarationwilltypesetanypagesthatareshortbecause
ofamovedsubheadasthough
\raggedbottom
wasineffectfor theshortpage; other
pagesarenotaffected. Thelength
\bottomsectionskip
controlstheamountofstretch
on the e short page. . Setting g it t to o zero allows the last line to be flush h with the e bot-
tom of the typeblock. . The e default setting of 10mm appears to o remove e anystretch.
\bottomsectionpenalty
controlthepenaltyitcoststomakeapagebreakatthispoint.
Thedetaultiszeroasthestretchisusuallyenough,bysettingittoanegativeintegerone
canbeabitmoreincouragingregardingapossiblepagebreak.
Thedeclaration
\normalbottomsection
,whichisthedefault,cancelsanyprevious
\raggedbottomsection
declaration.
6.2.1 Appendices
Appendicesnormallycomeafterthemaintextandareoftenconsideredtobepartofthe
\mainmatter
astheyarenormallynumbered(the
\backmatter
declarationturnsoffall
sectionalnumbering).
\appendix
\appendixname
The
\appendix
declarationchangesthenumberingofchapterstoanalphabeticformand
alsochangesthenamesofchaptersfrom
\chaptername
(default
Chapter
)tothevalue
of
\appendixname
(default
Appendix
). Thus,thefirstandanysubsequent
\chapter
s
afterthe
\appendix
command willbe‘AppendixA ...’, ‘AppendixB ...’, andso on.
Thatisasfarasthestandardclassesgobutthisclassprovidesmorewaysofdealingwith
appendices.
\appendixpage
\appendixpage*
\appendixpagename
The
\appendixpage
commandgeneratesapart-likepage(butnonameornumber)with
thetitlegivenbythevalueof
\appendixpagename
(default
Appendices
). Italsomakes
anentryintheToCusing
\addappheadtotoc
(seebelow).Thestarredversiongenerates
theappendixpagebutmakesnoToCentry.
\addappheadtotoc
\appendixtocname
Thecommand
\addappheadtotoc
addsanentrytotheToC.Thetitleisgivenbythevalue
of
\appendixtocname
(default
Appendices
).
\begin{appendices}
text
\end{appendices}
76
SDK application service:VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
Convert PDF document to DOC and DOCX formats in Visual Basic control to export Word from multiple PDF files in Create editable Word file online without email.
www.rasteredge.com
SDK application service:C# PowerPoint - PowerPoint Creating in C#.NET
PowerPoint document file created by RasterEdge C# PowerPoint document creator library is searchable and can be fully populated with editable text and graphics
www.rasteredge.com
6.3. Numbering
The
appendices
environmentactslikethe
\appendix
commandinthatitresetsthenum-
beringandnamingofchapters. However,attheendoftheenvironment,chaptersarere-
storedtotheiroriginalconditionandanychapternumberscontinueinsequenceasthough
the
appendices
environmenthadneverbeenthere.
\begin{subappendices}
text
\end{subappendices}
\namedsubappendices\unnamedsubappendices
The
subappendices
environmentcanbeusedtoputappendicesatthe endofachap-
ter. Within n the e environment
\section
starts a new sub-appendix. . You u may y put
\addappheadtotoc
atthestartoftheenvironmentifyouwantaheadingentryinthe
ToC.Ifyouputthedeclaration
\namedsubappendices
beforethe
subappendices
envi-
ronment,thesub-appendixnumberinthebodyofthedocumentwillbeprecededbythe
valueof
\appendixname
. The
\unnamedsubappendices
declaration,whichisthede-
fault,maybeusedtoswitchoffthisbehaviour.
Caveat:
The implementation of the named subappendices make use of
\setsecnumformat
,thusifyouhaveusedthiscommandtochangetheformatingofthe
sectionnumberyouwillneedtore-dothisinaspecialmannerinsidethe
subappendices
environemt. Somethinglike e this(where auser wanted to use oldstylenumerialsfor
sectioningnumbers)
\begin{subappendices}
\setsecnumformat{\sectionname\
\oldstylenums{\csname the#1\endcsname\quad}}
Themacro
sectionname
isaspecialmacrothatonlylivesinside the
subappendices
environmentandisonlyavailablewhen
\namedsubappendices
isapplied.
6.3 N
UMBERING
EachtypeofsectionaldivisionhasanassociatedlevelasshowninTable6.1.Divisionsare
numberedifthevalueofthe
secnumdepth
counterisequaltoorgreaterthantheirlevel.
Forexample,with
\setcounter{secnumdepth}{2}
thensubsectionsuptobookwillbenumbered.
\setsecnumdepth{
secname
}
\maxsecnumdepth{
secname
}
Insteadofhavingtorememberthelevelsifyouwanttochangewhatgetsnumberedyou
canusethe
\setsecnumdepth
command.Itsets
secnumdepth
sothatdivisionssecname
andabovewillbenumbered. Theargumentsecnameisthenameofasectionaldivision
withoutthebackslash.Forexample,tohavesubsectionsandabovenumbered:
\setsecnumdepth{subsection}
Youcanalsouse
all
or
none
forsecnamewhichwilleitherturnonnumberingforall
levels,orturnoffnumberingaltogether.
77
SDK application service:C# Word - Word Creating in C#.NET
The Word document file created by RasterEdge C# Word document creator library is searchable and can be fully populated with editable text and graphics
www.rasteredge.com
SDK application service:C# Word - Word Create or Build in C#.NET
library is searchable and can be fully populated with editable text and graphics creating toolkit, if you need to add some text and draw Create Word From PDF.
www.rasteredge.com
6. D
OCUMENTDIVISIONS
Table6.1:Divisionlevels
Division
Level
\book
-2
\part
-1
\chapter
0
\section
1
\subsection
2
\subsubsection
3
\paragraph
4
\subparagraph
5
Whenusedinthepreamble
\setsecnumdepth
alsocalls
\maxsecnumdepth
,whichis
thenumberinglevelusedonce
\mainmatter
iscalled. Youcanuse
\setsecnumdepth
anywhereinthe
\mainmatter
to(temporarily)changethenumberinglevel.
Bydefault,theclasssets:
\setsecnumdepth{section}
\maxsecnumdepth{section}
The
\frontmatter
commands sets the numbering level to
none
. The e commands
\mainmatter
and
\mainmatter*
set the numberinglevel to the value specified d by
\maxsecnumdepth
.
Thenumbersettingcommandscomefromthetocvsec2package[Wil99b].
6.4 B
OOKANDPARTHEADINGS
Bookandpartheadingsalwaysstartonanewpagewiththebook andpart t pagestyles,
respectively.Thetypicalbookandpartheadingconsistsofthename(e.g.,‘Book’or‘Part’)
followedbyanumberrepresentedasanuppercaseRomannumeral. Thereisavertical
spaceafterwhichthetitleisprinted.Finallyanewpageisstarted.
Severalaspectsofthetypesettingofthe
\book
and
\part
titleareconfigurable.Ignor-
ingdetails,suchastheoptionalargument,thecodeforprinting
\part
headingslookslike
this:
\newcommand{\part}[1]{%
% THIS S IS A VERY SIMPLIFIED D VERSION
\cleardoublepage
% start a a new recto page
\thispagestyle{part}
% set t the page e style
\beforepartskip
% space before Name e and Number
\printpartname\partnamenum\printpartnum
\midpartskip
% space after r Name and Number
\printparttitle{#1}
% print the e title
\partpageend}
% finish off
\newcommand{\partpageend}{% THIS S IS SIMPLIFIED
\afterpartskip
% ifblankpage then n blank next page and restore e twocolumn n if f necessary
}
78
6.4. Bookandpartheadings
Thecodefor
\book
headingsissimilar.
Thegenerallayoutfor
\book
,
\part
and
\chapter
headingsissimilarandyoumay
wishtorefertoFigure6.1which,althoughitshowstheverticallayoutfora
chapter
head,
isalsoapplicableto
\book
and
\part
headswithappropriatechangesinthenamesofthe
commands.
\beforebookskip\afterbookskip
\beforepartskip\afterpartskip
Thesecommandseffectivelycontrolthespacingbeforeandafterthebookandparttitles.
Theirdefaultdefinitionsare:
\newcommand*{\beforebookskip}{\null\vfil}
\newcommand*{\afterbookskip}{\vfil\newpage}
\newcommand*{\beforepartskip}{\null\vfil}
\newcommand*{\afterpartskip}{\vfil\newpage}
Together,theseverticallycenteranytypesettingonthepage,andthenstartanewpage.To
movethe
\part
titleupwardsonthepage,forexample,youcoulddo:
\renewcommand*{\beforepartskip}{\null\vskip 0pt t plus 0.3fil}
\renewcommand*{\afterpartskip}{\vskip 0pt t plus 0.7fil \newpage}
\midbookskip
\midpartskip
The macros
\midbookskip
and
\midpartskip
are the spacings s between the e number
linesandthetitles.Thedefaultdefinitionsare:
\newcommand{\midbookskip}{\par\vspace 2\onelineskip}
\newcommand{\midpartskip}{\par\vspace 2\onelineskip}
andtheycanbechanged.
\printbookname\booknamefont
\booknamenum
\printbooknum\booknumfont
\printpartname\partnamefont
\partnamenum
\printpartnum\partnumfont
Themacro
\printbookname
typesetsthebookname(thevalueof
\bookname
)us-
ingthe font t specified d by
\booknamefont
. The e default isthe
\bfseries
font in n the
\huge
size. Likewise e the e booknumber istypeset by
\printbooknum
usingthe font
specifiedby
\booknumfont
,whichhasthesamedefaultas
\booknamefont
. Themacro
\booknamenum
,whichisdefinedtobeaspace,iscalledbetweenprintingthebookname
andthenumber.Allthesecanbechangedtoobtaindifferenteffects.
Similarly, the e macro
\printpartname
typesets the part name (the value of
\partname
)usingthefontspecifiedby
\partnamefont
. Thedefaultisthe
\bfseries
fontinthe
\huge
size.Likewisethepartnumberistypesetby
\printpartnum
usingthe
fontspecifiedby
\partnumfont
, whichhasthesamedefaultas
\partnamefont
. The
macro
\partnamenum
,whichisdefinedtobeaspace,iscalledbetweenprintingthepart
nameandthenumber.
79
6. D
OCUMENTDIVISIONS
Forexample,toseta
\part
inalargesansfontwiththepartnameflushleft:
\renewcommand{\partnamefont}{\normalfont\huge\sffamily\raggedright}
\renewcommand{\partnumfont}{\normalfont\huge\sffamily}
ortoonlyprintthepartnumberinthedefaultfont:
\renewcommand{\printpartname}{}
\renewcommand{\partnamenum}{}
\printbooktitle{
title
}\booktitlefont
\printparttitle{
title
}\parttitlefont
A book’s s title is s typeset t by
\printbooktitle
using the font specified by
\booktitlefont
. Bydefault t this s is a
\bfseries
font inthe
\Huge
size. This s can
bechangedtohave,say,thetitlesetraggedleftinasmallcapsfontby
\renewcommand{\booktitlefont}{\normalfont\Huge\scshape\raggedleft}
Similarlyapart’stitle istypeset by
\printparttitle
usingthe fontspecifiedby
\parttitlefont
.Bydefaultthisisa
\bfseries
fontinthe
\Huge
size.
The
\parttitlefont
font isalso usedby
\appendixpage
, or itsstarredversion,
whentypesettinganappendixpage.
\bookpagemark{
title
}
\partmark{
title
}
The
\book
codeincludes
\bookpagemark{
title
}
forcapturingthetitleofthebookdi-
visionifitisgoingtobeused,forexample,inpageheaders.Itsdefinitionissimply:
\newcommand*{\bookpagemark}[1]{}
Thereisthecorresponding
\partmark
forthetitleof
\part
divisions.
\bookpageend\bookblankpage\nobookblankpage
\partpageend\partblankpage\nopartblankpage
Themacro
\bookpageend
finishesoffabooktitlepage.Itfirstcalls
\afterbookskip
.
If the
\nobookblankpage
is in n effect t it does s nothing more. . If f the declaration
\bookblankpage
(thedefault)isineffectthenitfinishesthecurrentpage,outputsablank
pageandthen,iftwocolumntypesettingwasineffectbefore
\book
thenitrestorestwocol-
umntypesetting.Themacro
\partpageend
performssimilarfunctionsfor
\part
pages.
Sotoaddsomethingonthebacksideofa
\part
page(assumingtwoside)usesome-
thingsimilarto
...
\nopartblankpage
\part{Title of the Part}
\thispagestyle{simple}
Text on n the following (normally blank page)
\clearpage
...
Alternativelyyoucanredefine
\partpageend
.
Ifyouusethedeclaration
\nopartblankpage
(or
\nobookblankpage
)thenyouare
responsibleforsettingeverythingcorrectlytoendoffthe
\part
(or
\book
)page. Thisis
thedefaultdefinitionof
\partpageend
(thatfor
\bookpageend
issimilar):
80
6.4. Bookandpartheadings
\newcommand{\partpageend}{%
\afterpartskip
\ifm@mnopartnewpage%
set by y \(no)partblankpage
\else%
default finish off
\if@twoside
\if@openright%
output blank page
\null
\thispagestyle{afterpart}%
\newpage
\fi
\fi
\fi
\if@tempswa%
true if f twocolumn n was s being used
\twocolumn
\fi}
Herewiththedefaultdefinitions,
\afterpartskip
endsoffthe
\part
page, andthen
therestofthecodein
\partpageend
takescareoftypesettingtheblankbacksideofthe
\part
page(orsendusbacktotwocolumnmode).
Ifontheotherhandweactuallywanttowritesomethingbelowtheparttitleonthe
\part
page,thenweneedadifferentroute. The‘air’aboveandbelowtheparttitleisby
defaultdefinedas
\newcommand*{\beforepartskip}{\null\vfil}
\newcommand*{\afterpartskip}{\vfil\newpage}
Thusweneedtoredefinedthissuchthatitdoesnotchangethepageandsuchthatitadd
usefulspacingaboveandbelowtheparttitling.Somethinglikethismaydothetrick
\makeatletter
\newcommand*{\beforepartskip}{\null\vskip4cm}
\newcommand*{\afterpartskip}{\par\vskip1cm%
\@afterindentfalse\@afterheading}
\makeatother
6.4.1 Leadpage
\newleadpage[
page-style
]{
cmdname
}{
title
}
\newleadpage*[
page-style
]{
cmdname
}{
title
}
\renewleadpage[
page-style
]{
cmdname
}{
title
}
\renewleadpage*[
page-style
]{
cmdname
}{
title
}
\newleadpage
andassociatesarevariantsofthe
\newcommand
andcompanions.
2
The
\newleadpage
commanddefinesamacro
\cmdname
thatwhen called willtypeset t an
Appendixpage-likepage(see§6.2.1)withatitletitleusingthepage-styleasthepagestyle
forthepage. Thedefaultistheemptypagestyle. . Themacro
\renewleadpage
redefines
anexistingleadpagecommand.Asanexample:
\newleadpage{plates}{Picture Gallery}
2ThesuggestionsforthesecamefromDanieElsandLarsMadsen.
81
6. D
OCUMENTDIVISIONS
createsthenewcommand
\plates
whichwhencalledgeneratesanunnumberedpart-like
pagewiththetitlePictureGallery.
\leadpagetoclevel
When
\(re)newleadpage
isusedtheresultingcommandaddstitletotheToCasthough
itwasanunnumbered
\leadpagetoclevel
entry,whosedefinitionis
\newcommand*{\leadpagetoclevel}{chapter}
Ifyouwishedthemtobeenteredlikea
\part
headerthensimply:
\renewcommand*{\leadpagetoclevel}{part}
Whenthestarredversions
\(re)newleadpage*
areusedtheresultingcommandwill
notaddtitletotheToC.
Thelayoutofthepagematchesthatforunnumbered
\part
pages,andinternallythe
resultingcommandsuse
\partmark
incaseyouwishtocapturethetitletouseinrun-
ningheaders.
6.5 C
HAPTERHEADINGS
Thechapterheadingsareconfigurableinmuchthesamewayasbookorpartheadings,
butinadditiontherearesomebuiltinchapterstylesthatyoumaywishtotry,ordefine
yourown.
Chapters,exceptwhenthearticleclassoptionisused,alwaysstartonanewpagewith
thechapter pagestyle. . Theparticularpage, , recto orverso, that theystart onismainly
controlledbytheclassoptions. Iftheonesideoptionisusedtheystartonthenextnew
page,butifthetwosideoptionisusedthestartingpagemaydiffer,asfollows.
openright Thechapterheadingistypesetonthenextrectopage,whichmayleaveablankverso
leaf.
openleft Thechapterheadingistypesetonthenextversopage,whichmayleaveablankrecto
leaf.
openany Thechapterheadingistypesetonthenextpageandtherewillbenoblankleaf.
\openright\openleft\openany
Thesethreedeclarationshavethesameeffectastheoptionsofthesamename. Theycan
beusedanywhereinthedocumenttochangethechapteropeningpage.
Ignoringmanydetails,liketheoptionalarguments,thecodeforprintinga
\chapter
headingissimilartothatfor
\book
and
\part
(the
\chapterhead
commandbelowisnot
partoftheclass).
\newcommand{\chapterhead}[1]{ % % THIS IS A A SIMPLIFIED D VERSION
\clearforchapter
% move to o correct t page
\thispagestyle{chapter} % set the e page e style
\insertchapterspace
% Inserts s space into o LoF and d LoT
\chapterheadstart
% \beforechapskip space before heading
\printchaptername\chapternamenum\printchapternum
\afterchapternum
% \midchapskip space between n number and d title
\printchaptertitle{#1} % % title
\afterchaptertitle}
% \afterchapskip p space after title
82
Documents you may be interested
Documents you may be interested