LaTeX 문서를 컴파일할 때 매번 C-c C-c 하다보면 새끼손가락이 아파져서 바꿔보았다. key binding 은 visual studio의 build key binding인 control+shift+b로 하였다. AucTeX의 기본 key binding은 auctex 설치 폴더내의 tex.el 파일에 정의되어있기 때문에 다른 key binding이 필요하면 이 파일을 참조하면 된다.
LaTeX mode에 있을 때만 key binding을 정해주고 싶어서 local set key를 이용하였다. C-c C-c key binding은 TeX-command-master 를 의미하므로 아래와 같이 정의해주면 된다.
(add-hook 'LaTeX-mode-hook
(lambda ()
(local-set-key [(control shift b)] 'TeX-command-master)
))
P.S.
I have no idea of the reason, but above key binding does not work with putty. So, I modified the binding for the putty as follows,
(add-hook 'LaTeX-mode-hook
(lambda ()
(local-set-key [(control meta b)] 'TeX-command-master)
))
Therefore, now the keybinding is ctrl+alt+b.
LaTeX mode에 있을 때만 key binding을 정해주고 싶어서 local set key를 이용하였다. C-c C-c key binding은 TeX-command-master 를 의미하므로 아래와 같이 정의해주면 된다.
(add-hook 'LaTeX-mode-hook
(lambda ()
(local-set-key [(control shift b)] 'TeX-command-master)
))
P.S.
I have no idea of the reason, but above key binding does not work with putty. So, I modified the binding for the putty as follows,
(add-hook 'LaTeX-mode-hook
(lambda ()
(local-set-key [(control meta b)] 'TeX-command-master)
))
Therefore, now the keybinding is ctrl+alt+b.
'공부 > LaTeX' 카테고리의 다른 글
| Get Jabref work with emacs-23.x (0) | 2011/12/31 |
|---|---|
| \makeatletter 와 \makeatother 명령의 의미 (0) | 2011/12/23 |
| AucTeX key binding 바꾸기 (0) | 2011/08/12 |
| LaTeX에서 Laplace, Fourier transform symbol 식자하기 (2) | 2011/01/11 |
