SDF 2.001beta1: SDF Reference: namevalues Filter

Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog

# 5.20. namevalues Filter

## Interface

The general syntax is:

      !block namevalues[; parameters]
      table
      !endblock

The parameters are:

Name | Type | Rule
format | string |

The table fields are:

Field | Category | Rule
Name | optional |
Value | optional |

See Understanding Filter Interfaces, if necessary.

## Description

The namevalues filter is used to format a table of name-value pairs. Each name is output in bold. For PostScript output, the names are placed in the sidehead.

## Examples

    !block namevalues
    Name            Value
    Description:    Find the maximum of two numbers
    Module:         general
    Author:         Joe Bloggs
    !endblock

The result is:

Description: | Find the maximum of two numbers
Module: | general
Author: | Joe Bloggs

Contents | Parent Topic | Previous Topic | Next Topic
Home | Catalog