21. Warning, Note and Info Boxes

Custom formatted framed boxes for notes, warnings and additional information can be included in the document based on styles you define in the Stylesheet. These same definitions can be used to insert basic boxes for general use.

You then insert the appropriate box type in the document using a simple command.

These framed boxes use a type of table that is provided in the supertabular and tikz packages. You need to add these packages before adding the packages for framed boxes. You add them as shown below.

## Defining a custom framed box

Before you define the specific boxes, you need to add some packages and define some colours. Add the following to your stylesheet and change the RGB values to what you need.

Note: You can keep all the colour definitions organized by including them within the Colours section of the stylesheet.

With these settings, each type of box can now be defined in the stylesheet.

## Defining a basic boxes

You can define a general purpose box for use as required.

The following defines the rules, spacing, icon and background colour of a warning box. You can just copy and adjust these settings as needed. This give the name of this rule {basic} which you find at the end of this definition.

## Inserting a basic box in a document

Use the following to insert a basic box into the document flow. I usually just copy and paste it into the document where I need it and then replace the placeholder text with my text.

## Defining Warning boxes

A Warning Box is information that a user must be aware of before performing a specific task.

The following defines the rules, spacing, icon and background colour of a warning box. You can just copy and adjust these settings as needed. This give the name of this rule {warnbox} which you find at the end of this definition.

## Inserting a Warning box in document

You insert a warning box into the document flow using the following commands.

## Defining Note boxes

Note Boxes are additional information that is important but outside the procedure described in the current text flow.

The following is essentially the same as defined for the Warning Box, with the exception of the background colour and the icon used in the box. This gives the name of the Note box as notice.

## Inserting a Note box in document

Use the following commands to insert a Note Box into the document flow.

## Definition for Info boxes

An Info Box would normally be used to provide additional information that may be available outside the current document, such as a website or another user manual.

Like the Warning and Note Box definitions above, you can adjust the settings as required. This gives the name of the box infobox.

## Inserting a Info box in document

Use the following commands to insert an Info box into the document flow.

Click to continue.