KTUGFaq
KTUG FAQ
Lend money to a bad debtor and he will hate you.
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 λ ¶
մϴ. Խǿ 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
TeX å ô Ϳ Ƽ Ѱ Ұ帳ϴ. Knuth å ߿ The Stanford GraphBase (http://www-cs-faculty.stanford.edu/~knuth/sgb.html) ſ ִ å ֽϴ. αֿ õ å̶ 뿡 ū ð, å CWEB CWEB̳ WEB α mini-index ִ CTWILL ̶ α鸸 åԴϴ. , TeX ⺻Դϴ. --
ȳϼ. ݰϴ. 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 ѱȭ ū ɸ ذ ּ̽ϴ. ڽϴ. --
4.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 ϳ.(̰͵ ̳! |-I ) ι° ѵ, \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>"̶ ٰ ϴµ, ٸ ذ µ, ǹ̰ ʹ ʳ.
4.2 2006-03-05 ¶
- 208: "For best result, always put a blank space after numeric constant;"
\count Ϳ ڿ ݵ ϳ ζ ε,\def\statement{\ifnum\balance=0 \fullypaid \else\ifnum\balance>0 \overpaid \else\underpaid \fi \fi}
ù° 0 \fullypaid ſ ߿ϴٰ մϴ....=0\fullypaid...
ó Ѵٸ ʾƵ \fullypaid DZ ̶. ū ġ , ϹǷ ð ȿ̶ մϴ. (Ȥ, ϱ մϴ.) ڿ TeX Ͽ Ȯ ھƵ ֽϴ.
Knuth ֽϴ. ڽ ڿ ݵ ڿ ϸ鼭, ʴ´ϴ.
"because extra spaces do look funny in the file; aesthetics are more important than efficiency"
Knuth, Ҿƹ ִ ӿ Ʋϴ.
4.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}}