3.10 Skribilo User Manual — Frames and Colors
Contents↑ Standard Markups

The function frame embeds a text inside a frame. The function color may also use the same purpose when it is specified a bg option. This is why both functions are included in the same Skribe manual section.

3.10.1 Frame

prototype
(frame [:border 1] [:margin 2] [:width] [:class "frame"] [:ident] node...)
optionenginesdescription
:identhtml lout latex context info xml The node identifier.
:classhtml lout latex context info xml The node class.
:widthhtml lout latex context The width of the frame.
:marginhtml lout latex context The margin pixel size of the frame.
:borderhtml lout latex context The border pixel of the frame.
argumentdescription
node...The items of the enumeration.
See also
color table
(center (frame :width 10. :margin 10 (p [This is a frame.])))
Ex. 13: The frame markup

... produces:

This is a frame.

3.10.2 Color

The color markup enables changing locally the text of the document. If the bg color is used, then, color acts as a container. Otherwise, it acts as an Ornaments.

prototype
(color [:margin] [:width] [:fg] [:bg] [:class "color"] [:ident] node...)
optionenginesdescription
:identhtml lout latex context info xml The node identifier.
:classhtml lout latex context info xml The node class.
:widthhtml lout latex context The width of the frame.
:marginhtml context The margin pixel size of the frame.
:bghtml lout latex context The background color
:fghtml lout latex context The foreground color
argumentdescription
node...The items of the enumeration.
See also
frame table
(center 
   (color :bg "#aaaaaa"
      :margin 10
      :width 30.
      (center
          (color :bg "#eeeeee" :fg "blue" :width 100. :margin 10 [This is an
example of color box that uses a color for the 
background ,(emph "and") the ,(color :fg "red" "foreground"). It also specifies
a width, that is, an horizontal space, the text should 
span to.]))))
Ex. 14: The color markup

... produces:

This is an example of color box that uses a color for the background and the foreground. It also specifies a width, that is, an horizontal space, the text should span to.
(made with skribilo)