⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grops.man

📁 早期freebsd实现
💻 MAN
字号:
.\" -*- nroff -*-.\" Like TP, but if specified indent is more than half.\" the current line-length - indent, use the default indent..de Tp.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP.el .TP "\\$1"...TH GROPS @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@".SH NAMEgrops \- PostScript driver for groff.SH SYNOPSIS.B grops[.B \-glv] [.BI \-b n] [.BI \-c n] [.BI \-w n] [.BI \-F dir] [.IR files \|.\|.\|.].SH DESCRIPTION.B gropstranslates the output of GNU.B troffto PostScript.Normally.B gropsshould be invoked by using the groff commandwith a.B \-Tpsoption..if '@DEVICE@'ps' (Actually, this is the default for groff.)If no files are given,.B gropswill read the standard input.A filename of.B \-will also cause.B gropsto read the standard input.PostScript output is written to the standard output.When.B gropsis run by.B groffoptions can be passed to.B gropsusing the.B groff.B \-Poption..SH OPTIONS.TP.BI \-b nWorkaround broken spoolers and previewers.Normally.B gropsproduces output that conformsthe Document Structuring Conventions version 3.0.Unfortunately some spoolers and previewers can't handle such output.The value of.I ncontrols what.B gropsdoes to its output acceptable to such programs.A value of 0 will cause grops not to employ any workarounds.Add 1 if no.B %%BeginDocumentSetupand.B %%EndDocumentSetupcomments should be generated;this is needed for early versions of TranScript that get confused byanything between the.B %%EndPrologcomment and the first.B %%Pagecomment.Add 2 if lines in included files beginning with.B %!should be stripped out; this is needed for Sun's pageview previewer.Add 4 if.BR %%Page ,.BR %%Trailerand.B %%EndPrologcomments should bestripped out of included files; this is needed for spoolers thatdon't understand the.B %%BeginDocumentand.B %%EndDocumentcomments.Add 8 if the first line of the PostScript output should be.B %!PS-Adobe-2.0rather than.BR %!PS-Adobe-3.0 ;this is needed when using Sun's Newsprint with a printer that requirespage reversal.The default value can be specified by a.RS.IP.BI broken\  n.LPcommand in the DESC file.Otherwise the default value is 0..RE.TP.BI \-c nPrint.I ncopies of each page..TP.BI \-gGuess the page length.This generates PostScript code that guesses the page length.The guess will be correct only if the imageable area is verticallycentered on the page.This option allows you to generate documents that can be printedboth on letter (8.5\(mu11) paper and on A4 paper without change..TP.BI \-lPrint the document in landscape format..TP.BI \-F dirSearch the directory.IB dir /dev namefor font and device description files;.I nameis the name of the device, usually.BR ps ..TP.BI \-w nLines should be drawn using a thickness of.I nthousandths of an em..TP.B \-vPrint the version number..SH USAGEThere are styles called.BR R ,.BR I ,.BR B ,and.B BImounted at font positions 1 to 4.The fonts are grouped into families.BR A ,.BR BM ,.BR C ,.BR H ,.BR HN ,.BR N ,.B Pand.B Thaving members in each of these styles:.de FT.if '\\*(.T'ps' .ft \\$1...TP.B AR.FT ARAvantGarde-Book.FT.TP.B AI.FT AIAvantGarde-BookOblique.FT.TP.B AB.FT ABAvantGarde-Demi.FT.TP.B ABI.FT ABIAvantGarde-DemiOblique.FT.TP.B BMR.FT BMRBookman-Light.FT.TP.B BMI.FT BMIBookman-LightItalic.FT.TP.B BMB.FT BMBBookman-Demi.FT.TP.B BMBI.FT BMBIBookman-DemiItalic.FT.TP.B CR.FT CRCourier.FT.TP.B CI.FT CICourier-Oblique.FT.TP.B CB.FT CBCourier-Bold.FT.TP.B CBI.FT CBICourier-BoldOblique.FT.TP.B HR.FT HRHelvetica.FT.TP.B HI.FT HIHelvetica-Oblique.FT.TP.B HB.FT HBHelvetica-Bold.FT.TP.B HBI.FT HBIHelvetica-BoldOblique.FT.TP.B HNR.FT HNRHelvetica-Narrow.FT.TP.B HNI.FT HNIHelvetica-Narrow-Oblique.FT.TP.B HNB.FT HNBHelvetica-Narrow-Bold.FT.TP.B HNBI.FT HNBIHelvetica-Narrow-BoldOblique.FT.TP.B NR.FT NRNewCenturySchlbk-Roman.FT.TP.B NI.FT NINewCenturySchlbk-Italic.FT.TP.B NB.FT NBNewCenturySchlbk-Bold.FT.TP.B NBI.FT NBINewCenturySchlbk-BoldItalic.FT.TP.B PR.FT PRPalatino-Roman.FT.TP.B PI.FT PIPalatino-Italic.FT.TP.B PB.FT PBPalatino-Bold.FT.TP.B PBI.FT PBIPalatino-BoldItalic.FT.TP.B TR.FT TRTimes-Roman.FT.TP.B TI.FT TITimes-Italic.FT.TP.B TB.FT TBTimes-Bold.FT.TP.B TBI.FT TBITimes-BoldItalic.FT.LPThere is also the following font which is not a member of a family:.TP.B ZCMI.FT ZCMIZapfChancery-MediumItalic.FT.LPThere are also some special fonts called.B SSand.BR S .Zapf Dingbats is available as.BR ZDand a reversed version of ZapfDingbats (with symbols pointing in the oppositedirection) is available as.BR ZDR ;most characters in these fonts are unnamed and must be accessed using.BR \eN ..LP.B gropsunderstands various X commands produced using the.B \eXescape sequence;.B gropswill only interpret commands that begin with a.B ps:tag..TP.BI \eX'ps:\ exec\  code 'This executes the arbitrary PostScript commands in.IR code .The PostScript currentpoint will be set to the position of the.B \eXcommand before executing.IR code .The origin will be at the top left corner of the page,and y coordinates will increase down the page.A procedure.B uwill be defined that converts groff unitsto the coordinate system in effect.For example, .RS.IP.B\&.nr x 1i.br.B\eX'ps: exec \enx u 0 rlineto stroke'.br.RE.IPwill draw a horizontal line one inch long..I codemay make changes to the graphics state,but any changes will persist only to theend of the page.Any definitions will also persist only until the end of the page.If you use the.B \eYescape sequence with an argument that names a macro,.I codecan extend over multiple lines.For example,.RS.IP.nf.ft B\&.nr x 1i\&.de y\&ps: exec\&\enx u 0 rlineto\&stroke\&..\&\eYy.fi.ft R.LPis another way to draw a horizontal line one inch long..RE.TP.BI \eX'ps:\ file\  name 'This is the same as the.B execcommand except that the PostScript code is read from file.IR name ..TP.BI \eX'ps:\ def\  code 'Place a PostScript definition contained in.I codein the prologue.There should be at most one definition per.B \eXcommand.Long definitions can be split over several.B \eXcommands;all the.I codearguments are simply joined together separated by newlines.The definitions are placed in a dictionary which is automaticallypushed on the dictionary stack when an.B execcommand is executed.If you use the.B \eYescape sequence with an argument that names a macro,.I codecan extend over multiple lines..TP.BI \eX'ps:\ mdef\  n\ code  'Like.BR def ,except that.I codemay contain up to.I ndefinitions..B gropsneeds to know how many definitions.I codecontainsso that it can create an appropriately sized PostScript dictionaryto contain them..TP.BI \eX'ps:\ import\  file\ llx\ lly\ urx\ ury\ width\ \fR[\fP\ height\ \fR]\fP 'Import a PostScript graphic from.IR file .The arguments.IR llx ,.IR lly ,.IR urx ,and.I urygive the bounding box of the graphic in the default PostScriptcoordinate system; they should all be integers;.I llxand.I llyare the x and y coordinates of the lower leftcorner of the graphic;.I urxand.I uryare the x and y coordinates of the upper right corner of the graphic;.I widthand.I heightare integers that give the desired width and height in groffunits of the graphic.The graphic will be scaled so that it has this width and heightand translated so that the lower left corner of the graphic islocated at the position associated with.B \eXcommand.If the height argument is omitted it will be scaled uniformly in thex and y directions so that it has the specified width.Note that the contents of the.B \eXcommand are not interpreted by.BR troff ;so vertical space for the graphic is not automatically added,and the.I widthand.I heightarguments are not allowed to have attached scaling indicators.If the PostScript file complies with the Adobe Document StructuringConventions and contains a.B %%BoundingBoxcomment, then the bounding box can be automaticallyextracted from within groff by using the.B syrequest to run the.B psbbcommand..RS.LPThe.B \-mpsmacros (which are automatically loaded when.B gropsis run by the groff command) include a.B PSPICmacro which allows a picture to be easily imported.This has the format.IP.BI .PSPIC\  file\  \fR[ width\  \fR[ height \fR]].LP.I fileis the name of the file containing the illustration;.I widthand.I heightgive the desired width and height of the graphic.The.I widthand.I heightarguments may have scaling indicators attached;the default scaling indicator is.BR i .This macro will scale the graphic uniformlyin the x and y directions so that it is no more than.I widthwideand.I heighthigh..RE.TP.B \eX'ps:\ invis'.br.ns.TP.B \eX'ps:\ endinvis'No output will be generated for text and drawing commandsthat are bracketed with these.B \eXcommands.These commands are intended for use when output from.B troffwill be previewed before being processed with.BR grops ;if the previewer is unable to display certain charactersor other constructs, then other substitute characters or constructscan be used for previewing by bracketing them with these.B \eXcommands..RS.LPFor example,.B gxditviewis not able to display a proper.B \e(emcharacter because the standard X11 fonts do not provide it;this problem can be overcome by executing the followingrequest.IP.ft B.nf\&.char \e(em \eX'ps: invis'\e\eZ'\ev'-.25m'\eh'.05m'\eD'l .9m 0'\eh'.05m''\e\eX'ps: endinvis'\e(em.ft.fi.LPIn this case,.B gxditviewwill be unable to display the.B \e(emcharacter and will draw the line,whereas.B gropswill print the.B \e(emcharacterand ignore the line..RE.LPThe input to.B gropsmust be in the format output by.BR @g@troff (@MAN1EXT@).This is described in.BR groff_out (@MAN1EXT@).In addition the device and font description files for the device usedmust meet certain requirements.The device and font description files supplied for.B psdevice meet all these requirements..BR afmtodit (@MAN1EXT@)can be used to create font files from AFM files.The resolution must be an integer multiple of 72 times the.BR sizescale .The.B psdevice uses a resolution of 72000 and a sizescale of 1000.The device description file should contain a command.IP.BI paperlength\  n.LPwhich says that output should be generated which is suitable forprinting on a page whose length is.I nmachine units.Each font description file must contain a command.IP.BI internalname\  psname.LPwhich says that the PostScript name of the font is.IR psname .It may also contain a command.IP.BI encoding\  enc_file.LPwhich says thatthe PostScript font should be reencoded using the encoding described in.IR enc_file ;this file should consist of a sequence of lines of the form:.IP.Ipschar code.LPwhere.I pscharis the PostScript name of the character,and.I codeis its position in the encoding expressed as a decimal integer.The code for each character given in the font file must correspondto the code for the character in encoding file, or to the code in the defaultencoding for the font if the PostScript font is not to be reencoded.This code can be used with the.B \eNescape sequence in.B troffto select the character,even if the character does not have a groff name.Every character in the font file must exist in the PostScript font, and the widths given in the font file must match the widths usedin the PostScript font..B gropswill assume that a character with a groff name of.B spaceis blank (makes no marks on the page);it can make use of such a character to generate more efficient andcompact PostScript output..LP.B gropscan automatically include the downloadable fonts necessaryto print the document.Any downloadable fonts which should, when required, be included by.B gropsmust be listed in the file.BR @FONTDIR@/devps/download ;this should consist of lines of the form.IP.Ifont  filename.LPwhere.I fontis the PostScript name of the font,and.I filenameis the name of the file containing the font;lines beginning with.B #and blank lines are ignored;fields may be separated by tabs or spaces;.I filenamewill be searched for using the same mechanism that is usedfor groff font metric files.The.B downloadfile itself will also be searched for using this mechanism..LPIf the file containing a downloadable font or imported documentconforms to the Adobe Document Structuring Conventions,then.B gropswill interpret any comments in the files sufficiently to ensure that itsown output is conforming.It will also supply any needed font resources that are listed in the.B downloadfileas well as any needed file resources.It is also able to handle inter-resource dependencies.For example, suppose that you have a downloadable font called Garamond,and also a downloadable font called Garamond-Outlinewhich depends on Garamond(typically it would be defined to copy Garamond's font dictionary,and change the PaintType),then it is necessary for Garamond to appear before Garamond-Outlinein the PostScript document..B gropswill handle this automaticallyprovided that the downloadable font file for Garamond-Outlineindicates its dependence on Garamond by means ofthe Document Structuring Conventions,for example by beginning with the following lines.IP.B%!PS-Adobe-3.0 Resource-Font.br.B%%DocumentNeededResources: font Garamond.br.B%%EndComments.br.B%%IncludeResource: font Garamond.LPIn this case both Garamond and Garamond-Outline would need to be listedin the.B downloadfile.A downloadable font should not include its own name in a.B %%DocumentSuppliedResourcescomment..LP.B gropswill not interpret .B %%DocumentFontscomments.The.BR %%DocumentNeededResources ,.BR %%DocumentSuppliedResources ,.BR %%IncludeResource ,.BR %%BeginResourceand.BR %%EndResourcecomments(or possibly the old.BR %%DocumentNeededFonts ,.BR %%DocumentSuppliedFonts ,.BR %%IncludeFont ,.BR %%BeginFontand.BR %%EndFontcomments)should be used..SH FILES.Tp \w'\fB@FONTDIR@/devps/download'u+2n.B @FONTDIR@/devps/DESCDevice description file..TP.BI @FONTDIR@/devps/ FFont description file for font.IR F ..TP.B @FONTDIR@/devps/downloadList of downloadable fonts..TP.B @FONTDIR@/devps/text.encEncoding used for text fonts..TP.B @MACRODIR@/tmac.psMacros for use with.BR grops ;automatically loaded by.BR troffrc.TP.B @MACRODIR@/tmac.pspicDefinition of.B PSPICmacro,automatically loaded by.BR tmac.ps ..TP.B @MACRODIR@/tmac.psoldMacros to disable use of characters not present in olderPostScript printers; automatically loaded by.BR tmac.ps ..TP.B @MACRODIR@/tmac.psnewMacros to undo the effect of.BR tmac.psold ..TP.BI /tmp/grops XXXXXXTemporary file..SH "SEE ALSO".BR afmtodit (@MAN1EXT@),.BR groff (@MAN1EXT@),.BR @g@troff (@MAN1EXT@),.BR psbb (@MAN1EXT@),.BR groff_out (@MAN5EXT@),.BR groff_font (@MAN5EXT@),.BR groff_char (@MAN7EXT@)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -