2006-11-30 13:49:24 -08:00
|
|
|
# -%- strip: false -%-
|
2006-08-31 08:21:39 -07:00
|
|
|
[tool]
|
|
|
|
id = ShellCommand
|
|
|
|
name = _Shell Command
|
|
|
|
os = unix
|
|
|
|
type = moo-script
|
|
|
|
options = need-doc
|
2006-11-30 13:49:24 -08:00
|
|
|
cmd = HistoryEntry("", "ShellCommand");
|
|
|
|
if cmd then
|
|
|
|
Insert(Exec(cmd), "\n");
|
|
|
|
fi;
|
2006-08-31 08:21:39 -07:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id = SortLines
|
2006-11-30 13:49:24 -08:00
|
|
|
name = Sort Lines
|
2006-08-31 08:21:39 -07:00
|
|
|
type = exe
|
|
|
|
options = need-doc
|
|
|
|
input = lines
|
|
|
|
output = insert
|
2006-11-30 13:49:24 -08:00
|
|
|
sort
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Yacc
|
|
|
|
langs=yacc
|
|
|
|
type=exe
|
|
|
|
name=Bison
|
|
|
|
filter=bison
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
bison $DOC
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=LaTeX
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=LaTeX
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
accel=<shift><ctrl>L
|
|
|
|
latex --src-specials $DOC
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Make_PDF
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=Make PDF
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
latex --src-specials $DOC &&
|
|
|
|
dvips $DOC_BASE.dvi &&
|
|
|
|
ps2pdf $DOC_BASE.ps
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Bibtex
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=Bibtex
|
|
|
|
options=need-doc
|
|
|
|
output=pane
|
|
|
|
accel=<shift><ctrl>B
|
|
|
|
bibtex $DOC_BASE
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=PdfLaTeX
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=PdfLaTeX
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
pdflatex $DOC
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=View_DVI
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=View DVI
|
|
|
|
options=need-doc
|
|
|
|
output=async
|
|
|
|
accel=<shift><ctrl>V
|
|
|
|
kdvi --unique $DOC_BASE.dvi &&
|
|
|
|
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide &&
|
|
|
|
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=View_PDF
|
|
|
|
langs=latex
|
|
|
|
type=exe
|
|
|
|
name=View PDF
|
|
|
|
options=need-doc
|
|
|
|
output=async
|
|
|
|
kpdf=`dcopfind -a 'kpdf-*'`
|
|
|
|
if [ -z "$kpdf"]; then
|
|
|
|
kpdf $DOC_BASE.pdf
|
|
|
|
kpdf=`dcopfind -a 'kpdf-*'`
|
|
|
|
else
|
|
|
|
dcop "$kpdf" kpdf openDocument "$DOC_DIR/$DOC_BASE.pdf"
|
|
|
|
fi
|
|
|
|
dcop "$kpdf" kpdf-mainwindow#1 hide
|
|
|
|
dcop "$kpdf" kpdf-mainwindow#1 show
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Math
|
|
|
|
langs=latex
|
|
|
|
type=moo-script
|
|
|
|
name=Math
|
|
|
|
options=need-doc
|
|
|
|
accel=<alt>M
|
|
|
|
selection = Selection();
|
|
|
|
if selection then
|
|
|
|
Insert('$' + selection + '$');
|
|
|
|
else
|
|
|
|
Insert('$ $');
|
|
|
|
Left();
|
|
|
|
Select(-1);
|
|
|
|
fi;
|