1<?xml version="1.0" encoding="UTF-8"?> 2 3<!--*********************************************************** 4 * 5 * Licensed to the Apache Software Foundation (ASF) under one 6 * or more contributor license agreements. See the NOTICE file 7 * distributed with this work for additional information 8 * regarding copyright ownership. The ASF licenses this file 9 * to you under the Apache License, Version 2.0 (the 10 * "License"); you may not use this file except in compliance 11 * with the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, 16 * software distributed under the License is distributed on an 17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 * KIND, either express or implied. See the License for the 19 * specific language governing permissions and limitations 20 * under the License. 21 * 22 ***********************************************************--> 23 24<helpdocument version="1.0"> 25<meta> 26<topic id="textswriter0104090002xml" indexer="include"> 27<title id="tit" xml-lang="en-US">Cross-references</title> 28<filename>/text/swriter/01/04090002.xhp</filename> 29</topic> 30</meta> 31<body> 32<section id="referenzen"> 33<bookmark xml-lang="en-US" branch="hid/.uno:InsertReferenceField" id="bm_id8981346" localize="false"/> 34<bookmark xml-lang="en-US" branch="hid/.uno:InsertReferenceField" id="bm_id3149038" localize="false"/> 35<bookmark xml-lang="en-US" branch="hid/SW_HID_FLD_REF" id="bm_id3149042" localize="false"/> 36<paragraph role="heading" id="hd_id3153641" xml-lang="en-US" level="1" l10n="CHG" oldref="1"><link href="text/swriter/01/04090002.xhp" name="Cross-references">Cross-references</link></paragraph> 37<paragraph role="paragraph" id="par_id3155142" xml-lang="en-US" l10n="CHG" oldref="2"><variable id="reftext"><ahelp hid=".">This is where you insert the references or referenced fields into the current document. References are referenced fields within the same document or within sub-documents of a master document.</ahelp> 38</variable></paragraph> 39<paragraph role="paragraph" id="par_id3159197" xml-lang="en-US" l10n="U" oldref="19">The advantage of entering a cross-reference as a field is that you do not have to adjust the references manually every time you change the document. Just update the fields with F9 and the references in the document are updated too.</paragraph> 40</section> 41<section id="howtoget"> 42<embed href="text/swriter/00/00000404.xhp#feldreferenzen"/> 43</section> 44<embed href="text/swriter/guide/references.xhp#references"/> 45<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_REF:LB_REFTYPE" id="bm_id3145772" localize="false"/> 46<paragraph role="heading" id="hd_id4333628" xml-lang="en-US" level="2" l10n="NEW">Type</paragraph> 47<paragraph role="paragraph" id="par_id4516129" xml-lang="en-US" l10n="NEW"><ahelp hid=".">Lists the available field types. To add a field to your document, click a field type, click a field in the Selection list, and then click Insert.</ahelp> The following fields are available:</paragraph> 48<table id="tbl_id3145784"> 49<tablerow> 50<tablecell> 51<paragraph role="tablehead" id="par_id3151380" xml-lang="en-US" l10n="U" oldref="3">Type</paragraph> 52</tablecell> 53<tablecell> 54<paragraph role="tablehead" id="par_id3150700" xml-lang="en-US" l10n="U" oldref="4">Meaning</paragraph> 55</tablecell> 56</tablerow> 57<tablerow> 58<tablecell> 59<paragraph role="tablecontent" id="par_id3155862" xml-lang="en-US" l10n="U" oldref="5">Set Reference</paragraph> 60</tablecell> 61<tablecell> 62<paragraph role="tablecontent" id="par_id3147422" xml-lang="en-US" l10n="U" oldref="6">Set target for a referenced field. Under <emph>Name</emph>, enter a name for the reference. When inserting the reference, the name will then appear as an identification in the list box <emph>Selection</emph>.</paragraph> 63<paragraph role="tablecontent" id="par_id3149556" xml-lang="en-US" l10n="U" oldref="7">In an HTML document, reference fields entered this way will be ignored. For the target in HTML documents, you have to <link href="text/swriter/01/04040000.xhp" name="insert a bookmark">insert a bookmark</link>.</paragraph> 64</tablecell> 65</tablerow> 66<tablerow> 67<tablecell> 68<paragraph role="tablecontent" id="par_id3150548" xml-lang="en-US" l10n="U" oldref="8">Insert Reference</paragraph> 69</tablecell> 70<tablecell> 71<paragraph role="tablecontent" id="par_id3147746" xml-lang="en-US" l10n="U" oldref="9">Inserting a reference to another position in the document. The corresponding text position has to be defined with "Set Reference" first. Otherwise, inserting a reference by choosing a field name under <emph>Selection</emph> is not possible.</paragraph> 72<paragraph role="tablecontent" id="par_id3146344" xml-lang="en-US" l10n="U" oldref="16">In master documents, you can also reference from one sub-document to another. Note that the reference name will not appear in the selection field and has to be entered "by hand".</paragraph> 73<paragraph role="tablecontent" id="par_id3149847" xml-lang="en-US" l10n="U" oldref="10">In an HTML document, reference fields entered this way will be ignored. For referenced fields in HTML documents, you have to <link href="text/shared/01/05020400.xhp" name="insert a hyperlink">insert a hyperlink</link>.</paragraph> 74</tablecell> 75</tablerow> 76<tablerow> 77<tablecell> 78<paragraph role="tablecontent" id="par_id2408825" xml-lang="en-US" l10n="NEW">Headings</paragraph> 79</tablecell> 80<tablecell> 81<paragraph role="tablecontent" id="par_id9988402" xml-lang="en-US" l10n="NEW">The Selection box shows a list of all headings in the order of their appearance in the document.</paragraph> 82</tablecell> 83</tablerow> 84<tablerow> 85<tablecell> 86<paragraph role="tablecontent" id="par_id6401257" xml-lang="en-US" l10n="NEW">Numbered Paragraphs</paragraph> 87</tablecell> 88<tablecell> 89<paragraph role="tablecontent" id="par_id5841242" xml-lang="en-US" l10n="NEW">The Selection box shows a list of all numbered headings and numbered paragraphs in the order of their appearance in the document.</paragraph> 90</tablecell> 91</tablerow> 92<tablerow> 93<tablecell> 94<paragraph role="tablecontent" id="par_id306711" xml-lang="en-US" l10n="NEW">Bookmarks</paragraph> 95</tablecell> 96<tablecell> 97<paragraph role="tablecontent" id="par_id3150907" xml-lang="en-US" l10n="U" oldref="11">After inserting a bookmark in the document with <emph>Insert - Bookmark</emph>, the bookmarks entry on the <emph>References</emph> tab becomes usable. Bookmarks are used to mark certain text passages in a document. In a text document, you can use the bookmarks, for example, to jump from one passage in the document to another.</paragraph> 98<paragraph role="tablecontent" id="par_id3155080" xml-lang="en-US" l10n="U" oldref="12">In an HTML document, these bookmarks become anchors <A name>, which determine the target of hyperlinks for example.</paragraph> 99</tablecell> 100</tablerow> 101<tablerow> 102<tablecell> 103<paragraph role="tablecontent" id="par_id0818200811011072" xml-lang="en-US" l10n="NEW">Footnotes</paragraph> 104</tablecell> 105<tablecell> 106<paragraph role="tablecontent" id="par_id0818200811011049" xml-lang="en-US" l10n="NEW">If your documents contains a footnote, you can select the Footnotes entry. A reference to a footnote returns the footnote number.</paragraph> 107</tablecell> 108</tablerow> 109<tablerow> 110<tablecell> 111<paragraph role="tablecontent" id="par_id6794030" xml-lang="en-US" l10n="NEW">(Inserted objects with captions)</paragraph> 112</tablecell> 113<tablecell> 114<paragraph role="tablecontent" id="par_id7096774" xml-lang="en-US" l10n="NEW">You can set references to objects that have captions applied. For example, insert a picture, right-click the picture, choose Caption. Now the object shows up as a numbered "Illustration" in the list.</paragraph> 115</tablecell> 116</tablerow> 117</table> 118<paragraph role="tip" id="par_id3154772" xml-lang="en-US" l10n="U" oldref="18">References are fields. To remove a reference, delete the field. If you set a longer text as a reference and you do not want to reenter it after deleting the reference, select the text and copy it to the clipboard. You can then reinsert it as "unformatted text" at the same position using the command <emph>Edit - Paste special</emph>. The text remains intact while the reference is deleted.</paragraph> 119<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_REF:LB_REFSELECTION" id="bm_id3146957" localize="false"/> 120<bookmark xml-lang="en-US" branch="hid/SW_HID_REFSELECTION_TOOLTIP" id="bm_id1661427" localize="false"/> 121<paragraph role="heading" id="hd_id5824152" xml-lang="en-US" level="2" l10n="NEW">Selection<comment>on "Document" and "DocInformation" tab page this is called "Select", on the other tab pages "Selection"</comment></paragraph> 122<paragraph role="paragraph" id="par_id7374187" xml-lang="en-US" l10n="CHG"><ahelp hid="SW:LISTBOX:TP_FLD_DOK:LB_DOKSELECTION">Lists the available fields for the field type selected in the <emph>Type</emph> list. To insert a field, click the field, select a format in the "Insert reference to" list, and then click <emph>Insert</emph>.</ahelp></paragraph> 123<paragraph role="tip" id="par_id7729728" xml-lang="en-US" l10n="NEW">To quickly insert a field from the list, hold down <switchinline select="sys"><caseinline select="MAC">Command 124</caseinline><defaultinline>Ctrl</defaultinline></switchinline> and double-click the field.</paragraph> 125<section id="format"> 126<paragraph role="paragraph" id="par_id2171086" xml-lang="en-US" l10n="CHG">In the <emph>Insert reference to</emph> list, click the format that you want to use.</paragraph> 127<bookmark xml-lang="en-US" branch="hid/sw:ListBox:TP_FLD_REF:LB_REFFORMAT" id="bm_id3154344" localize="false"/> 128<paragraph role="heading" id="hd_id3154333" xml-lang="en-US" level="2" l10n="CHG" oldref="21">Insert reference to</paragraph> 129<paragraph role="paragraph" id="par_id3148786" xml-lang="en-US" l10n="U" oldref="22"><ahelp hid="SW:LISTBOX:TP_FLD_REF:LB_REFFORMAT">Select the format that you want to use for the selected reference field.</ahelp> The following formats are available:</paragraph> 130<table id="tbl_id3150090"> 131<tablerow> 132<tablecell> 133<paragraph role="tablehead" id="par_id7576525" xml-lang="en-US" l10n="NEW">Format</paragraph> 134</tablecell> 135<tablecell> 136<paragraph role="tablehead" id="par_id641193" xml-lang="en-US" l10n="NEW">Meaning</paragraph> 137</tablecell> 138</tablerow> 139<tablerow> 140<tablecell> 141<paragraph role="tablecontent" id="par_id3150039" xml-lang="en-US" l10n="U" oldref="23">Page</paragraph> 142</tablecell> 143<tablecell> 144<paragraph role="tablecontent" id="par_id3153134" xml-lang="en-US" l10n="U" oldref="24">Inserts the number of the page containing the reference target.</paragraph> 145</tablecell> 146</tablerow> 147<tablerow> 148<tablecell> 149<paragraph role="tablecontent" id="par_id3150681" xml-lang="en-US" l10n="U" oldref="27">Reference</paragraph> 150</tablecell> 151<tablecell> 152<paragraph role="tablecontent" id="par_id3154040" xml-lang="en-US" l10n="CHG" oldref="28">Inserts the complete reference target text. For footnotes the footnote number is inserted.</paragraph> 153</tablecell> 154</tablerow> 155<tablerow> 156<tablecell> 157<paragraph role="tablecontent" id="par_id3149972" xml-lang="en-US" l10n="U" oldref="29">Above/Below</paragraph> 158</tablecell> 159<tablecell> 160<paragraph role="tablecontent" id="par_id3149619" xml-lang="en-US" l10n="U" oldref="30">Inserts "above" or "below", depending on the location of the reference target relative to the position of the reference field.</paragraph> 161</tablecell> 162</tablerow> 163<tablerow> 164<tablecell> 165<paragraph role="tablecontent" id="par_id3148705" xml-lang="en-US" l10n="U" oldref="31">As Page Style</paragraph> 166</tablecell> 167<tablecell> 168<paragraph role="tablecontent" id="par_id3148728" xml-lang="en-US" l10n="U" oldref="32">Inserts the number of the page containing the reference target using the format specified in the page style.</paragraph> 169</tablecell> 170</tablerow> 171<tablerow> 172<tablecell> 173<paragraph role="tablecontent" id="par_id5699942" xml-lang="en-US" l10n="NEW">Number</paragraph> 174</tablecell> 175<tablecell> 176<paragraph role="tablecontent" id="par_id6420484" xml-lang="en-US" l10n="NEW">Inserts the number of the heading or numbered paragraph, including superior levels depending on the context. See note below this table for more information.</paragraph> 177</tablecell> 178</tablerow> 179<tablerow> 180<tablecell> 181<paragraph role="tablecontent" id="par_id6986602" xml-lang="en-US" l10n="NEW">Number (no context)</paragraph> 182</tablecell> 183<tablecell> 184<paragraph role="tablecontent" id="par_id616779" xml-lang="en-US" l10n="NEW">Inserts only the number of the heading or numbered paragraph.</paragraph> 185</tablecell> 186</tablerow> 187<tablerow> 188<tablecell> 189<paragraph role="tablecontent" id="par_id791039" xml-lang="en-US" l10n="NEW">Number (full context)</paragraph> 190</tablecell> 191<tablecell> 192<paragraph role="tablecontent" id="par_id1953489" xml-lang="en-US" l10n="NEW">Inserts the number of the heading or numbered paragraph, including all superior levels.</paragraph> 193</tablecell> 194</tablerow> 195<tablerow> 196<tablecell> 197<paragraph role="tablecontent" id="par_id3154635" xml-lang="en-US" l10n="U" oldref="25">Chapter</paragraph> 198</tablecell> 199<tablecell> 200<paragraph role="tablecontent" id="par_id3149646" xml-lang="en-US" l10n="U" oldref="26">Inserts the number of the chapter containing the reference target.</paragraph> 201</tablecell> 202</tablerow> 203<tablerow> 204<tablecell> 205<paragraph role="tablecontent" id="par_id3155553" xml-lang="en-US" l10n="U" oldref="33">Category and Number</paragraph> 206</tablecell> 207<tablecell> 208<paragraph role="tablecontent" id="par_id3155356" xml-lang="en-US" l10n="U" oldref="34">Inserts the category (caption type) and the number of the reference target. This option is only available when the reference target is an object with a caption.</paragraph> 209</tablecell> 210</tablerow> 211<tablerow> 212<tablecell> 213<paragraph role="tablecontent" id="par_id3154224" xml-lang="en-US" l10n="U" oldref="35">Caption Text</paragraph> 214</tablecell> 215<tablecell> 216<paragraph role="tablecontent" id="par_id3145105" xml-lang="en-US" l10n="U" oldref="36">Inserts the caption label of the reference target. This option is only available when the reference target is an object with a caption.</paragraph> 217</tablecell> 218</tablerow> 219<tablerow> 220<tablecell> 221<paragraph role="tablecontent" id="par_id3149587" xml-lang="en-US" l10n="U" oldref="37">Numbering</paragraph> 222</tablecell> 223<tablecell> 224<paragraph role="tablecontent" id="par_id3146883" xml-lang="en-US" l10n="U" oldref="38">Inserts the caption number of the reference target. This option is only available when the reference target is an object with a caption.</paragraph> 225</tablecell> 226</tablerow> 227</table> 228<paragraph role="note" id="par_id757469" xml-lang="en-US" l10n="NEW">The "Number" format inserts the number of the heading or numbered paragraph. The superior levels are included depending on the context, as necessary.</paragraph> 229<paragraph role="note" id="par_id5189062" xml-lang="en-US" l10n="CHG">For example, when you are in a chapter 1, subchapter 2, subpart 5, this may be numbered as 1.2.5. When you insert here a reference to text in the previous subpart "1.2.4" and you apply the "Number" format, then the reference will be shown as "4". If in this example the numbering is set to show more sublevels, the same reference will be shown as "2.4" or "1.2.4", depending on the setting. If you use the "Number (full context)" format, you will always see "1.2.4", no matter how the numbered paragraph is formatted.</paragraph> 230</section> 231<section id="name"> 232<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_REF:ED_REFNAME" id="bm_id3156253" localize="false"/> 233<paragraph role="heading" id="hd_id3156242" xml-lang="en-US" level="2" l10n="U" oldref="13">Name</paragraph> 234<paragraph role="paragraph" id="par_id3156259" xml-lang="en-US" l10n="U" oldref="14"><ahelp hid="SW:EDIT:TP_FLD_REF:ED_REFNAME">Type the name of the user-defined field that you want to create.</ahelp> To set a target, click "Set Reference" in the <emph>Type</emph> list, type a name in this box, and then click <emph>Insert</emph>. To reference the new target, click the target name in the <emph>Selection</emph> list.</paragraph> 235</section> 236<paragraph role="paragraph" id="par_id3156032" xml-lang="en-US" l10n="U" oldref="17">In a master document, targets that are in different sub-documents are not displayed in the <emph>Selection</emph> list. If you want to insert a reference to the target, you must type the path and the name in the <emph>Name</emph> box.</paragraph> 237<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_REF:ED_REFVALUE" id="bm_id3159204" localize="false"/> 238<paragraph role="paragraph" id="par_id0903200802250745" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Enter the contents that you want to add to a user-defined fields.</ahelp></paragraph> 239<embed href="text/swriter/01/04090001.xhp#wert"/> 240<paragraph role="paragraph" id="par_id3159216" xml-lang="en-US" l10n="U" oldref="15">If you select text in the document, and then insert a reference, the selected text becomes the contents of the field that you insert.</paragraph><comment>Value box (always disabled)</comment> 241<bookmark xml-lang="en-US" branch="hid/sw:Edit:TP_FLD_REF:ED_REFVALUE" id="bm_id5684377" localize="false"/> 242<paragraph role="paragraph" id="par_id6501968" xml-lang="en-US" l10n="NEW"><ahelp hid="." visibility="hidden">Edit the value.</ahelp></paragraph> 243</body> 244</helpdocument> 245