KTUGFaq
KTUG FAQ
You like to form new friendships and make new acquaintances.
, ʵл ī ַ å " ȥ ߴ "
(Ʈ ī , ű) о ôµ, ־,
Ŀ ︶ Ͼ, ĺ ΰ ε ""(Little Tree) ϰ Ǿϴ.
2 츮 Ƶ鵵 ó DZ⸦ ϸ...
Computer programs are fun to write, and well-written computer programs are fun to read. One of life's greatest pleasures can be the composition of a computer programm that you know will be a pleasure for other people to read, and yourself to read.
- Donald E. Knuth, Literate Programming
3 λ ¶
ȳϼ. Ź帳ϴ. --Karnes
۵ а ֽϴ. ãٺ CWEB å ִ. αӵ ƴ ° ̷ å... TeX ̴ Ǹ ȯּż մϴ. --Progress
մϴ. Խǿ CWEB Ұ ÷, ۷ ɰ (?) ־ֽ մϴ. Progress å̾߱(Progress/å̾߱) ؼ ϰ ִ ֽϴ. ̿ α θ TeX ٶ ð ּ̽ϴ.
TeX å ô Ϳ Ƽ Ѱ Ұ帳ϴ. Knuth å ߿ The Stanford GraphBase (http://www-cs-faculty.stanford.edu/~knuth/sgb.html) ſ ִ å ֽϴ. αֿ õ å̶ 뿡 ū ð, å CWEB CWEB̳ WEB α mini-index ִ CTWILL ̶ α鸸 åԴϴ. , TeX ⺻Դϴ. --
ȳϼ. LiterateProgramming о߸ ּż մϴ. C α ַ ϴµ ñ ־. ÷ - ϵ غ - ƴ ξ Ǵ α ۼҶ CWEB ̿ϸ ҽ - module̶ ϴ- make . 丮 (*.c. *.h), Makefile ϳ tex.webϷ Ѱ. ô غ ͱ. Ѵٴ ϴ. -hermian
ȳϼ. ݰϴ. cweb αֿ Ͻ մϴ. ϳ .w Ͽ .c .h ְ, .c .h Ͽ شϴ .w ֽϴ. foo.w "ctangle foo" ϸ foo.c foo.h bar.c, bar.h ֽϴ. ϳ foo.w Ͽ . ϳ .w 幰, 밳 foo.w foo.c foo.h ֵ α մϴ. Ƶ 쿡 makefile ؼ ѹ濡 . ü cweb ҽ(cweb.tar.gz) 캸ðų(cweb ý ü cweb α Ǿֽϴ.) õ 帮 ִ å, The Stanford GraphBase(sgb.tar.gz) ٿ ż ġ ø ɴϴ. űϸ鼭 ŷ Ҷ C ʿ䰡 ٴ Դϴ. (gdb) ش ҽ .w ֱ Դϴ. cweb α . Դϴٸ ٸ ϴ cweb α ϴ ϴ. 赵Բ cweb ѱȭ ū ɸ ذ ּ̽ϴ. ڽϴ. --
TeXbook б⸦ ϰ ֽϴ. ſ Ǹ ε α ̳ Ȩ ֽø ? ôٸ ٽ 迭ص帮ڽϴ. -- Karnes 2006-03-18 12:57:06
ƴ а, ־ų ˾ Ѹ ͵ ξٰ, ű ִµ, Ȥ ְ ־ ʿ ϴ ֽϴ. ȴٸ, ̰ Ȯ ϴ δ ʳ մϴ. ٰ ƴմϴ. ƴϰ å Ȯϰ ؼ Ʋ ְ. ... ҿ Karnes α η ü ܺ ֽϴ. ƴϴ, ϽŴ ٽ 迭 ֽô ֽø, ֵ ϰڽϴ. ּż մϴ. --
4 о å ¶
(La)TeX ϰ, α ϰ ...
- ʰ ƴϰ ΰ, ȭ ( ε )
- 丣 , ̸ս , ںö ű (ְ 缭)
- , ( 뼱 ˵ ħ)
- й ſ, γī ̽ , ¾ ű ( Ÿ)
- ƼƮ ź , (Ƽ ϰ )
- Master Keaton 1~18, Ű (ΰ ̴ , Ž)
- ü Թٶ , ڸ̿ , ̼ ű
("츮 Ʈ . ӿ Ұ !")
- νŸΰ γ, ( ġ, 뼺̷ )
- , !, , ſ ű (߱, , , ...)
- ึ , ö (츮 ٵå )
5.1 2006-03-04 ¶
- 9~11: plain TeX 900 control sequence(cs) ִٰ մϴ. 300 primitivḛ, 600 macro մϴ. primitive ̻ ּ cs̰, macro primitive Ȥ ٸ ũ cs. ٸ, ־ cs primitive macro ? Knuth ΰ Ͷݴϴ. ù° å ε cs '*' cs ִµ, ٷ װ͵ primitive ϳ.( å Կ ٴ ֽϴ.) ι° ѵ, \show primitive Ǻϴ Դϴ. TeX Ű \show\thinspace Էϸ \thinspace macro ǥÿ װ ǰ ַ ɴϴ. (ֽϴ.)
- 207: 20(Definitions) ϴٰ cs ϳ ߽߰ϴ. \futurelet. ü ̰ ؾ ߴٰ ҹ ڽϴ. "̷\let"(?) ü ̷ primitive ? 207 ߰ cs ִµ, "dangerous bend" ȣ پֽϴ. . "\futurelet\cs<token1><token2>" "\let\cs=<token2><token1>"̶ ٰ ϴµ, ٸ ذ µ, ǹ̰ ʹ ʳ.
5.2 2006-03-05 ¶
- 208: "For best result, always put a blank space after numeric constant;"
\count Ϳ ڿ ݵ ϳ ζ ε,ù° 0 \fullypaid ſ ߿ϴٰ մϴ.\def\statement{\ifnum\balance=0 \fullypaid \else\ifnum\balance>0 \overpaid \else\underpaid \fi \fi}
...=0\fullypaid...
ó Ѵٸ ʾƵ \fullypaid DZ ̶. ū ġ , ϹǷ ð ȿ̶ մϴ. (Ȥ, ϱ մϴ.) ڿ TeX Ͽ Ȯ ھƵ ֽϴ.
Knuth ֽϴ. ڽ ڿ ݵ ڿ ϸ鼭, ʴ´ϴ.
"because extra spaces do look funny in the file; aesthetics are more important than efficiency"
Knuth, Ҿƹ ִ ӿ Ʋϴ.
5.3 2006-03-10 ¶
- 82: If you understand boxes and glues, you're ready to learn the \rlap and \llap macros of plain TeX; these names are abbreviations for "right overlap" and "left overlap"
ҿ \rlap \llap ũθ ϸ鼭 ִ ũα ϰ ߴµ, ħ װ͵鿡 ֳ.
\rlap ϱ ؼ ǹ̿ Ͽ ݸ ϸ,Ǹ ִµ, ̷ ʿ ٰ մϴ.\def\rlap#1{{\setbox0=\hbox{#1}\copy0\kern-\wd0}}
Ƹ ʽϱ? Ǹ , ð ͵ մϴ.\def\rlap#1{\hbox to 0pt{#1\hss}}
ٸ, \llap ϸ ɱ?\def\llap#1{\hbox to 0pt{\hss#1}}
5.5 2006-03-14 ¶
- 102: '\hangindent=<dimen>' '\hangafter=<number>' plain TeX Ǵ control sequence Դϴ. x n \hangindent \hangafter ̶ ϰ, h \hsize ̶ . , n >= 0̸, hanging 鿩 n+1, n+2, ... ° ٿ Ÿ, n<0̸, 1, 2, ... |n| Ÿϴ. Hanging 鿩 Ϲ h ƴ϶ h-|x| մϴ; x>=0̸, ٵ ʿ 鿩Ⱑ ǰ, 鿩Ⱑ ˴ϴ. ʴϱ? Ȳ ̷ϴ, ʿϰ?
Է ֽϴ.\hangindent=2cm \hangafter=-2 \noindent ع λ ϴ ϻ 츮 . ȭ õ ȭ ѻ ϼ. ع λ ϴ ϻ 츮 . ȭ õ ȭ ѻ ϼ.
5.6 2006-03-18 ¶
- 96~97: (paragraph) ɰ (line) ſ ̷Ӱ, ֽϴ. ϱ ؼ 信 شϴ ˾ƾ մϴ. penalty ؼ ˾ƺڽϴ. ܿ ٵ ؼ ٹٲϴ breakpoint մϴ. breakpoint ϴ ٹٲϿ ٵ ִ 츮 ϴ Դϴ.
breakpoint ĺ penalty Ҹ ִµ, penalty ٹٲ ؼ ϴ (aesthetic cost)Դϴ. breakpoint penalty 100̶(\penalty100), ٹٲ ϴ 100ŭ ٴ Դϴ. penalty ũ Ŭ ̵Ƿ, ٹٲ Ͼ Ȯ ̰, penalty ۾Ƽ ȴٸ, penalty bonus ̹Ƿ, ٹٲ Ȯ ũ.
TeX 10000̶ ڴ Ѵ븦 մϴ. '\penalty10000'̶ ٹٲ Ѵ ٴ Ҹ̹Ƿ, ٹٲ Ͼ ʴ´ٴ Դϴ. \nobreak . ϴ penalty ̷ϴ.