KTUGFaq

KTUG FAQ

AUCTeX (rev. 1.20)

α:
йȣ:
Take care of the luxuries and the necessities will take care of themselves.
占쏙옙화占쏙옙호IgoPackageKoTeXLive&value=KC2007/óEUC-KR&value=ŬͽŸMSGulim&value=MSGulim › 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 ġ



[]

3


AUCTeX ⺻ Ϸ ~/.emacs Ͽ ߰ϴ . ڼ Ʒ Tips .
(setq-default TeX-master nil)
(setq TeX-auto-save t)
(setq TeX-parse-self t)

[]

4 Ű


  • C-c C-c compile
  • C-c C-r compile region
  • C-c C-b compile buffer

Է
  • C-c C-e insert environment
  • C-c C-m insert macro
  • C-c C-f font

ּ
  • C-c ; comment region
  • C-c % comment paragraph


[]

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.0537 sec