3.9 Skribe User Manual -- Frame and color

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.9.1 Frame

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

Produces:

This is a frame.

3.9.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 Ornaments3.4.

prototype
(color [:ident] [:class "color"] [:bg] [:fg] [:width] [:margin] node...)
optionenginesdescription
identhtml latex xml The node identifier.
classhtml latex xml The node class.
widthhtml latex The width of the frame.
marginhtml The margin pixel size of the frame.
bghtml latex The background color
fghtml latex The foreground color
argumentdescription
node...The items of the enumeration.
See also
frame table
Example:
(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. 12: 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.

This Html page has been produced by Skribe.
Last update Tue Jun 29 09:37:13 2010.