KTUGFaq

KTUG FAQ

·Î±×ÀÎ:
ºñ¹Ð¹øÈ£:
°¡ÀÔ
You attempt things that you do not even plan because of your extreme stupidity.
FrontPage › AUCTeX

TeX, LaTeX ÆÄÀÏÀÇ ÆíÁý, ÄÄÆÄÀÏ, È­¸éº¸±â, Àμ⠵îÀÇ ÀÛ¾÷À» ½±°Ô ÇÒ ¼ö ÀÖµµ·Ï ÇØÁÖ´Â EmacsÀÇ ¸ÅÅ©·Î ÆÐÅ°Áö. AUCTeXÀº TeXÀÇ ÇÑ Á¾·ù´Â ¾Æ´Õ´Ï´Ù.

¸ñÂ÷

1 ¼Ò°³
1.1 ÇѱÛLaTeX±æÀâÀÌ
2 ¼³Ä¡
3 ¼³Á¤
4 ´ÜÃàÅ°
4.1 ÄÄÆÄÀÏ
4.2 ¸í·É ÀÔ·Â
4.3 ¼öÇÐ
4.4 ÁÖ¼®
4.5 ¼Ò½º Æ÷¸Ë
4.6 À̵¿°ú ¿µ¿ª ¼±ÅÃ
4.7 Á¢±â
4.8 µµ¿ò¸»
5 Tips
5.1 ¼³Á¤
5.1.1 hermian



1 ¼Ò°³

1.1 ÇѱÛLaTeX±æÀâÀÌ

from ÇѱÛLaTeX±æÀâÀÌ by Àº±¤Èñ
AUCTeXÀº ÀÌ·¯ÇÑ Emacs ³»¿¡¼­ ¼Õ½±°Ô LaTeX ¹®¼­¸¦ ÀÛ¼ºÇÏ°í ÀÛ¾÷ÇÏ´Â µ¥ ÇÊ¿äÇÑ ´ëºÎºÐÀÇ È¯°æÀ» Á¦°øÇÕ´Ï´Ù. ±×·¯¹Ç·Î HLaTeX ¹®¼­¸¦ ÀÌ·¯ÇÑ ÆíÁý±â¿Í º¸Á¶ ÇÁ·Î±×·¥À¸·Î ÀÛ¼ºÇÏ¸é ¸¹Àº Æí¸®ÇÔÀ» ¾òÀ» ¼ö ÀÖÀ¾´Ï´Ù.

