 
  
  
   
 Next: Specific Structures for Forms
Up: Predicates for Generating HTML Documents
 Previous: General Structures
 
 
Most of the names of the structures listed here have been fashioned
after their LaTeX[6] equivalent. New structures can be defined
by means of the html_expansion/2 predicate. Note that these structures take priority over the above
ones.
- start
-  Used at the beginning of a document (translates to
<html>).
 
- end
-  Used at the end of a document (translates to </html>).
 
- --
-  Produces a horizontal rule (translates to <hr>).
 
- \\
-  Produces a line break (translates to <br>).
- $
-  Produces a paragraph break (translates to <p>).
 
- comment(Comment)
-  Used to insert an HTML comment
(translates to<!- Comment ->).
 
- title(Title)
-  Used to give a title to a document
(translates to a <title>environment).
 
- image(Addr)
-  Used to include an image of address (URL)
Addr (translates to an <img>element).
 
- image(URL,Atts)
-  Idem with the list of attributes
Atts.
 
- ref(Addr,Text)
-  Produces a hypertext link, Addr
is the URL of the referenced resource, Text is the text of the
reference (translates to
<a href="Addr">Text</a>).
 
- label(Label,Text)
-  Labels Text as a target
destination with label Label (translates to <a name="Label">Text</a>).
 
- heading(N,Text)
-  Produces a heading of level N
(1 <= N <= 6), Text is the
  text to be used as heading 
(translates to a <hN>environment).
 
- itemize(Items)
-  Produces a list of bulleted items,
Items is a list of corresponding HTML terms (translates to a
<ul>environment).
 
- nice_itemize(Items)
-  Same as above, but uses nicer
bullets. The bullet used can be changed through the predicate 
  icon_address/2.  (See the source
  file for details.)
 
- enumerate(Items)
-  Produces a list of numbered items,
Items is a list of corresponding HTML terms (translates to an
<ol>environment).
 
- description(Defs)
-  Produces a list of defined items,
Defs is a list whose elements are definitions, each of them
being a Prolog sequence (composed by ','/2 operators). The last
element of the sequence is the definition, the other (if any) are the
defined terms (translates to an <dl>environment). The example files should clarify this point.
 
- preformatted(Text)
-  Used to include preformatted text,
Text is a list of HTML terms, each element of the list being a
line of the resulting document (translates to a <pre>environment).
 
- verbatim(Text)
-  Used to include text verbatim, special
HTML characters (<,>,&,") are translated into its quoted HTML 
equivalent.
 
- nl
-  Used to include a newline in the HTML source (just to
improve human readability).
 
- begin(Tag,Atts)
-  It translates to the start of an
HTML environment of name Tag and attributes Atts. There
exists also a begin(Tag) structure.  Useful, in conjunction
with the next structure, when including in a document output generated
by an existing piece of code (e.g. Tag = pre).  Its use is
otherwise discouraged.
 
- end(Tag)
-  Translates to the end of an HTML environment of
name Tag.
  
 
  
  
   
 Next: Specific Structures for Forms
Up: Predicates for Generating HTML Documents
 Previous: General Structures
Mon Mar 18 21:38:39 MET 1996 <clip@dia.fi.upm.es>