Skip to main content

Section Subtitle Styling (PDF)

By default, Paligo topics do not contain a subtitle element, but you can add subtitles as needed. The subtitle element is available from the Element Context Menu. For PDF outputs, you can use the PDF Layout to style your subtitles.

The PDF Layout has a Section subtitles category. It contains the settings for styling all levels at once and also for styling each level separately. The individual level settings take priority.

To learn how to use the settings, see:

Note

The Section subtitles settings are for styling subtitle elements that appear in your "regular" topics. They do not apply to a subtitle that appears in a publication topic. To style the subtitle in a publication topic (which will appear on the cover or in the "front matter" pages), see Style the Subtitle for a Cover.

PDF Layouts have Level All settings that you can use to style all levels of section subtitles at once. This saves time if you want most subtitles to use the same settings.

PDF Layout. Section subtitles category is expanded revealing a list of subcategories. The Level all category is selected.

Paligo will apply a Level All setting if:

  • The equivalent setting in the Level 1 - Level 5 is set to default (or blank where appropriate)

  • The equivalent setting in the base Layout is also set to default (or blank where appropriate)

To set the Level All styles for subtitles:

  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 PDF Layout you are going to use for publishing. Alternatively, create a new one (see Create a Layout).

  3. Select Section subtitles.

  4. Select Level all.

  5. Use the Set the font size for level all subtitles setting to control the size of the subtitle lettering.

  6. Use Font weight for level all subtitles to set the thickness of the characters.

  7. Use Font style for level all subtitles to add or remove emphasis styling from the text. Choose Normal for regular text, Italic for forward leaning text, or Backslant for backwards-leaning text.

    Note

    Using Backslant can produce poor results, as many fonts do not support it as a separate outline.

  8. Set the Font variant for level all subtitles to Normal for regular sized, mixed case letters or Small-caps for smaller, upper-case letters.

  9. Use Set Color for level all subtitles to apply a custom color to the text in the subtitle.

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

    2. 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.
  10. Use Set background color for level all subtitles to apply a custom color behind the text in the subtitle.

    As with the Set color for level all subtitles option, clear the Use default color checkbox to set a color of your own choice. Use the color selector to choose the color.

  11. Set the Line height for level all subtitles. The line height is the amount of space between lines of text in the subtitle.

    Enter either:

    • An absolute value with the units of measurement, for example, 14pt

    • A relative value, such as 0.8em or 80%

    • normal for 120% (multiplies font size by 1.2).

    Leave the field blank to inherit this value from the base Layout (see Layout Relationships - Base, New, Duplicate).

  12. Use Font-family for level all subtitles to choose the typeface for the text.

  13. Set the Capitalization for level all subtitles. This controls whether characters are shown in upper case, lower case, or a combination of the two.

  14. Set the Letter spacing for level all subtitles. This is the amount of horizontal spacing between each letter.

    To increase the amount of spacing, enter:

    • A relative amount and units of measurement, for example, 0.2rem

    • An absolute amount and units of measurement, for example, 1px

    To decrease the amount of spacing, enter a negative relative or absolute amount, for example, -1px.

  15. Use the space settings to control the amount of space above and below the subtitle element.

    The Space-before for level all subtitles is for the space above and the Space-after for level all subtitles is for the space below. Enter a value and its units of measurement.

    You can use absolute values, such as 1.2em or 6pt, or you can use relative values, for example, 110%. Relative values are calculated as a percentage of the main body font size.

  16. Use the indent settings to add a margin to the left and/or right side of the subtitle block:

    • Start-indent for level all subtitles

      Adds space at the start of the subtitle, measured from the first letters in the text. Enter an amount and the units of measurement, for example, 2.5em.

    • End-indent for level all subtitles

      Adds space at the end of the subtitle, measured from the last characters in the text. Enter an amount and the units of measurement, for example, 2.5em.

    The start and end indents are designed to match the language-direction. For left-to-right languages, the start indent is on the left and the end indent is on the right. For right-to-left languages, the start is on the right and the end is on the left.

  17. Set the Alignment for section level all subtitles.

    Choose from:

  18. Select Save.

