grn | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
NAME | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SYNOPSIS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
It is possible to have whitespace between a command line option and its parameter.
DESCRIPTION | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Please note that currently only the -me macro package has support for .GS, .GE, and .GF.
The following command-line options are understood:
GRN COMMANDS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
Commands that affect a picture's environment (those listed before default, see below) are only in effect for the current picture: The environment is reinitialized to the defaults at the start of the next picture. The commands are as follows:
NOTES ABOUT GROFF | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
When using grn along with other preprocessors, it is best to run tbl before grn, pic, and/or ideal to avoid overworking tbl. Eqn should always be run last.
A picture is considered an entity, but that doesn't stop troff from trying to break it up if it falls off the end of a page. Placing the picture between `keeps' in -me macros will ensure proper placement.
grn uses troff's number registers g1 through g9 and sets registers g1 and g2 to the width and height of the gremlin figure (in device units) before entering the .GS request (this is for those who want to rewrite these macros).
GREMLIN FILE FORMAT | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
sungremlinfile | gremlinfile | |
0 240.00 128.00 | 0 240.00 128.00 | |
CENTCENT | 2 | |
240.00 128.00 | 240.00 128.00 | |
185.00 120.00 | 185.00 120.00 | |
240.00 120.00 | 240.00 120.00 | |
296.00 120.00 | 296.00 120.00 | |
* | -1.00 -1.00 | |
2 3 | 2 3 | |
10 A Triangle | 10 A Triangle | |
POLYGON | 6 | |
224.00 416.00 | 224.00 416.00 | |
96.00 160.00 | 96.00 160.00 | |
384.00 160.00 | 384.00 160.00 | |
* | -1.00 -1.00 | |
5 1 | 5 1 | |
0 | 0 | |
-1 | -1 | |
Table 1. File examples |
ELEMENT SPECIFICATIONS | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
gremlin File Format - Object Type Specification | ||
AED Number | SUN/X11 Name | Description |
0 | BOTLEFT | bottom-left-justified text |
1 | BOTRIGHT | bottom-right-justified text |
2 | CENTCENT | center-justified text |
3 | VECTOR | vector |
4 | ARC | arc |
5 | CURVE | curve |
6 | POLYGON | polygon |
7 | BSPLINE | b-spline |
8 | BEZIER | B['e]zier |
10 | TOPLEFT | top-left-justified text |
11 | TOPCENT | top-center-justified text |
12 | TOPRIGHT | top-right-justified text |
13 | CENTLEFT | left-center-justified text |
14 | CENTRIGHT | right-center-justified text |
15 | BOTCENT | bottom-center-justified text |
Table 2. | ||
Type Specifications in gremlin Files |
1 - | thin dotted lines | |
2 - | thin dot-dashed lines | |
3 - | thick solid lines | |
4 - | thin dashed lines | |
5 - | thin solid lines | |
6 - | medium solid lines |
For polygons, one more value, 0, is valid. It specifies a polygon with an invisible border. For text, the brush selects a font as follows:
1 - | roman (R font in groff) | |
2 - | italics (I font in groff) | |
3 - | bold (B font in groff) | |
4 - | special (S font in groff) |
If you're using grn to run your pictures through groff, the font is really just a starting font: The text string can contain formatting sequences like ``\fI'' or ``\d'' which may change the font (as well as do many other things). For text, the size field is a decimal value between 1 and 4. It selects the size of the font in which the text will be drawn. For polygons, this size field is interpreted as a stipple number to fill the polygon with. The number is used to index into a stipple font at print time.
NOTES ON COORDINATES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
NOTES ON SUN/X11 COORDINATES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
FILES | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
SEE ALSO | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
HISTORY | Début | Précédent | Suivant | Sommaire | Préc.page.lue | Accueil |
David Slattengren and Barry Roitblat wrote the original Berkeley grn.
Daniel Senderowicz and Werner Lemberg modified it for groff.
Sommaire | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
Table des mots clés | Début | Suivant | Sommaire | Préc.page.lue | Accueil |
-C | DESCRIPTION |
-Fdir | DESCRIPTION |
-Mdir | DESCRIPTION |
-Tdev | DESCRIPTION |
-v | DESCRIPTION |
1 N | GRN COMMANDS |
default | GRN COMMANDS |
file name | GRN COMMANDS |
height N | GRN COMMANDS |
l f | GRN COMMANDS |
narrow N | GRN COMMANDS |
pointscale <off/on> | GRN COMMANDS |
roman f | GRN COMMANDS |
width N | GRN COMMANDS |
x N | GRN COMMANDS |