For PDF outputs, you can use the PDF layout to style various inline elements, such as guilabel
, email
, and quote
. There are separate sections for the commonly used inline elements and each section has settings for choosing the font, spacing, color and other features.
To learn how to apply the styling settings, see the following sections:
Note
For HTML outputs, use CSS to style the classes (see Style with CSS).
To style the font for inline elements in PDFs, such as guilabel
and guimenu, use the settings in the PDF layout.
Note
For HTML outputs, use CSS to style the classes (see Style with CSS).
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
Use the font settings to style the appearance of the text:
-
Font family for <inline element>
Choose the typeface for the inline element from the available list.
-
Font size for <inline element>
Enter the font size, including the units of measurement, for example, 12pt or 1.2em
-
Font weight for <inline element>
Set the thickness of the text for the inline element. Choose from the list, which includes options for a range of widths, including thin, semi bold, and extra bold.
-
Font style for <inline element>
Set the text for the inline element to italic, backslant (leaning backwards), or normal.
-
Font variant for <inline element>
Set the font to display as normal or as small caps. The small caps option turns lower case letters into reduced height capital letters.
-
Capitalization for <inline element>
Set the text for the inline element to be shown as normal, all capital letters, or all lower case.
Note
If you have set the Font variant to small caps, it will affect the capitalization options too. The capitalization options will work like this:
-
Upper case sets uppercase letters to appear at full height. Other letters are shown as reduced height capital letters (small caps).
-
Lower case has no effect.
-
-
Letter-spacing for <inline element>
Define the amount of spacing between the letters of the inline element. Enter the value and the units of measurement, for example, 0.2pt.
-
-
Select Save.
When you publish using this layout, Paligo will apply the styling to the appropriate elements.
To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).
Use a PDF layout to change the color of inline elements. You can change the color of the text, like this:
Also, you can change the color of the inline image background, which is useful for creating a "highlight" effect like this:
Note
For HTML outputs, use CSS to style the classes (see Style with CSS).
To set the color for inline elements in PDF outputs:
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
Use the Color for <inline element> setting to choose the color for the inline element text.
If you do not want to use the default color, clear the Use default color checkbox. You can then use the color selector to choose a color.
-
Clear the Use default color checkbox to select a color of your own choice.
-
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).
-
Choose the color with the spectrum bar (3).
-
Control the transparency with the opacity bar (4).
-
Choose the color shade with the main color panel (5).
-
-
-
Use the Background color for <inline element> setting to choose a background color. This is the color that will appear behind the text for the inline element, similar to a highlight.
Again, clear the Use default color checkbox and then use the color selector to choose a color.
-
Select Save.
When you publish using this layout, Paligo will apply the styling to the appropriate elements.
To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).
Use the PDF layout to control how Paligo handles inline elements that cannot fit entirely on the same line. Depending on your choices, Paligo will either break the inline element over two lines, hyphenate it, or move the entire element on to the next line.
Note
For HTML, use CSS to control hyphenation and line breaks. To learn how to use and upload CSS, see Style with CSS.
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
Use the Allow Hyphenation for <inline element> setting to control whether Paligo hyphenates words in the element.
Choose:
-
True
Paligo will hyphenate a word, if needed. This means part of a word may appear on one line, with the rest of the word on the next line, with a hyphen at the break point.
-
False
Paligo will not hyphenate words that cannot fit on a line. It will only show complete words on a line, and if a word does not fit, it will move to the next line. So if you have two words inside an inline element, the first word might be on one line and the second word on the next line.
-
-
Use Keep <inline element> on one line to control how Paligo positions the entire element.
Choose:
-
Yes
Paligo will try to keep the entire inline element on the line where it is positioned. If it cannot fit on one line, the entire inline element is moved to the next line. This is true in most cases, but there are some exceptions where the inline element will break over two lines, such as if the inline element is too long for a table cell.
-
No
Paligo will allow the inline element to break over two lines. It will either hyphenate the inline element or split the inline element over two lines, depending on the Allow hyphenation in <inline element> setting.
-
Always
This option will set Paligo to always display the entire inline element on the line where it is positioned. This can mean that the inline element extends beyond the body area of the page. Typically, this option is not used, but it is included for special cases.
-
-
Select Save.
When you publish using this layout, Paligo will apply the styling to the appropriate elements.
To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).
You can use the PDF layout settings to add a border around inline elements such as guilabel
and guimenuitem
. This is useful if you need to draw extra attention to the inline elements for some reason.
Note
For HTML outputs, use CSS to style the classes (see Style with CSS).
To style a border for inline elements in PDF outputs:
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
Use the Border width for <inline element> setting to set the thickness of the border line. Enter a value and the units of measurement, such as, 0.5em or 1pt.
-
Use the Border style for <inline element> setting to choose a type of border.
-
None - There is no border.
There is no border.
-
Hidden - There is a border but it cannot be seen.
There is a border but it cannot be seen.
-
Dotted - The border is a dotted line.
The border is a dotted line.
-
Dashed - The border is made up of short lines.
The border is made up of short lines.
-
Solid - The border is a single line with no breaks.
The border is a single line with no breaks.
-
Double - The border is two lines with no breaks.
The border is two lines with no breaks.
-
Groove - The border has lines and shading to create a "pressed down" look.
The border has lines and shading to create a "pressed down" look.
-
Ridge - The border has lines and shading to create a "raised" look.
The border has lines and shading to create a "raised" look.
-
Inset - The border has lines and shading to create a "pressed down" look. It is similar to the groove style, but uses a different line and shading pattern.
The border has lines and shading to create a "pressed down" look. It is similar to the groove style, but uses a different line and shading pattern.
-
Outset - The border has lines and shading to create a "raised" look. It is similar to the ridge style, but uses a different line and shading pattern.
The border has lines and shading to create a "raised" look. It is similar to the ridge style, but uses a different line and shading pattern.
-
-
Set the Border color for <inline element>.
If you do not want to use the default color, clear the Use default color checkbox. You can then use the color selector to choose a color.
-
Clear the Use default color checkbox to select a color of your own choice.
-
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).
-
Choose the color with the spectrum bar (3).
-
Control the transparency with the opacity bar (4).
-
Choose the color shade with the main color panel (5).
-
-
-
Select Save.
When you publish using this layout, Paligo will apply the styling to the appropriate elements.
To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).
You can set each type of inline element, such as guilabel
and guimenuitem
, to have a specific amount of space before and after the element. For example, in the following image, there is a 2em space before an inline element and also after it. (This is quite a large amount of space, but used here to show where the spacing applies).
To control the amount of space before and after an inline element, use the Padding for <inline element> setting (where <inline element> is a specific element, such as guilabel). The space can help to make the inline element terms stand out more on a page, so that they are easy to pick out when skimming over the page rather than reading it in depth.
Note
For HTML outputs, use CSS to style the classes (see Style with CSS).
-
Select Layout in the top menu.
-
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.
-
Select Inline elements and then the category for the type of inline element you want to style, for example, guilabel.
-
Use the Padding for <inline element> setting to set the amount of space before and after every instance of the <inline element>. You need to enter a value and the units of measurement, such as, 0.5em or 1cm.
For example, if you want to add 0.5em padding to all guilabel elements, you would enter 0.5em in the Padding for guilabel field.
-
Select Save.
When you publish using this layout, Paligo will apply the styling to the appropriate elements.
To learn about the other settings for PDF inline elements, see Inline Element Styling (PDF).
Comments
0 comments
Article is closed for comments.