±×·± Æí¸®ÇÔ ÁßÀÇ Çϳª¸¸ °£´ÜÈ÷ ¼Ò°³ÇÕ´Ï´Ù. 200 ÂÊÀÇ ÇÑ±Û ¹®¼­¸¦ ÀÛ¼ºÇßÀ» ¶§, Áß°£¿¡ ÇÑ ¼ÒÀý(subsection)À» Ãß°¡Çß´Ù°í ÇսôÙ. °ú¿¬ ÀÌ ºÎºÐµµ ¾Æ¹« ¹®Á¦¾øÀÌ Àß ÀÛ¼ºµÇ¾ú´Â°¡¸¦ ¾Ë¾Æº¸°íÀÚ ÇÒ ¶§ º¸ÅëÀº Àü ¹®¼­¸¦ LaTeXÀ¸·Î ÀÛ¾÷ÇØ¾ß ÇÕ´Ï´Ù. ±×·¯³ª ¶È¶ÈÇÑ ÆíÁý±â¿¡¼­ÀÇ AUCTeX ±â´ÉÀº À̸¦ ¸Å¿ì ´Ü¼øÈ­ÇÕ´Ï´Ù.

  1. »õ·Î ÀÛ¼ºµÈ ºÎºÐÀ» ¿µ¿ª(region)À¸·Î Á¤ÀÇÇÑ´Ù. (¿µ¿ªÀº C-SPC ±Û¼è¸¦ ´­·¯¼­ set-mark-command ½ÇÇà½ÃŲ °÷¿¡ ÀÖ´Â mark¿Í ÇöÀç ±ôºýÀÌ(cursor)°¡ ÀÖ´Â pointÀÇ »çÀ̸¦ ¸»ÇÑ´Ù.)

  2. C-c C-r¸¦ ´©¸¥´Ù. (ÀÌ ±Û¼è´Â TeX-command-regionÀ» ÀǹÌÇϸç, ¸ÕÀú »çÀÌÄ­(buffer)ÀÌ ¼öÁ¤µÇ¾ú´Â°¡¸¦ »ìÆìºÁ¼­ ÀúÀåÆÇ¿¡ °¥¹«¸®(save)ÇÒ °ÍÀΰ¡¸¦ ¹°¾îº¸°í .tex ÆÄÀÏÀÌ .dvi ÆÄÀÏÀ» ºñ±³ÇÏ¿© .texÆÄÀÏÀÌ ´õ »õ °ÍÀ̸é LaTeXÇÒ °ÍÀ» Á¦½ÃÇÑ´Ù.)

  3. Âø¿À°¡ ÀÖÀ¸¸é $$\mbox{C-}$$¸¦ ´©¸¥´Ù. (TeX-next-error`: Âø¿À°¡ ¹ß»ýÇÑ ÁöÁ¡À¸·Î °¡¼­ ±× Âø¿À¿¡ ´ëÇÑ ¼³¸íÀ» º¸¿©ÁØ´Ù.)

  4. À§¿Í °°ÀÌ Âø¿À¸¦ Â÷·Ê·Î °íÄ¡°í TeX-command-regionÀ» ¹Ýº¹ÇÑ´Ù. ¾Æ¹« Âø¿À°¡ ¾øÀ¸¸é TeX-command-regionÀ» ´Ù½Ã ½ÇÇàÇÑ´Ù. (¾Æ¹« Âø¿À°¡ ¾øÀ» °æ¿ì¿¡ AUCTeXÀº ¹Ì¸®º¸±â¸¦ Á¦½ÃÇÑ´Ù.)

  5. ¸ðµç ºÎºÐÀÌ ¸¸Á·½º·¯¿ì¸é C-c C-c¸¦ ´©¸¥´Ù. (TeX-command-master: Àüü ¹®¼­¸¦ LaTeXÇϰųª ¹Ì¸®º¸±âÇÒ ¼ö ÀÖ´Ù.)

AUCTeXÀÌ ³»ºÎÀûÀ¸·Î TeX-command-regionÀ» ¾î¶»°Ô ó¸®Çϴ°¡´Â °£´ÜÈ÷ ´ÙÀ½°ú °°ÀÌ ¼³¸íÇÒ ¼ö ÀÖÀ¾´Ï´Ù. ÀÏ´Ü AUCTeXÀº _region_.tex¶ó´Â ºó »çÀÌÄ­À» ¸¶·ÃÇÏ¿© ¹®¼­ÀÇ Ã³À½ºÎÅÍ \begin{document}±îÁö¸¦ ÀÌ »çÀÌÄ­¿¡ Áý¾î ³Ö´Â´Ù. ¿µ¿ªÀ» _region_.tex¿¡ µ¡ºÙÄ£´Ù. ¸¶Áö¸·À¸·Î \end{document}¸¦ _region_.tex¿¡ Ãß°¡ÇÑ´Ù. LaTeXÇϱ⸦ Á¦½ÃÇÑ´Ù. _region_.texÀ» LaTeXÀ¸·Î µ¹¸°´Ù.

Emacs¸¦ Emacs´ä°Ô Á¦´ë·Î »ç¿ëÇÑ´Ù´Â °ÍÀÌ ½¬¿î ÀÏÀº ¾Æ´ÏÁö¸¸, À§¿Í °°Àº ÇÑ°¡Áö ¿¹¸¦ º¸´õ¶óµµ, ¹è¿ö¼­ ±× È¿°ú¸¦ ÃæºÐÈ÷ ¸¸³£ÇÒ ¼ö ÀÖ´Â ¶È¶ÈÇÑ ÆíÁý±âÀÔ´Ï´Ù.

2 ¼³Ä¡


debian/ubuntu
$ sudo apt-get install auctex

3 ¼³Á¤


AUCTeXÀÇ ±âº»ÀûÀÎ ±â´ÉÀ» Á¦´ë·Î »ç¿ëÇÏ·Á¸é ~/.emacs ÆÄÀÏ¿¡ ´ÙÀ½ ¼¼ ¶óÀÎÀ» Ãß°¡ÇÏ´Â °ÍÀÌ ÁÁ´Ù. ´õ ÀÚ¼¼ÇÑ ¼³Á¤Àº ¾Æ·¡ Tips ÂüÁ¶.
(setq-default TeX-master nil)
(setq TeX-auto-save t)
(setq TeX-parse-self t)

4 ´ÜÃàÅ°

4.1 ÄÄÆÄÀÏ


ÇöÀç ¹®¼­¸¦ ÄÄÆÄÀÏÇÏ·Á¸é C-c C-c ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÑ´Ù. ¿µ¿ªÀ» ¼±ÅÃÇÑ ÈÄ C-c C-r ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÏ¿© ÇØ´ç ºÎºÐ¸¸ ÄÄÆÄÀÏÇÒ ¼öµµ ÀÖ´Ù. C-c C-v ´ÜÃàÅ°·Î Ãâ·Â¹°À» º¼ ¼ö ÀÖ´Ù. ±âº»À¸·Î DVI ¸ðµå·Î ÀÛµ¿ÇÏ¿© latexÀ¸·Î ÄÄÆÄÀÏÇÏ°í xdvi·Î Ãâ·Â¹°À» º¸¿©ÁØ´Ù. pdflatexÀ¸·Î ÄÄÆÄÀÏÇÏ°í xpdf·Î º¸·Á¸é C-c C-t C-p ´ÜÃàÅ°¸¦ ÀÌ¿ëÇؼ­ PDF ¸ðµå·Î ÀüȯÇÏ¸é µÈ´Ù. ÀÌ¿Ü¿¡ ´Ù¸¥ ¸ðµåµéµµ ÀÖ´Ù.

key binding description
C-c C-c TeX-command-master
C-c C-r TeX-command-region
C-c C-v TeX-view view dvi/ps/pdf
C-c C-t C-p toggle PDF mode

¿©·¯ °³ÀÇ ÆÄÀÏ°ú \input, \include ¸í·ÉÀ» ÀÌ¿ëÇÏ¿© ÀÛ¼ºµÈ ¹®¼­¸¦ ÆíÁýÇÏ´Â °æ¿ì C-c C-b ´ÜÃàÅ°·Î ÇöÀç ÆÄÀϸ¸ ÄÄÆÄÀÏÇÒ ¼ö ÀÖ´Ù. À̶§ TeX-master°¡ ¼³Á¤µÇ¾î ÀÖ¾î¾ß ÇÑ´Ù. C-c _ ´ÜÃàÅ°·Î ÇöÀç ÆÄÀÏÀÇ TeX-master¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ´Ù. ÆÄÀÏ ³¡ºÎºÐ¿¡ ¼³Á¤ ³»¿ëÀÌ »ðÀԵȴÙ.

key binding description
C-c C-b compile buffer
C-c _ set TeX-master

ÄÄÆÄÀÏ Áß ¹«ÇÑ ·çÇÁ¿¡ µé¾î°£ °ÍÀ¸·Î º¸ÀÏ ¶§´Â C-c C-k ´ÜÃàÅ°·Î ¸ØÃâ ¼ö ÀÖ´Ù.


key binding description
C-c C-k kill


4.2 ¸í·É ÀÔ·Â


ÀåÀý¸í·ÉÀº C-c C-s, ȯ°æÀº C-c C-e, ¸ÅÅ©·Î´Â C-c C-m¸¦ ÀÌ¿ëÇÏ¿© Æí¸®ÇÏ°Ô ÀÔ·ÂÇÒ ¼ö ÀÖ´Ù. ¸í·ÉÀ» ÀÔ·ÂÇÒ ¶§ ÅÇ ¶Ç´Â ½ºÆäÀ̽º¹Ù¸¦ ´©¸£¸é »ç¿ë°¡´ÉÇÑ ¸í·ÉÀÇ ¸ñ·ÏÀÌ ³ª¿À°í ¾ÕºÎºÐ¸¸ ÀÔ·ÂÇÑ ÈÄ ÅÇÀ» ÀÌ¿ëÇÑ ÀÚµ¿¿Ï¼ºÀÌ °¡´ÉÇÏ´Ù.

key binding description
C-c C-s LaTeX-section
C-c C-e LaTeX-environment
C-c C-m TeX-insert-macro

±Û²Ã ¸í·ÉÀº C-c C-f¿¡ À̾ °¢ ±Û²Ã¿¡ ´ëÀÀµÇ´Â ´ÜÃàÅ°·Î ÀÔ·ÂÇÒ ¼ö ÀÖ´Ù. ÇØ´ç ±Û²ÃÀ» ÁöÁ¤ÇÒ ¿µ¿ªÀ» ¼±ÅÃÇÑ ÈÄ ¸í·ÉÀ» ³»¸± ¼öµµ ÀÖ´Ù. ÁöÁ¤µÈ ±Û²Ã¸í·ÉÀ» ¾ø¾Ö·Á¸é C-c C-f C-d ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÑ´Ù.

key binding description
C-c C-f C-b
c-c C-f C-i
C-c C-f C-e
C-c C-f C-s
C-c C-f C-r
C-c C-f C-f
C-c C-f C-t
C-c C-f C-c
C-c C-f C-d

³ª¿­È¯°æ¿¡¼­ C-c C-j ´ÜÃàÅ°¸¦ ´©¸£¸é ÁÙÀÌ ¹Ù²î¸é¼­ ÀÚµ¿À¸·Î \item ¶Ç´Â \item[] ¸í·ÉÀÌ ÀԷµȴÙ.

key binding description
C-c C-j insert \item

TeX-parse-self¿Í TeX-auto-save¸¦ ÄѳõÀ¸¸é ÀÚ½ÅÀÌ Á¤ÀÇÇÑ ¸ÅÅ©·Î, \ref¿¡ »ç¿ëÇÒ Å°¿öµå µîµµ ¸ñ·Ï¿¡ ³ªÅ¸³ª°í ÀÚµ¿¿Ï¼ºÀÌ µÈ´Ù. ~/.emacs¿¡ ¼³Á¤À» ÇÏÁö ¾Ê¾ÒÀ» °æ¿ì¿¡µµ C-c C-n ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÏ¿© ÇöÀç ÆÄÀÏ¿¡ ´ëÇØ ÆĽÌÀ» Çϸé ÀÌ ±â´ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Ù.

key binding description
C-c C-n

4.3 ¼öÇÐ


¼öÇÐ: C-c ~ ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÏ¿© LaTeX-math-mode¸¦ ÄÑ°í ²ø ¼ö ÀÖ´Ù. ¶óÅØ ¼öÇÐ ¸ðµå°¡ ÄÑÁø »óÅ¿¡¼­ `¸¦ ´­·¯¼­ ±âÈ£¸¦ ºü¸£°Ô ÀÔ·ÂÇÒ ¼ö ÀÖ´Ù. ¿¹¸¦ µé¾î, `a¸¦ ´©¸£¸é \alpha{}°¡ ÀԷµȴÙ.

key binding description
C-c ~ LaTeX-math-mode

4.4 ÁÖ¼®


ÁÖ¼® ó¸®: ¿µ¿ªÀ» ¼±ÅÃÇÑ ÈÄ C-c ; ´ÜÃàÅ°¸¦ ¾²¸é ÇØ´ç ºÎºÐÀÌ ÁÖ¼® 󸮵ȴÙ. C-c % ´ÜÃàÅ°¸¦ ¾²¸é ÇöÀç Ä¿¼­°¡ À§Ä¡ÇÑ ´Ü¶ôÀÌ ÁÖ¼® 󸮵ȴÙ. ÁÖ¼® ó¸®µÈ ºÎºÐ¿¡¼­ ÀÌµé ´ÜÃàÅ°¸¦ ¾²¸é ÁÖ¼®ÀÌ ÇØÁ¦µÈ´Ù.

key binding description
C-c ; comment region
C-c % comment paragraph
C-c ' comment paragraph
C-c " uncomment paragraph

4.5 ¼Ò½º Æ÷¸Ë


µé¿©¾²±â¿Í ÁÙ¹Ù²Þ µîÀÇ ¼Ò½º Æ÷¸ËÀ» Á¶ÀýÇÏ´Â ´ÜÃàÅ°´Â C-c C-q·Î ½ÃÀÛÇÑ´Ù.

key binding description
M-q



4.6 À̵¿°ú ¿µ¿ª ¼±ÅÃ


¿µ¿ª ¼±ÅÃ: C-c * ´ÜÃàÅ°´Â ÇöÀç Ä¿¼­°¡ À§Ä¡ÇÑ ÀåÀýÀ», C-c .Àº ÇöÀç Ä¿¼­°¡ À§Ä¡ÇÑ È¯°æÀ» ¼±ÅÃÇÏ´Â µ¥ »ç¿ëÇÑ´Ù.

key binding description
C-c * LaTeX-mark-section
C-c . LaTeX-environment

C-c } ´ÜÃàÅ°¸¦ ´©¸£¸é ÇöÀç Ä¿¼­°¡ À§Ä¡¸¦ Æ÷ÇÔÇÏ°í Àִ ¦ÀÌ ¸Â´Â }·Î À̵¿ÇÑ´Ù.

key binding description
C-c }

AUCTeX¿¡¼­ Á¦°øÇÏ´Â ´ÜÃàÅ°´Â ¾Æ´ÏÁö¸¸, C-M-a·Î ÇöÀç ȯ°æÀÇ \beginÀ¸·Î C-M-e·Î \end·Î À̵¿ÇÒ ¼ö ÀÖ´Ù.

key binding description
C-M-a beginning of defun
C-M-e end of defun

4.7 Á¢±â


¿©·¯°¡Áö ¸í·É, ȯ°æ, ÁÖ¼® µîÀ» º¸ÀÌÁö ¾Ê°Ô Á¢À¸¸é º»¹®¿¡ ´õ ÁýÁßÇؼ­ ÆíÁýÇÒ ¼ö ÀÖ´Ù. °ü·Ã ´ÜÃàÅ°´Â C-c C-o·Î ½ÃÀÛÇÑ´Ù. C-c C-o C-f ´ÜÃàÅ°·Î TeX-fold-mode¸¦ ÄÓ ¼ö ÀÖ´Ù.

key binding description
C-c C-o C-f TeX-fold-mode

ÇöÀç Ä¿¼­°¡ À§Ä¡ÇÑ ºÎºÐÀÇ ¸ÅÅ©·Î, ȯ°æ, ÁÖ¼®À» Á¢°í Æì·Á¸é C-c C-o C-o ´ÜÃàÅ°¸¦ ÀÌ¿ëÇÑ´Ù. »óȲ¿¡ µû¶ó ÀûÀýÇÏ°Ô ÀÛµ¿ÇÑ´Ù.

key binding description
C-c C-o C-o TeX-fold-dwim

ȯ°æÀº C-e, ¸ÅÅ©·Î´Â C-m·Î Á¢À» ¼ö ÀÖ´Ù. ÇöÀç ¹öÆÛ Àüü¿¡¼­ Á¢À» ¼ö ÀÖ´Â ¸ðµç °ÍÀ» Á¢À¸·Á¸é C-b, ¼±Åà ¿µ¿ª¿¡¼­´Â C-r, ÇöÀç ´Ü¶ô¿¡¼­´Â C-p¸¦ »ç¿ëÇÑ´Ù.

key binding description
C-c C-o C-e TeX-fold-environment
C-c C-o C-m TeX-fold-macro
C-c C-o C-b TeX-fold-buffer
C-c C-o C-r TeX-fold-region
C-c C-o C-p TeX-fold-paragraph

Á¢Èù ºÎºÐÀº ȯ°æÀ̶ó¸é ¿¹¸¦ µé¾î, verbatim ½ÄÀ¸·Î ³ªÅ¸³­´Ù. ÀÌ À§Ä¡·Î Ä¿¼­¸¦ À̵¿Çϸé ÀÚµ¿À¸·Î ÆìÁø´Ù. ¸¸¾à¿¡ ƯÁ¤ ºÎºÐÀ» Ç×»ó Æì³õ°í ½ÍÀ¸¸é i¸¦ ÀÌ¿ëÇÑ´Ù. ÇöÀç ¹öÆÛ Àüü¿¡¼­ ¸ðµç °ÍÀ» ÆîÄ¡·Á¸é b, ¿µ¿ª¿¡¼­´Â r, ´Ü¶ô¿¡¼­´Â p¸¦ »ç¿ëÇÑ´Ù.

key binding description
C-c C-o i TeX-fold-clearout-item
C-c C-o b TeX-fold-clearout-buffer
C-c C-o r TeX-fold-clearout-region
C-c C-o p TeX-fold-clearout-paragraph

4.8 µµ¿ò¸»


ÅØ¿¡ °ü·ÃµÈ ¸ÅÅ©·Î¿Í ÆÐÅ°Áö¿¡ °üÇÑ µµ¿ò¸»À» º¼ ¼ö ÀÖ´Ù.

key binding description
C-c ? TeX-doc

5 Tips

Q. TeX ÆÄÀÏÀ» À¯´Ð½º, ¸Æ, PC, µîÀ» »ç¿ëÇÏ´Â ¿©·¯ »ç¿ëÀÚ³¢¸® À̸ÞÀÏ·Î ÁÖ°í ¹Þ´Ù°¡ ¾û¸ÁÀÌ µÇ¾î ¹ö·È½À´Ï´Ù. ¿¹¸¦ µé¾î ÇÑÁÙÀÇ ±æÀÌ°¡ ¼ö¹éÀÚ¾¿ µÇ°í, µ¶¸³µÈ ÁÙ¿¡ ÀÖ´ø \begin{..} ¶Ç´Â \end{...} µîÀÌ ÇÑÁÙ·Î ´Ù ÇÕÃÄÁ® ÀÖ½À´Ï´Ù. TeXÀ» µ¹·Á dvi ÆÄÀÏÀ» ¾ò´Âµ¥¿¡´Â ¾Æ¹«·± ÁöÀåÀÌ ¾øÁö¸¸, ¿øº»ÀÇ ¼öÁ¤ ÀÛ¾÷ÀÌ Èûµì´Ï´Ù. ÀÌ·¸°Ô µÈ ÆÄÀÏÀ» ¿¹»Ú°Ô °íÃÄ ÁÖ´Â ÇÁ·Î±×·¥ÀÌ ÀÖÀ»±î¿ä? (from KTUGOperate:6526) A. AUCTeX¿¡¼­ Á¦°øÇÏ´Â Format Region, Format Paragraph¸¦ ½áº¸½Ã¸é ¾î¶³±î¿ä? ¿µ¿ªÀ» ¼±ÅÃÇÑ ´ÙÀ½ Format Region Çϰųª, M-q·Î Format ParagraphÇÏ¸é ¿ì¼± °¢ ÁÙÀ» Àû´çÇÑ ±æÀÌ·Î À߶óÁÙ °ÍÀÔ´Ï´Ù. ÀÌ°ÍÀ» ¸¶À½¿¡ µé°Ô ¹Ù²Ù½Ã¸é µÉ µíÇÕ´Ï´Ù.

5.1 ¼³Á¤

5.1.1 hermian

2006-06-30 update Áß _emacs NTEmacsÀÔ´Ï´Ù.
;;; =============================================================
;;; Korean Language Environment
;;; =============================================================
;; General korean langauge environment
;;(set-language-environment "Korean")
(set-default-coding-systems 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq coding-system-for-read 'utf-8)
;;; =============================================================
;;; Input Method
;;; =============================================================
;; C-SPC or C-\ for toggling input method.
;; F9 for switching with hanja input, C-F9 for switching with symbol input
;;    in Korean input method.
;; C-U C-SPC or C-U C-\ for other input method.
;; For Multilingual Input Method Package installed on Windows 95/NT
;; If your default keyboard type is 3 bulsik, uncomment following line.
;; (setq default-korean-keyboard "3")

;; Redefinition from `toggle-korean-input-method ' to `toggle-input-method'
;;(global-set-key [?\S- ] 'toggle-input-method)

;; Selection of major korean input method determines Korean keyboard type.
;; Verbose mode of hangul input method is needless for most Korean users.
(add-hook
 'input-method-activate-hook
 (function (lambda ()
             (cond ((string= current-input-method "korean-hangul")
                    (setq default-korean-keyboard ""
                          input-method-verbose-flag nil
                          input-method-highlight-flag nil))
                   ((string= current-input-method "korean-hangul3")
                    (setq default-korean-keyboard "3"
                          input-method-verbose-flag nil
                          input-method-highlight-flag nil))))))
;; (add-hook
;;  'input-method-inactivate-hook
;;  (function (lambda ()
;;              (if (or (string= current-input-method "korean-hangul")
;;                      (string= current-input-method "korean-hangul3"))
;;                  (setq input-method-verbose-flag 'default
;;                        input-method-highlight-flag t)))))

;;===========================================================
;; AUCTeX Setting
;;===========================================================
(setq TeX-auto-save t)
(setq TeX-parse-self t)
;; If use \include or \input, for multi-file document.
(setq-default TeX-master nil)
;(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
;(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)

;;settings for bib-cite.el
;;**************************
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(autoload 'turn-on-bib-cite "bib-cite")
;(add-hook 'LaTeX-mode-hook 'turn-on-bib-cite)

;;(when (eq system-type 'windows-nt)
;; (require 'tex-mik))
(add-hook 'LaTeX-mode-hook
  (function
    (lambda ()
      ;; bib-cite
      (turn-on-auto-fill)
      (turn-on-reftex)
      (turn-on-bib-cite)
      (outline-minor-mode)
      (TeX-source-specials-mode 1)
      ;; PDFÆÄÀÏÀÌ ÀÖÀ¸¸é emacs°¡ ÀÚµ¿À¸·Î PDF mode¸¦ onÇؼ­
      ;; pdflatex·Î ÄÄÆÄÀÏÇÏ°Ô µÈ´Ù. ÀÌ°ÍÀ» disalbeÇÑ´Ù.
      ;; Á¦´ë·Î µ¿ÀÛÇÏÁö ¾Ê´Â´Ù.
      ;; 2006-07-01
      ;; ÆÄÀÏ Local Variables¿¡ TeX-PDF-mode: nilÀ» Ãß°¡ÇÑ´Ù.
      (TeX-PDF-mode nil)
      (add-to-list 'TeX-expand-list '("%a" file "pdf" t))
      
      ;; (add-to-list 'TeX-command-list
      ;;        (list "LaTeX" "latex --src-specials \\nonstopmode\\input{%s}"
      ;;              'TeX-run-LaTeX nil t))
      (add-to-list 'TeX-command-list
             (list "TeXify" "texify --src %t" 'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "Ghostview" "C:\\PROGRA~1\\Ghostgum\\gsview\\gsview32.exe %f"
                         'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "dviPS" "dvips %d -o %f"
                         'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "dvipdfm" "dvipdfmx %d" 'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "Index" "makeindex %s" 'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "dviPS-landscape" "dvips %d -t landscape -o %f" 'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "Check" "lacheck %s" 'TeX-run-compile nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "GS PDFView" "C:\\gs\\Ghostgum\\gsview\\gsview32.exe %a" 'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "Acrobat" "C:\\PROGRA~1\\Adobe\\ACROBA~2.0\\Reader\\AcroRd32.exe %a" 'TeX-run-command nil t))
      ;;(list "Acrobat" "AcroRd32.exe %a" 'TeX-run-command nil t)
      (add-to-list 'TeX-command-list
                   (list "Foxit" "C:\\PROGRA~1\\FOXITS~1\\FOXITR~1\\FOXITR~1.EXE %a" 'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "DVIPDFMx" "dvipdfmx %d" 'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "dh-Index" "makeindex-dhucs -s dhucs %s" 'TeX-run-command nil t))
      ;; (add-to-list 'TeX-command-list
      ;;              (list "DVISearch" "yap.exe -1 -s %n%b %d" 'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "DVISearch" "c:\\TeX\\dviout\\dviout.exe -1 %d # %n %b" 'TeX-run-command nil t))
      (add-to-list 'TeX-command-list
                   (list "DviOut" "c:\\TeX\\dviout\\dviout.exe %d"
                         'TeX-run-command nil t))

      ;;; key-binding
      (define-key LaTeX-mode-map [f9] 'do-LaTeX)
      (define-key LaTeX-mode-map [f10] 'do-DVISearch)
      (define-key LaTeX-mode-map [f11] 'do-DVIPDFMx)
      )))

(defun do-LaTeX ()
  "LaTeX the curent file."
  (interactive)
  (TeX-command "LaTeX" 'TeX-master-file))
(defun do-DVISearch ()
  "Forward search LaTeX the current file position."
  (interactive)
  (TeX-command "DVISearch" 'TeX-master-file))
(defun do-DVIPDFMx ()
  "Running DVIPDFMx"
  (interactive)
  (TeX-command "DVIPDFMx" 'TeX-master-file))


^
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-05-17 00:53:26
Processing time 0.0961 sec