# Elementname: `HSpace`

## Description

Two modes: with a given width, the space takes up the given amount.

With no width given: create a horizontal stretching space. The space will take up no width as a minimum but is able to stretch up to infinity. Useful in single line contexts. In normal text there will surprising little stretching involved due to the global paragraph optimization algorithm. You will see that all other word spaces will have the minimum width and the excessive whitespace is accumulated at the strechable space.

Allowed attributes: leader, leader-width, width

Child elements: (none)

Parent elements: B, Case, Color, Fontface, ForAll, I, Li, Loop, NoBreak, Otherwise, Paragraph, Span, U, URL, Until, While

### Attributes

leader (text, optional, since version 2.3.50)

  The text that should be displayed instead of the space. For example a dot (.).

leader-width (length, optional, since version 2.3.50)

  Distance between two leader text starting points

width (length, optional)

  Optional width of the space (a length).

## Example

    <PlaceObject>
      <Textblock>
        <Paragraph>
          <Value>Hello</Value><HSpace/><Value>World</Value>
        </Paragraph>
      </Textblock>
    </PlaceObject>

## See also

Paragraph

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.2.0 | Start page | Command reference | Other language: German