\framebox

Command in package box.

Synopsis

\framebox[width][align]{content}

Description

Creates an inline box with the specified content and a frame around it. The first
optional argument, width, specifies the width of the box. The second optional
argument, align, specifies the horizontal alignment of the content. It must be one
of the alignment characters "l", "c", "r" for "left", "center", "right". respectively.
Line breaks are suppressed in the box.

See also \makebox.

Examples

TeX code Result, as rendered by your browser
Lorem \framebox{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \framebox[6em]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \framebox[6em][l]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \framebox[6em][c]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \framebox[6em][r]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. |

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

Add picture from clipboard (Maximum size: 500 MB)