KTUGFaq

KTUG FAQ

α:
йȣ:
Many pages make a thick book.
?독후감&value=MiKTeXѱȯ › KC2007/���ġ&value=Yhchoe/HelpOnFormattingHomepageTemplateKTSYap/���&value=PDF › AUCTeX

r1.29

@@ -35,7 +35,10 @@

== ġ ==

debian/ubuntu
{{{
$ sudo apt-get install auctex
}}}
== ==

AUCTeX ⺻ Ϸ `~/.emacs` Ͽ
@@ -56,11 +59,11 @@
ִ. ⺻ DVI ۵Ͽ `latex` ϰ xdvi ¹ ش. `pdflatex` ϰ `xpdf` `C-c C-t C-p` Ű ̿ؼ PDF ȯϸ
ȴ. ̿ܿ ٸ 鵵 ִ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-c compile ` ||<(> `TeX-command-master` ||<(> ||
* ||<(> `C-c C-r compile __r__egion ` ||<(> `TeX-command-region` ||<(> ||
* ||<(> `C-c C-v __v__iew ` ||<(> `TeX-view` ||<(> view dvi/ps/pdf ||
* ||<(> `C-c C-t C-p ` ||<(> ||<(> toggle __P__DF mode
||

ϰ \input, \include
̿Ͽ ۼ ϴ `C-c C-b` Ű
@@ -68,41 +71,49 @@
־ Ѵ. `C-c _` Ű TeX-master
ִ. κп Եȴ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-b ` ||<(> ||<(> compile __b__uffer ||
* ||<(> `C-c _ ` ||<(> ||<(> set TeX-master ||


`C-c C-k` Ű ִ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-k ` ||<(> ||<(> __k__ill ||


=== Է ===

''' Է:''' `C-c C-s`, ȯ `C-c C-e`,
ũδ `C-c C-m `, ۲ø `C-c C-f` ̿Ͽ ϰ
Է ִ. Է Ǵ ̽ٸ
պκи Է ̿
ڵϼ ϴ.

||<tablewidth=100%> * C-c C-s insert __s__ectioning commands
* C-c C-e insert __e__nvironments
* C-c C-m insert __m__acros
* C-c C-f change the __f__ont
key ||<width=35%> binding ||<width=45%> description * C-c C-f C-b ||
* ||<(> `C-c C- f C s` ||<(> `LaTeX- i section` ||<(> ||
* ||<(> `C-c C-f C-e
* C ` ||<(> `LaTeX- c C-f C-s
environment` * C-c C-f C-r ||<(> ||
* ||<(> `C-c C- f C m` ||<(> `TeX- f
* C-c C-f C-t
* C-c C-f C-c
* C-c C-f C insert- d macro` ||<(> ||

ȯ濡 ۲ `C-c C- j f` ̾ ۲ÿ Ǵ Ű ٲ鼭
ڵ `\item` Ǵ `\item[]` Է ִ. ش
۲ ִ. ۲ø
ַ `C-c C-f C-d` Ű ̿.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> 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[]` Էµȴ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-j` ||<(> ||<(> insert `\item` ||

TeX-parse-self TeX-auto-save
ѳ ڽ ũ, \ref Ű 
@@ -110,8 +121,8 @@
ʾ 쿡 `C-c C-n` Ű ̿Ͽ Ͽ
Ľ ϸ ̿ ִ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-n
` ||<(> ||<(> ||

=== ===

@@ -120,8 +131,8 @@
ȣ Է ִ. , `a
\alpha{} Էµȴ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c ~
` ||<(> `LaTeX-math-mode` || ||

=== ּ ===

@@ -130,12 +141,85 @@
ġ ܶ ּ óȴ. ּ ó κп ̵ Ű
ּ ȴ.

||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c ; ` ||<(> ||<(> comment region ||
* ||<(> `C-c % ` ||<(> ||<(> comment paragraph ||
||<(> `C-c '` ||<(> ||<(> comment paragraph ||
||<(> `C-c "` ||<(> ||<(> uncomment paragraph ||

=== ҽ ===

鿩 ٹٲ ҽ ϴ Ű `C-c C-q` Ѵ.
||<tablewidth=100%> * key ||<width=35%> binding ||<width=45%> description ||
||<(> `M-q ` ||<(> ||<(> ||
=== ̵ ===
''' :''' `C-c *` Ű Ŀ ġ , `C-c .`
Ŀ ġ ȯ ϴ Ѵ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c *` ||<(> `LaTeX-mark-section` ||<(> ||
||<(> `C-c .` ||<(> `LaTeX-environment` ||<(> ||
`C-c }` Ű Ŀ ġ ϰ ִ ¦ ´
`}` ̵Ѵ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c }` ||<(> ||<(> ||
AUCTeX ϴ Ű ƴ, `C-M-a` ȯ \begin
`C-M-e` \end ̵ ִ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-M-a` ||<(> ||<(> beginning of defun ||
||<(> `C-M-e` ||<(> ||<(> end of defun ||
=== ===
, ȯ, ּ ʰ ؼ
ִ. Ű `C-c C-o` Ѵ. `C-c C-o C-f`
Ű TeX-fold-mode ִ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-o C-f` ||<(> `TeX-fold-mode` ||<(> ||
Ŀ ġ κ ũ, ȯ, ּ `C-c C-o C-o`
Ű ̿Ѵ. Ȳ ϰ ۵Ѵ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c C-o C-o` ||<(> `TeX-fold-dwim` ||<(> ||
ȯ `C-e`, ũδ `C-m` ִ. ü
ִ `C-b`, `C-r`,
ܶ `C-p` Ѵ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> 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` Ѵ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> 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` ||<(> ||
=== ===
ؿ õ ũο Ű ִ.
||<tablewidth=100%> key ||<width=35%> binding ||<width=45%> description ||
||<(> `C-c ?` ||<(> `TeX-doc` ||<(> ||
== Tips ==
'''Q.''' ''TeX н, , PC, ϴ ڳ ̸Ϸ ְ ޴ٰ Ǿ Ƚϴ. ̰ ھ ǰ, ٿ ִ \begin{..} Ǵ \end{...} ٷ ֽϴ. TeX dvi µ ƹ , ۾ ϴ. ̷ ڰ ִ α׷ ?'' (from KTUGOperate:6526'''''')
'''A.''' AUCTeX ϴ Format Region, Format Paragraph Ẹø ? Format Region ϰų, M-q Format Paragraphϸ 켱 ̷ ߶ Դϴ. ̰ ٲٽø մϴ.




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