# 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, Span, Sub, Sup, Switch, U, URL, Value

Parent elements: B, Color, Fontface, I, Li, NoBreak, Paragraph, Span, U, URL

### 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 (optional)

  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.
  keeptogether: | Don't allow a line break within NoBreak (default)

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
- 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
- TableNewPage
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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