<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">

	<!--
	* This file is part of the LibreOffice project.
	*
	* This Source Code Form is subject to the terms of the Mozilla Public
	* License, v. 2.0. If a copy of the MPL was not distributed with this
	* file, You can obtain one at http://mozilla.org/MPL/2.0/.
	*
	* This file incorporates work covered by the following license notice:
	*
	*   Licensed to the Apache Software Foundation (ASF) under one or more
	*   contributor license agreements. See the NOTICE file distributed
	*   with this work for additional information regarding copyright
	*   ownership. The ASF licenses this file to you under the Apache
	*   License, Version 2.0 (the "License"); you may not use this file
	*   except in compliance with the License. You may obtain a copy of
	*   the License at http://www.apache.org/licenses/LICENSE-2.0 .
	-->


	<meta>
		<topic id="textsharedguideline_intextxml" indexer="include">
			<title id="tit">Drawing Lines in Text</title>
			<filename>/text/shared/guide/line_intext.xhp</filename>
		</topic>
	</meta>
	<body>
	<bookmark branch="index" id="bm_id3143206"><bookmark_value>arrows; drawing in text</bookmark_value>
<bookmark_value>indicator lines in text</bookmark_value>
<bookmark_value>lines; drawing in text</bookmark_value>
<bookmark_value>lines; removing automatic lines</bookmark_value>
<bookmark_value>deleting; lines in text</bookmark_value>
<bookmark_value>drawing lines in text</bookmark_value>
<bookmark_value>automatic lines/borders in text</bookmark_value>
	</bookmark>
	<h1 id="hd_id3143206"><variable id="line_intext"><link href="text/shared/guide/line_intext.xhp">Drawing Lines in Text</link></variable></h1>
	<paragraph role="paragraph" id="par_id3144436">You can incorporate lines into your text with custom angles, width, color, and other attributes.</paragraph>
	<paragraph role="paragraph" id="par_id3153345">To define the line attributes and direction, use the <emph>Line</emph> drawing object as follows:</paragraph>
	<list type="ordered">
		<listitem>
			<table id="tbl_id3153031">
				<tablerow>
					<tablecell>
						<paragraph role="paragraph" id="par_id3156113">
							<image id="img_id3166410" src="cmd/lc_insertdraw.svg" width="1cm" height="1cm"><alt id="alt_id3166410">Icon Show Draw Functions</alt></image></paragraph>
					</tablecell>
					<tablecell>
						<paragraph role="paragraph" id="par_id651679924642471">On the Standard bar, click the <emph>Show Draw Functions </emph>icon to open the <emph>Drawing </emph>toolbar</paragraph>
					</tablecell>
				</tablerow>
			</table>
		</listitem>
		<listitem>
			<table id="tab_id761679932587584">
				<tablerow>
					<tablecell>
						<paragraph role="paragraph" id="par_id3152780"><image id="img_id3154285" src="cmd/lc_line.svg" width="1cm" height="1cm"><alt id="alt_id3154285">Icon Line</alt></image></paragraph>
					</tablecell>
					<tablecell>
						<paragraph role="paragraph" id="par_id3159400">Click the <emph>Line</emph> icon. The mouse pointer changes to a cross-hair symbol with a line beside it.</paragraph>
						<paragraph role="paragraph" id="par_id3152472">In your document, click where the line should begin. Hold down the mouse button and drag to the point where you want the line to end. If you also hold down the Shift key, you can draw only horizontal, vertical, and diagonal lines.</paragraph>
					</tablecell>
				</tablerow>
			</table>
		</listitem>
		<listitem>
			<table id="tab_id761670032587584">
				<tablerow>
					<tablecell>
						<paragraph role="paragraph" id="par_id3149294"><image id="img_id3159413" src="cmd/lc_selectobject.svg" width="1cm" height="1cm"><alt id="alt_id3159413">Icon Select Object</alt></image></paragraph>
					</tablecell>
					<tablecell>
						<paragraph role="paragraph" id="par_id3153361">Release the mouse button once the line has the desired direction and length. You can then draw more lines. End this function by pressing the Esc key or by clicking the <emph>Select</emph> icon from the <emph>Drawing </emph>bar.</paragraph>
					</tablecell>
				</tablerow>
			</table>
		</listitem>
	</list>
	<paragraph role="paragraph" id="par_id3159149">After clicking the <emph>Select</emph> icon, you can select all of the lines at the same time by clicking each line while holding down the Shift key. This multiple selection enables you to assign all of them a common color, width or other attribute.</paragraph>
	<list type="ordered">
		<listitem>
			<paragraph role="listitem" id="par_id3153049">Create a horizontal line by applying the preset Paragraph Style <emph>Horizontal Line</emph>. Click into an empty paragraph, and double-click the <emph>Horizontal Line</emph> Style in the <emph>Styles</emph> window. If the entry for horizontal lines is not visible in the list of Paragraph Styles, select "All Styles" in the lower listbox.</paragraph>
		</listitem>
		<listitem>
			<paragraph role="listitem" id="par_id3153748">You can draw a line above, beside or below a paragraph in a Writer text document by choosing <emph>Format - Paragraph - </emph><link href="text/shared/01/05030500.xhp"><emph>Borders</emph></link>.</paragraph>
		</listitem>
	</list>

	<h2 id="par_idN107C6">Automatic lines in Writer</h2>
	<list type="ordered">
		<listitem>
			<paragraph role="listitem" id="par_idN107CC">If you start a new line in a Writer text document by typing three or more hyphen characters and press the Enter key, the characters are removed and the previous paragraph gets a line as a bottom border.</paragraph>
			<paragraph role="paragraph" id="par_id8849452">To create a single line, type three or more hyphens (-), or underscores (_), and then press Enter. To create a double line, type three or more equal signs (=), asterisks (*), tildes (~), or hash marks (#), and then press Enter.</paragraph>
		</listitem>
		<listitem>
			<paragraph role="listitem" id="par_idN107D0">To remove an automatically drawn border, choose <emph>Format - Paragraph - Borders</emph> and select no border.</paragraph>
		</listitem>
		<listitem>
			<paragraph role="listitem" id="par_idN107D8">To undo an automatic border replacement once, choose <emph>Edit - Undo</emph>.</paragraph>
		</listitem>
		<listitem>
			<paragraph role="listitem" id="par_idN107E0">To disable the automatic borders, choose <emph>Tools - AutoCorrect - AutoCorrect Options - Options</emph> and clear <emph>Apply border</emph>.</paragraph>
		</listitem>
	</list>
	<warning id="par_id3145787">The lines and other drawing objects that you insert in text are not defined in <link href="text/shared/00/00000002.xhp#html">HTML</link>, and are therefore not exported directly into HTML format. Instead, they are exported as graphics.</warning>
	<tip id="par_id641804">When you enter a line width, you can append a measurement unit. A zero line width results in a hairline with a width of one pixel of the output medium.</tip>

	<section id="relatedtopics">
		<paragraph role="paragraph" id="par_id3154188"><link href="text/shared/01/05030500.xhp">Format - Paragraph - Borders</link></paragraph>
		<embed href="text/shared/guide/linestyles.xhp#linestyles"/>
	</section>
</body>
</helpdocument>
