HOME > > troff <

troff <

腟贋逸2007/11/22

troff鐚c若祉鐚篏帥御ゃ≪≪綵吟c篁c祉若医我潟с羈医茵膂≦ャmpage 篁ヤ LaTeX 羣若篁сュ幻羇祉т戎若障с医<≪

潟帥潟膣剛

≪潟荀

.TL 


.NH 1
若剛査紊

.PP
純潟潟若吟 90 若祉潟篁ヤ≪若祉с鴻若
鐚腦篋削膀茯罸鴻鴻
絨遺査蕁≪若祉若激鴻篁у
腟倶荀
≪若祉若激鴻寴憗筝ゃс
c腑羝吾激鴻 PDP-11 違若鴻筝
決若若鴻違絨峨膓
荐綽泣鴻羝吾激鴻荐泣腑荅宴茯c
ゃ篁c純鴻羝吾絅純р

.PP
UNIX 違潟亥医Brian W.Kernighan, Rob Pike, 括井岩h┳, 
≪鴻弱榊絮, 1985, p.419

$ groff -ms test.ms > test.ps

阪鐚医ュ<ゃ EUC с薈鐚

罩翫

roff nroff 障 roff 違潟医純荐茯nroff 緇 troff ャ篁с roff 羯潟違憘 roff 腱違 nroff, troff 蕁 篏純潟潟 groff 泣GNU roff troff 潟潟 groff 茖違 troff 若喝冴綽荀茵箴帥潟 篏純潟潟 troff 泣 GNU troff

篁腟

troff 若≪鴻罎罘篏膣荐茯阪TeX dvi <ゃ篌若troff 若≪羈TeX 罕篋咲c茯с篏茹f浦罧泣祉泣障鴻鴻潟帥 html 若吾с潟troff 阪紊ゃ絖腟莨若帥緇c膂≦絎茵潟潟篏

TeX troff 泣ュ羈荀ャ綵障 TeX LaTeX 鴻帥ゃ激若憗 troff mm, ms 憗腟粋昭с違若吟 troff 羈ャmm, ms 羈ャ域恭祉man

ms       檎
mm       膣鐚鐚鐚
篁

茵潟茲mm ms 腟莨若睡с腴違с tbl 篏帥c troff ュ若罨<筝祉祉泣с

tbl	茵
pic	腟泣
eqn	医
grn	gremlin 潟
grap	grap 荐茯ф吾違
soelim	.so 潟潟х粋昭障鴻<ゃ腟莨若鐚鐚
refer	蚊

鴻祉居ゃ鐚

troff 罎罘阪腮綵√紊緇茵ゃ罨<筝祉ゃс

grops	  troff 阪 PostScript 紊ゃユ茯鐚鐚
grodvi	  troff 阪 dvi 紊
grotty	  帥ゃゃ水ゃ鴻 troff 阪紊
grolj4	  HP Laserjet 4 <阪紊
grolbp    Canon CAPSL 潟随LBP-4  LBP-8 激若冴若吟潟随
          阪紊
grohtml   html 阪紊pre-grohtml  post-grohtml c
          若吟 groff  -Thtml 激с潟ゃ
          ・緇ゃユ茯
gxditview troff 阪 X11 цゃユ茯

GNU troff 阪鴻鴻糸茯粋昭巡擦 grops ャ糸莨若鴻鴻檎с筝

潟潟

groff GNU troff 潟潟篏帥祉泣у腟粋昭 troff у緇ゃу阪筝ゃ潟潟ус

groff -ms input.ms > output.ps     # ms 篏睡
groff -t -ms input.ms > output.ps  # tbl уms 篏睡
groff -t -ms -Thtml input.ms > output.ps
                                   # tbl уms 篏睡
                                   # 緇 html 紊

troff 障鞘戎翫罎罘荐茯у阪groff 阪綵√ Postscript с

LaTeX 絋吾<ゃ篏睡荐troff 翫若吟ゆс祉泣troff 激с潟篏睡鴻絎ф吾純若鴻<ゃ翫号泣純若鴻<ゃ篁篋冴羝<翫篏帥篌違grog 若純若鴻<ゃ茯帥鴻祉泣綽荀groff 綽荀激с潟綵≪ф

$ grog test.ms
groff -t -ms test.ms

ャ≪蕁

篋篋ゃ拷≪茵憗с絽遵筝莠荐c絽遵伹荐cc troff 荀groff 潟潟сgroff 荀 troff troff 祉泣с

