# Elementname: `NoBreak`

## Description

Don't allow a line break within this element

Allowed attributes: factor, fontface, maxwidth, reduce, text

Child elements: A, Action, B, Br, Color, Fontface, ForAll, Frame, HSpace, I, Image, Loop, NoBreak, Sub, Sup, Switch, U, URL, Value

Parent elements: B, Color, Fontface, I, NoBreak, Paragraph, U

### Attributes

factor (number, optional)

  Multiplier for the font size when reduce=fontsize. Default value: 0.9. That means the font size gets decreased by 0.9 until the text fits the objects width.

fontface (text, optional)

  The name of the fontface for text to be reduced. The default is »text« (lowercase t).

maxwidth (number or length, optional)

  Set the maximum width of the text if it cannot be deduced from the current surrounding (such as table cells).

reduce ()

  Reduce the text size if necessary.

  fontsize: | Reduces the text by decreasing the font size.
  cut: | Inserts text given in the attribute text if the paragraph is too long.

text (optional, since version 2.3.53)

  The text to be inserted if the paragraph should be cut. For example '...'

## Example

    <PlaceObject>
      <Textblock width="5">
        <Paragraph>
          <NoBreak reduce="fontsize" factor="0.7">
            <Value>The quick brown fox jumps over the lazy dog.</Value>
          </NoBreak>
          <Value> </Value>
          <Value>The quick brown fox jumps over the lazy dog.</Value>
        </Paragraph>
      </Textblock>
    </PlaceObject>

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- 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
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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