KTUGFaq

KTUG FAQ

ÀÛÀº³ª¹«/2008-03 (rev. 1.3)

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You will be surprised by a loud noise.
¼³Á¤ÆÄÀÏKarnesKarnes/2009-02&value=KC2006/óÀ½»ç¿ëÀÚ/TroubleShootingDrawingAndPaintingEmEditor/Professional&value=Yhchoe/WinEdt°¡ÀÌµå › ÀÛÀº³ª¹«/2008-03
Mar 23, 2008
Character constants
Submitted by ÀÛÀº³ª¹« @ 03-23 [11:56 pm]
¸ÅÅ©·Î¸¦ ÀÛ¼ºÇÏ´Ùº¸¸é, ¼ýÀÚ »ó¼ö(numeric constant)°¡ ÇÊ¿äÇÒ °æ¿ì°¡ Á¾Á¾ ÀÖ´Ù.

65¸¦ °ªÀ¸·Î °®´Â \const¶ó´Â À̸§ÀÇ ¼ýÀÚ »ó¼ö¸¦ ¸¸µé°íÀÚ ÇÑ´Ù. ¾î¶»°Ô ÇÏ¸é µÉ±î?

¸ÕÀú ¶°¿À¸£´Â ¹æ¹ýÀº,
\newcount\const \const=65
°¡Àå ¹«³­ÇÏÁö¸¸, Ä«¿îÆ® ·¹Áö½ºÅ͸¦ ÀÌ¿ëÇϹǷΠ¸Þ¸ð¸® »ç¿ë¿¡ ³¶ºñ¸¦ ÃÊ·¡ÇÏ´Â ´ÜÁ¡ÀÌ ÀÖ´Ù.

Ä«¿îÆ® ·¹Áö½ºÅ͸¦ »ç¿ëÇÏÁö ¾Ê´Â ¹æ¹ýÀ¸·Î ´ÙÀ½À» »ý°¢ÇÒ ¼ö ÀÖ´Ù.
\def\const{65}
ù¹ø° ¹æ¹ýº¸´Ù´Â ³´Áö¸¸, \const´Â ¸ÅÅ©·ÎÀ̹ǷΠ±× °ªÀ» ¾ò±â À§Çؼ­´Â Àü°³(expand) ÇØ¾ß ÇÏ°í, ÅØÀº ±× Ư¼º»ó ¼ýÀÚ°¡ ¾Æ´Ñ ÅäÅ«ÀÌ ³ª¿Ã ¶§±îÁö ÅäÅ«À» °è¼Ó Àü°³ÇϹǷÎ, \const ¹Ù·Î µÚ¿¡ ¸ÅÅ©·Î°¡ ³ª¿Â´Ù¸é, ±× ¸ÅÅ©·Îµµ Àü°³µÈ´Ù.

¸¶Áö¸· ¹æ¹ýÀº,
\chardef\const=65
ÀÌ ¹æ¹ýÀÌ ÇØ´äÀ̶ó°í ÇÒ ¼ö ÀÖ´Ù. À§¿Í °°ÀÌ Á¤ÀÇµÈ \const´Â ±×°¡ óÇÑ »óȲ¿¡ µû¶ó¼­ ¹®ÀÚ ¶Ç´Â ¼ýÀÚ·Î »ç¿ëµÉ ¼ö ÀÖ´Ù.
\const BCD
¿Í °°Àº »óȲ¿¡¼­ \const´Â \char65ÀÎ 'A'·Î »ç¿ëµÇ¾î ABCD°¡ µÈ´Ù. ÇÏÁö¸¸,
\advance\total by\const 
¶ó°í Çϸé, ¹®ÀÚ 'A'°¡ ¾Æ´Ñ ¼ýÀÚ 65·Î »ç¿ëµÇ¾î, \totalÀ̶ó´Â Ä«¿îÆ® ·¹Áö½ºÅÍ °ª¿¡ 65¸¦ ´õÇÏ°Ô µÈ´Ù.

ÀÌó·³ chardef·Î »ó¼ö¸¦ Á¤ÇÏ´Â ¹æ¹ýÀº ù ¹ø° °æ¿ìó·³ Ä«¿ìÆ® ·¹Áö½ºÅ͸¦ »ç¿ëÇÑ´Ù´Â ´ÜÁ¡µµ ¾ø°í, µÎ¹ø° ¹æ¹ýó·³ ¸ÅÅ©·Î¸¦ Àü°³ÇÒ ÇÊ¿äµµ ¾ø´Ù.

ÇÏÁö¸¸ chardef·Î´Â 0ºÎÅÍ 255±îÁöÀÇ ¼ýÀÚ ¹Û¿¡ »ç¿ëÇÒ ¼ö ¾ø´Ù.

255º¸´Ù Å« ¼ýÀÚ »ó¼ö´Â \mathchardef¸¦ »ç¿ëÇÏ¸é µÈ´Ù. ÀÌ´Â 32767("7FFF) ±îÁö °¡´ÉÇÏ´Ù

\everypar
Submitted by ÀÛÀº³ª¹« @ 03-23 [10:39 pm]
ÀÔ·Â:

\font\init=cmbx10 scaled 2488 \def\Hang#1{\leavevmode \hbox to 0pt {\hss \raise 1.4ex \vbox to 0pt{\hbox to 1cm{\init #1\hss}\vss}}% } \hsize=8.5cm \parskip=10pt \parindent=0pt \everypar={\hangindent=1cm \hangafter=-2 \Hang} This is an old-fashioned mediaeval paragraph that has lots of text and a very long first sentence. The second sentence is also long, and only serves the purpose to make this more than 2 or so lines long. For good measure we throw in a third line which should make this four lines long, if not five with a little luck. Also, the second paragraph is an old-fashioned mediaeval paragraph that has lots of text and a very long first sentence. The second sentence is also long, and only serves the purpose to make this more than 2 or so lines long. For good measure we throw in a third line which should make this four lines long, if not five with a little luck. \bye

Ãâ·Â:



Mar 22, 2008
ÄĹé
Submitted by ÀÛÀº³ª¹« @ 03-22 [08:39 pm]
¾Æ¸£ÇîƼ³ª ¶¥¿¡ ¹ßÀ» µðµ±´ø ±× ¼ø°£

ÀÌ ±ÛÀ» ¾´ »ç¶÷Àº »ç¶óÁö°í ¾ø´Â ¼ÀÀÌ´Ù.

ÀÌ ±ÛÀ» ´Ù½Ã ±¸¼ºÇÏ¸ç ´Ùµë´Â ³ª´Â ´õ ÀÌ»ó ¿¹ÀüÀÇ ³»°¡ ¾Æ´Ï´Ù.

"¿ì¸®ÀÇ À§´ëÇÑ ¾Æ¸Þ¸®Ä« ´ë·ú"À» ¹æ¶ûÇÏ´Â µ¿¾È

³ª´Â »ý°¢º¸´Ù ´õ ¸¹ÀÌ º¯Çß´Ù. -- Che Guevara