Themes

A theme is a set of formatting, such as fonts, spacing before and after paragraphs, and text alignment, that applies to content written in the editor. Just as you edit content paragraph by paragraph in the editor, a theme formats content by paragraph type and character type.

ManualWorks separates the content written in the editor from the formatting set in the theme. This has the following benefits.

There are 2 types of themes.

Web

A theme for the web viewer and for creating EPUB1 files.

PDF

A theme for creating PDF and MS Word files.

You work with themes in the <Style | Theme> menu.

The <Theme> menu is visible only to users who have the “Create Style” permission.

Creating a Theme

The “default web theme” and the “default PDF theme” are created automatically during installation.

To create a theme, follow these steps.

  1. Go to the <Style | Theme> menu.

  2. Click the <Create Theme> link.

  3. Enter and select the “Basics”, such as the name, type, mode, and language.

    • Fonts and numbering formats differ by language, so you must create a theme for each language.

  4. Click the button.

After you create a theme, you cannot change its “Type” and “Mode”.

Editing a Theme

To edit a theme, follow these steps.

  1. In the theme list, click the name of the theme whose formatting you want to change.

  2. In the left menu, select the paragraph type or character type to format.

  3. Set the font color, font style, background color, and other options for that paragraph or character type.

  4. After you change the formatting, check the result in the “1Preview”.

  5. Click the button to save your changes.

When you change the formatting, a preview appears below.

For PDF themes, the preview is provided as an image file to handle fonts that web browsers do not support. As a result, the preview may take a long time to update.

Your changes are saved only when you click the button. Even if the changes appear in the preview, they are not applied if you select another item or leave the page without saving. If you select another item without saving, ManualWorks asks whether to continue. To revert your changes before saving, click the <Cancel> link.

Formatting Tips

Fonts

Web themes and PDF themes select fonts in different ways.

Selecting Fonts in Web Themes

Selecting a font in a web theme declares that the web viewer uses a font installed on the user's computer.

If the font declared in the web theme is not installed on the user's computer, the web browser's default font is used. For this reason, set fonts with several operating systems in mind, as follows.

Arial, Helvetica, LiberationSans, sans-serif

These are similar-looking English fonts found on Windows, macOS, and Linux, in that order.

The following are commonly used font settings.

In web themes, you type font names directly. You can type the examples above as they are or type other fonts.

Selecting Fonts in PDF Themes

Selecting a font in a PDF theme sets the font to embed in the PDF file itself. Because the fonts selected in a PDF theme are embedded in the PDF file, they do not depend on the operating system. However, you must pay attention to font licenses.

You can use only the fonts registered in PDF Fonts in PDF themes.

Paragraphs

In the theme's “Paragraph” menu, you set the following options.

Space Before and After Paragraphs

In the theme's “Paragraph” tab, you set the space before and after a paragraph. The space before and after paragraphs separates them.

The space between two paragraphs is the larger of the two values, not the sum of the space after the first paragraph and the space before the second. For example, suppose the paragraphs are arranged as follows.

Heading 1 (space before 0,   space after 3)
Heading 2 (space before 1,   space after 2)
Normal    (space before 0.5, space after 0.5)

The space between Heading 1 and Heading 2 is 3, and the space between Heading 2 and Normal is 2.

Indentation

You set indentation in the 1“Left” and “Right” fields of the “Paragraph” tab. A positive value in the Left field indents the paragraph to the right of other paragraphs.

Indentation

Indentation

Note the following when you set indentation.

Alignment

In the “Paragraph” tab of text, image, table, and object paragraphs(table of contents in PDF themes), you can set left, right, center, or justified alignment.

Line Height and First-Line Indentation

You can adjust the 1line height in the theme's [General] menu or in the “Paragraph” tab.

In the “Paragraph” tab, you can set the indentation of the paragraph's 2first line. First-line indentation separates paragraphs.

3Step paragraphs do not support first-line indentation.

Borders and Padding

You set borders and padding for headings, code, commands, preformatted text, block quotes, epigraphs, notes, tips, cautions, and similar paragraphs.

To set a border, follow these steps.

  1. Select the paragraph type to add a border to, and then click the “Border” tab.

  2. Select the line style(solid, dotted, dashed, or double), color, and thickness.

    • You can set the top, bottom, left, and right borders separately.

    • For a double line, set the thickness to 3px(or 3pt) or more.

  3. Check the preview, and then click the button.

Border

Border

To round the corners of a border, set the radius of each of the four corners in the “Border Radius” tab.

When you set a border, set the top, bottom, left, and right padding in the “From Text” tab to match the border, so that the border is not drawn too close to the content.

To set padding, follow these steps.

  1. Select the paragraph type to add padding to, and then click the “From Text” tab.

  2. Set the top, bottom, left, and right padding separately.

  3. Check the preview, and then click the button.

Background

In the menu's “Background” tab, you can set a background color or a background image.

Background

Background

Note the following when you set a background image.

Transparent PNG images are supported.

Numbering

You can set numbering for headings, code captions, ordered lists, unordered lists, figure captions, table captions, and footnotes. For details, see Numbering.

About em, rem, px, and pt Units

The result depends on the unit you select when you set a value. Note the following when you select a unit.

Web themes use px (pixels), em, and rem units. PDF themes use pt (points), em, and rem units.