man page <<

groff(7)          troff 潟潟吾鴻
groff(1)          troff 潟潟 groff
troff(1)          UNIX troff 罘純茯
groff_char(7)     劫ャ荐埌茯
grops(1)          grops 茯鐚糸鏁泣莨若帥ゃэ
man (7)           man 茯

The GNU Troff Manual 罎膣≪уcc筝荳堺ヤc

ms ゃhttp://www.cs.berkeley.edu/~janp/Help/textms.html 若潟UNIX 違潟亥医堺宴

障障c宴緇http://web.cecs.pdx.edu/~trent/gnu/groff/ 障宴腟罕綵合c

ょ綺鐚http://cm.bell-labs.com/7thEdMan/bswv7.html鐚 UNIX 7 ャ≪ pdf鐚v7vol2a.pdf鐚潟若ms Macro, ms reference card, Eqn, Eqn User's Guide Tbl, Refer, TROFF, TROFF Tutorial 茯荀ゃ

祉http://cm.bell-labs.com/cm/cs/cstr.html鐚鐚

J. F. Ossanna, Nroff/Troff User's Manual
B. W. Kernighan, A Typesetter-Independent TROFF
Brian W. Kernighan, PIC -- A Graphics Language for Typesetting (Revised User Manual)

緇c茯 GNU troff 障у障ャ荅宴

贋・≫Times-Roman 医сpdf 紊茯http://www.nn.iij4u.or.jp/~tutimura/tex/dvipdfm.html c

障障≫ Times 翫莎ゅ現帥с https://www.redhat.com/promo/fonts/ Liberation fonts т撮с

troff 潟潟

潟<潟

潟<潟 \" тс腥肴阪

.\" Comment

違腥肴阪吟с

鴻若

鴻若鴻違阪ゃ障潟吾鴻違鴻若号絖с鴻若激潟違茵

troff 純若

.ft C
.nf
Country Language  Capita
----------------------------
Japan   Japanese  Tokyo
U.S.A.  English   Washington
----------------------------

.ft C 潟 Courier .nf 荅違莨若帥絖茯睡

罕莇f LaTeX у憗純若鴻

\documentclass{article}
\begin{document}
\begin{verbatim}
Country Language  Capital
----------------------------
Japan   Japanese  Tokyo
U.S.A.  English   Washington
----------------------------
\end{verbatim}
\end{document}

壕括肴

腥肴鎀ч 2 や札筝g壕с障緇

筝ゃ壕 ユ茯[壕]ユ茯
Alphabet[壕]ユ茯 筝ゃ鴻若鴻
ユ茯[壕]Alphabet
Alphabet[壕]Alphabet
n (n>1) 篁ヤ壕 鴻翫 n-1 茵腥肴

GNU groff уュ壕鴻∴

.de BRL         \"腥肴絎臂鐚腥肴∴
..

篏絎鴻吾腥肴絎臂違

絖紊с

ュ茵茵ф絎号筝ф絎号

 10 ゃ潟
.ps 12
12 ゃ潟
.ps
泣ゃ冴祉c帥
ュ茵筝\s12紊с\s0障祉
後丞\s+2紊с\s0障祉

troff 罎罘遵絖泣ゃ冴1,2,...,12,14,16,18,20,22,24,28,36 ゃ潟c13 ゃ潟絎12 ゃ潟c腱篏帥c troff 1 39 ゃ潟障сゃ潟篏帥絨違сс 40 篁ヤ絎с

茵鐚茵鐚絖泣ゃ冴с絖紊с紊c茵紊

紊с絖ャc絖c障\s18祉泣\s0

.vs 20p
帥茵茯睡障\s18祉泣\s0

.vs
茵腦演冴サcс茵с

茵障с罧笈純筝ц紊腟障12 ゃ潟с潟泣ゃ冴篏ゃ茵 i (=inch) 篏ゃ潟泣ゃ冴医сс鐚 12 14 13 鐚絲障茵医с掩ャс障

茵激ゃ潟潟激с潟綏若吾

.po 1i  \  綏若吾潟ゃ潟
.in 5w  \  ゃ潟潟激с恰ユ絖鐚絖吟
.ti 1w  \  絖筝ユ絖鐚絖鐚鐚ti-in)吟
.ll 20w \ 茵傑ユ絖鐚絖
乗而帥с羂
.po     \ 筝ゅ祉
.in     \ 筝ゅ祉
.ll     \ 筝ゅ祉
綽泣荐cс

