From Wiki
Jump to navigation Jump to search



[...,...=...,...] see \setupframed
{...} text


There are two variants of this command:

As its name suggests, \framed draws a frame around its argument. For example

surrounding text \framed{framed text} surrounding text


Notice that the bottom line of the frame is aligned with the baseline of text.

Framed little cousin, \inframed aligns the baseline of framed text with the baseline of surrounding text. For example,

surrounding text \inframed{framed text} surrounding text


The following example contrast the difference between framed and inframed.


Notice the difference between
\framed{framed} and \inframed{inframed},
especially considering its effect on linespacing...




This option determines whether a frame is drawn or not.

  • Default value: on

  • Alternate value: off



This option determines whether or not the corners are round. It also allows drawing only selective corners.

  • Default value: rectangular

  • Most common alternative: round

  • Other values: any number between 0 and 28


  • The option frame=on (which is default) must be set, otherwise the frame will not be shown.
  • The option backgroundcolor=... works with corner=<number> only if the shape is closed. Otherwise the background color is silently ignored.
  • The options offset and frameoffset can be used to increase the distance between the frame and the text.

See also