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.
prototype |
(frame [:ident] [:class "frame" ] [:width] [:margin 2 ] [:border 1 ] node... ) |
ident | html latex xml | The node identifier. |
class | html latex xml | The node class. |
width | html latex | The width of the frame. |
margin | html latex | The margin pixel size of the frame. |
border | html latex | The border pixel of the frame. |
node... | The items of the enumeration. |
color table |
Example:
(center (frame :width 10. :margin 10 (p [This is a frame.])))
|
|
Ex. 11: The frame markup
Produces:
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... ) |
ident | html latex xml | The node identifier. |
class | html latex xml | The node class. |
width | html latex | The width of the frame. |
margin | html | The margin pixel size of the frame. |
bg | html latex | The background color |
fg | html latex | The foreground color |
node... | The items of the enumeration. |
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. |
|
|
|