壕罨≧笈純吾阪帥筝с罧笈初 1 絖筝с

筝筝若吾潟鐚若吾茵

鴻若吾潟潟 .bp с

troff 筝若吾潟筝若吾潟网綽泣鐚若吾篏茵网綽泣鐚荀筝鐚茵阪憜篏臀絎ゃ潟莇違罨<若吾蚊篏cс違臀臀c阪篋ゃc篁篋Tutorial 茯с茯с

c鐚絎茖c鐚膣違troff 1 若吾障鴻蕋若ф鴻若吾阪 letter 泣ゃ榊ゃ腱若若祉泣ゃ冴激с潟荀紮篁腟帥

.de NP              \" 臀牙阪絎臂紮
'bp                     \" 鴻若  
'sp 0.5i                \" 筝 0.5 ゃ潟腥冴
.tl 'left'%'right'      \" 綏 left 劻 right 筝紊潟阪
'sp 0.5i                \" 緇 0.5 ゃ潟腥冴  
..                  \"絎臂
.wh -1i NP          \" 阪臀篁

桁荅括完 Tutorial 茯с

postscript 阪篏帥潟鐚激潟с鐚/usr/share/groff/1.17.2/font/devps 荀違

ABAvantGarde-Demi
ABIAvantGarde-DemiOblique
AIAvantGarde-BookOblique
ARAvantGarde-Book
BMBBookman-Demi
BMBIBookman-DemiItalic
BMIBookman-LightItalic
BMRBookman-Light
CBCourier-Bold
CBICourier-BoldOblique
CICourier-Oblique
CRCourier
GGothicBBB-Medium-EUC-H
HBHelvetica-Bold
HBIHelvetica-BoldOblique
HIHelvetica-Oblique
HNBHelvetica-Narrow-Bold
HNBIHelvetica-Narrow-BoldOblique
HNIHelvetica-Narrow-Oblique
HNRHelvetica-Narrow
HRHelvetica
MRyumin-Light-EUC-H
NBNewCenturySchlbk-Bold
NBINewCenturySchlbk-BoldItalic
NINewCenturySchlbk-Italic
NRNewCenturySchlbk-Roman
PBPalatino-Bold
PBIPalatino-BoldItalic
PIPalatino-Italic
PRPalatino-Roman
SSymbol
SSSymbol-Slanted
TBTimes-Bold
TBITimes-BoldItalic
TITimes-Italic
TRTimes-Roman
ZCMIZapfChancery-MediumItalic
ZDZapfDingbats
ZDRZapfDingbats-Reverse

潟<弱篏с潟潟ゃ潟筝с違Courier 絎 -fC 激с潟с

$ groff -fC input.tr
$ groff -fC -ms input.tr # ms 篏睡

純若鴻<ゃ筝 R, I, B, BI H, HI, HB, HIB

troff 潟潟鐚ゃ潟ゃ括鐚

\fICourier Italic, \fBCourier Bold, \f(BICourier Bold Italic, \fRCourier

troff 潟潟鐚ゃ潟ゃ括鐚

.ft I
Courier Italic,
.ft B
Courier Bold,
.ft BI
Courier Bold Italic,
.ft R
Courier

[] ms 潟潟

.I 
Courier Italic,
.B
Courier Bold,
.BI
Courier Bold Italic,
.R
Courier

帥鐚篏絎 .R 鐚筝号腟潟絎違Times <若\fP .ft P .P (ms )筝ゅ潟吾緇絽違潟т戎

祉潟祉<寂札紊<若篏帥純若劫ф腓榊潟絎

troff 潟潟鐚ゃ潟ゃ括鐚

\f(HIHelvetica Italic

troff 潟潟鐚ゃ潟ゃ括鐚

.ft HI
Helvetica Italic

[] ms 祉潟潟

.HI
Helvetica Italic

腱сユ茯潟篋腮蕁篏 R, I眼激篏鐚泣潟祉鐚 B, BI

吾鴻帥篏

吾鴻帥医ゃャゃ絖ャゃ吾鴻水 UNIX troff с篋絖障сGNU troff с 3 絖

医ゃ吾鴻帥贋違ャс

GNU troff ф医ゃ吾鴻帥篏帥

.nr XYZ 10

篁eャ XYZ 紊違

\n[FTS]

篏羞激水ャc

罨≠
HOME


紕膣
薤藕

茯絖
沿
ユ茯


遵医