TeXのシンボルを探すコマンドをでっち上げた。
% cat ~/bin/texref.sh
#!/bin/sh
if [ 'x' == 'x$1' ]
then
echo "Need argument."
exit
else
echo "Seacrhing $1"
fi
locate -r '\b\(latex\|plain\|jsclasses\)\.\(dtx\|tex\|ltx\)\b' \
| xargs grep --color=always -C 10 "\(\\def\|\\newcommand\)[{\\]*$1"
こんな感じ。
% texref.sh addvspace | lv -c
...
.../latex.ltx:\def\addvspace#1{
...
%
もっとましな方法を知りたい。
Other Articles
- 12 May 2011 : onlispja ebook
- 07 May 2011 : 文字校正用ユーティリティ
- 28 Apr 2011 : htdigest設定支援スクリプト
- 15 Apr 2011 : HudsonからJenkinsへの移行
- 11 Apr 2011 : Emacs Lispでert.elを使ってユニットテスト
- 25 Mar 2011 : Jenkins導入
- 11 Mar 2011 : 地震 / Earthquake in Japan