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

# 5.21. 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