\box

Command in package box.

Synopsis

\box[class]{content}

Description

Creates an inline box with the specified content. The optional argument
specifies the style class. Line breaks are suppressed in the box.

With the default CSS stylesheets, the box is invisible unless the style
class adds some visible layout to it. The default CSS stylesheets define
three style classes for boxes: "filled", "highlight", and "error". Their
effect can be seen in the examples below.

Examples

TeX code Result, as rendered by your browser
Lorem ipsum \box{dolor sit amet} consectetuer adipiscing elit.
| Lorem ipsum dolor sit amet consectetuer adipiscing elit. ||
Lorem ipsum \box[filled]{dolor sit amet} consectetuer adipiscing elit.
| Lorem ipsum dolor sit amet consectetuer adipiscing elit. ||
Lorem ipsum \box[highlight]{dolor sit amet} consectetuer adipiscing elit.
| Lorem ipsum dolor sit amet consectetuer adipiscing elit. ||
Lorem ipsum \box[error]{dolor sit amet} consectetuer adipiscing elit.
| Lorem ipsum dolor sit amet consectetuer adipiscing elit. |

This page is generated automatically and each change here will be replaced on a next update.

Add picture from clipboard (Maximum size: 500 MB)