r1.34
@@ -1,118 +1,23 @@
[[TableOfContents]]
Computer programs are fun to write, and well-written computer programs are fun to read
attachment:ilovecweb.
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''
jpg
== ==
* KTUG ٸ, TeX ϴ ſ ̴ϴ. Խǰ faq Ű ؼ ް ֽϴ. ؼ ϰ ϰ , TeX ſ ֵ ڽϴ.
* {{{#!latex
\TeX, Just For Fun
}}}
==
TeX ɺо =
=
* PlainTeX: The TeXbook
* [Literate Programming]: WEB
ȳϼ,
CWEB
* MetaPost
=
ݰϴ. =
λ ==
ȳϼ. Ź帳ϴ. ^^ --[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 α ַ ϴµ ñ ־. ÷ - ϵ غ :D - ƴ ξ Ǵ α ۼҶ CWEB ̿ϸ ҽ - module̶ ϴ- make . 丮 (*.c. *.h), Makefile ϳ tex.webϷ Ѱ. ô غ ͱ. Ѵٴ ϴ. -[hermian]
ȳ
TeXbook б⸦
. ݰϴ. 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 ѱȭ ū ɸ
Ȩ
ذ ּ̽ϴ. ڽϴ. --[]
亯 帳ϴ. ٸ 帱 ־. ڵ ȯ -
ϴ.- Ȥ ϴٸ ̸ ˷ ֽø ȵɱ. ʸ鿡 ʹ Ƿʴ ƴ... Ͻôٸ ̸Ϸ ֽø ϰڽϴ. hermian Դϴ. --[hermian]
== The TeXbook б ==
=== [[Date(2006-03-04T11:27:17)]] ===
* '''9~11''': plain TeX 900
control sequence(cs) ִٰ մϴ. 300 ''primitive''
,
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" ȣ پֽϴ.
{{{#!latex
\font\manual=manfnt
\manual\char127\manual\char127
}}}
. "\futurelet\cs<token1><token2>" "\let\cs=<token2><token1>"̶ ٰ ϴµ, ٸ ذ µ, ǹ̰ ʹ ʳ.
=== [[Date(2006-03-05T05:15:06)]] ===
* '''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 ֽϴ. ڽ ڿ ݵ ڿ ϸ鼭, ʴ´ϴ.
-- [Karnes] [[DateTime(2006-03-18T03:57:06)]]
"
ȳϽʴϱ? ''
because extra spaces do look funny in the file; aesthetics are more important than efficiency
ʰ ƴϰ ΰ''
"
å ƴ ݰ ϴ. ~~~ öп å ˰ ٰ ְ åԴϴ. :D -- HuidaeCho
Knuth, Ҿƹ
ReadingTeXbook
ӿ Ʋϴ.
:))
=== [[Date(2006-03-09T15:07:34)]] ===
* '''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"
˰ Ǹ ߴ TeXbyTopic 帱Կ. -- [Progress] [[DateTime(2006-08-29T01:29:31)]]
ҿ \rlap \llap ũθ
ȳ
鼭 ִ ũα ϰ ߴµ, ħ װ͵鿡 ֳ
.
\rlap
ReadingTeXbook(TeXbook б)
ϱ
ã
ǹ̿
ݸ ϸ
,
{{{
\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}}
}}}
=== [[Date(2006-03-11T10:47:16)]] ===
* '''225''': TeX ΰ 踦
ִ ؽ
(
TeXture
?)
ֽ
ΰϴ.
{{{#!latex
$$\hbox to 4.5in{\cleaders \vbox to .5in{\cleaders\hbox{\TeX}\vfil}\hfil}$$
}}}
ϴ Ʒ
ᱹ GOOGLE ſ
,
.
{{{
$$\hbox to 4.5in{\cleaders \vbox to .5in{\cleaders\hbox{\TeX}\vfil}\hfil}$$
}}}
մϴ!
PDF
踦
ִ. ᱹ..
TeX
̰, 츮 TeX ϴ
Ѱ մϴ.
=== [[Date(2006-03-14T14:34:10)]] ===
* '''102''': '\hangindent=<dimen>' '\hangafter=<number>' plain TeX
[ø]
control sequence Դϴ. x n \hangindent \hangafter ̶ ϰ, h
ũ
\hsize ̶
Ŭ
. , n >= 0
, hanging
PDF
n+1, n+2,
ֽϴ...
°
Ȥ Wiki
Ÿ
ͼ ٸе, ,
n<0̸, 1, 2, ... |n|
Ÿϴ. Hanging 鿩 Ϲ h ƴ϶ h-|x| մϴ; x>=0̸, ٵ
鿩Ⱑ
ؾ
, 鿩Ⱑ ˴
.
ʴϱ? Ȳ ̷ϴ, ʿϰ?
{{{#!latex
\hangindent=2cm \hangafter=-2 \noindent
ع λ
ϴ ϻ 츮
. ȭ õ ȭ ѻ ϼ.
ڽ
λ ϴ ϻ 츮 . ȭ õ ȭ ѻ ϼ.
}}}
Է ֽ
ϴ.
{{{
\hangindent=2cm \hangafter=
--
2 \noindent
ع λ ϴ ϻ 츮 .
ȭ õ ȭ ѻ ϼ.
ع λ ϴ ϻ 츮 .
ȭ õ ȭ ѻ ϼ.
}}}
----
CategoryCategory
CategoryHomepage
- KTUG ٸ, TeX ϴ ſ ̴ϴ. Խǰ faq Ű ؼ ް ֽϴ. ؼ ϰ ϰ , TeX ſ ֵ ڽϴ.
ȳϼ, ݰϴ. ¶
۵ а ֽϴ. ãٺ CWEB å ִ. αӵ ƴ ° ̷ å...
TeX ̴ Ǹ ȯּż մϴ. --
Progress
ȳϼ.
LiterateProgramming о߸ ּż մϴ. C α ַ ϴµ ñ ־. ÷ - ϵ غ
- ƴ ξ Ǵ α ۼҶ CWEB ̿ϸ ҽ - module̶ ϴ- make . 丮 (*.c. *.h), Makefile ϳ tex.webϷ Ѱ. ô غ ͱ. Ѵٴ ϴ. -
hermian
TeXbook б⸦ ϰ ֽϴ. ſ Ǹ ε α ̳ Ȩ ֽø ? ôٸ ٽ 迭ص帮ڽϴ. --
Karnes 2006-03-18 12:57:06
ȳϽʴϱ?
ʰ ƴϰ ΰ å ƴ ݰ ϴ. ~~~ öп å ˰ ٰ ְ åԴϴ.
--
HuidaeCho
ReadingTeXbook ֽϴ. ˰ Ǹ ߴ TeXbyTopic 帱Կ. -- Progress 2006-08-29 10:29:31
ȳϼ. ReadingTeXbook(TeXbook б) ãƼ , ã 1ð Ѱ
ѽ(?) ΰԴϴ. ᱹ GOOGLE ſ , ٽ PDF Ϸ ִٴ
ִ. ᱹ.. Ʒ 올린파일̶ ũ Ŭϸ PDF ϵ ֽϴ... Ȥ Wiki ͼ ٸе, , ߿ ؾ ٽ ڽ Ӵϴ. --