2007-11-27 02:08:47 -06:00
|
|
|
# -%- strip: false; indent-width: 2 -%-
|
2007-09-02 15:40:07 -05:00
|
|
|
#[tool]
|
|
|
|
#id = ShellCommand
|
|
|
|
#name = _Shell Command
|
|
|
|
#os = unix
|
|
|
|
#type = moo-script
|
|
|
|
#options = need-doc
|
|
|
|
# cmd = HistoryEntry("", "ShellCommand");
|
|
|
|
# if cmd then
|
|
|
|
# Insert(Exec(cmd), "\n");
|
|
|
|
# fi;
|
2006-08-31 10:21:39 -05:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id = SortLines
|
2006-11-30 15:49:24 -06:00
|
|
|
name = Sort Lines
|
2006-08-31 10:21:39 -05:00
|
|
|
type = exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os = unix
|
2006-08-31 10:21:39 -05:00
|
|
|
options = need-doc
|
|
|
|
input = lines
|
|
|
|
output = insert
|
2006-11-30 15:49:24 -06:00
|
|
|
sort
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Yacc
|
|
|
|
langs=yacc
|
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=Bison
|
|
|
|
filter=bison
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
bison $DOC
|
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=LaTeX
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=LaTeX
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
|
|
|
accel=<shift><ctrl>L
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
latex --src-specials "$doc"
|
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Make_PDF
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=Make PDF
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
doc_base=`basename "$doc" .tex`
|
|
|
|
latex --src-specials "$doc" && \
|
|
|
|
dvips "$doc_base.dvi" && \
|
|
|
|
ps2pdf "$doc_base.ps"
|
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=Bibtex
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=Bibtex
|
|
|
|
options=need-doc
|
|
|
|
output=pane
|
|
|
|
accel=<shift><ctrl>B
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
doc_base=`basename "$doc" .tex`
|
|
|
|
bibtex "$doc_base"
|
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=PdfLaTeX
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=PdfLaTeX
|
|
|
|
filter=latex
|
|
|
|
options=need-save
|
|
|
|
output=pane
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
pdflatex "$doc"
|
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=View_DVI
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=View DVI
|
|
|
|
options=need-doc
|
|
|
|
output=async
|
|
|
|
accel=<shift><ctrl>V
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
doc_base=`basename "$doc" .tex`
|
|
|
|
if (which kdvi > /dev/null); then
|
|
|
|
kdvi --unique "$doc_base.dvi" && \
|
|
|
|
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 hide && \
|
|
|
|
dcop `dcopfind -a 'kviewshell-*'` kdvi-mainwindow#1 show
|
|
|
|
else
|
|
|
|
xdg-open "$doc_base.dvi"
|
|
|
|
fi
|
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=View_PDF
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2006-11-30 15:49:24 -06:00
|
|
|
type=exe
|
2007-09-02 15:40:07 -05:00
|
|
|
os=unix
|
2006-11-30 15:49:24 -06:00
|
|
|
name=View PDF
|
|
|
|
options=need-doc
|
|
|
|
output=async
|
2007-11-27 02:08:47 -06:00
|
|
|
[ -f medit-env.sh ] && . medit-env.sh
|
|
|
|
doc="${LATEX_MASTER:-$DOC}"
|
|
|
|
doc_base=`basename "$doc" .tex`
|
|
|
|
if (which kpdf > /dev/null); then
|
2006-11-30 15:49:24 -06:00
|
|
|
kpdf=`dcopfind -a 'kpdf-*'`
|
2007-11-27 02:08:47 -06:00
|
|
|
if [ -z "$kpdf" ]; then
|
|
|
|
kpdf "$doc_base.pdf"
|
|
|
|
kpdf=`dcopfind -a 'kpdf-*'`
|
|
|
|
else
|
|
|
|
dcop "$kpdf" kpdf openDocument "$doc_base.pdf"
|
|
|
|
fi
|
|
|
|
dcop "$kpdf" kpdf-mainwindow#1 hide
|
|
|
|
dcop "$kpdf" kpdf-mainwindow#1 show
|
2006-11-30 15:49:24 -06:00
|
|
|
else
|
2007-11-27 02:08:47 -06:00
|
|
|
xdg-open "$doc_base.pdf"
|
2006-11-30 15:49:24 -06:00
|
|
|
fi
|
2007-11-27 02:08:47 -06:00
|
|
|
|
2006-11-30 15:49:24 -06:00
|
|
|
|
2007-09-03 14:53:38 -05:00
|
|
|
[tool]
|
|
|
|
id=Math
|
2007-11-27 02:08:47 -06:00
|
|
|
file-filter=*.tex
|
2007-09-03 14:53:38 -05:00
|
|
|
type=lua
|
|
|
|
name=Math
|
|
|
|
options=need-doc
|
|
|
|
accel=<alt>M
|
2007-09-05 11:17:35 -05:00
|
|
|
selection = Selection()
|
2007-09-03 14:53:38 -05:00
|
|
|
if selection then
|
2007-09-05 11:17:35 -05:00
|
|
|
Insert("$", selection, "$")
|
2007-09-03 14:53:38 -05:00
|
|
|
else
|
2007-09-05 11:17:35 -05:00
|
|
|
Insert("$ $")
|
|
|
|
Left()
|
|
|
|
Select(-1)
|
2007-09-03 14:53:38 -05:00
|
|
|
end
|
2007-11-26 02:45:23 -06:00
|
|
|
|
|
|
|
[tool]
|
|
|
|
id=InsertDateAndTime
|
|
|
|
type=python
|
|
|
|
name=Insert Date and Time
|
|
|
|
options=need-doc
|
|
|
|
# insert_date_and_time.py is installed in
|
|
|
|
# $prefix/lib/moo/plugins/lib
|
|
|
|
from insert_date_and_time import get_format
|
|
|
|
import time
|
|
|
|
|
|
|
|
fmt = get_format(window)
|
|
|
|
if fmt is not None:
|
|
|
|
buffer.insert_at_cursor(time.strftime(fmt))
|
|
|
|
|