1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski<helpdocument version="1.0">
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski<!--***********************************************************
5*b1cdbd2cSJim Jagielski *
6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
7*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
8*b1cdbd2cSJim Jagielski * distributed with this work for additional information
9*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
12*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
15*b1cdbd2cSJim Jagielski *
16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
21*b1cdbd2cSJim Jagielski * under the License.
22*b1cdbd2cSJim Jagielski *
23*b1cdbd2cSJim Jagielski ***********************************************************-->
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski<meta>
29*b1cdbd2cSJim Jagielski      <topic id="textswriterguidenumbering_linesxml" indexer="include" status="PUBLISH">
30*b1cdbd2cSJim Jagielski         <title xml-lang="en-US" id="tit">Adding Line Numbers</title>
31*b1cdbd2cSJim Jagielski         <filename>/text/swriter/guide/numbering_lines.xhp</filename>
32*b1cdbd2cSJim Jagielski      </topic>
33*b1cdbd2cSJim Jagielski   </meta>
34*b1cdbd2cSJim Jagielski   <body>
35*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3150101"><bookmark_value>line numbers</bookmark_value>
36*b1cdbd2cSJim Jagielski      <bookmark_value>text; line numbers</bookmark_value>
37*b1cdbd2cSJim Jagielski      <bookmark_value>paragraphs;line numbers</bookmark_value>
38*b1cdbd2cSJim Jagielski      <bookmark_value>lines of text; numbering</bookmark_value>
39*b1cdbd2cSJim Jagielski      <bookmark_value>numbering; lines</bookmark_value>
40*b1cdbd2cSJim Jagielski      <bookmark_value>numbers; line numbering</bookmark_value>
41*b1cdbd2cSJim Jagielski      <bookmark_value>marginal numbers on text pages</bookmark_value>
42*b1cdbd2cSJim Jagielski</bookmark><comment>MW added "paragraphs;"</comment>
43*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3150101" role="heading" level="1" l10n="U" oldref="3"><variable id="numbering_lines"><link href="text/swriter/guide/numbering_lines.xhp" name="Adding Line Numbers">Adding Line Numbers</link>
44*b1cdbd2cSJim Jagielski</variable></paragraph>
45*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3149842" role="paragraph" l10n="CHG" oldref="1">$[officename] can insert line numbers in an entire document or to selected paragraphs in your document. Line numbers are included when you print your document. You can specify the line numbering interval, the starting line number, and whether to count blank lines or lines in frames. You can also add a separator between line numbers.</paragraph>
46*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id7184972" role="note" l10n="NEW">Line numbers are not available in HTML format.</paragraph>
47*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3153410" role="heading" level="2" l10n="U" oldref="6">To Add Line Numbers to an Entire Document</paragraph>
48*b1cdbd2cSJim Jagielski      <list type="ordered">
49*b1cdbd2cSJim Jagielski         <listitem>
50*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3149640" role="listitem" l10n="U" oldref="7">Choose <emph>Tools - Line Numbering</emph>.</paragraph>
51*b1cdbd2cSJim Jagielski         </listitem>
52*b1cdbd2cSJim Jagielski         <listitem>
53*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3149612" role="listitem" l10n="U" oldref="8">Select <emph>Show numbering</emph>, and then select the options that you want.</paragraph>
54*b1cdbd2cSJim Jagielski         </listitem>
55*b1cdbd2cSJim Jagielski         <listitem>
56*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3145101" role="listitem" l10n="U" oldref="20">Click <emph>OK</emph>.</paragraph>
57*b1cdbd2cSJim Jagielski         </listitem>
58*b1cdbd2cSJim Jagielski      </list>
59*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3156241" role="heading" level="2" l10n="U"
60*b1cdbd2cSJim Jagielski                 oldref="10">To Add Line Numbers to Specific Paragraphs</paragraph>
61*b1cdbd2cSJim Jagielski      <list type="ordered">
62*b1cdbd2cSJim Jagielski         <listitem>
63*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3156264" role="listitem" l10n="U" oldref="21">Choose <emph>Tools - Line Numbering</emph>.</paragraph>
64*b1cdbd2cSJim Jagielski         </listitem>
65*b1cdbd2cSJim Jagielski         <listitem>
66*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3153385" role="listitem" l10n="U" oldref="11">Select <emph>Show numbering</emph>.</paragraph>
67*b1cdbd2cSJim Jagielski         </listitem>
68*b1cdbd2cSJim Jagielski         <listitem>
69*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3154248" role="listitem" l10n="U" oldref="12">Press <switchinline select="sys"><caseinline select="MAC">Command+T</caseinline><defaultinline>F11</defaultinline></switchinline> to open the <emph>Styles and Formatting</emph> window, and then click the <emph>Paragraph Styles</emph> icon.</paragraph>
70*b1cdbd2cSJim Jagielski         </listitem>
71*b1cdbd2cSJim Jagielski         <listitem>
72*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3154853" role="listitem" l10n="U" oldref="13">Right-click the "Default" paragraph style and choose <emph>Modify</emph>.</paragraph>
73*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150222" role="listitem" l10n="U" oldref="17">All paragraph styles are based on the "Default" style.</paragraph>
74*b1cdbd2cSJim Jagielski         </listitem>
75*b1cdbd2cSJim Jagielski      </list>
76*b1cdbd2cSJim Jagielski      <list type="ordered" startwith="5">
77*b1cdbd2cSJim Jagielski         <listitem>
78*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150931" role="listitem" l10n="U" oldref="15">Click the <emph>Numbering</emph> tab.</paragraph>
79*b1cdbd2cSJim Jagielski         </listitem>
80*b1cdbd2cSJim Jagielski         <listitem>
81*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150956" role="listitem" l10n="U" oldref="16">In the <item type="menuitem">Line Numbering</item>
82*b1cdbd2cSJim Jagielski               <emph/>area, clear the <item type="menuitem">Include this paragraph in line numbering</item>
83*b1cdbd2cSJim Jagielski               <emph/>check box.</paragraph>
84*b1cdbd2cSJim Jagielski         </listitem>
85*b1cdbd2cSJim Jagielski         <listitem>
86*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150520" role="listitem" l10n="U" oldref="22">Click <emph>OK</emph>.</paragraph>
87*b1cdbd2cSJim Jagielski         </listitem>
88*b1cdbd2cSJim Jagielski         <listitem>
89*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3151077" role="listitem" l10n="U" oldref="18">Select the paragraph(s) where you want to add the line numbers.</paragraph>
90*b1cdbd2cSJim Jagielski         </listitem>
91*b1cdbd2cSJim Jagielski         <listitem>
92*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3151096" role="listitem" l10n="U" oldref="19">Choose <item type="menuitem">Format - Paragraph</item>, and then click the <item type="menuitem">Numbering</item>
93*b1cdbd2cSJim Jagielski               <emph/>tab.</paragraph>
94*b1cdbd2cSJim Jagielski         </listitem>
95*b1cdbd2cSJim Jagielski         <listitem>
96*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3153733" role="listitem" l10n="U" oldref="23">Select <emph>Include this paragraph in line numbering</emph>.</paragraph>
97*b1cdbd2cSJim Jagielski         </listitem>
98*b1cdbd2cSJim Jagielski         <listitem>
99*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3153758" role="listitem" l10n="U" oldref="24">Click <emph>OK</emph>.</paragraph>
100*b1cdbd2cSJim Jagielski         </listitem>
101*b1cdbd2cSJim Jagielski      </list>
102*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3146864" role="paragraph" l10n="U" oldref="2">You can also create a paragraph style that includes line numbering, and apply it to the paragraphs that you want to add line numbers to.</paragraph>
103*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="hd_id3146880" role="heading" level="2" l10n="U"
104*b1cdbd2cSJim Jagielski                 oldref="25">To Specify the Starting Line Number</paragraph>
105*b1cdbd2cSJim Jagielski      <list type="ordered">
106*b1cdbd2cSJim Jagielski         <listitem>
107*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150703" role="listitem" l10n="U" oldref="26">Click in a paragraph.</paragraph>
108*b1cdbd2cSJim Jagielski         </listitem>
109*b1cdbd2cSJim Jagielski         <listitem>
110*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3150721" role="listitem" l10n="U" oldref="27">Choose <item type="menuitem">Format - Paragraph</item>, and then click the <item type="menuitem">Numbering</item>
111*b1cdbd2cSJim Jagielski               <emph/>tab.</paragraph>
112*b1cdbd2cSJim Jagielski         </listitem>
113*b1cdbd2cSJim Jagielski         <listitem>
114*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3148389" role="listitem" l10n="U" oldref="28">Select the <item type="menuitem">Include this paragraph in line numbering</item>
115*b1cdbd2cSJim Jagielski               <emph/>check box.</paragraph>
116*b1cdbd2cSJim Jagielski         </listitem>
117*b1cdbd2cSJim Jagielski         <listitem>
118*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3148414" role="listitem" l10n="U" oldref="29">Select <item type="menuitem">Restart at the paragraph</item>
119*b1cdbd2cSJim Jagielski               <emph/>check box.</paragraph>
120*b1cdbd2cSJim Jagielski         </listitem>
121*b1cdbd2cSJim Jagielski         <listitem>
122*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3153779" role="listitem" l10n="U" oldref="30">Enter a line number in the <item type="menuitem">Start with</item>
123*b1cdbd2cSJim Jagielski               <emph/>box.</paragraph>
124*b1cdbd2cSJim Jagielski         </listitem>
125*b1cdbd2cSJim Jagielski         <listitem>
126*b1cdbd2cSJim Jagielski            <paragraph xml-lang="en-US" id="par_id3153804" role="listitem" l10n="U" oldref="31">Click <emph>OK</emph>.</paragraph>
127*b1cdbd2cSJim Jagielski         </listitem>
128*b1cdbd2cSJim Jagielski      </list>
129*b1cdbd2cSJim Jagielski      <embed href="text/shared/00/00000004.xhp#related"/>
130*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3153934" role="paragraph" l10n="U" oldref="5"><link href="text/swriter/01/06180000.xhp" name="Tools - Line Numbering">Tools - Line Numbering</link></paragraph>
131*b1cdbd2cSJim Jagielski      <embed href="text/swriter/guide/using_numbering.xhp#using_numbering"/>
132*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id3153960" role="paragraph" l10n="U" oldref="32"><link href="text/swriter/01/05030800.xhp" name="Format - Paragraph - Numbering">Format - Paragraph - Numbering</link></paragraph>
133*b1cdbd2cSJim Jagielski      <paragraph xml-lang="en-US" id="par_id2212591" role="paragraph" l10n="NEW"><link href="https://wiki.openoffice.org/wiki/Documentation/How_Tos/Setting_up_a_Style_for_Numbering_Lines_in_Code_Listings">Wiki page about numbering paragraphs by styles</link></paragraph>
134*b1cdbd2cSJim Jagielski   </body>
135*b1cdbd2cSJim Jagielski</helpdocument>