3.9 Standard Markups -- Frame and color


main page
top:Skribe User Manual
index:Index
markups:Standard Markups


Standard Markups
Markup index
3.1Document
3.2Sectioning
3.3Table of contents
3.4Ornaments
3.5Line breaks
3.6Font
3.7Justification
3.8Enumeration
3.9Frame and color
3.10Figure
3.11Image
3.12Table
3.13Footnote
3.14Characters, Strings and Symbols


Chapters
1Getting Started
2Syntax & Values
3Standard Markups
4References and Hyperlinks
5Indexes
6Bibliography
7Computer programs
8Standard Library
9Engines
10Editing Skribe Programs
11Skribe compiler
12Compiling Texi documents
13List of examples
14Table of contents

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] [:width] [:margin 2] [:border 1] node...)
optionenginesdescription
:identhtml latex The node identifier.
:classhtml latex The node class.
:widthhtml latex The 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 Ornaments.

prototype
(color [:ident] [:class] [:bg] [:fg] [:width] [:margin] node...)
optionenginesdescription
:identhtml latex The node identifier.
:classhtml latex The node class.
:widthhtml latex The 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 (p [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 Wed Feb 13 18:08:29 2008.