Copyright © tutorialspoint.com
For compatibility with grolj4 there is an additional drawing command available:
| Tag | Description |
|---|---|
| \DR dh dv | Draw a rule (i.e. a solid black rectangle), with one corner at the current position, and the diagonally opposite corner at the current position +(dh,dv). |
| Tag | Description |
|---|---|
| -cnumcopies | |
| --copies=numcopies | |
| Print numcopies copies of each page. | |
| -l | |
| --landscape | |
| Print the document with a landscape orientation. | |
| -ppaper_size | |
| --papersize=paper_size | |
| Set the paper size to paper_size, which must be a valid paper size description as indicated in the section PAPER SIZES. | |
| -oorientation | |
| --orientation=orientation | |
| Print the document with orientation orientation, which must be portrait or landscape. | |
| -wwidth | |
| --linewidth=width | |
| Set the default line thickness to width thousandths of an em. If this option isnt specified, the line thickness defaults to 0.04~em. | |
| -v | |
| --version | |
| Print the version number. | |
| -Fdir | |
| --fontdir=dir | |
| Prepend directory dir/devname to the search path for font and device description files; name is the name of the device, usually lbp. | |
| -h | |
| --help | Print a short help text. |
The following chart summarizes the font names you can use to access these fonts:
| Typeface | Regular | Bold | Italic | Bold-Italic |
| Dutch | TR | TB | TI | TBI |
See groff_font(1) how to set the paper dimensions in the DESC file.
To set the paper size in the command line, add
-p paper-size
or
--papersize=paper-size
to the other grolbp options, where paper-size is in the same format as in the DESC file.
If no paper size is specified in the DESC file or the command line, a default size of A4 is used.
To set the orientation in the DESC file, insert a line with the following content:
orientation [portrait|landscape]
Only the first valid orientation command in the DESC file is used.
To set the page orientation with command line options you can use the -o or --orientation option with the same parameters (portrait or landscape) as in the DESC file. Or you can use the -l option to force the pages to be printed in landscape.
lbpname printer_font_name
| Tag | Description |
|---|---|
| o |
For bitmapped fonts,
printer_font_name has the form
Nbase_fontname base_fontname is the font name as it appears in the printers font listings without the first letter, up to (but not including) the font size. font_style can be one of the letters R, I, or B, indicating the font styles Roman, Italic and Bold respectively. |
|
For instance, if the printers
font listing A shows font Nelite12I.ISO_USA, the corresponding entry in the font
description file is
lbpname NeliteI | |
| Note that you may need to modify grolbp to add support for new bitmapped fonts, since the available font names and font sizes of bitmapped fonts (as documented above) are hard-coded into the program. | |
| o | For scalable fonts, printer_font_name is identical to the font name as it appears in the printers font listing A. |
|
For instance, to select the Swiss font in bold style, which appears in
the printers
font listing A as Swiss-Bold, the required
lbpname command line is
lbpname Swiss-Bold
|
| Tag | Description |
|---|---|
| /usr/share/groff/1.18.1.1/font/devlbp/DESC | |
| Device description file. | |
| /usr/share/groff/1.18.1.1/font/devlbp/F | |
| Font description file for font F. | |
| /usr/share/groff/1.18.1.1/tmac/lbp.tmac | |
| Macros for use with grolbp. | |
Copyright © tutorialspoint.com