91
Chapter3:ManagingTextDocumentsWithWriter
'Wordonly'meanstermswillonlybepickedupifthefullsearchtermword(s)arefoundin
thecorrectorder.Forexample,ifthesearchtermis'inpresent'everyinstanceoftheword
'in'followedbytheword'present'willbeindexedbut'inpresentation'or'inapresent'will
notbeindexed.'Wordonly'is'No'bydefault.
Afterenteringthetermspress
'OK
'tosavetheconcordancefile.
Torevieworchangeentries,rightclickanywhereinthethedocumentandchooseEdit>
Index/TabletobringuptheInsertIndex/Tabledialogue.Thenchoose
'Edit'
underthe
'File'
button.
Aconcordancefilecanalsobecreatedormodifiedmanually.Followtheabovestepsto
createaconcordancefile,thoughitisonlynecessarytoenteronelineofdata.Savethefileto
createthe
.sdi
file.ThisfilecannowbeopenedinWriterandadditionalentriescanbe
madeorexistingentriescanbemodified.Whensavingthemodifieddocumenttheremaybe
awarningmessageaboutformatting,answer
'Yes'
tosaveintheTextfileformat.Thiswill
keepthe
.sdi
extension.
Thetextdocumentdisplayseachentryoftheconcordancefileasaseparatelineandthe
itemsareseparatedbysemicolons.Thefieldsare:Searchterm;Alternativeentry;1
st
Keyor
Parent1;2
nd
KeyorParent2;MatchCase;Wordonly
Ifthereisnoinformationforaspecificfield,thatspotshouldbeleftempty.
Commentedlinesbeginwith
#
andareignoredbytheindexingsystem.
'Match case
'and
'Word only'
areinterpretedas
'No'
or
'False'
iftheyare
emptyorcontainazero.Allothercontentsareinterpretedas
'Yes
'or
True
.
Ifthesearchtermandalternativeentryarethesame,leavethealternativeentryblank.Ifthe
userwantstomakesurethetermisdisplayedaparticularway,enteritintheAlternative
entryfieldexactlyasitshouldbedisplayed.Forexample,searchingfortheword
'e-mail'
inthedocument,itshouldbeindexedregardlessofwhetheritisupperorlowercase;
however,displayoftheindexentrymustbeuppercase.Thus,theconcordancefileentry
shouldbe
e-mail;E-mail;;;0;1 OR E-mail,E-mail;;;0;1
.Withoutthe
alternativeentry,theindexwilldisplaythefirstinstanceof'email'foundinthedocumentso
itmayormaynotbecapitalized.
Ifthesearchtermhasnoparent,leaveParent1andParent2blank.
Parent 1
isthe
highestparent,
Parent 2
isasubparentof
Parent
1.
Examplefile
Inadocumentonanimalstheindexcouldhavealistingforcatbreeds.
Parent 1
wouldbe
'cats'
,Parent2wouldbe'
longhaired
','
shorthaired
'or'
semi longhaired
'
Examplesofentries(thecommentedlinesaregivenforexplanationandarenotrequired):
#American Shorthair
isthesearchtermandthe
#alternative
entry
soonlyneedstobelisted#once
#Catsisthehighestlevelparentwith#shorthairedasa
subparent.
OpenOffice.orgUserGuidefor2.x
120
How to C#: Basic SDK Concept of XDoc.PDF for .NET You may add PDF document protection functionality into your C# program. Hyperlink Edit. XDoc.PDF for .NET allows C# developers to edit hyperlink of PDF document
add page number to pdf hyperlink; add hyperlink in pdf
42
Chapter3:ManagingTextDocumentsWithWriter
#Matchcaseis0whichmeansfalse,soallupper#andlower
caseinstanceswillbeselected
#Wordonlyis1whichmeanstrue,soonly#instancesofthe
fullwordswillbeselected.
#Itwouldnot#includeAmericanshorthaired.
AmericanShorthair;;cats;shorthaired;0;1
Himalayan;;cats;longhaired;0;1
MaineCoon;;cats;semilonghaired;0;1
NorwegianForest;;cats;semilonghaired;0;1
Persian;;cats;longhaired;0;1
Abyssinian;;cats;shorthaired;0;1
Bengal;;cats;shorthaired;0;1
#feedcatsandcattreatsarebothsearchterms#thatwill
beincludedinthefollowingindex#entry:
#cats
#care
#feeding
feedcats;feeding;cats;care;0;1
cattreats;feeding;cats;care;0;1
Onceentriesaremadeintheconcordancefile,itmaybenecessarytomakesureonlythe
desiredtextisindexed.Userscaneitherlookattheindexresultsoruse
'Find and
Replace
'inthedocumentandentereachsearchtermtoseewhattextwillbeindexed.If
somethingisbeingindexedthatisnotwanted,onewillneedtomodifythesearchtermto
eliminatetheunwantedtext.
Forexample,adocumentonnaturecouldincludeinformationabouttreesandanimals.An
indexentryforbarkwouldpickuptreebarkandtextaboutanimalsbarking.Toinsurethat
onlythetreebarktextisindexed,ausermighthavetochangetheentryfrom:
bark;;tree;;0;1
to:
tree bark;bark;tree;;0;1
and:
bark of the tree;bark;tree;;0;1
Theorderofentriesinaconcordancefiledoesnoteffectthedisplayorderwhichis
alphabetical.However,keepinglikeitemstogethermakesiteasiertotrackdownanyerrors
ortofindanentrythatneedstobechanged.
TurningonView>FieldShadingsallowsuserstoseewhichtermsareindexedandmight
helpdeterminewhatindexitemshavebeenforgotten.
OpenOffice.orgUserGuidefor2.x
121
28
Chapter3:ManagingTextDocumentsWithWriter
CreatingBibliographies
Bibliographyentriesareoftenintheformof:“
Smith[Smith1995]hasalsocarried
outresearchonthismatter
”orsimilarsothatthereaderknowsthatmoredetailed
informationcanbefoundinthebibliographyunder“
Smith1995
”withthefullnameofthe
author,titleofthebook,publisher,dateofpublicationandamyriadofotherpossibleterms.
DecidewhatdetailsshouldappearinthebibliographyandthenuseInsert>Indexesand
Tables>IndexesandTableswithaTypeofBibliographytodefinehowtheentrieswill
lookwhendisplayed.
SelectTools>BibliographyDatabasetoopenthebibliographydatabase.Examinethe
columnsandfindonelabelledTypethenusedifferententriesformagazinearticlesthanfor
entriesconcerningbooks.Forthisreasonthebibliographydatabaseisdividedintodifferent
typesofsourcesofliterature.AnewrecordcanbeinsertedintheInsertBibliographyEntry
(byclickingtheNewbutton),butthese“adhoc”recordswillbesavedonlyinthecurrent
document,notintheBibliographyDatabase,andthenonlyiftherelevantnewentryis
actuallyinserted.
Note:Whensavingadocumentwithbibliographyentries,allinformationbelongingtotheentrieswill
automaticallybesavedinahiddenfield.Inthisway,alldatawillbeincludedwhenthedocumentisdistributed,for
example,onadisk.Itdoesnotmatterwhetherthebibliographywascreatedinthedocumentornot.
1. Toinsertthebibliographyentriesintothetext,positionthecursorinthetextwherethe
entryistoappearandthenchooseInsert>IndexesandTables>BibliographyEntry.
Thefollowingdialoguewillappear:
OpenOffice.orgUserGuidefor2.x
122
38
Chapter3:ManagingTextDocumentsWithWriter
2. Firstdecidewhethertoselecttheentryfromtherecordscontainedinthebibliography
databaseorfromtheentriesthatarecontainedinthecurrentdocument(andwhichcan
differfromentriesofthesamenameinthebibliographydatabase).Anentryinthe
documentcontentcanbeidenticaltoanentryintheBibliographyDatabase.Theentryin
thedocumenthasprecedence.
3. IftherequiredentryalreadyexistsasadatarecordselectitinthelistboxShortnameand
clickInsert.Ifthedesiredentrydoesnotyetexist,createanewentry.IftheNewbuttonis
usedtodothis,onecandefineanewrecord,butthiswillonlyberecognizedinthecurrent
document.
Iftherecordshouldbeincludedinthebibliographydatabase,chooseTools>
BibliographyDatabase,enterthenewrecordandtheninsertthebibliographydatabase
entryinthedocument.
Updating,EditingandDeletingIndexesandTablesofContents
IndicesandTableofContentsaresnapshotsofwhatispresentatthetimetheyarecreated.
Obviouslythereareoccasionswhentheseneedupdating,editingordeleting.Thefollowing
instructionsgivethestepsneededtoaccomplishanyoftheabovetasks.
1. Placethecursorintheindex/tableandrightclicktoopenthecontextmenu.
2. Selectthedesiredcommand:
a) UpdateIndex/Table
b) DeleteIndex/Table
c) EditIndex/Table
d) EditParagraphStyle
Note:(d)EditIndex/TableisonlyavailableifInsert>IndexesandTables>IndexesandTables>Index/Table>
Protectedfrommanualchangesisselected.Thisisbecause,bydefault,indicesandtablesofcontentsare
protectedfromchanges.
EditingtheFormatofanIndex/TableofContents
TheEntriestabontheInsert>IndexesandTables>IndexesandTablesdialoguepermits
editingtheformatofanindex.Inthistab,alterthewayinwhichentries,tabstopsandpage
numbersarearrangedetcetera.UsingtheStylestab,assignotherParagraphStyles.For
detailedinstructions,refertotheOpenOffice.orgHelp.
Hyperlinkscanbeautomaticallyassignedtotheentriesinthetableofcontentsusingthe
followingmethod:
1. GototheEntriestabpage,
2. Placethecursorinthestructurerowbeforetheentry<E#>
3. ClicktheHyperlinkbutton,thenplacethecursorafter<E>andclickHyperlinkagain.
OpenOffice.orgUserGuidefor2.x
123
18
Chapter3:ManagingTextDocumentsWithWriter
Wherethelistisatableofcontentsforthedocument,clickahyperlinktogostraighttothe
firstoccurrence;however,forthistoworkthetableofcontentsmustbegeneratedfrom
headings.
IndexesCoveringMultipleDocuments
Thereareseveralwaysofcreatinganindexcoveringmultipledocuments:
•
Createanindexineachindividualdocument,thencopytheindexesintoadocumentand
posteditthem.
•
Amoreelegantsolutionistoselecteachindividualindexasasection(Insert>Section)
andinsertthesesectionsinacommonindexdocumentasalink.
•
Ifoneisworkingwithamasterdocument,commonindexesarepossibleacrossallsub
documents.
Moreinformationaboutmasterdocumentscanbefoundlaterinthismanual.
OpenOffice.orgUserGuidefor2.x
124
36
Chapter3:ManagingTextDocumentsWithWriter
HeadingsandNumbering
Mosttextdocumentsbenefitfromuseofheadingsandnumbering.Writerprovidesautomatic
functionsthathelptheusermanagethestructureandformattingofdocumentsviaheadings
andnumbering.
NumberingandNumberingStyles
NumberinginadocumentmaybeappliedeitherasdirectformattingorbyusingaStyle,in
thesamemannerasisdonewithotherparagraphattributessuchas“Justified”or“Line
Spacing”.TheiconsonthenumberingobjectbarandtheoptionsintheFormat>Bullets
andNumberingdialogueapplydirectformatting.Directformattingisalsoappliedwhen
automaticnumberingisusedviatheAutoFormat/AutoCorrectfunction.
Note:TheAutoNumberingofAutoCorrectisnotappliedtotheStyleslistedintheStylesandFormattingwindow
under“
SpecialStyle
s”.
ANumberingStylecanbeappliedaspartofcertainParagraphStylesorapplieddirectlyto
theparagraphs.Withtheformercase,onecantakeadvantageoftheparagraphformatting
systemfornumberingaswell.ChangingaNumberingStyleensuresthatallnumbering
createdwiththisStylewillbeautomaticallyreformatted.NumberingStylesaredescribedin
theOpenOffice.orgHelp.
TurningBulletsOnandOff
Bulletsmaybeturnedonanoffinadocument.Thefollowingisonemethodtoturna
bulletedlistonandoff:
1. Placethecursorinaparagraphtobemarkedwithabulletsymbol,orselectanumberof
paragraphs.
2. ClickontheBulletson/officonontheText
ObjectBar.Theparagraphorparagraphs
willbeformattedasabulletedlist.
3. Inanexistingbulletedlist,ifoneclickstheBulletson/officon,theparagraphswillturn
backintonormaltext.
4. Inabulletedlist,clickingontheiconatthefarrightoftheobjectbarchangestheText
ObjectBartotheNumberingObjectBarwhichcontainsiconsformovingandrearranging
numberedparagraphs.Byopeningthecontextmenuontheobjectbar,userscanalso
selectwhichbartodisplay.
OpenOffice.orgUserGuidefor2.x
125
21
Chapter3:ManagingTextDocumentsWithWriter
Onecanselectfurthersettingsforthebulletedlistinwhichthecursorispositionedwiththe
Format>BulletsandNumberingdialogue.
•
ChoosedifferentbulletsymbolsunderFormat>BulletsandNumbering>Optionsby
clickingonthebuttonwiththreedots.ThisopenstheSpecialCharactersdialoguebut
onlyif“Bullet”wasselectedintheNumberingpulldownlist.
TurningNumberingOnandOff
Turningnumberingonandoffcanbeaccomplishedasfollows:
1. Highlighttheparagraphstobenumberedorreturnedtonormaltext.
2. ClickontheNumberingon/officonontheText
ObjectBar.Theparagraphsare
formattedasanumberedlistor,withanexistingnumberedlist,theparagraphswillturn
backintonormaltext.
Numberedlistsarebestcontrolledinthesamemannerasbulletedlists,i.e.withtheiconson
theNumberingObjectBar.Whenanumberedlistismoveddownalevel,thesubordinate
numberedlistatthislevelstartsfromoneagain.UsingtheShowsublevelsboxinFormat>
BulletsandNumbering>Options,selectwhichpreviouslevelsshouldbeincludedinthe
numberedlist.
OpenOffice.orgUserGuidefor2.x
126
Documents you may be interested
Documents you may be interested