<<

-

TR OFF ( 1 ) Programmer' s Manual ( 1 )

NAME troff, − text form atting and typ ese tting S Y NOPSIS trof f [ opt ion ] ... [ file ] ... nroff [ opti on ] ... [ f ile ] ... DESCRIPTION Trof f fo r mat s te xt in the named file s fo r pr intin g on a Grap hic Sys tem s / A/ T phototype sette r; nroff f or ty pewri t er-l ike d ev ic es. Their c apabilit ies a re descri b ed in the Nro f f/Tr off u s e r's manual. If no file ar gum ent is pre sen t, the standar d in put is read. An argum ent con sis tin g of a single min u s (− ) is ta k en to be a f ile n a me corr e sp o nd ing to the st a nd a rd inp ut. T he opt ions, wh ich may appe ar in any orde r so lon g as they appe ar before the file s, are : − ol i st Pr i nt o nly pa ges whose page numbers appear in t he c omma- s ep a ra ted l i st of numbers an d ranges. A range N − M mean s page s N th rou gh M ;aninitial− N mean s fr o m the b eg inn ing to page N ; a nd a f inal N − mea n s from N to the end. − nN Nu mbe r first gen erat ed page N . − sN St op eve ry N page s. Nrof f wi l l halt prior to eve ry N page s (defau lt N = 1) to allo w paper load ing or chan g in g, and w ill r e su m e u p on rece i pt of a n ew line. Troff w ill s top th e ph ototype sette r every N page s, produ ce a traile r to allo w ch angin g ca sse tte s, and r e sume when the typese t te r ' s s t art but ton is pre s sed. − mnam e Prepen d th e macr o file /usr/lib/tmac/ tmac.nam e to the input file s. − raN Set regis t er a (one - ch a ra c ter) to N . − i Read standar d in put aft er the input file s ar e exhauste d. − q Invoke the simul taneous input -output mode of the rd r e quest. N rrooffff oonnllyy − Tnam e Prepar e ou tpu t fo r sp ecified terminal. Known nam es ar e 37 fo r th e (defau lt) Tele- t ype C o r pora tion Model 37 t erm inal, tn300 f or the G E T ermiNet 3 00 ( or a n y t ermi- nal wit hou t half - line cap abilit y), 300S fo r th eDASI -300S, 300 fo r th eDASI -300, and 450 fo r th eDASI -450 (Diab lo Hyt erm ). − e P r oduce equa lly -spa ced w o r ds in adjust e d l ines, us ing fu ll t ermin al r e solu t ion. − h Use outpu t tabs during horizo ntal spacing to spe e d ou tpu t an d re duce outpu t ch arac- t er c o u nt. Tab se t t ings a re a ssumed to be eve ry 8 nominal c ha r ac t er wi d ths. Troff only − t Dire ct outpu t to the standar d ou tpu t in ste ad of the phototype sette r. − f Re f ra in from f eedi ng o ut paper a nd s topp ing ph o to t ypeset t er at the e nd of the run. − w Wait until phototype sette ris availa ble , if curre ntly busy. − b R e port wh e ther the ph o to t ypeset t er is busy or avai lab l e. No text p rocess ing is done. − a Se nd a pr intab le ASC II appr o x imation of th e re sults to th e st andar d ou tpu t. − pN Pr int all ch a ra c ters in po int s ize N wh ile reta i n ing all prescri b ed s pa c ings a nd motion s, to reduce phototype sette r elas ped tim e. − g P rep a re outp ut f or a GCOS ph o t o typeset ter a nd d irect it to the st a nd a rd outp ut ( s ee gc at(1)). If the file /u sr/adm/tracct is writable, trof f ke e ps phototype sette r acco untin g re cords there . Th e integr ity of that file may be s e cu red by mak ing troff a ‘set user- id' p r ogram.

7t h Edit ion 1 -

TR OFF ( 1 ) UNIX Programmer' s Manual TROFF ( 1 )

F ILES / usr / lib / su ftab suffix hyp hen ation tab les /tmp/ ta* tempora ry f ile / usr / lib / tm ac/ tmac. * st andar d macr o file s / usr/ lib / t erm/* t ermin al d r iv ing tab les f or nroff / usr / lib / fo nt/ * fo nt wid th tab les for trof f / de v / ph o to t ypeset t er / usr / ad m/ tracct acco untin g st atist ics for / de v/ ca t S EE A LSO J. F. Ossanna, Nrof f /Trof f user's manual B. W . Kerni g han, A TR OFF Tu t or i al ( 1), (1) co l(1), t k( 1) (nroff on l y) tc(1), gca t(1) (trof f on ly)

7t h Edit ion 2

-