Skip to content

    Line tool

    The Line tool draws one straight line segment from where you press to where you release. The line takes the current stroke colour and stroke width: black and 1 px, until a stroke has been set. The line stays selected with its handles, and the Line tool stays in hand for the next line.

    Where to find it

    The Line tool is the third button on Layout’s floating toolbar. Press \ (backslash) to pick it.

    How to draw a line

    1. Press \, or click Line on the toolbar.
    2. Press on the page where the line starts.
    3. Drag to where the line ends, and release.

    How to draw at an exact angle

    1. With the Line tool in hand, start dragging a line.
    2. Hold Shift. The line keeps to 45 degree steps (0, 45, 90 and so on). The end is projected onto that direction.

    How to draw from the centre

    1. Start dragging a line.
    2. Hold Alt. The press point becomes the middle of the line, and the line grows both ways.

    How to move the line while drawing

    1. Start dragging a line.
    2. Hold Space and move the pointer. The whole line moves and keeps its length and angle.
    3. Let go of Space and keep dragging to size it again.

    How to leave copies while drawing

    1. Start dragging a line.
    2. Hold ~ (the key left of 1). A copy of the line is left at every step of the drag.
    3. Release. The copies and the line are committed together.

    Options

    Control What it does Values Default
    (none) There is no option bar while the Line tool is in hand in Layout, and no dialog on a click. Colour and width come from the current style. You change them afterwards on the line’s bar.

    Keys

    Keys When What happens
    \ Not typing Picks the Line tool
    Shift While dragging Keeps the line to 45 degree steps
    Alt While dragging Grows the line from the centre
    Space While dragging Moves the line being drawn
    ~ (Backquote) While dragging Leaves a copy at every step
    Escape While dragging Cancels the line

    Limits

    • A click without a drag on an empty page draws nothing and opens nothing in Layout.
    • A click on an existing object with the Line tool opens that object’s edit handles instead of drawing. A click on a text does nothing.
    • Snapping applies to both ends while snapping is on. It is on by default. Shift wins over a snap.
    • A line with no length is not added.
    • The line’s stroke comes from the current style: the colour, width, dash, cap, join and miter last set with nothing selected.

    See also