KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You have an ability to sense and know higher truth.
FrontPage › EmEditorTip/Find
EmEditor/Professional + MTeXHelper ÀÇ »ç¿ë TipÀ» Á¦°øÇÏ´Â °÷ÀÔ´Ï´Ù. [http]EmEditorTip

ToDo:

¸ñÂ÷

1 ã±â, ¹Ù²Ù±â
2 ¿©·¯ ÆÄÀÏ¿¡¼­ ã±â/¹Ù²Ù±â(Find/Replace in Files)
2.1 Find in Files
2.2 Replace in Files
3 Á¤±ÔÇ¥Çö½Ä ã±â ¹Ù²Ù±â
3.1 "ÀÌ·¯°íÀú·¯°í" ¸¦ ÀÌ·¯°íÀú·¯°í''·Î ¹Ù²Ù±â
3.2 ÀÎÅÍ³Ý ÁÖ¼ÒÀÇ ÇÑ±Û ºÎºÐ

1 ã±â, ¹Ù²Ù±â

  1. ÇÑ ÆÄÀÏ¿¡¼­ ã±â: ´ÜÃàÅ°´Â ^+F

    Find.jpg
  2. [Replace]¸¦ ´©¸£¸é ReplaceâÀÌ ¶á´Ù. ReplaceÀÇ ´ÜÃàÅ°´Â ^+HÀÌ´Ù.

2 ¿©·¯ ÆÄÀÏ¿¡¼­ ã±â/¹Ù²Ù±â(Find/Replace in Files)

2.1 Find in Files

  1. "Look in Subfolders"¸¦ üũÇϸé, ÇÑ Æú´õ¿Í ±× ºÎ¼ÓÆú´õ ³»ÀÇ "¸ðµç ÆÄÀÏ"¿¡¼­ ã±â¸¦ ÇÒ ¼ö ÀÖ´Ù.
    FindinFiles.jpg
  2. ãÀº ³»¿ëÀ» »õ·Î¿î ÆÄÀÏ·Î º¸¿©ÁØ´Ù.
  3. ƯÁ¤ ³»¿ëÀ» Ŭ¸¯Çϸé(´ÜÃàÅ° F10¸¦ ´©¸£¸é) ÇØ´ç ¹®¼­ÀÇ ÇØ´ç À§Ä¡·Î ã¾Æ°£´Ù.
    FindinFilesResult.jpg

2.2 Replace in Files

  1. Find in Filesâ¿¡¼­ [Replace>>]¸¦ ´©¸£¸é Replace in FilesâÀ¸·Î ¹Ù²ï´Ù. (Replace in Files±â´ÉÀ» ÀÌ¿ëÇÏ¿© ¿©·¯ ÆÄÀÏ¿¡¼­ ¹Ù²Ù±â¸¦ ÇÒ ¼ö ÀÖ´Ù.)
    ReplaceinFiles.jpg
  2. [Replace All]À» ´©¸£¸é ÁöÁ¤ÇÑ Æú´õ³»¿¡¼­ È®ÀåÀÚ°¡ texÀÎ ¸ðµç ¹®¼­³»¿¡¼­ "¹Ù²Ù±â"°¡ ½ÇÇàµÈ´Ù.
    • Replace in FilesÀÇ °á°ú´Â µÇµ¹¸± ¼ö ¾øÀ¸¹Ç·Î ÁÖÀÇÇÑ´Ù.
    • ´ÙÇàÈ÷, Save Backups¸¦ üũÇÏ°í ¹é¾÷Æú´õ¸¦ ÁöÁ¤Çϸé, ¿ø·¡ÀÇ folder tree°¡ À¯ÁöµÇ¸é¼­, ¹Ù²î±â Á÷ÀüÀÇ ÆÄÀÏÀÌ ÀúÀåµÈ´Ù.
  3. Replace in FilesÀÇ ¾ÆÀÌÄܵµ ÀÖÀ¸¹Ç·Î, Åø¹Ù¿¡ Ãß°¡ÇÏ¸é µÈ´Ù.
    ReplaceinFilesIcon.jpg

3 Á¤±ÔÇ¥Çö½Ä ã±â ¹Ù²Ù±â

EmEditor´Â PERL ¾ð¾îÀÇ °Í°ú À¯»çÇÑ Á¤±Ô½ÄÀ» ÀÌ¿ëÇÏ¿© ã±â/¹Ù²Ù±â¸¦ ÇÒ ¼ö ÀÖ´Ù. ±× ÀÀ¿ë°¡´É¼ºÀº ¹«ÇÑÇϹǷÎ, ¿©±â¼­´Â °£´ÜÇÏ°í ¿ä±äÇÑ ÇÑ °¡Áö ¿¹¸¸ µé¾îº¸±â·Î ÇÏÀÚ.

3.1 "ÀÌ·¯°íÀú·¯°í" ¸¦ ÀÌ·¯°íÀú·¯°í''·Î ¹Ù²Ù±â

¹®¼­ ¾ÈÀÇ " µû¿ÈÇ¥·Î µÑ·¯½ÎÀÎ "ÀÌ·¯°íÀú·¯°í"¸¦ ``ÀÌ·¯°íÀú·¯°í''·Î ¹Ù²Ù·Á°í ÇÑ´Ù.(À¯»çÇÑ ¿¹°¡ VimEditor¿¡ ÀÖ´Ù.)

