Friday, February 7, 2014

適当に以下のようなスクリプトを書いてみた ( setq aspell-origlists-raw ( car ispell-tex-skip-alists alcohol 120 )) ( setq

Emacs でスペルチェックのときに tex のコマンドをチェックしない方法 - どせいけいさんき
特定のコマンドをスペルチェックから除外する方法 alcohol 120 とあるクラスファイルを使っている場合 そこで定義されている独自のコマンド (\citep, \citet, \author, \affiliate, 等) を使うことが多い そういったばあいは aspell の除外リストから漏れているので自分でカスタマイズしないとスペルチェックから除外できない 追記 \citep{hogehoge} の hogehoge をスペルチェックから除外するための設定です
どうやら ispell- tex -skip-alists という変数をいじればいいらしい ispell-tex-skip-alists is a variable defined in `C source code'. alcohol 120 Its value is shown below. Documentation: *Lists of regions to be skipped in TeX mode. First list is used raw. Second list has key placed inside \begin{}. Delete or add any regions you want to be automatically selected for skipping in latex mode.
適当に以下のようなスクリプトを書いてみた ( setq aspell-origlists-raw ( car ispell-tex-skip-alists alcohol 120 )) ( setq aspell-origlists-env ( car ( cdr ispell-tex-skip-alists ))) ( setq aspell-appendlists-raw ( list '( "\\\\cite[tp]?" ispell-tex-arg-end ) '( "\\\\bibitem\\[.*\\]" ispell-tex-arg-end ) '( "\\\\includegraphics" ispell-tex-arg-end ) '( "\\\\plotone" ispell-tex-arg-end ) '( "\\\\plottwo" ispell-tex-arg-end ) '( "\\\\\\(short\\)?authors?" ispell-tex-arg-end ) '( "\\\\affil\\(iate\\)?" alcohol 120 ispell-tex-arg-end ) '( "\\\\bibliographystyle" ispell-tex-arg-end ) '( "\\ifx" . "\\fi" ) )) ( setq aspell-appendlists-env ( list '( "tabular" ispell-tex-arg-end alcohol 120 ) )) ( append aspell-appendlists-raw aspell-origlists-raw ) ( append aspell-appendlists-env aspell-origlists-env ) ( setq ispell-tex-skip-alists ( list aspell-appendlists-raw aspell-appendlists-env ))
~/.gitconfig の alias で git tree を定義する terminal で git log をツリー表示 LaTeX の deluxetable で label が多重に定義されるのを防ぐハック gnash で swf ファイルからイメージを抜き出す alcohol 120 xsetwacom でタブレット (Bamboo Pen CTL-470) の設定をする DHCP で IP アドレスが取得できなくなるときがある 未解決
Hatena Blog / Hatena::Diary

No comments:

Post a Comment