\makebox

Command in package box.

Synopsis

\makebox[width][align]{content}

Description

Creates an inline box with the specified content. 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 \framebox.

Examples

TeX code Result, as rendered by your browser
Lorem \makebox{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \makebox[6em]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \makebox[6em][l]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \makebox[6em][c]{ipsum} dolor sit amet.
| Lorem ipsum dolor sit amet. ||
Lorem \makebox[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)