em

The value is based on the font size set in the General item. For example, if the value set in the General item is 10px, 1em means 10px, 1.1em means 11px, and 0.9em means 9px.

You can use this unit in both web themes and PDF themes, and you can set values as follows.

rem

The value is a multiple of a fixed base value (16px for web themes and 16pt for PDF themes). For example, 1rem means 16px, 1.5rem means 24px, and 2rem means 32px.

You can use this unit in both web themes and PDF themes.

px(pixels)

The size is relative to the display device, such as a monitor. You can use this unit only in web themes.

pt(points)

A print unit with a fixed size. You can use this unit only in PDF themes.

Guide to Key Items

The formatting you can set depends on the item. Headings, ordered lists, unordered lists, definition lists, images, tables, the table of contents, the index, footnotes, and similar items consist of several subitems.

You set formatting by paragraph type and character type. The main items are as follows.

Items you can set in a theme

Item

Description

General

Sets the basic formatting that affects the entire theme.

Text

Sets the formatting for text paragraph types. Proofreading paragraphs appear only in the editor and do not need formatting, so they do not appear in the list.

Image

Sets the formatting for image paragraphs.

Table

Sets the formatting for table paragraphs.

Object

Sets the formatting for object paragraph types. You can set the table of contents, index, and blank page only in PDF themes.

Character

Sets the formatting for character types and links.

General

Sets the basic formatting that affects the entire theme. Unless you set them separately, other items inherit the values set in General.

Font, Heading Font, and Code Font

Using too many fonts, or only one font, in a document reduces readability. Choose fonts based on the document type and the readers, and try not to use more than two or three fonts, which is the most suitable number.

Even with a few fonts, you can avoid monotony by varying the size, color, and style.

To combine fonts well, set different fonts for headings and body text. Also set a code font for code-related paragraph and character types, which must use a monospaced font.

Font, heading font, and code font

Font type

Applies to

Font

Used for all paragraph and character types except those that use the heading font and the code font.

Heading Font

Used for Heading 1 to 5, headline, figure caption, and table caption paragraphs. If not set, the font set in "Font" is used.

Code Font2

Used for code and command paragraphs and the code character type. If not set, the font set in "Font" is used.

If necessary, you can set a different font for an individual item.

Font Size and Font Color

The font size set in General is the base for values in em units in individual items. Therefore, you cannot set the font size in em units in the “General” item.

Unless set separately, other items inherit the font color.

Alignment and Hyphenation

In the theme's “General” item, you can select only left alignment or justified alignment.

If you select “Justify” for alignment in a PDF theme, you may need to set Hyphenation in the line break option. For details, see PDF Hyphenation.

Line Break Option

In the theme's “General” item, you can set whether words can break.

Setting word breaks

Setting word breaks

Use the 1line break option to set how words break at the end of a line.

Enable Word Break

Allows a line to break within a word.

Disable Word Break

Does not allow a line to break within a word.

Hyphenation

Allows a line to break within a word, like Enable Word Break, and inserts a hyphen where the line breaks.

Supported only in PDF themes.

Text Paragraphs

Indenting Sections Under Heading Paragraphs

Supported only in PDF. Not supported in the web viewer or EPUB.

In a PDF document, the section under a heading is indented as follows.

Example of section indentation in a PDF

Example of section indentation in a PDF

To set indentation for the section under a heading paragraph, follow these steps.

  1. Select the PDF theme to apply section indentation to.

  2. In the “Paragraph” tab of the “Heading” menu, set the “Section Indentation” value.

    • You can set it for Heading 1 through Heading 5.

  3. Click the button.

Numbering for Ordered and Unordered Lists

In web themes, numbering for Ordered List 1/2/3 and Unordered List 1/2/3 supports only the Number Style option.

Unlike web themes, PDF themes support various numbering options, such as number format and font.

Also note the following.

Step Paragraphs

Image Paragraphs

Table Paragraphs

Table

Table Paragraph Alignment

When the total width of the table is less than 100%, you can set the position of the table paragraph in “Alignment” of the Table item. Select left, right, or center alignment.

To set the table width to less than 100%, see Setting Column Widths.

In the theme preview, the table width is 100%, so you cannot check whether the table paragraph alignment is applied.

Table Caption

Table Header Cells and Table Cells

Setting Alignment and Padding for Table Cells (Table Header Cells)

Values set for table header cells also apply to table footer cells.

Object Paragraphs

Table of Contents

Index

Footnote

Blank Page

Horizontal Line

Character Types

Note the following when you format character types.

Copying a Theme

To copy a theme, follow these steps.

  1. Go to the <Style | Theme> menu.

  2. In the theme list, click the <Copy> link of the theme to copy.

    • The copy is named with Copy of added before the theme name.

Deleting a Theme

To delete a theme, follow these steps.

  1. Go to the <Style | Theme> menu.

  2. In the theme list, click the <Delete> link of the theme to delete.

Customizing Web Themes with CSS

To customize a web theme with CSS, see 웹 테마 CSS로 꾸미기.

Using Web Fonts

To use web fonts, see 웹 글꼴 설정하기.


  1. Technically, an EPUB is a bundle of HTML files. For this reason, there is no separate EPUB theme; EPUB files use web themes.
  2. You must use a monospaced font.