Á¤±ÔÇ¥Çö½ÄÀ» ÀÌ¿ëÇϱâ À§Çؼ­ ¸ÕÀú ´ÙÀ½ ¼³Á¤À» ÇØÁØ´Ù.
  • Ctrl-K(Tools->Customize)¸¦ ´­·¯¼­ Customize ¼³Á¤Ã¢ÀÇ Search ÅÇ¿¡¼­ Regular Expressions Can Match New Line Characters¸¦ üũÇØÁØ´Ù. ÀÌ°ÍÀ» ÇØÁÖÁö ¾ÊÀ¸¸é ÇÑ Çà ¾È¿¡¼­¸¸ Á¤±Ô½Ä ã±â/¹Ù²Ù±â°¡ °¡´ÉÇѵ¥ º¸Åë TeX ¼Ò½º´Â ¿©·¯ ÁÙ¿¡ °ÉÃļ­ ¹®ÀåÀÌ À̾îÁö´Â °æ¿ì°¡ ¸¹À¸¹Ç·Î ÀÌ°ÍÀ» üũÇÏ¿© ¿©·¯ ÁÙ¿¡ °ÉÃļ­ Á¤±Ô½Ä ã±â¸¦ Çã¿ëÇϵµ·Ï ÇÑ´Ù.
  • ÀÌ Á¤±Ô½Ä ã±â Çã¿ë ¹üÀ§°¡ ¸î ÁÙ¿¡ °ÉÄ¥ °ÍÀ̳ÄÀÇ ÃÖ´ë°ªÀ» "Additional Lines to Search for Regular Expressions"¿¡¼­ Á¤ÇØÁִµ¥, ¿©±â¼­´Â 10Çà Á¤µµ·Î Çصαâ·Î ÇÏÀÚ.
    emeditor_regexp_setting.jpg


¸ÕÀú ÅؽºÆ®¸¦ ºÙ¿©º¸ÀÚ.
before_replace.jpg


Ctrl-H¸¦ ´©¸¥ ´ÙÀ½ ã±â/¹Ù²Ù±â ´ëÈ­»óÀÚ¿¡¼­ Use Regular Expressions¸¦ üũÇÏ°í ´ÙÀ½°ú °°ÀÌ ½á³Ö´Â´Ù.
ãÀ» ÅؽºÆ® : "(.*?)"
¹Ù²Ü ÅؽºÆ® : ``\1''
regexp_replace_1.jpg


Replace ¹öÆ°À» ´©¸£¸é ´ÙÀ½°ú °°ÀÌ ¹Ù²ï´Ù.
after_replace.jpg


EmEditorÀÇ Á¤±Ô½Ä ¹®¹ýÀº µµ¿ò¸»¿¡ ¾ÆÁÖ »ó¼¼È÷ ³ª¿Í ÀÖ´Ù. F1À» ´­·¯¼­ Help¸¦ ¿¬ ´ÙÀ½ Regular ExpressionÀ¸·Î °Ë»öÇÑ´Ù. Á¤±ÔÇ¥Çö½Ä ã±â/¹Ù²Ù±â´Â EmEditorÀÇ ¸Å¿ì °­·ÂÇÑ ±â´É °¡¿îµ¥ ÇϳªÀ̹ǷΠ²À Àо°í ÀÍÇôµÎ¸é Æí¸®ÇÏ´Ù.

3.2 ÀÎÅÍ³Ý ÁÖ¼ÒÀÇ ÇÑ±Û ºÎºÐ

KC2006/óÀ½»ç¿ëÀÚÀÇ urlÀº http://faq.ktug.or.kr/faq/KC2006/%C3%B3%C0%BD%BB%E7%BF%EB%C0%DAÀÌ´Ù. ÀÌ°Í¿¡ ÇÏÀÌÆÛ¸µÅ©¸¦ °É·Á°í ÇÒ ¶§´Â %C3 µîÀ» \%C3°ú °°ÀÌ ¹Ù²Ù¾î ÁÖ¾î¾ß ÇÑ´Ù.
\href{http://faq.ktug.or.kr/faq/KC2006/%C3%B3%C0%BD%BB%E7%BF%EB%C0%DA}{óÀ½»ç¿ëÀÚ}
ÀÌ·¸°Ô ¾²¸é ÄÚ¸àÆ® ¹®ÀÚ % ¶§¹®¿¡ ¿¡·¯°¡ »ý±ä´Ù. Á¤±ÔÇ¥Çö½ÄÀ» ÀÌ¿ëÇÏ¿© ´ÙÀ½°ú °°ÀÌ ¹Ù²ÙÀÚ.
ãÀ» ³»¿ë : \%([A-F][0-9A-F])
¹Ù²Ü ³»¿ë : \\\%\1
ÀÌÁ¦ ¿¹ÄÁ´ë
\href{http://faq.ktug.or.kr/faq/KC2006/\%C3\%B3\%C0\%BD\%BB\%E7\%BF\%EB\%C0\%DA}{óÀ½»ç¿ëÀÚ}
¿Í °°ÀÌ º¯È¯µÈ´Ù.

EmEditorTip À¸·Î µ¹¾Æ°¡±â

^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2007-01-17 20:26:17
Processing time 0.0431 sec