KTUGFaq

KTUG FAQ

"The @ convention"¿¡ ´ñ±Û ´õÇϱâ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
"It seems strange to meet computer geeks who're still primarily running Windows... as if they were still cooking on a wood stove or something." - mbp
FrontPage › LittleTree/ReadingTeXbook/2006-08
Aug 29, 2006
The @ convention
Submitted by ÀÛÀº³ª¹« @ 08-29 [10:32 pm]
TeXbyTopic¿¡ ¾²¿©Á® Àֱ⸦,

Anyone who has ever browsed through either the plain format or the LaTeX format will have noticed that a lot of control sequences contain an 'at' sign: @. These are control sequences that are meant to be inaccessible to the ordinary user.

Near the beginning of the format files the instruction
\catcode¡®@=11
occurs, making the at sign into a letter, meaning that it can be used in control sequences. Somewhere near the end of the format definition the at sign is made 'other' again:
\catcode¡®@=12
Now why is it that users cannot call a control sequence with an at sign directly, although they can call macros that contain lots of those 'at-definitions'? The reason is that the control sequences containing an @ are internalized by TeX at definition time, after which they are a token, not a string of characters. Macro expansion then just inserts such tokens, and at that time the category codes of the constituent characters do not matter any more.

TeXbookÀÌ ¸»Çϱ⸦,
À̸§:

¼­¸íÇÏÁö ¾Ê±â
 

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-08-29 22:32:07
Processing time 0.0516 sec