18.3. Trimmarks
\newcommand*{\trimmarkscolor}{\color{blue}}
\trimmarks
\tmarktl\tmarktr\tmarkbr\tmarkbl
\tmarktm\tmarkmr\tmarkbm\tmarkml
The
\trimmarks
macroisresponsiblefordisplayingupto8marks.Themarksaredefined
aszero-sizedpictureswhichareplacedstrategicallyaroundthebordersofthepage.
Thecommand
\trimmarks
placesthepictures
\tmarktl
,
\tmarktr
,
\tmarkbl
,and
\tmarkbr
atthetopleft,topright,bottomrightandbottomleftcornersofthepage. The
pictures
\tmarktm
,
\tmarkmr
,
\tmarkbm
,and
\tmarkml
areplacedatthetopmiddle,
middleright,bottommiddleandmiddleleftoftheedgesofthepage.Allthese
\tmark..
macrosshouldexpandtozero-sizedpictures.
\trimmark
Thedeclaration
\trimXmarks
uses
\trimmark
forthecornercrosses.Thisisdefinedas
\newcommand{\trimmark}{%
\begin{picture}(0,0)
\setlength{\unitlength}{1cm}\thicklines
\put(-2,0){\line(1,0){4}}
\put(0,-2){\line(0,1){4}}
\end{picture}}
whichproducesazero-sizedpictureofa4cmcross.Then
\trimXmarks
isdefinedas:
\newcommand*{\trimXmarks}{%
\let\tmarktl\trimmark
\let\tmarktr\trimmark
\let\tmarkbr\trimmark
\let\tmarkbl\trimmark}
Asanexample,todrawshortlinesmarkingthehalf-heightofthepage,trythis:
\renewcommand*{\tmarkml}{%
\begin{picture}(0,0)%
\unitlength 1mm
\thinlines
\put(-2,0){\line(-1,0){10}}
\end{picture}}
\renewcommand*{\tmarkmr}{%
\begin{picture}(0,0)%
\unitlength 1mm
\thinlines
\put(2,0){\line(1,0){10}}
\end{picture}}
Thinhorizontallinesoflength10mmwillbedrawnatthemiddleleftandmiddlerightof
thepage,starting2mmoutsidethepageboundary. Thisiswhatwedo(now)bydefault
forallfourmiddleparts.
\quarkmarks
\registrationColour{
mark
}
323
Reader create pdf multiple files - Merge, append PDF files in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provide C# Demo Codes for Merging and Appending PDF Document
add pdf files together online; batch pdf merger
Reader create pdf multiple files - VB.NET PDF File Merge Library: Merge, append PDF files in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Guide and Sample Codes to Merge PDF Documents in .NET Project
add pdf files together online; apple merge pdf
18. M
ISCELLANEOUS
Followingthe declaration
\quarkmarks
andtrimmarkswillbeinthe style ofQuark
Xpressregistrationmarks.Themarkswillbetypesetusing
\registrationColour
.The
defaultdefinitionissimply
\newcommand*{\RegistrationColour}[1]{#1}
butyoucanchangethatto,say,printthemarksinparticularcolor.SeeFigure18.1.
18.4 S
HEETNUMBERING
Onepurposeoftrimmarksistoshowaprinterwherethestockshouldbetrimmed.Inthis
applicationitcanbeusefultoalsonotethesheetnumberoneachpage,wherethesheet
numberis1forthefirstpageandincreasesby1foreachpagethereafter.Thesheetnumber
isindependentofthepagenumber.
sheetsequence
\thesheetsequence
Themacro
\thesheetsequence
typesetsthecurrentsheetsequencenumberandisanal-
ogoustothe
\thepage
macro.
lastsheet
lastpage
Thecounter
lastsheet
holdsthenumberofsheetsprocessedduringthe previousrun
ofLaTeX.Similarly,thecounter
lastpage
holdsthenumberofthelastpageprocessed
duringthepreviousrun.Notethatthelastpagenumberisnotnecessarilythesameasthe
lastsheetnumber.Forexample:
Inthisdocumentthisissheet362of609sheets,andpage324of571.
Theprevioussentencewastheresultofprocessingthefollowingcode
\textit{In this document t this s is
sheet \thesheetsequence\ of f \thelastsheet\ \ sheets,
and page e \thepage\ \ of f \thelastpage.}
Youmaywishtousethesheetand/orpagenumbersaspartofsometrimmarks.The
followingwillnotethesheetnumbersabovethepage.
\newcommand*{\trimseqpage}{%
\begin{picture}(0,0)
\unitlength 1mm
\put(0,2){\makebox(0,0)[b]{Sheet: \thesheetsequence\ of \thelastsheet}}
\end{picture}}
\let\tmarktm\trimseqpage
18.5 G
ATHERINGSORSIGNATURES
Sometimespublishersrequestthattheybesuppliedwithatotalnumberofpagesthatmeet
theirplannedgatherings.Forinstanceagatheringmayconsistof8leaves,andasthereare
1
ThecodeforthiswasdonatedbyWilliamAdams.
2
Therewasathreadon
CTT
,pagenumbermod4?aboutthisin2008.
324
C# PDF File Split Library: Split, seperate PDF into multiple files
pages. Divide PDF file into multiple files by outputting PDF file size. Split outputFiles); Split PDF Document into Multiple PDF Files in C#. You
asp.net merge pdf files; pdf mail merge plug in
VB.NET PDF File Split Library: Split, seperate PDF into multiple
Split PDF Document into Multiple PDF Files Demo Code in String = Program.RootPath + "\\" 1.pdf" Dim outputFileName to (Page Count - 1). ' Create output PDF
pdf combine; break pdf file into multiple files
18.5. Gatheringsorsignatures
Hello,hereissometextwith-
outameaning. Thistextshould
show whataprintedtextwill
looklike atthisplace. . If f you
readthistext, youwill getno
information. Really? Is s there
noinformation? Isthereadif-
ference betweenthis text and
some nonsense like “Huardest
gefburn”? Kjift t –not at all!
Ablindtextlikethisgivesyou
informationabouttheselected
font, howthe letters arewrit-
ten and an impression of f the
look. This textshouldcontain
alllettersof the alphabetand
itshould be writteninof f the
original language. . Thereisno
need for r special l content, but
thelengthofwordsshouldmatch
thelanguage.
(a)\trimXmarks(default)
Hello,hereissometextwith-
outameaning. Thistextshould
showwhataprintedtextwill
look like e at thisplace. . If f you
readthistext, you will getno
information. Really? Is s there
noinformation? Isthereadif-
ference between this text and
some nonsense like “Huardest
gefburn”? Kjift– – not at all!
Ablindtextlikethisgivesyou
informationabouttheselected
font, how the lettersare writ-
ten andan impression of f the
look. Thistextshouldcontain
all letters ofthealphabetand
itshould be writteninof f the
original language. . Thereisno
need for special l content, but
thelengthofwordsshouldmatch
the language.
(b)\trimLmarks
Hello,hereissometextwith-
outameaning. Thistextshould
show whataprintedtextwill
looklike atthisplace. . If f you
readthistext, youwill getno
information. Really? Is s there
noinformation? Isthereadif-
ference betweenthis text and
some nonsense like “Huardest
gefburn”? Kjift t –not at all!
Ablindtextlikethisgivesyou
informationabouttheselected
font, howthe letters arewrit-
ten and an impression of f the
look. This textshouldcontain
alllettersof the alphabetand
itshould be writteninof f the
original language. . Thereisno
need for r special l content, but
thelengthofwordsshouldmatch
thelanguage.
(c)\trimFrame
trims-example May y 30, 2013 3 12:10 Page e 4
Hello,hereissometextwith-
outameaning. Thistextshould
showwhataprintedtextwill
look like e at thisplace. . If f you
readthistext, you will getno
information. Really? Is s there
noinformation? Isthereadif-
ference between this text and
some nonsense like “Huardest
gefburn”? Kjift– – not at all!
Ablindtextlikethisgivesyou
informationabouttheselected
font, how the lettersare writ-
ten andan impression of f the
look. Thistextshouldcontain
all letters ofthealphabetand
itshould be writteninof f the
original language. . Thereisno
need for special l content, but
thelengthofwordsshouldmatch
the language.
(d)\quarkmarks
Figure18.1:Thefourtrimmarktypes
325
C# Create PDF Library SDK to convert PDF from other file formats
Tell Users How to Create New PDF File and Load PDF from Other Files. Free PDF creator SDK for Visual Studio .NET. Batch create adobe PDF from multiple forms.
all jpg to one pdf converter; scan multiple pages into one pdf
VB.NET Create PDF from CSV to convert csv files to PDF in vb.net
XImage.Barcode Reader. XImage.Barcode Generator. Help VB.NET Users to Create PDF Document from CSV File. CSV files are saved to PDF documents by keeping original
merge pdf online; c# merge pdf
18. M
ISCELLANEOUS
twopagestoaleafthisisequivalentto16pages.Tomeetthisparticularrequirementthere
mustbeatotalof8Nleaves,orequivalently16pages,whereNwillbethenumberof
gatherings.
\leavespergathering{
num
}
Thecommand
\leavespergathering
ensuresthattherewillbeexactlytherightnumber
ofpagesoutputtomakeacompletesetofgatheringsofnumleaves(2numpages)each
—ifnecessaryblankpageswillbeoutputattheendtomakeupthecorrecttally.Ifnum
islessthantwo(thedefault)thennoadditionalpageswillbeoutput.
18.6 T
IME
\printtime\printtime*
\hmpunct\amname\pmname
The
\printtime
command
3
printsthetimeofdaywhenthedocumentisprocessed
usingthe24hourclockwhile
\printtime*
usesa12hourclock.Forexample,theeffect
ofthenextpieceofcodeisshownbelow.
This document t was processed on: \today\ at t \printtime\ (\printtime*).
Thisdocumentwasprocessedon:May30,2013at12:10(12:10pm).
Thepunctuationbetweenthehoursandminutesis
\hmpunct
whichdefaultstoacolon
(:). Themacros
\amname
and
\pmnane
holdtheabbreviationsforantemeridiemandpost
meridiem,respecitively;thedefaultsare‘am’and‘pm’.
AccordingtotheChicagoManualofStyle[Chi93]thereshouldbenopunctuationbe-
tweenthehoursandminutesinthe24hoursystem.Forthe12hoursystemitrecommends
thatsmallcapsbeusedforthedivisionsoftheday(e.g.,
A
.
M
. and
P
.
M
.)andalsothatthe
Americanpracticeistouseacolonastheseparatorbetweenhoursandminuteswhereas
theEnglishpracticeistouseaperiod(knowntotheEnglishasa‘fullstop’).Idon’tknow
whatthetraditionsareinotherorthographies.
The
\quarkmarks
declarationuses
\printtime
,sobecarefulifyouchangeit.
NicolaTalbot’sdatetimepackage[Tal06]providesamuchmorecomprehensivecollec-
tionofstylesforprintingthetime;alsofordates.
18.7 P
AGEBREAKSBEFORELISTS
Asentenceortwomaybeusedtointroducealist(e.g.,
itemize
)anditcanbeannoying
ifthereisapagebreakbetweentheintroductorywordsandthefirstitem.
\noprelistbreak
Putting
\noprelistbreak
immediatelybeforethe
\begin{itemize}
shouldprevent
apagebreak. Ideally,thereshouldbenoblanklinesbetweentheendoftheintroduction
andthestartofthelist.
3
IbasedthecodeonasimilarmacroinTeXfortheImpatient[AHK90].
326
C# Create PDF from CSV to convert csv files to PDF in C#.net, ASP.
Create PDF from CSV in both .NET WinForms and ASP.NET CSV files are saved to PDF documents by keeping Supports converting multiple sheets CSV file to one PDF
batch pdf merger; combine pdf
C# Create PDF from images Library to convert Jpeg, png images to
Create PDF from images in both .NET WinForms and ASP.NET multiple image formats into one or multiple PDF file in example shows how to build a PDF document with
how to combine pdf files; append pdf
18.8. Changingcounters
18.8 C
HANGINGCOUNTERS
Thisiseffectivelyabundlingofthechngcntrpackage[Wil01e].
\newcounter{
ctr
}[
within
]
\thectr
InLaTeXanewcountercalled, say
ctr
, iscreatedbythe
\newcounter
command as
\newcounter{ctr}
. Iftheoptionalwithinargumentisgiven, , thecounter
ctr
isre-
settozeroeachtimethecountercalled
within
ischanged;the
within
countermustexist
beforeitisusedastheoptionalargument. Thecommand
\thectr
typesetsthevalueof
thecounter
ctr
. Thisisautomaticallydefinedforyoubythe
\newcounter
commandto
typesetarabicnumerals.
\counterwithin{
ctr
}{
within
}
\counterwithin*{
ctr
}{
within
}
The
\counterwithin
macro makes a ctr that has been initially defined d by
\newcounter{ctr}
actasthoughithadbeendefinedby
\newcounter{ctr}[within]
.
Italsoredefinesthe
\thectr
commandtobe
\thewithin.\arabic{ctr}
. Thestarred
versionofthecommanddoesnothingtotheoriginaldefinitionof
\thectr
.
\counterwithout{
ctr
}{
within
}
\counterwithout*{
ctr
}{
within
}
The
\counterwithout
macromakesthe
ctr
counterthathasbeeninitiallydefinedby
\newcounter{ctr}[within]
actasthoughithadbeendefinedby
\newcounter{ctr}
.
Italsoredefinesthe
\thectr
commandtobe
\arabic{ctr}
. Thestarredversionofthe
commanddoesnothingtotheoriginaldefinitionof
\thectr
.
Anynumber of
\counterwithin{ctr}{...}
and
\counterwithout{ctr}{...}
commandscanbeissuedforagivencounter
ctr
ifyouwishtotogglebetweenthetwo
styles. Thecurrentvalueof
ctr
isunaffectedbythesecommands. Ifyouwanttochange
thevalueuse
\setcounter
,andtochangethetypesettingstyleuse
\renewcommand
on
\thectr
.
\letcountercounter{
counterA
}{
counterB
}
\unletcounter{
counterA
}
Attimesitishandyto‘let’onecounteractasifitwasadifferentcounter. Sayyouhave
twoconstructions,eachwiththeirowncounterAandB,nowyouwantthemtocooperate,
countinginunison.Thiscanbedoneusingthe
\letcountercounter
.
\letcountercounter{
counterA
}{
counterB
}\let
s(makethesame)counterAto
counterB.TheoriginalofcounterAiskept,suchthatyoucanunletitlater.
\unletcounter{
counterA
}
restorescounterAtoitsun
\let
condition.
Thisfeaturecanbequitehandy.Sayforinstanceyouwantfiguresandtablestocounter
withinthesamecounter(saytable),thenweneedeachchangetothe
figure
counterto
actuallyactonthe
table
counter.
\letcountercounter{figure}{table}
solvesthe
problem.
327
VB.NET Create PDF from images Library to convert Jpeg, png images
Support create PDF from multiple image formats in VB.NET Turn multiple image formats into one or multiple PDF file. shows how to build a PDF document with three
best pdf merger; pdf combine two pages into one
VB.NET PDF Convert to Jpeg SDK: Convert PDF to JPEG images in vb.
XImage.Barcode Reader. XImage.Barcode Generator. C#.NET Annotate PDF in WPF, C#.NET PDF Create, C#.NET Turn multiple pages PDF into multiple jpg files in VB.NET
combine pdf files; adding pdf pages together
18. M
ISCELLANEOUS
18.9 N
EWNEWANDPROVIDE COMMANDS
\newloglike{
cmd
}{
string
}
\newloglike*{
cmd
}{
string
}
Theclassprovidesmeansofcreatingnewmathlog-likefunctions.Forexampleyoumight
wanttodo
\newloglike{\Ei}{Ei}
ifyouareusingtheexponentialintegralfunctioninyourwork.Thestarredversionofthe
commandcreatesafunctionthattakeslimits(likethe
\max
function).
TheLaTeXkerneldefinesthe
\providecommand
macrothatactslike
\newcommand
if
thedesignatedmacrohasnotbeendefinedpreviously,otherwiseitdoesnothing.Theclass
addstothatlimitedrepertoire.
\provideenvironment{
name
}[
numargs
][
optarg
]{
begindef
}{
enddef
}
\providelength{
cmd
}
\providecounter{
ctr
}[
within
]
\provideloglike{
cmd
}{
string
}
\provideloglike*{
cmd
}{
string
}
Themacros
\provideenvironment
,
\providelength
and
\providecounter
takethe
sameargumentsastheir
\new...
counterparts.Iftheenvironment,lengthorcounterhas
notbeendefinedthenitisdefinedaccordingly,otherwisethemacrosdonothingexcept
produceawarningmessageforinformationpurposes.
The
\provideloglike
commandsare for mathlog-like functions,buttheydo not
produceanywarningmessages.
18.10 C
HANGINGMACROS
Commandsareprovidedforextendingsimplemacrodefinitions.
\addtodef{
macro
}{
prepend
}{
append
}
\addtoiargdef{
macro
}{
prepend
}{
append
}
Themacro
\addtodef
insertsprependatthestartofthecurrentdefinitionofmacroand
putsappendattheend,wheremacroisthenameofamacro(includingthebackslash)
whichtakesnoarguments.The
\addtoiargdef
macroissimilarexceptthatmacroisthe
nameofamacrothattakesoneargument.
Forexamplethefollowingaretwoequivalentdefinitionsof
\mymacro
:
\newcommand{\mymacro}[1]{#1 is a violinist t in n spite of f being tone e deaf}
and
\newcommand{\mymacro}[1]{#1 is a violinist}
\addtoiargdef{\mymacro}{}{ in n spite of f being tone deaf}
The
\addtoiargdef
(and
\addtodef
)commandscanbeappliedseveraltimestothe
samemacro.Revisingthepreviousexamplewecouldhave
\newcommand{\mymacro}[1]{#1 is a violinist}
\addtoiargdef{\mymacro}{Although somewhat t elderly, , }%
328
VB.NET PDF Library SDK to view, edit, convert, process PDF file
quality PDF conversions to or from multiple supported images Tell VB.NET users how to: create a new formats; merge, append, and split PDF files; insert, delete
c# pdf merge; add pdf files together
18.11. Stringarguments
{ in n spite of f being tone e deaf}
\addtoiargdef{\mymacro}{}{ and a bagpiper}
whichisequivalentto
\newcommand{\mymacro}[1]{%
Although somewhat elderly, , #1 1 is s a a violinist
in spite of being tone deaf and d a a bagpiper}
TheprependandappendargumentsmayincludeLaTeXcode,asshowninthisextract
fromtheclasscode:
\addtoiargdef{\date}{}{%
\begingroup
\renewcommand{\thanks}[1]{}
\renewcommand{\thanksmark}[1]{}
\renewcommand{\thanksgap}[1]{}
\protected@xdef\thedate{#1}
\endgroup}
Notethatinthecaseof
\addtoiargdef
anargumentcanalsorefertotheoriginalargu-
mentofthemacro.
\addtodef*{
macro
}{
prepend
}{
append
}
\addtoiargdef*{
macro
}{
prepend
}{
append
}
These starred d versions s are for use when the e original macro was defined via
\newcommand*
. Usingthestarredversionsislike e using
\renewcommand*
andtheun-
starredversionsarelikehavingused
\renewcommand
. Itisthe e version(starredorun-
starred)ofasequenceof
\addto...
commandsthatcountswhendeterminingwhether
theequivalent
\renew...
istreatedasstarredorunstarred.
The
\addto...
macroscannotbe usedtodelete anycodefrommacronor toadd
anythingexceptatthestartandend. Also,ingeneral,theycannotbeusedtochangethe
definitionofamacrothattakesanoptionalargument,orastarredmacro.
\patchcommand{
macro
}{
start-code
}{
end-code
}
The
\patchcommand
isfromthelateMichaelDownes’patchcmdpackage[Dow00].It
insertsthestart-codeatthestartofthecurrentdefinitionofthemacromacro,andinserts
end-codeattheendofitscurrentdefinition.Themacrocanhavezerotonineparameters.
Ifmacrouses
\futurelet
(e.g.,itisastarredcommandortakesanoptionalargument)
onlystart-codeisuseful—end-codemustbeemptyotherwisethingsgetmessedup. If
macrohasanydelimitedargumentsthen
\patchcommand
cannotbeused.
18.11 S
TRINGARGUMENTS
In the e code for the class I have sometimes s used macro o arguments that consist of a
‘string’, likethe
*
argumentsinthepagelayoutmacros(e.g.,
\settypeblocksize
),or
the
flushleft
,
center
and
flushright
stringsforthe
\makeheadposition
macro.
\nametest{
str1
}{
str2
}
\ifsamename
329
18. M
ISCELLANEOUS
The macro
\nametest
takes two strings as the arguments s str1  and str2. . It t sets
\ifsamenametrue
ifstr1isthesameasstr2,otherwiseitsets
\ifsamenamefalse
.
Forthepurposesof
\nametest
,astringisasequenceofcharacterswhichmayinclude
spacesandmayincludethe
\
backslashcharacter; stringsareequalifandonlyiftheir
charactersequencesareidentical.
Typically,Ihaveuseditwithinmacrosforcheckingonargumentvalues.Forexample:
\newcommand{\amacro}[1]{%
\nametest{#1}{green}
\ifsamename
%
code for r green
\fi
\nametest{#1}{red}
\ifsamename
%
code for r red
\fi
...
}
18.12 O
DD
/
EVENPAGECHECKING
Itisdifficulttocheckrobustlyifthecurrentpageisoddorevenbuttheclassdoesprovide
arobustmethodbasedonwritingoutalabelandthencheckingthepagereferenceforthe
label. ThisrequiresatleasttwoLaTeXrunstostabilise. Thishasbeenextractedfromthe
originalchngpagepackage(whichisnolongeravailable). (Theclasscodeandchngpage
code issimilar but notidentical. . There e isalaterpackage, changepage[Wil08a]which
containscodethatisidenticaltotheclass.)
\checkoddpage
\ifoddpage
\strictpagecheck\lazypagecheck
The macro
\checkoddpage
sets
\ifoddpage
to
true
if the e current page e number is
odd, otherwise e it t sets s it t to
false
(the page number is even). . The e robust checking
methodinvolveswritingandreadinglabels, whichiswhatisdoneafterthecommand
\strictpagecheck
isissued;it maytakemorethanonerunbeforeeverythingsettles
down.Thesimplemethodisjusttocheckthecurrentpagenumberwhich,becauseofTeX’s
asynchronouspagebreakingalgorithm,maynotcorrespondtotheactualpagenumber
wherethe
\checkoddpage
commandwasissued. Thesimple,butfaster,pagechecking
methodisusedafterthe
\lazypagecheck
commandisissued.
\cplabel
Whenstrictpagecheckingisusedthelabelsconsistofanumberprecededbythevalueof
\cplabel
,whosedefaultdefinitionis
^_
(e.g.,alabelmayconsistofthecharacters
^_21
).
Ifthismightclashwithanyofyourlabels,change
\cplabel
with
\renewcommand
,but
thedefinitionof
\cplabel
mustbeconstantforanygivendocument.
330
18.13. Movingtoanotherpage
18.13 M
OVINGTOANOTHERPAGE
Standard LaTeX X provides the
\newpage
,
\clearpage
and
\cleardoublepage
com-
mandsfordiscontinuingthe current pageandstartinganewone. . Thefollowingisa
bundlingofthenextpagepackage[Wil00c].
\needspace{
length
}
Thismacrodecidesifthereislengthspaceatthebottomofthecurrentpage.Ifthereis,it
doesnothing,otherwiseitstartsanewpage. Thisisusefuliflengthamountofmaterial
isto bekept togetheronone page. . The
\needspace
macrodependsonpenaltiesfor
decidingwhattodowhichmeansthatthereservedspaceisanapproximation.However,
exceptfortheoddoccasion,themacrogivesadequateresults.
\Needspace{
length
}
\Needspace*{
length
}
Like
\needspace
,the
\Needspace
macrochecksifthereislengthspaceatthebottomof
thecurrentpageandifthereisnotitstartsanewpage.Thecommandshouldonlybeused
betweenparagraphs;indeed,thefirstthingitdoesistocall
\par
.The
\Needspace
com-
mandchecksfortheactualspaceleftonthepageandismoreexactingthan
\needspace
.
If either
\needspace
or
\Needspace
produce ashort page e it will l be e ragged d bot-
tom evenif
\flushbottom
isineffect. Withthe e starred
\Needspace*
version, short
pageswillbeflushbottomif
\flushbottom
isineffectandwillberaggedbottomwhen
\raggedbottom
isineffect.
Generallyspeaking, use
\needspace
inpreferenceto
\Needspace
unlessitgivesa
badbreakorthepagesmustbeflushbottom.
\movetoevenpage[
text
]
\cleartoevenpage[
text
]
The
\movetoevenpage
stopsthecurrentpage and startstypesettingonthenext even
numberedpage. The
\clear...
versionflushesoutallfloatsbefore goingtothe next
evenpage.Theoptionaltextisputontheskippedpage(ifthereisone).
\movetooddpage[
text
]
\cleartooddpage[
text
]
Thesemacrosaresimilartothe
\...evenpage
onesexceptthattheyjumptothenextodd
numberedpage.
Alikelyexamplefortheoptionaltextargumentis
\cleartooddpage[\vspace*{\fill}THIS PAGE E LEFT T BLANK\vspace*{\fill}]
whichwillput‘THISPAGELEFTBLANK’inthecentreofanypotentialskipped(empty)
evennumberedpage.
\cleartorecto\cleartoverso
331
18. M
ISCELLANEOUS
These are slightlysimplerformsof
\cleartooddpage
and
\cleartoevenpage
. For
example,ifyouwantedtheToCtostartonaversopage,likeinTheTeXbook[Knu84],then
dothis:
\cleartoverso
\tableofcontents
18.14 N
UMBERFORMATTING
Severalmethodsareprovidedforformattingnumbers. Twoclassesofnumberrepresen-
tationsarecateredfor. A‘numericnumber’istypesetusingarabicdigitsanda‘named
number’istypesetusingwords.
Theargumenttothenumberformattingmacrosisa‘number’,essentiallysomething
thatresolvestoaseriesofarabicdigits.Typicalargumentsmightbe:
 Somedigits,e.g.,
\ordinal{123} ->
123rd
 Amacroexpandingtodigits,e.g.,
\def\temp{3}\ordinal{\temp} ->
3rd
 Thevalueofacounter,e.g.,
\ordinal{\value{page}} ->
332nd
 Thearabicrepresentationofacounter,e.g.,
\ordinal{\thepage} ->
332nd
However,iftherepresentationofacounterisnotcompletelyinarabicdigits,such
as
\thesection
whichhereprintsas18.14,itwillproduceodderrorsorpeculiar
resultsifitisusedastheargument.Forinstance:
\ordinal{\thesection} ->
.1418th
18.14.1 Numericnumbers
\cardinal{
number
}
\fcardinal{
number
}
\fnumbersep
Themacro
\fcardinal
printsitsnumberargumentformattedusing
\fnumbersep
be-
tweeneachtripleofdigits.Thedefaultdefinitionof
\fnumbersep
is:
\newcommand{\fnumbersep}{,}
Herearesomeexamples:
\fcardinal{12} ->
12
\fcardinal{1234} ->
1,234
\fcardinal{1234567} ->
1,234,567
\renewcommand*{\fnumbersep}{\:}\fcardinal{12345678} ->
12345678
\renewcommand*{\fnumbersep}{,\:}
The
\cardinal
macroislike
\fcardinal
exceptthatthereisnoseparationbetween
anyofthedigits.
\ordinal{
number
}
\fordinal{
number
}
\ordscript{
chars
}
The
\fordinal
macrotypesetsitsnumberargumentasaformattedordinal,using
\fnumbersep
astheseparator. Themacro
\ordinal
issimilarexcept thatthere isno
separationbetweenanyofthedigits.
4
Perhapsmorerobust.
332
Documents you may be interested
Documents you may be interested