Skip to main content

Style the Admonition Text for PDF

Abstract

Learn how to style the body text in admonitions for PDF outputs. Choose the font and set the size and color.

Admonitions have body text that provides the user with information. Typically, the body text is in para elements, but you can also include lists and other types of content. We recommend that you keep admonitions short and concise.

A tip admonition. It has a title "Tip", an icon, and some body text. There is a callout box around the body text to highlight it.

To style the body text for PDF outputs, use the settings on the PDF layout:

  1. Select Layout in the top menu.

    Paligo editor. The Layout option in the header menu is highlighted.

    Paligo displays a list of Layouts. The list is empty if there are no custom Layouts in your Paligo instance.

  2. Select the Layout you want to update or Create a Layout.

    Tip

    You can copy the URL of the Layout Editor and paste it into a new tab in your browser. This can be useful if you frequently switch between your Paligo content and the Layout settings.

  3. Select Admonitions.

  4. Select General.

  5. Use the following settings to style the text for admonitions:

    • Default font family for admonition text - Choose the typeface that Paligo will use for admonition text by default. Select the typeface from the list of available fonts.

    • Default font size for admonition text - Set the default size of the admonition text. Enter a value and the units of measurement, for example, 12pt.

  6. Use the following settings to set the color for your admonition text. The color applies to the title and the body text.

    • Font color for 'Note'

    • Font color for 'Notice'

    • Font color for 'Warning'

    • Font color for 'Danger'

    • Font color for 'Caution'

    • Font color for 'Tip'

    • Font color for 'Important'

  7. Clear the Use default color checkbox to select a color of your own choice.

  8. Set the color either by:

    • Entering an RGBA code for the color you want (1).

    • Selecting the Color square to display the color selector (2).

      1. Choose the color with the spectrum bar (3).

      2. Control the transparency with the opacity bar (4).

      3. Choose the color shade with the main color panel (5).

      Color selector. There is a field for entering an rgba value. It is labelled 1. There is a black square labelled 2. There is a popup dialog that contains three sections. The sections are labelled with numbers. Label 3 points to a narrow bar that shows the colors of the spectrum. Label 4 points towards an opacity bar ranging from black to transparent. Label 5 points to a color selector with various shades of a single color.
  9. Select Save.

Tip

To learn: