"주의 환기"에 댓글 더하기

Sin has many tools, but a lie is the handle which fits them all.
FrontPage › LittleTree/ReadingTeXbook/2006-03
Mar 26, 2006
주의 환기
Submitted by 작은나무 @ 03-26 [03:29 pm]
201쪽: 매크로 작성시 가끔 실수하는데, 다시는 그런 일 없기를 바라며 적어봅니다. :)

When you define a macro with simple parameters, as in these examples, you must be careful not to put blank spaces before the '{' that begins the replacement text. For example, \def\row #1 #2 {...} will not give the same result as \def\row#1#2{...}, because the spaces after #1 and #2 tell TeX to look for arguments that are followed by spaces. (Arguments can be "delimited" in a fairly general way, as explained below.) But the space after \row is optional, as usual, because TeX always disregards spaces after control words. After you have said \def\row#1#2{...}, you are allowed to put spaces between the arguments (e.g., \row x n), because TeX doesn't use single spaces as undelimited arguments.

서명하지 않기

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-06-06 22:54:57
Processing time 0.0304 sec