When you use this Layout to publish to PDF, Paligo will apply the styles you have set to all subtitle elements. If the Layout has subtitle styles set in the Level 1 - Level 5 categories, Paligo uses those settings for the relevant subtitle level. The Level 1 - Level 5 settings take priority over the Level all settings.

If you have added the subtitle element to your topics, you can use the PDF Layout to style them (for PDF outputs).

The PDF Layout has a Section subtitles category. Inside that, you can find settings for each subsection level from Level 1 to Level 5. There are many options for styling the font, spacing, color and more. For example, you can style a subtitle element that follows a Level 2 heading by using the Level 2 subtitle settings.

Note

The Section subtitles category also has Level all settings that apply to every subtitle level. But your choices for the individual levels take priority over the Level all settings.

To style the subtitles for the various levels:

  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 PDF Layout you are going to use for publishing. Alternatively, create a new one (see Create a Layout).

  3. Select Section subtitles.

  4. Select the level that you want to style. For example, to style subtitles that appear at level 3 in the structure, select Level 3.

  5. Use the Set the font size for subtitle setting to control the size of the subtitle lettering.

  6. Use Font weight for level n subtitles to set the thickness of the characters.

  7. Use Font style for level n subtitles to add or remove emphasis styling from the text. Choose Normal for regular text, Italic for forward leaning text, or Backslant for backwards-leaning text.

    Note

    Using Backslant can produce poor results, as many fonts do not support it as a separate outline.

  8. Set the Font variant for level n subtitles to normal for regular sized, mixed case letters or small-caps for smaller, upper-case letters.

  9. Use Set Color for level <n> subtitles to apply a custom color to the text in the subtitle.

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

    2. 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.
  10. Use Set background color for level <n> subtitles to apply a custom color behind the text in the subtitle.

    As with the Set color for level <n> subtitles option, clear the Use default color checkbox to set a color of your own choice. Use the color selector to choose the color.

  11. Set the Line height for level <n> subtitles. The line height is the amount of space between lines of text in the subtitle.

    Enter either:

    • An absolute value with the units of measurement, for example, 14pt

    • A relative value, such as 0.8em or 80%

    • normal for 120% (multiplies font size by 1.2).

    Leave the field blank to inherit this value from the base Layout (see Layout Relationships - Base, New, Duplicate).

  12. Use Font-family for level <n> subtitles to choose the typeface for the text.

  13. Set the Capitalization for level <n> subtitles. This controls whether characters are shown in upper case, lower case, or a combination of the two.

  14. Set the Letter spacing for level <n> subtitles. This is the amount of horizontal spacing between each letter.

    To increase the amount of spacing, enter:

    • A relative amount and units of measurement, for example, 0.2rem

    • An absolute amount and units of measurement, for example, 1px

    To decrease the amount of spacing, enter a negative relative or absolute amount, for example, -1px.

  15. Use the space settings to control the amount of space above and below the subtitle element.

    The Space-before for level n subtitles is for the space above and the Space-after for level n subtitles is for the space below. Enter a value and its units of measurement.

    You can use absolute values, such as 1.2em or 6pt, or you can use relative values, for example, 110%. Relative values are calculated as a percentage of the main body font size.

  16. Use the indent settings to add a margin to the left and/or right side of the subtitle block:

    • Start-indent for level n subtitles

      Adds space at the start of the subtitle, measured from the first letters in the text. Enter an amount and the units of measurement, for example, 2.5em.

    • End-indent for level n subtitles

      Adds space at the end of the subtitle, measured from the last characters in the text. Enter an amount and the units of measurement, for example, 2.5em.

    The start and end indents are designed to match the language-direction. For left-to-right languages, the start indent is on the left and the end indent is on the right. For right-to-left languages, the start is on the right and the end is on the left.

  17. Set the Alignment for section level n subtitles.

    Choose from:

  18. Select Save.

Repeat the same steps for the other levels of subtitle, as needed. When you use this Layout to publish to PDF, Paligo will apply the subtitle styles to your content.