2 .\" Like TP, but if specified indent is more than half
3 .\" the current line-length - indent, use the default indent.
5 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
8 .TH GROPS @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
10 grops \- PostScript driver for groff
28 translates the output of GNU
33 should be invoked by using the groff command
37 .if '@DEVICE@'ps' (Actually, this is the default for groff.)
38 If no files are given,
40 will read the standard input.
45 to read the standard input.
46 PostScript output is written to the standard output.
51 options can be passed to
60 Workaround broken spoolers and previewers.
63 produces output that conforms
64 the Document Structuring Conventions version 3.0.
65 Unfortunately some spoolers and previewers can't handle such output.
70 does to its output acceptable to such programs.
71 A value of 0 will cause grops not to employ any workarounds.
73 .B %%BeginDocumentSetup
76 comments should be generated;
77 this is needed for early versions of TranScript that get confused by
83 Add 2 if lines in included files beginning with
85 should be stripped out; this is needed for Sun's pageview previewer.
92 stripped out of included files; this is needed for spoolers that
98 The default value can be specified by a
103 command in the DESC file.
104 Otherwise the default value is 0.
113 Guess the page length.
114 This generates PostScript code that guesses the page length.
115 The guess will be correct only if the imageable area is vertically
116 centered on the page.
117 This option allows you to generate documents that can be printed
118 both on letter (8.5\(mu11) paper and on A4 paper without change.
121 Print the document in landscape format.
126 for font and device description files;
128 is the name of the device, usually
132 Lines should be drawn using a thickness of
134 thousandths of an em.
137 Print the version number.
139 There are styles called
145 mounted at font positions 1 to 4.
146 The fonts are grouped into families
156 having members in each of these styles:
158 .if '\\*(.T'ps' .ft \\$1
168 AvantGarde-BookOblique
178 AvantGarde-DemiOblique
238 Helvetica-BoldOblique
248 Helvetica-Narrow-Oblique
253 Helvetica-Narrow-Bold
258 Helvetica-Narrow-BoldOblique
263 NewCenturySchlbk-Roman
268 NewCenturySchlbk-Italic
273 NewCenturySchlbk-Bold
278 NewCenturySchlbk-BoldItalic
321 There is also the following font which is not a member of a family:
325 ZapfChancery-MediumItalic
328 There are also some special fonts called
332 Zapf Dingbats is avilable as
334 and a reversed version of ZapfDingbats (with symbols pointing in the opposite
335 direction) is available as
337 most characters in these fonts are unnamed and must be accessed using
341 understands various X commands produced using the
345 will only interpret commands that begin with a
349 .BI \eX'ps:\ exec\ code '
350 This executes the arbitrary PostScript commands in
352 The PostScript currentpoint will be set to the position of the
354 command before executing
356 The origin will be at the top left corner of the page,
357 and y coordinates will increase down the page.
360 will be defined that converts groff units
361 to the coordinate system in effect.
369 \eX'ps: exec \enx u 0 rlineto stroke'
373 will draw a horizontal line one inch long.
375 may make changes to the graphics state,
376 but any changes will persist only to the
378 Any definitions will also persist only until the end of the page.
381 escape sequence with an argument that names a macro,
383 can extend over multiple lines.
399 is another way to draw a horizontal line one inch long.
402 .BI \eX'ps:\ file\ name '
403 This is the same as the
405 command except that the PostScript code is read from file
408 .BI \eX'ps:\ def\ code '
409 Place a PostScript definition contained in
412 There should be at most one definition per
415 Long definitions can be split over several
420 arguments are simply joined together separated by newlines.
421 The definitions are placed in a dictionary which is automatically
422 pushed on the dictionary stack when an
427 escape sequence with an argument that names a macro,
429 can extend over multiple lines.
431 .BI \eX'ps:\ mdef\ n\ code '
440 needs to know how many definitions
443 so that it can create an apppropriately sized PostScript dictionary
446 .BI \eX'ps:\ import\ file\ llx\ lly\ urx\ ury\ width\ \fR[\fP\ height\ \fR]\fP '
447 Import a PostScript graphic from
455 give the bounding box of the graphic in the default PostScript
456 coordinate system; they should all be integers;
460 are the x and y coordinates of the lower left
461 corner of the graphic;
465 are the x and y coordinates of the upper right corner of the graphic;
469 are integers that give the desired width and height in groff
470 units of the graphic.
471 The graphic will be scaled so that it has this width and height
472 and translated so that the lower left corner of the graphic is
473 located at the position associated with
476 If the height argument is omitted it will be scaled uniformly in the
477 x and y directions so that it has the specified width.
478 Note that the contents of the
480 command are not interpreted by
482 so vertical space for the graphic is not automatically added,
487 arguments are not allowed to have attached scaling indicators.
488 If the PostScript file complies with the Adobe Document Structuring
489 Conventions and contains a
491 comment, then the bounding box can be automatically
492 extracted from within groff by using the
501 macros (which are automatically loaded when
503 is run by the groff command) include a
505 macro which allows a picture to be easily imported.
508 .BI .PSPIC\ file\ \fR[ width\ \fR[ height \fR]]
511 is the name of the file containing the illustration;
515 give the desired width and height of the graphic.
520 arguments may have scaling indicators attached;
521 the default scaling indicator is
523 This macro will scale the graphic uniformly
524 in the x and y directions so that it is no more than
536 .B \eX'ps:\ endinvis'
537 No output will be generated for text and drawing commands
538 that are bracketed with these
541 These commands are intended for use when output from
543 will be previewed before being processed with
545 if the previewer is unable to display certain characters
546 or other constructs, then other substitute characters or constructs
547 can be used for previewing by bracketing them with these
554 is not able to display a proper
556 character because the standard X11 fonts do not provide it;
557 this problem can be overcome by executing the following
562 \&.char \e(em \eX'ps: invis'\e
563 \eZ'\ev'-.25m'\eh'.05m'\eD'l .9m 0'\eh'.05m''\e
564 \eX'ps: endinvis'\e(em
570 will be unable to display the
572 character and will draw the line,
583 must be in the format output by
584 .BR @g@troff (@MAN1EXT@).
586 .BR groff_out (@MAN1EXT@).
587 In addition the device and font description files for the device used
588 must meet certain requirements.
589 The device and font description files supplied for
591 device meet all these requirements.
592 .BR afmtodit (@MAN1EXT@)
593 can be used to create font files from AFM files.
594 The resolution must be an integer multiple of 72 times the
598 device uses a resolution of 72000 and a sizescale of 1000.
599 The device description file should contain a command
603 which says that output should be generated which is suitable for
604 printing on a page whose length is
607 Each font description file must contain a command
609 .BI internalname\ psname
611 which says that the PostScript name of the font is
613 It may also contain a command
615 .BI encoding\ enc_file
618 the PostScript font should be reencoded using the encoding described in
620 this file should consist of a sequence of lines of the form:
627 is the PostScript name of the character,
630 is its position in the encoding expressed as a decimal integer.
631 The code for each character given in the font file must correspond
632 to the code for the character in encoding file, or to the code in the default
633 encoding for the font if the PostScript font is not to be reencoded.
634 This code can be used with the
638 to select the character,
639 even if the character does not have a groff name.
640 Every character in the font file must exist in the PostScript font, and
641 the widths given in the font file must match the widths used
642 in the PostScript font.
644 will assume that a character with a groff name of
646 is blank (makes no marks on the page);
647 it can make use of such a character to generate more efficient and
648 compact PostScript output.
651 can automatically include the downloadable fonts necessary
652 to print the document.
653 Any downloadable fonts which should, when required, be included by
655 must be listed in the file
656 .BR @FONTDIR@/devps/download ;
657 this should consist of lines of the form
664 is the PostScript name of the font,
667 is the name of the file containing the font;
670 and blank lines are ignored;
671 fields may be separated by tabs or spaces;
673 will be searched for using the same mechanism that is used
674 for groff font metric files.
677 file itself will also be searched for using this mechanism.
679 If the file containing a downloadable font or imported document
680 conforms to the Adobe Document Structuring Conventions,
683 will interpret any comments in the files sufficiently to ensure that its
684 own output is conforming.
685 It will also supply any needed font resources that are listed in the
688 as well as any needed file resources.
689 It is also able to handle inter-resource dependencies.
690 For example, suppose that you have a downloadable font called Garamond,
691 and also a downloadable font called Garamond-Outline
692 which depends on Garamond
693 (typically it would be defined to copy Garamond's font dictionary,
694 and change the PaintType),
695 then it is necessary for Garamond to be appear before Garamond-Outline
696 in the PostScript document.
698 will handle this automatically
699 provided that the downloadable font file for Garamond-Outline
700 indicates its dependence on Garamond by means of
701 the Document Structuring Conventions,
702 for example by beginning with the following lines
705 %!PS-Adobe-3.0 Resource-Font
708 %%DocumentNeededResources: font Garamond
714 %%IncludeResource: font Garamond
716 In this case both Garamond and Garamond-Outline would need to be listed
720 A downloadable font should not include its own name in a
721 .B %%DocumentSuppliedResources
729 .BR %%DocumentNeededResources ,
730 .BR %%DocumentSuppliedResources ,
731 .BR %%IncludeResource ,
737 .BR %%DocumentNeededFonts ,
738 .BR %%DocumentSuppliedFonts ,
746 .Tp \w'\fB@FONTDIR@/devps/download'u+2n
747 .B @FONTDIR@/devps/DESC
748 Device desciption file.
750 .BI @FONTDIR@/devps/ F
751 Font description file for font
754 .B @FONTDIR@/devps/download
755 List of downloadable fonts.
757 .B @FONTDIR@/devps/text.enc
758 Encoding used for text fonts.
760 .B @MACRODIR@/tmac.ps
763 automatically loaded by
766 .B @MACRODIR@/tmac.pspic
770 automatically loaded by
773 .B @MACRODIR@/tmac.psold
774 Macros to disable use of characters not present in older
775 PostScript printers; automatically loaded by
778 .B @MACRODIR@/tmac.psnew
779 Macros to undo the effect of
782 .BI /tmp/grops XXXXXX
785 .BR afmtodit (@MAN1EXT@),
786 .BR groff (@MAN1EXT@),
787 .BR @g@troff (@MAN1EXT@),
788 .BR psbb (@MAN1EXT@),
789 .BR groff_out (@MAN5EXT@),
790 .BR groff_font (@MAN5EXT@),
791 .BR groff_char (@MAN7EXT@)