summaryrefslogtreecommitdiff
path: root/support/mewltx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/mewltx
Initial commit
Diffstat (limited to 'support/mewltx')
-rw-r--r--support/mewltx/article.bt12
-rw-r--r--support/mewltx/article.lt4
-rw-r--r--support/mewltx/bibtex.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/book.bt15
-rw-r--r--support/mewltx/booklet.bt10
-rw-r--r--support/mewltx/btemp.lh7
-rw-r--r--support/mewltx/charset.dvibin0 -> 14088 bytes
-rw-r--r--support/mewltx/charset.tex544
-rw-r--r--support/mewltx/dosbox.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/dosexec.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/dvi2ps.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/environ.lh13
-rw-r--r--support/mewltx/greek.lh14
-rw-r--r--support/mewltx/gs.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/headings.lh4
-rw-r--r--support/mewltx/inbook.bt19
-rw-r--r--support/mewltx/incollec.bt15
-rw-r--r--support/mewltx/inprocee.bt15
-rw-r--r--support/mewltx/interfac.hlpbin0 -> 9756 bytes
-rw-r--r--support/mewltx/interfac.hpj12
-rw-r--r--support/mewltx/interfac.lh167
-rw-r--r--support/mewltx/interfac.rtf135
-rw-r--r--support/mewltx/interfac.txt217
-rw-r--r--support/mewltx/latex.cmd1329
-rw-r--r--support/mewltx/latex.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/letter.lt10
-rw-r--r--support/mewltx/ltemp.lh4
-rw-r--r--support/mewltx/maccents.lh6
-rw-r--r--support/mewltx/makeindx.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/manual.bt11
-rw-r--r--support/mewltx/marrow.lh23
-rw-r--r--support/mewltx/masterst.bt10
-rw-r--r--support/mewltx/mbinops.lh11
-rw-r--r--support/mewltx/mdelim.lh10
-rw-r--r--support/mewltx/menu.txt106
-rw-r--r--support/mewltx/mewlatex.txt166
-rw-r--r--support/mewltx/misc.bt9
-rw-r--r--support/mewltx/misc.lh24
-rw-r--r--support/mewltx/mline.lh6
-rw-r--r--support/mewltx/mloglike.lh10
-rw-r--r--support/mewltx/mmisc.lh14
-rw-r--r--support/mewltx/mrel.lh13
-rw-r--r--support/mewltx/mvarsym.lh7
-rw-r--r--support/mewltx/phdthesi.bt10
-rw-r--r--support/mewltx/postscri.lt5
-rw-r--r--support/mewltx/proceedi.bt12
-rw-r--r--support/mewltx/readme.mwl7
-rw-r--r--support/mewltx/report.lt4
-rw-r--r--support/mewltx/revtex.lt67
-rw-r--r--support/mewltx/spell.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/taccents.lh7
-rw-r--r--support/mewltx/techrepo.bt11
-rw-r--r--support/mewltx/tex.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/texinfo.lh14
-rw-r--r--support/mewltx/texprint.pifbin0 -> 545 bytes
-rw-r--r--support/mewltx/tforeign.lh6
-rw-r--r--support/mewltx/tspecial.lh4
-rw-r--r--support/mewltx/unpublis.bt8
-rw-r--r--support/mewltx/usebibte.lt3
-rw-r--r--support/mewltx/wholelet.lt16
-rw-r--r--support/mewltx/xrename.bat3
61 files changed, 3149 insertions, 0 deletions
diff --git a/support/mewltx/article.bt b/support/mewltx/article.bt
new file mode 100644
index 0000000000..2989de38b4
--- /dev/null
+++ b/support/mewltx/article.bt
@@ -0,0 +1,12 @@
+@ARTICLE{,
+ author= "",
+ title= "",
+ journal= "",
+ volume= "",
+ number= "",
+ month= "",
+ pages= "",
+ year= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/article.lt b/support/mewltx/article.lt
new file mode 100644
index 0000000000..806837fa36
--- /dev/null
+++ b/support/mewltx/article.lt
@@ -0,0 +1,4 @@
+\documentstyle[12pt,a4]{article}
+\begin{document}
+
+\end{document}
diff --git a/support/mewltx/bibtex.pif b/support/mewltx/bibtex.pif
new file mode 100644
index 0000000000..63b34f7483
--- /dev/null
+++ b/support/mewltx/bibtex.pif
Binary files differ
diff --git a/support/mewltx/book.bt b/support/mewltx/book.bt
new file mode 100644
index 0000000000..7d22e91daa
--- /dev/null
+++ b/support/mewltx/book.bt
@@ -0,0 +1,15 @@
+@BOOK{,
+ author= "",
+%% OR "" %%
+ editor= "",
+ title= "",
+ publisher= "",
+ address= "",
+ year= "",
+ volume= "",
+ series= "",
+ edition= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/booklet.bt b/support/mewltx/booklet.bt
new file mode 100644
index 0000000000..eee701794d
--- /dev/null
+++ b/support/mewltx/booklet.bt
@@ -0,0 +1,10 @@
+@BOOKLET{,
+ author= "",
+ title= "",
+ howpublished= "",
+ address= "",
+ year= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/btemp.lh b/support/mewltx/btemp.lh
new file mode 100644
index 0000000000..417081736c
--- /dev/null
+++ b/support/mewltx/btemp.lh
@@ -0,0 +1,7 @@
+BibTeX templates.
+
+article book booklet inbook incollection
+inproceedings manual mastersthesis misc phdthesis
+proceedings techreport unpublished
+
+
diff --git a/support/mewltx/charset.dvi b/support/mewltx/charset.dvi
new file mode 100644
index 0000000000..87e03dfb9e
--- /dev/null
+++ b/support/mewltx/charset.dvi
Binary files differ
diff --git a/support/mewltx/charset.tex b/support/mewltx/charset.tex
new file mode 100644
index 0000000000..30657487d0
--- /dev/null
+++ b/support/mewltx/charset.tex
@@ -0,0 +1,544 @@
+% charset.tex January 11 1993
+%
+% This file is adapted from the file manend.tex
+% Version 3.0 of REVTeX, November 10, 1992.
+%
+% Note manual \newpage commands used to keep short pages for
+% easier on-screen viewing.
+
+\documentstyle[aps]{revtex}
+
+\def\btt#1{{\tt$\backslash$\string#1}}%
+
+% next line overrules aps style neutralization of \slantfrac
+\def\slantfrac#1#2{\kern1em^{#1}\kern-.3em/\kern-.1em_{#2}}
+
+\begin{document}
+
+%\appendix
+%\twocolumn
+\narrowtext
+
+\def\xxx{4pt}
+
+
+\subsubsection[Standard \protect\LaTeX{} symbols]{Standard LaTeX symbols}
+The following tables show the standard symbols for \LaTeX{} users.
+
+\begin{table}
+\caption{Text accents with letter a.}
+\begin{tabular}{c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}%
+ lc@{\hspace{\xxx}}l}
+\`{a} & \verb+\`{a}+&
+\'{a} & \verb+\'{a}+&
+\^{a} & \verb+\^{a}+&
+\"{a} & \verb+\"{a}+\\
+\~{a} & \verb+\~{a}+&
+\={a} & \verb+\={a}+&
+\.{a} & \verb+\.{a}+&
+\u{a} & \verb+\u{a}+\\
+\v{a} & \verb+\v{a}+&
+\H{a} & \verb+\H{a}+&
+\t{aa} & \verb+\t{aa}+&
+\c{a} & \verb+\c{a}+\\
+\d{a} & \verb+\d{a}+&
+\b{a} & \verb+\b{a}+
+\end{tabular}
+\end{table}
+
+
+\begin{table}
+\caption{Math accents with letter a.}
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$\hat{a}$ & \verb+\hat{a}+ &
+$\check{a}$ & \verb+\check{a}+ &
+ $\dot{a}$ & \verb+\dot{a}+ &
+ $\ddot{a}$ & \verb+\ddot{a}+ \\
+$\breve{a}$ & \verb+\breve{a}+ &
+ $\tilde{a}$ & \verb+\tilde{a}+ &
+ $\grave{a}$ & \verb+\grave{a}+ &
+ $\acute{a}$ & \verb+\acute{a}+ \\
+ $\bar{a}$ & \verb+\bar{a}+ &
+ $\vec{a}$ & \verb+\vec{a}+ &
+\end{tabular}
+\end{table}
+
+\newpage
+
+\begin{table}
+\caption{Special symbols; any mode.}
+\begin{tabular}{c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+\dag & \verb+\dag+& \S & \verb+\S+& \copyright & \verb+\copyright+\\
+\ddag & \verb+\ddag+& \P & \verb+\P+& \pounds & \verb+\pounds+\\
+\end{tabular}
+\end{table}
+
+
+
+
+\begin{table}
+\caption{Other special (foreign) symbols; text mode.}
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+ \aa & \verb+\aa+&
+ \AA & \verb+\AA+&
+\ae & \verb+\ae+&
+\AE & \verb+\AE+\\
+ \o & \verb+\o+&
+ \O & \verb+\O+&
+\oe & \verb+\oe+&
+\OE & \verb+\OE+\\
+ \l & \verb+\l+&
+ \L & \verb+\L+&
+ ?` & \verb+?`+&
+ !` & \verb+!`+\\
+ \ss & \verb+\ss+
+\end{tabular}
+\end{table}
+
+
+\newpage
+
+\begin{table}
+\caption{Greek letters; used in math mode.}
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+\multicolumn{8}{c}{\it Lowercase}\\
+$\alpha$ & \verb+\alpha+ &
+$\beta$ & \verb+\beta+ &
+$\gamma$ & \verb+\gamma+ &
+$\delta$ & \verb+\delta+\\
+$\epsilon$ & \verb+\epsilon+ &
+$\varepsilon$ & \verb+\varepsilon+ &
+$\zeta$ & \verb+\zeta+ &
+$\eta$ & \verb+\eta+ \\
+ $\theta$ & \verb+\theta+ &
+ $\vartheta$ & \verb+\vartheta+ &
+ $\iota$ & \verb+\iota+ &
+ $\kappa$ & \verb+\kappa+ \\
+ $\lambda$ & \verb+\lambda+ &
+ $\mu$ & \verb+\mu+ &
+ $\nu$ & \verb+\nu+ &
+ $\xi$ & \verb+\xi+\\
+ $o$ & \verb+o+ &
+ $\pi$ & \verb+\pi+ &
+ $\varpi$ & \verb+\varpi+ &
+ $\rho$ & \verb+\rho+ \\
+ $\varrho$ & \verb+\varrho+ &
+ $\sigma$ & \verb+\sigma+ &
+ $\varsigma$ & \verb+\varsigma+ &
+ $\tau$ & \verb+\tau+ \\
+ $\upsilon$ & \verb+\upsilon+ &
+ $\phi$ & \verb+\phi+ &
+ $\varphi$ & \verb+\varphi+ &
+ $\chi$ & \verb+\chi+ \\
+ $\psi$ & \verb+\psi+ &
+ $\omega$ & \verb+\omega+ &
+ \\[\baselineskip]
+\multicolumn{8}{c}{\it Uppercase}\\
+$\Gamma$ & \verb+\Gamma+ &
+$\Delta$ & \verb+\Delta+ &
+$\Theta$ & \verb+\Theta+ &
+ $\Lambda$ & \verb+\Lambda+\\
+ $\Xi$ & \verb+\Xi+ &
+ $\Pi$ & \verb+\Pi+ &
+ $\Sigma$ & \verb+\Sigma+ &
+ $\Upsilon$ & \verb+\Upsilon+ \\
+ $\Phi$ & \verb+\Phi+ &
+ $\Psi$ & \verb+\Psi+ &
+ $\Omega$ & \verb+\Omega+ &
+\end{tabular}
+\end{table}
+
+\newpage
+
+\begin{table}
+\caption{Binary operation symbols; used in math mode.}
+\def\xxx{3.2pt}
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$\pm$ & \verb+\pm+ &
+$\mp$ & \verb+\mp+ &
+$\times$ & \verb+\times+ &
+$\div$ & \verb+\div+ \\
+$\ast$ & \verb+\ast+ &
+$\star$ & \verb+\star+ &
+$\circ$ & \verb+\circ+ &
+$\bullet$ & \verb+\bullet+\\
+ $\cap$ & \verb+\cap+ &
+ $\cup$ & \verb+\cup+ &
+ $\uplus$ & \verb+\uplus+ &
+$\cdot$ & \verb+\cdot+ \\
+ $\sqcap$ & \verb+\sqcap+ &
+ $\sqcup$ & \verb+\sqcup+ &
+ $\vee$ & \verb+\vee+ &
+ $\wedge$ & \verb+\wedge+\\
+ $\oplus$ & \verb+\oplus+ &
+ $\ominus$ & \verb+\ominus+ &
+ $\otimes$ & \verb+\otimes+ &
+ $\oslash$ & \verb+\oslash+ \\
+$\bigtriangleup$ & \verb+\bigtriangleup+ &
+ $\odot$ & \verb+\odot+ &
+ $\lhd$ & \verb+\lhd+ &
+ $\dagger$ & \verb+\dagger+ \\
+$\bigtriangledown$ & \verb+\bigtriangledown+ &
+ $\bigcirc$ & \verb+\bigcirc+ &
+ $\rhd$ & \verb+\rhd+ &
+ $\ddagger$ & \verb+\ddagger+\\
+$\triangleleft$ & \verb+\triangleleft+ &
+ $\diamond$ & \verb+\diamond+ &
+ $\unlhd$ & \verb+\unlhd+ &
+ $\setminus$ & \verb+\setminus+\\
+$\triangleright$ & \verb+\triangleright+ &
+ $\wr$ & \verb+\wr+ &
+ $\unrhd$ & \verb+\unrhd+ &
+ $\amalg$ & \verb+\amalg+
+\end{tabular}
+\end{table}
+
+
+\newpage
+
+\begin{table}
+\caption{Relation symbols; used in math mode. }
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$\leq$ & \verb+\leq+ &
+ $\geq$ & \verb+\geq+ &
+$\ll$ & \verb+\ll+ &
+ $\gg$ & \verb+\gg+ \\
+ $\equiv$ & \verb+\equiv+ &
+ $\asymp$ & \verb+\asymp+ &
+ $\neq$ & \verb+\neq+ &
+ $\doteq$ & \verb+\doteq+ \\
+$\subset$ & \verb+\subset+ &
+ $\supset$ & \verb+\supset+ &
+$\subseteq$ & \verb+\subseteq+ &
+ $\supseteq$ & \verb+\supseteq+ \\
+$\sqsubset$ & \verb+\sqsubset+ &
+ $\sqsupset$ & \verb+\sqsupset+ &
+$\sqsubseteq$ & \verb+\sqsubseteq+ &
+ $\sqsupseteq$ & \verb+\sqsupseteq+\hidewidth \\
+ $\models$ & \verb+\models+ &
+ $\perp$ & \verb+\perp+ &
+ $\mid$ & \verb+\mid+ &
+ $\parallel$ & \verb+\parallel+ \\
+$\prec$ & \verb+\prec+ &
+ $\succ$ & \verb+\succ+ &
+$\preceq$ & \verb+\preceq+ &
+ $\succeq$ & \verb+\succeq+ \\
+ $\sim$ & \verb+\sim+ &
+ $\simeq$ & \verb+\simeq+ &
+ $\approx$ & \verb+\approx+ &
+ $\cong$ & \verb+\cong+ \\
+ $\bowtie$ & \verb+\bowtie+ &
+ $\Join$ & \verb+\Join+ &
+ $\smile$ & \verb+\smile+ &
+ $\frown$ & \verb+\frown+ \\
+$\in$ & \verb+\in+ &
+ $\ni$ & \verb+\ni+ &
+$\vdash$ & \verb+\vdash+ &
+ $\dashv$ & \verb+\dashv+ \\
+ $\propto$ & \verb+\propto+ &
+\end{tabular}
+%\end{table}
+
+ Negated relations can sometimes
+be constructed with \verb+\not+. For example,
+\[
+\hbox{\verb+If $x \not< y$ then $x \not\leq z$.+}
+\]
+gives
+\[
+\hbox{If $x \not< y$ then $x \not\leq z$.}
+\]
+
+\end{table}
+
+\newpage
+
+\begin{table}
+\caption{Arrow symbols; used in math mode.}
+\begin{tabular}{c@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$\leftarrow$ & \verb+\leftarrow+ &
+$\rightarrow$ & \verb+\rightarrow+ \\
+ $\longleftarrow$ & \verb+\longleftarrow+ &
+ $\longrightarrow$ & \verb+\longrightarrow+ \\
+$\Leftarrow$ & \verb+\Leftarrow+ &
+$\Rightarrow$ & \verb+\Rightarrow+ \\
+ $\Longleftarrow$ & \verb+\Longleftarrow+ &
+ $\Longrightarrow$ & \verb+\Longrightarrow+ \\
+$\hookleftarrow$ & \verb+\hookleftarrow+ & $\hookrightarrow$
+ & \verb+\hookrightarrow+ \\
+$\leftharpoonup$ & \verb+\leftharpoonup+ & $\rightharpoonup$
+ & \verb+\rightharpoonup+\\
+$\leftharpoondown$ & \verb+\leftharpoondown+ & $\rightharpoondown$
+ & \verb+\rightharpoondown+ \\
+$\rightleftharpoons$&\verb+\rightleftharpoons+&$\leadsto$&\verb+\leadsto+ \\
+$\leftrightarrow$ & \verb+\leftrightarrow+ & $\longleftrightarrow$
+ & \verb+\longleftrightarrow+ \\
+$\Leftrightarrow$ & \verb+\Leftrightarrow+ & $\Longleftrightarrow$
+ & \verb+\Longleftrightarrow+ \\
+$\mapsto$ & \verb+\mapsto+ & $\longmapsto$ & \verb+\longmapsto+ \\
+\multicolumn{4}{c}{%
+ \begin{tabular}{c@{\hspace{\xxx}}l}
+ $\uparrow$ & \btt{uparrow}\\
+ $\downarrow$ & \btt{downarrow} \\
+ $\Uparrow$ & \btt{Uparrow}\\
+ $\Downarrow$ & \btt{Downarrow}\\
+ $\updownarrow$ & \btt{updownarrow}\\
+ $\Updownarrow$ & \btt{Updownarrow}\\
+ $\nearrow$ & \btt{nearrow}\\
+ $\searrow$ & \btt{searrow}\\
+ $\swarrow$ & \btt{swarrow}\\
+ $\nwarrow$ & \btt{nwarrow}
+ \end{tabular}%
+} % end of multicolumn
+%
+\end{tabular}
+\end{table}
+
+
+
+\newpage
+
+\begin{table}
+\caption{Miscellaneous symbols; used in math mode.}
+\begin{tabular}%
+ {c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+ $\flat$ & \verb+\flat+ &
+ $\natural$ & \verb+\natural+ &
+ $\sharp$ & \verb+\sharp+ &
+ $\prime$ & \verb+\prime+ \\
+ $\backslash$ & \verb+\backslash+ &
+ $\forall$ & \verb+\forall+ &
+ $\infty$ & \verb+\infty+ &
+ $\exists$ & \verb+\exists+\\
+ $\emptyset$ & \verb+\emptyset+ &
+ $\Box$ & \verb+\Box+ &
+ $\nabla$ & \verb+\nabla+ &
+ $\neg$ & \verb+\neg+ \\
+ $\Diamond$ & \verb+\Diamond+ &
+ $\surd$ & \verb+\surd+ &
+ $\triangle$ & \verb+\triangle+&
+ $\|$ & \verb+\|+ \\
+ $\clubsuit$ & \verb+\clubsuit+ &
+$\aleph$ & \verb+\aleph+ &
+$\wp$ & \verb+\wp+ &
+ $\top$ & \verb+\top+\\
+ $\diamondsuit$ & \verb+\diamondsuit+&
+$\Re$ & \verb+\Re+ &
+$\ell$ & \verb+\ell+ &
+ $\bot$ & \verb+\bot+ \\
+ $\heartsuit$ & \verb+\heartsuit+ &
+$\Im$ & \verb+\Im+ &
+$\imath$ & \verb+\imath+ &
+ $\partial$ & \verb+\partial+ \\
+ $\spadesuit$ & \verb+\spadesuit+ &
+$\hbar$ & \verb+\hbar+ &
+$\jmath$ & \verb+\jmath+ &
+ $\angle$ & \verb+\angle+ \\
+$\mho$ & \verb+\mho+
+\end{tabular}
+\end{table}
+
+\newpage
+
+\begin{table}
+\caption{Log-like functions; used in math mode.}
+\begin{tabular}{llllllll}
+\verb+\arccos+ &
+\verb+\arcsin+ &
+\verb+\arctan+ &
+\verb+\arg+ &
+ \verb+\cos+ \\
+ \verb+\cosh+ &
+ \verb+\cot+ &
+ \verb+\coth+ &
+ \verb+\csc+ &
+ \verb+\deg+ \\
+ \verb+\det+ &
+ \verb+\dim+ &
+ \verb+\exp+ &
+ \verb+\gcd+ &
+ \verb+\hom+ \\
+ \verb+\inf+ &
+ \verb+\ker+ &
+ \verb+\lg+ &
+ \verb+\lim+ &
+ \verb+\liminf+ \\
+ \verb+\limsup+ &
+ \verb+\ln+ &
+ \verb+\log+ &
+ \verb+\max+ &
+ \verb+\min+ \\
+ \verb+\Pr+ &
+ \verb+\sec+ &
+ \verb+\sin+ &
+ \verb+\sinh+ &
+ \verb+\sup+ \\
+ \verb+\tan+ &
+ \verb+\tanh+
+\end{tabular}
+\end{table}
+
+\newpage
+
+\begin{table}
+\caption{Delimiters; used in math mode.}
+\begin{tabular}{c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$($ & \verb+(+ &
+ $)$ & \verb+)+ &
+$/$ & \verb+/+ \\
+$[$ & \verb+[+ &
+ $]$ & \verb+]+ &
+ $\backslash$ & \verb+\backslash+ \\
+$\{$ & \verb+\{+ &
+ $\}$ & \verb+\}+ &
+$|$ & \verb+|+ \\
+$\langle$ & \verb+\langle+ &
+ $\rangle$ & \verb+\rangle+ &
+ $\|$ & \verb+\|+ \\
+ $\uparrow$ & \verb+\uparrow+ &
+ $\Uparrow$ & \verb+\Uparrow+&
+$\lfloor$ & \verb+\lfloor+ \\
+ $\downarrow$ & \verb+\downarrow+ &
+ $\Downarrow$ & \verb+\Downarrow+ &
+ $\rfloor$ & \verb+\rfloor+ \\
+ $\updownarrow$ & \verb+\updownarrow+ &
+ $\Updownarrow$ & \verb+\Updownarrow+ &
+$\lceil$ & \verb+\lceil+ \\
+ & & & & $\rceil$ & \verb+\rceil+
+\end{tabular}
+\end{table}
+
+
+\newpage
+
+\begin{table}
+\caption{Miscellaneous symbols; used in math mode.}
+\begin{tabular}{c@{\hspace{\xxx}}lc@{\hspace{\xxx}}lc@{\hspace{\xxx}}l}
+$\textstyle\sum$ $\displaystyle\sum$ & \verb+\sum+ &
+$\textstyle\prod$ $\displaystyle\prod$ & \verb+\prod+ &
+$\textstyle\coprod$ $\displaystyle\coprod$ & \verb+\coprod+ \\
+$\textstyle\int$ $\displaystyle\int$ & \verb+\int+ &
+$\textstyle\oint$ $\displaystyle\oint$ & \verb+\oint+ &
+$\textstyle\biguplus$ $\displaystyle\biguplus$ & \verb+\biguplus+ \\
+ $\textstyle\bigcap$ $\displaystyle\bigcap$ & \verb+\bigcap+ &
+ $\textstyle\bigcup$ $\displaystyle\bigcup$ & \verb+\bigcup+ &
+ $\textstyle\bigsqcup$ $\displaystyle\bigsqcup$ & \verb+\bigsqcup+ \\
+ $\textstyle\bigodot$ $\displaystyle\bigodot$ & \verb+\bigodot+ &
+ $\textstyle\bigotimes$ $\displaystyle\bigotimes$ & \verb+\bigotimes+ &
+ $\textstyle\bigoplus$ $\displaystyle\bigoplus$ & \verb+\bigoplus+ \\
+ $\textstyle\bigvee$ $\displaystyle\bigvee$ & \verb+\bigvee+ &
+ $\textstyle\bigwedge$ $\displaystyle\bigwedge$ & \verb+\bigwedge+
+\end{tabular}
+\end{table}
+
+\newpage
+
+\subsubsection[Standard \protect\LaTeX{} typefaces]{Standard LaTeX typefaces}
+
+You can access a pair of special typefaces in \LaTeX.
+
+% only math mode?
+You can switch to script (calligraphic) letters by using the \verb+\cal+
+command (note the $\cal L$):
+\begin{verbatim}
+{\cal L}_{\text{int}} = e F^{3}_{\pi} r^{2}
+ B^{0}(r,t) \epsilon \sin(\Omega t)
+ \exp(\eta t),
+\end{verbatim}
+gives
+\[
+{\cal L}_{\text{int}} = eF^{3}_{\pi} r^{2}
+ B^{0}(r,t)\epsilon\sin(\Omega t)\exp(\eta t),
+\]
+Only uppercase letters are available in the \verb+\cal+ font.
+
+
+% only math mode?
+You can switch to sans serif letters by using the \verb+\sf+
+command (note the $\sf M$):
+
+% \case -> \frac for portability
+
+\begin{verbatim}
+R({\cal Q}-{\cal Q}_{0})
+=R_{0} \exp\left(-\frac{1}{2}\Delta {\cal Q}
+ \cdot{\sf M}\cdot\Delta{\cal Q}\right).
+ \label{eq:rdef}
+\end{verbatim}
+gives
+\[
+ R({\cal Q}-{\cal Q}_{0}) =
+% R_{0} \exp\left(-\case1/2\Delta {\cal Q} \cdot {\sf M}
+ R_{0} \exp\left(-\frac{1}{2}\Delta {\cal Q} \cdot {\sf M}
+ \cdot \Delta {\cal Q}\right).
+\]
+Both uppercase and lowercase letters are available with \verb+\sf+.
+
+\newpage
+
+\subsubsection{Other notations}
+
+% math mode only?
+The \verb+\overline+ command puts a horizontal line above its argument
+in math mode:
+\begin{verbatim}
+$\overline{x}+\overline{y}$
+\end{verbatim}
+gives
+\[
+\overline{x}+\overline{y}
+\]
+
+There is an analogous \verb+\underline+ command that works in text
+or math mode:
+\begin{verbatim}
+The equation \underline{is} $\underline{x+y}$.
+\end{verbatim}
+gives
+\[
+\hbox{The equation \underline{is} $\underline{x+y}$.}
+\]
+
+% math mode?
+Horizontal braces are put above or below an expression with the
+\verb+\overbrace+ and \verb+\underbrace+ commands:
+\begin{verbatim}
+$\underbrace{a_{1} + \overbrace{a_{2}+a_{3}}
+ + a_{4}}$
+\end{verbatim}
+gives
+\[
+\underbrace{a_{1} + \overbrace{a_{2}+a_{3}} + a_{4}}
+\]
+and in displayed math, a subscript or a superscript puts a label on
+the brace:
+\begin{verbatim}
+$\underbrace{a_{1} +
+ \overbrace{a_{2}+\cdots+a_{n-1}}^{n-2}
+ + a_{n}}_{n}$
+\end{verbatim}
+gives
+\[
+\underbrace{a_{1} + \overbrace{a_{2}+\cdots+a_{n-1}}^{n-2} + a_{n}}_{n}
+\]
+
+Wide versions of the \verb+\hat+ and \verb+\tilde+ commands are available.
+They are called \verb+\widehat+ and \verb+\widetilde+, respectively.
+Here is an example:
+\begin{verbatim}
+$\widehat{a} + \widehat{ab}
+ + \widehat{abc} + \widehat{abcd}$
+\end{verbatim}
+gives
+\[
+\widehat{a} + \widehat{ab} + \widehat{abc} + \widehat{abcd}
+\]
+
+\end{document}
+% end of file charset.tex
+
diff --git a/support/mewltx/dosbox.pif b/support/mewltx/dosbox.pif
new file mode 100644
index 0000000000..d71bef2dbc
--- /dev/null
+++ b/support/mewltx/dosbox.pif
Binary files differ
diff --git a/support/mewltx/dosexec.pif b/support/mewltx/dosexec.pif
new file mode 100644
index 0000000000..e5993119b4
--- /dev/null
+++ b/support/mewltx/dosexec.pif
Binary files differ
diff --git a/support/mewltx/dvi2ps.pif b/support/mewltx/dvi2ps.pif
new file mode 100644
index 0000000000..cb4e419c9c
--- /dev/null
+++ b/support/mewltx/dvi2ps.pif
Binary files differ
diff --git a/support/mewltx/environ.lh b/support/mewltx/environ.lh
new file mode 100644
index 0000000000..84e99348d8
--- /dev/null
+++ b/support/mewltx/environ.lh
@@ -0,0 +1,13 @@
+Standard LaTeX Environments:
+
+abstract array center description displaymath
+document enumerate eqnarray eqnarray* equation
+figure figure* flushleft flushright itemize
+list math minipage picture quotation
+quote tabbing table table* tabular
+thebibliography theorem titlepage verbatim
+verse
+
+
+
+
diff --git a/support/mewltx/greek.lh b/support/mewltx/greek.lh
new file mode 100644
index 0000000000..4512ada722
--- /dev/null
+++ b/support/mewltx/greek.lh
@@ -0,0 +1,14 @@
+Greek letters;
+
+\alpha \beta \gamma \delta
+\epsilon \varepsilon \zeta \eta
+\theta \vartheta \iota \kappa
+\lambda \mu \nu \xi
+o \pi \varpi \rho
+\varrho \sigma \varsigma \tau
+\upsilon \phi \varphi \chi
+\psi \omega
+
+\Gamma \Delta \Theta \Lambda
+\Xi \Pi \Sigma \Upsilon
+\Phi \Psi \Omega
diff --git a/support/mewltx/gs.pif b/support/mewltx/gs.pif
new file mode 100644
index 0000000000..0d678e8518
--- /dev/null
+++ b/support/mewltx/gs.pif
Binary files differ
diff --git a/support/mewltx/headings.lh b/support/mewltx/headings.lh
new file mode 100644
index 0000000000..a477527ced
--- /dev/null
+++ b/support/mewltx/headings.lh
@@ -0,0 +1,4 @@
+LaTeX headings.
+
+part chapter section subsection
+subsubsection paragraph subparagraph
diff --git a/support/mewltx/inbook.bt b/support/mewltx/inbook.bt
new file mode 100644
index 0000000000..943460c8ba
--- /dev/null
+++ b/support/mewltx/inbook.bt
@@ -0,0 +1,19 @@
+@INBOOK{,
+ author= "",
+%% OR "" %%
+ editor= "",
+ title= "",
+ chapter= "",
+%% AND/OR "" %%
+ pages= "",
+ publisher= "",
+ address= "",
+ year= "",
+ volume= "",
+ series= "",
+ edition= "",
+ month= "",
+ note= "",
+ annote= ""
+}
+
diff --git a/support/mewltx/incollec.bt b/support/mewltx/incollec.bt
new file mode 100644
index 0000000000..7bc7503f11
--- /dev/null
+++ b/support/mewltx/incollec.bt
@@ -0,0 +1,15 @@
+@INCOLLECTION{,
+ author= "",
+ title= "",
+ editor= "",
+ booktitle= "",
+ publisher= "",
+ address= "",
+ year= "",
+ volume= "",
+ series= "",
+ edition= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/inprocee.bt b/support/mewltx/inprocee.bt
new file mode 100644
index 0000000000..504b73720a
--- /dev/null
+++ b/support/mewltx/inprocee.bt
@@ -0,0 +1,15 @@
+@INPROCEEDINGS{,
+ author= "",
+ title= "",
+ editor= "",
+ booktitle= "",
+ publisher= "",
+ address= "",
+ year= "",
+ volume= "",
+ series= "",
+ edition= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/interfac.hlp b/support/mewltx/interfac.hlp
new file mode 100644
index 0000000000..b915b2f732
--- /dev/null
+++ b/support/mewltx/interfac.hlp
Binary files differ
diff --git a/support/mewltx/interfac.hpj b/support/mewltx/interfac.hpj
new file mode 100644
index 0000000000..128e20fee6
--- /dev/null
+++ b/support/mewltx/interfac.hpj
@@ -0,0 +1,12 @@
+[OPTIONS]
+INDEX=MAIN
+TITLE=LaTeX meWin Interface
+COMPRESS=FALSE
+
+[FILES]
+interfac.rtf
+
+[MAP]
+
+[BITMAPS]
+
diff --git a/support/mewltx/interfac.lh b/support/mewltx/interfac.lh
new file mode 100644
index 0000000000..c96603e98b
--- /dev/null
+++ b/support/mewltx/interfac.lh
@@ -0,0 +1,167 @@
+MicroEMACS LaTeX Interface.
+
+M.F. Reid, Mon Dec 21 18:20:26 1992
+
+This is an attempt at a MicroEMACS interface for preparing LaTeX
+documents under MicroSoft Windows (mewin). It consists of several ".CMD"
+files in the mewin directory, and a number of auxiliary files in the
+latex subdirectory.
+
+Please tell me about any inaccuracies in the macros or the documents.
+The details of the implementation can be easily adjusted if you have
+some good suggestions.
+
+Note that mewin itself has standard Windows Help.
+
+The first section of this file is:
+
+0. TeX-helpful modifications to mewin.
+
+There are Four major headings under the TeX menu item. These will form
+the last four sections of this file:
+
+1. LaTeX Input. to assist in preparation of LaTeX files
+2. BibTeX Input. to assist in preparation of BibTeX files
+3. Execute. to run LaTeX processes
+4. Debug to locate errors automatically
+5. Help. help on LaTeX and this interface
+
+
+0. TeX-helpful modifications.
+
+Some additions and modifications have been made in order to make mewin
+work reasonably nicely with TeX files, and behave similarly to gnu
+emacs. Wrap mode and "C Indentation" are automatically used on .tex and
+.bib files.
+
+The "mark" (see mewin help) can be set using the gnu keystroke
+Control-@, which of course, requires you to press both Control and Shift
+keys at the same time!
+
+The point is left in place after a yank. This is more like gnu emacs.
+
+The Insert key toggles over-write mode.
+
+Control-Delete deletes blanks up to the next non-blank or end-of-line.
+
+Read about the mouse interface in the mewin help. You can cut and paste
+with just mouse strokes.
+
+The characters "\" and "%" are considered to start a paragraph, so that
+you don't get your equations reformatted (Esc-Q or
+"Edit>Paragraph>Fill").
+
+A backup-save option on the file menu (M-S keystroke) creates a backup
+file. If your original file was x.y the backup is x.~y. This is clumsy,
+as it has to run two DOS shells to do it (del x.~y, rename x.y x.~y).
+
+An "Edit>Date" item is added, which puts the current time and date
+into your file at the currnet point.
+
+An "Edit>Region>To Clipboard" item is added, which copies the "region"
+to the Windows clipboard.
+
+A "Spell>Buffer" menu item is added, to run amSpell on your file. This
+runs in a DOS box. If you want to automatically read in the corrections,
+you have to wait for the DOS program to finish, then press enter. If you
+type "n" then enter, the modifications will not be read.
+
+Note the goto-matching-fence (Esc-Control-F or under the "Search>Goto"
+menu), which matches brackets (but not $ signs).
+
+Now we discuss the TeX menu items.
+
+1. LaTeX Input. to assist in preparation of LaTeX files
+
+This menu item is designed to minimize keystrokes.
+
+(i) Templates. Here you use mouse or arrow keys to point the cursor at
+the item you want (document, letter, REVTeX template, etc) and the
+appropriate file is included in your file. Pressing enter without moving
+the cursor, or pressing Control-G, does nothing. Adding extra items
+would be easy.
+
+(ii) Headings. Similar to templates. Creates \section{}, etc.
+
+(iii) Environments (also Alt-V) allows you to pick an environment (or
+press return and type it yourself). The \begin{env} \end{env} pair is
+created, and you are positioned in between. If the environment is known
+to have more arguments, space is created for those, e.g.
+\begin{tabular}{lcr} \end{tabular}.
+
+(iv) Miscellaneous. Pick an item and it will be copied into your file.
+
+(v) Bracket creates a pair of brackets, e.g. {}, with the point
+positioned between. You are more likely to use the keystrokes, which are
+Alt-{, Alt-[, Alt-(, Alt-$ and Alt-". These should be obvious, Alt-"
+gives you the quote pair, `` ''. Note: for "literal", printing, curly
+brackets (\{\}), use Control-X then {. For pairs of brackets that size
+themselves in math mode use Control-X Alt-{, etc.
+
+2. BibTeX Input. to assist in preparation of BibTeX files
+
+(i) Templates, which pulls in a file with the necessary entries for each
+type of citation. i.e.
+ @BOOK{,
+ author="",
+ ...
+ Note that I include an "annote" field. The bibliographystyle aplain
+will print out this field, so that is a handy place to put comments.
+
+(ii) Clean BibItem takes out all the blank items, i.e. lines with a pair
+of double quotes ("").
+
+(iii) Clean BibFile cleans the whole file.
+
+(iv) Sort BibFile sorts the entries by citation key. This is rather slow
+for a large file, but it seems to work.
+
+3. Execute. to run LaTeX processes
+
+This allows you to run TeX, LaTeX, previewer, printer driver, BibTeX,
+and MakeIndex in DOS boxes. The principle is the same for all. You are
+prompted with a default file name, which stays in force until you clear
+it using the last sub-menu item (Clear Filename). This allows you to
+edit several "\include" files and continue to process the "master" file.
+However, please note that when you invoke these programs, they run in
+the directory of the file in the current edit window!
+
+4. Debug to locate errors automatically
+
+(i) Read Logfile reads in the relevant logfile to allow you to examine
+the errors.
+
+(ii) Find Next Error (key F3) searches for the next LaTeX error, and
+tries to put you in the erronious file at the right place. Of course,
+this makes no sense unles it is a LaTeX log file! This may need some
+improvement. Note that you should kill off any automatically generated
+files (like .aux, .bbl) after this process. Also, if you didn't save all
+the files first, you may not be looking at the correct place.
+
+5. Help. help on LaTeX and this interface
+
+(i) LaTeX Commands. F1
+(ii) Search LaTeX Commands. F2
+
+These items guide you into a file that was created for the VAX help
+engine, so the interface is a little clumsy. You are first put into a
+file consisting of the Headings for the Main file. Move to the heading
+of interest, press enter, and you will be positioned in the Main file.
+Note that you can use search-forward (Control-S) and search-reverse
+(Control-R) as well as the arrow and paging commands.
+
+Pressing F1 (or using the first sub-menu item) will take you back to
+where you were in the Headings file.
+
+On the other hand, pressing F2 (or using the second sub-menu item)
+allows you to search for a string in the Headings file. The default
+search string is whatever the cursor is pointing at, so if you are on a
+line in the Main file that says: "See also XXX", you can point at XXX,
+press F2 and go quickly to that section.
+
+(iii) Characters. Runs the dvi-viewer on a file containing standard math
+characters.
+
+(iv) Interface. Gives you this file.
+
+
diff --git a/support/mewltx/interfac.rtf b/support/mewltx/interfac.rtf
new file mode 100644
index 0000000000..f2f14739ab
--- /dev/null
+++ b/support/mewltx/interfac.rtf
@@ -0,0 +1,135 @@
+{\rtf1\ansi \deff0{\fonttbl{\f0\froman Tms Rmn;}{\f1\froman Symbol;}{\f2\fswiss Helv;}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;
+\red255\green255\blue0;\red255\green255\blue255;}{\stylesheet{\s244 \f2\fs16\up6 \sbasedon0\snext0 footnote reference;}{\s245 \f2\fs20 \sbasedon0\snext245 footnote text;}{\f2\fs20 \snext0 Normal;}}{\info{\author Reid}{\operator Reid}
+{\creatim\yr1992\mo12\dy21\hr18\min22}{\revtim\yr1993\mo1\dy2\hr19\min33}{\version2}{\edmins113}{\nofpages1}{\nofwords65536}{\nofchars65536}{\vern8351}}\margr3600\widowctrl\ftnbj \sectd \linex0\endnhere \pard\plain \f2\fs20 {\fs16\up6 #{\footnote
+\pard\plain \s245 \f2\fs20 {\fs16\up6 #} main}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:00}} {\fs32 MicroEMACS LaTeX Interface.}
+\par
+\par MEWLaTeX Version 1.0, January 10,1993.
+\par Michael F. Reid <mfreid@hkuxa.hku.hk>
+\par From April 1993: <mfr@phys.canterbury.ac.nz>
+\par
+\par \pard \tx5850 This is an attempt at a MicroEMACS interface for preparing LaTeX documents under MicroSoft Windows (mewin). It consists of a LATEX.CMD file and a number of auxiliary files.
+\par \pard
+\par Please tell me about any inaccuracies in the macros or the documents. The details of the implementation can be easily adjusted if you have some good suggestions.
+\par
+\par 0. {\uldb TeX-helpful modifications to mewin.}{\v tex_helpful_modifications}
+\par
+\par There are five major headings under the TeX menu item.:
+\par
+\par 1. {\uldb LaTeX Input.}{\v latex_input} \tab \tab to assist in preparation of LaTeX files
+\par 2. {\uldb BibTeX Input.}{\v bibtex_input \tab \tab \tab \tab }\tab \tab to assist in preparation of BibTeX files
+\par 3. {\uldb Execute.}{\v execute} \tab \tab to run LaTeX processes
+\par 4. {\uldb Debug.}{\v debug} \tab \tab to locate errors automatically
+\par 5. {\uldb Help.}{\v help} \tab \tab help on LaTeX, this interface, and installation
+\par
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} tex_helpful_modifications}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:10}} {\fs32 0. TeX-helpful modifications.}
+\par
+\par Some additions and modifications have been made. Some are personal preferences, some are to mewin work reasonably nicely with TeX files, and some are to make mewin behave a little more similarly to gnu emacs.
+\par
+\par Wrap mode and "C Indentation" are automatically used on .tex and .bib files.
+\par
+\par The "mark" (see mewin help) can be set using the gnu keystroke Control-@, which of course, requires you to press both Control and Shift keys at the same time!
+\par
+\par The point is left in place after a file insert. This is more like gnu emacs.
+\par
+\par The Insert key toggles over-write mode.
+\par
+\par Control-Delete deletes blanks up to the next non-blank or end-of-line.
+\par
+\par Read about the mouse interface in the mewin help. You can cut and paste with just mouse strokes.
+\par
+\par The characters "\\" and "%" are considered to start a paragraph, so that you don't get your equations reformatted (Esc-Q or "Edit>Paragraph>Fill").
+\par
+\par A backup-save option on the file menu (M-S keystroke) creates a backup file. If your original file was x.y the backup is x.~y. This is clumsy, as it has to run a DOS batch file to do it (del x.~y, rename x.y x.~y).
+\par
+\par An "Edit>Date" item is added, which puts the current time and date into your file at the current point.
+\par
+\par An "Edit>Region>To Clipboard" item is added, which copies the "region" to the Windows clipboard.
+\par
+\par A "Spell>Buffer" menu item is added, to run a spell-checker on your file. If you want to read in the corrections, you have to wait for the DOS program to finish, then press enter. If you type "n" then enter, the modifications will not be read.
+\par
+\par Note the goto-matching-fence (Esc-Control-F or under the "Search>Goto" menu), which matches brackets (but not $ signs).
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} latex_input}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:11}} {\fs32 1. LaTeX Input.}
+\par
+\par In some cases the menu items give you an explicit input, such as a pair of brackets, but in other cases the options are displayed on the screen, and you have to move the cursor to the option you want (by mouse or position keys), and then press enter. Or y
+ou can type the option. Pressing enter without moving the cursor, or pressing Control-G, aborts the process. The layout of the math symbols is similar to the Character Set Help.
+\par
+\par Some of the bracketing commands are more likely to be accessed by keystroke. The key bindings appear on the menus automatically. Since you may want to change these, I will not spell them out here. {\b
+\par
+\par Templates.} Here you use mouse or arrow keys to point the cursor at the item you want (document, letter, REVTeX template, etc) and the appropriate file is included in your file. . Adding extra items would be easy.
+\par
+\par {\b Headings.} Similar to templates. Creates \\section\{\}, etc.
+\par
+\par {\b Environments.} Allows you to pick an environment. The \\begin\{env\} \\end\{env\} pair is created, and you are positioned in between. If the environment is known to have more arguments, space is created for those, e.g. \\begin\{tabular\}\{lcr\} \\end
+\{tabular\}.
+\par
+\par {\b Math Environments}. Brackets around math mode.
+\par
+\par {\b Brackets.} Creates a pair of brackets, e.g. \{\}, with the point positioned between.
+\par
+\par {\b Text.}
+\par \tab Accents
+\par \tab Special Symbols
+\par \tab Foreign Symbols
+\par
+\par {\b Math.
+\par }\tab Super/Subscripts
+\par \tab Variable Brackets
+\par \tab Accents
+\par \tab Greek
+\par \tab Binary Operators
+\par \tab Relation Symbols
+\par \tab Arrow Symbols
+\par \tab Miscellaneous
+\par \tab Log Like
+\par \tab Delimiters
+\par \tab Variable Symbols (\\sum, \\int, etc)
+\par \tab Over and Underline
+\par
+\par {\b Miscellaneous.} Pick an item and it will be copied into your file.
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} bibtex_input}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:12}} {\fs32 2. BibTeX Input.}
+\par
+\par {\b Templates.} Pulls in a file with the necessary entries for each type of citation. i.e.
+\par \tab @BOOK\{,
+\par \tab author="",
+\par \tab ...
+\par \tab \}
+\par Note that I include an "annote" field. The bibliographystyle annotation.bst (available at TeX archives) will print out this field, so that is a handy place to put comments.
+\par
+\par {\b Clean BibItem.} Takes out all the blank items, i.e. lines with a pair of double quotes (""). This is quite crude, and relies on the template format.
+\par
+\par {\b Clean BibFile.} Cleans the whole file.
+\par
+\par {\b Sort BibFile.} Sorts the entries by citation key, which is crude. Better sorting.programs are available. The sorting is rather slow for a la
+rge file, but it seems to work. Note that there seems to be no way of interrupting this, but you can close down the mewin process!
+\par
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} execute}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:13}} {\fs32 3. Execute.}
+\par
+\par The items under this menu (which you may want to rearrange to suit you local setup) allow you to run TeX, LaTeX, previewer, printer driver, PostScript previewer, BibTeX, and MakeIndex. In my setup all, apart from dvimswin, run in DOS boxes. The principle
+is the same for each executable. You are prompted with a default file name, which stays in force until you clear it using the last sub-menu item (Clear Filename). This allows you to edit several "\\
+include" files and continue to process the "master" file. However, please note that when you invoke these programs, they run in the directory of the file in the current edit window!
+\par
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} debug}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:14}} {\fs32 4. Debug.}
+\par
+\par {\b Read Logfile.} Reads in the relevant logfile to allow you to examine the errors.
+\par
+\par {\b Find Next Error}
+. Searches for the next LaTeX error, and tries to put you in the erroneous file at the right place. Of course, this makes no sense unless it is a LaTeX log file! This is rather slow. Note that you should kill off any automatically generated files (like .a
+ux, .bbl) after this process. Also, if you didn't save all the files first, you may not be looking at the correct place.
+\par
+\par \page {\fs16\up6 #{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 #} help}} {\fs16\up6 +{\footnote \pard\plain \s245 \f2\fs20 {\fs16\up6 +} topic:15}} {\fs32 5. Help.}
+\par
+\par {\b LaTeX Commands.
+\par Search LaTeX Commands. }
+\par These run a help file that was ported from VMS to W
+indows, so some aspects are a little clumsy. For many topics the same information appears in two places, once under the general headings such as Environments, and again under an alphabetical listing. Each topic is numbered to help you keep track. However,
+ it is a real WinHelp file. Note that you can search for any \\command with or without the \\.
+\par
+\par {\b Character Set.} Runs the dvi-viewer on a file containing standard math
+\par characters.
+\par \pard \tx5760
+\par {\b TeX Information.} The idea of this is to allow easy loading of TeX FAQ documents or other useful information. This will require modification for your local setup.
+\par \pard
+\par {\b MicroEMACS Interface.} Gives you this help file.
+\par
+\par {\b MicroEMACS Installation. }Displays the mewlatex.txt installation guide.
+\par } \ No newline at end of file
diff --git a/support/mewltx/interfac.txt b/support/mewltx/interfac.txt
new file mode 100644
index 0000000000..d7f9f46a66
--- /dev/null
+++ b/support/mewltx/interfac.txt
@@ -0,0 +1,217 @@
+# + MicroEMACS LaTeX Interface.
+
+MEWLaTeX Version 1.0, January 10,1993.
+Michael F. Reid <mfreid@hkuxa.hku.hk>
+From April 1993: <mfr@phys.canterbury.ac.nz>
+
+This is an attempt at a MicroEMACS interface for preparing LaTeX
+documents under MicroSoft Windows (mewin). It consists of a
+LATEX.CMD file and a number of auxiliary files.
+
+Please tell me about any inaccuracies in the macros or the
+documents. The details of the implementation can be easily adjusted
+if you have some good suggestions.
+
+0. TeX-helpful modifications to mewin.
+
+There are five major headings under the TeX menu item.:
+
+1. LaTeX Input. to assist in preparation of LaTeX files
+2. BibTeX Input. to assist in preparation of BibTeX files
+3. Execute. to run LaTeX processes
+4. Debug. to locate errors automatically
+5. Help. help on LaTeX, this interface, and installation
+
+
+
+# + 0. TeX-helpful modifications.
+
+Some additions and modifications have been made. Some are
+personal preferences, some are to mewin work reasonably nicely with
+TeX files, and some are to make mewin behave a little more similarly
+to gnu emacs.
+
+Wrap mode and "C Indentation" are automatically used on .tex and
+.bib files.
+
+The "mark" (see mewin help) can be set using the gnu keystroke
+Control-@, which of course, requires you to press both Control and
+Shift keys at the same time!
+
+The point is left in place after a file insert. This is more like gnu
+emacs.
+
+The Insert key toggles over-write mode.
+
+Control-Delete deletes blanks up to the next non-blank or end-of-line.
+
+Read about the mouse interface in the mewin help. You can cut and
+paste with just mouse strokes.
+
+The characters "\" and "%" are considered to start a paragraph, so that
+you don't get your equations reformatted (Esc-Q or
+"Edit>Paragraph>Fill").
+
+A backup-save option on the file menu (M-S keystroke) creates a
+backup file. If your original file was x.y the backup is x.~y. This is
+clumsy, as it has to run a DOS batch file to do it (del x.~y, rename x.y
+x.~y).
+
+An "Edit>Date" item is added, which puts the current time and date
+into your file at the current point.
+
+An "Edit>Region>To Clipboard" item is added, which copies the
+"region" to the Windows clipboard.
+
+A "Spell>Buffer" menu item is added, to run a spell-checker on your
+file. If you want to read in the corrections, you have to wait for the DOS
+program to finish, then press enter. If you type "n" then enter, the
+modifications will not be read.
+
+Note the goto-matching-fence (Esc-Control-F or under the
+"Search>Goto" menu), which matches brackets (but not $ signs).
+
+
+# + 1. LaTeX Input.
+
+In some cases the menu items give you an explicit input, such as a
+pair of brackets, but in other cases the options are displayed on the
+screen, and you have to move the cursor to the option you want (by
+mouse or position keys), and then press enter. Or you can type the
+option. Pressing enter without moving the cursor, or pressing Control-
+G, aborts the process. The layout of the math symbols is similar to the
+Character Set Help.
+
+Some of the bracketing commands are more likely to be accessed by
+keystroke. The key bindings appear on the menus automatically.
+Since you may want to change these, I will not spell them out here.
+
+Templates. Here you use mouse or arrow keys to point the cursor at
+the item you want (document, letter, REVTeX template, etc) and the
+appropriate file is included in your file. . Adding extra items would be
+easy.
+
+Headings. Similar to templates. Creates \section{}, etc.
+
+Environments. Allows you to pick an environment. The \begin{env}
+\end{env} pair is created, and you are positioned in between. If the
+environment is known to have more arguments, space is created for
+those, e.g. \begin{tabular}{lcr} \end{tabular}.
+
+Math Environments. Brackets around math mode.
+
+Brackets. Creates a pair of brackets, e.g. {}, with the point positioned
+between.
+
+Text.
+ Accents
+ Special Symbols
+ Foreign Symbols
+
+Math.
+ Super/Subscripts
+ Variable Brackets
+ Accents
+ Greek
+ Binary Operators
+ Relation Symbols
+ Arrow Symbols
+ Miscellaneous
+ Log Like
+ Delimiters
+ Variable Symbols (\sum, \int, etc)
+ Over and Underline
+
+Miscellaneous. Pick an item and it will be copied into your file.
+
+
+# + 2. BibTeX Input.
+
+Templates. Pulls in a file with the necessary entries for each type of
+citation. i.e.
+ @BOOK{,
+ author="",
+ ...
+ }
+ Note that I include an "annote" field. The bibliographystyle
+annotation.bst (available at TeX archives) will print out this field, so
+that is a handy place to put comments.
+
+Clean BibItem. Takes out all the blank items, i.e. lines with a pair of
+double quotes (""). This is quite crude, and relies on the template
+format.
+
+Clean BibFile. Cleans the whole file.
+
+Sort BibFile. Sorts the entries by citation key, which is crude. Better
+sorting.programs are available. The sorting is rather slow for a large
+file, but it seems to work. Note that there seems to be no way of
+interrupting this, but you can close down the mewin process!
+
+
+
+# + 3. Execute.
+
+The items under this menu (which you may want to rearrange to suit
+you local setup) allow you to run TeX, LaTeX, previewer, printer driver,
+PostScript previewer, BibTeX, and MakeIndex. In my setup all, apart
+from dvimswin, run in DOS boxes. The principle is the same for each
+executable. You are prompted with a default file name, which stays in
+force until you clear it using the last sub-menu item (Clear Filename).
+This allows you to edit several "\include" files and continue to
+process the "master" file. However, please note that when you invoke
+these programs, they run in the directory of the file in the current edit
+window!
+
+
+
+# + 4. Debug.
+
+Read Logfile. Reads in the relevant logfile to allow you to examine the
+errors.
+
+Find Next Error. Searches for the next LaTeX error, and tries to put
+you in the erroneous file at the right place. Of course, this makes no
+sense unless it is a LaTeX log file! This is rather slow. Note that you
+should kill off any automatically generated files (like .aux, .bbl) after
+this process. Also, if you didn't save all the files first, you may not be
+looking at the correct place.
+
+
+
+# + 5. Help.
+
+LaTeX Commands.
+Search LaTeX Commands.
+These run a help file that was ported from VMS to Windows, so some
+aspects are a little clumsy. For many topics the same information
+appears in two places, once under the general headings such as
+Environments, and again under an alphabetical listing. Each topic is
+numbered to help you keep track. However, it is a real WinHelp file.
+Note that you can search for any \command with or without the \.
+
+Character Set. Runs the dvi-viewer on a file containing standard math
+characters.
+
+TeX Information. The idea of this is to allow easy loading of TeX FAQ
+documents or other useful information. This will require modification
+for your local setup.
+
+MicroEMACS Interface. Gives you this help file.
+
+MicroEMACS Installation. Displays the mewlatex.txt installation guide.
+# main
++ topic:00
+# tex_helpful_modifications
++ topic:10
+# latex_input
++ topic:11
+# bibtex_input
++ topic:12
+# execute
++ topic:13
+# debug
++ topic:14
+# help
++ topic:15
+
diff --git a/support/mewltx/latex.cmd b/support/mewltx/latex.cmd
new file mode 100644
index 0000000000..ca52751610
--- /dev/null
+++ b/support/mewltx/latex.cmd
@@ -0,0 +1,1329 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; LATEX.CMD
+;
+; microEMACS for Windows macros to give LaTeX functionality
+;
+; MODIFICATION HISTORY:
+; Feb 10 94 Took out readhook line.
+; Feb 04 94 Modified for MEW 3.12
+; Note that there are still some funny bugs, particularly with
+; reference to file locking. If you get funny errors about
+; files being in use, try deleting the "._xlk" sub-directories.
+; Jan 25 93 Use dviwin as viewer
+;
+; MEWLaTeX Version 1.0
+;
+; Original release Jan 11 1993.
+;
+; Michael F. Reid <M.Reid@phys.canterbury.ac.nz>
+; Department of Physics and Astronomy, University of Canterbury
+; Christchurch, New Zealand.
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; There are three sections:
+; GENERAL
+; SPELL-CHECKING
+; LATEX
+;
+; Key bindings and menu bindings are at the end of each section
+;
+; We begin with variables that must be setup locally by the user.
+; As a debug tool we have variable %l-menus-loaded to prevent menus
+; from being loaded twice if we edit the file and re-run it.
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; VARIABLES
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; GENERAL
+
+set %x-rename "xrename.bat" ; delete and rename, used for backup-save
+; if xrename.bat is not in your path, you won't get a backup!
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; SPELL CHECKING
+
+set %spell-exec "spell.pif"
+; using spell.pif allows better control over the spell-checker
+; amSpell likes to run full-screen, for example
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; LaTeX
+
+set %l-file-path "e:\bin\mewin\latex\"
+ ; finish with "\"
+ ; place to look for help and templates
+set %l-latex "latex.pif"
+set %l-tex "tex.pif"
+set %l-view "e:\tex\dviwin\dviwin"
+set %l-print "texprint.pif"
+set %l-dvi2ps "dvi2ps.pif"
+set %l-psview "gs.pif"
+set %l-makeindex "makeindx.pif"
+set %l-bibtex "bibtex.pif"
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; GENERAL COMMANDS
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+set $discmd FALSE
+
+print "[Loading general macros...]"
+
+store-procedure toggle-overwrite ; make Insert key behave "normally"
+ set $cmode &bxor $cmode 32
+!endm
+
+store-procedure del-blanks ; use ^Delete to delete to next non-blank
+ !while TRUE
+ !if &not &seq &chr $curchar " "
+ !return
+ !endif
+ delete-next-character
+ !endwhile
+!endm
+
+store-procedure insert-date
+ insert-string $time
+!endm
+
+store-procedure save-all-buffers
+; This macro saves all the modified buffers to their respective
+; files
+; Modified by MFR - you could replace the version in emacs.rc
+ set %tmp $cbufname
+ !while TRUE
+ !if &equ $cbflags 2 ;MFR don't try to save unchanged files
+ !force save-file
+ !endif
+ !force next-buffer
+ !if &seq %tmp $cbufname
+ !return
+ !endif
+ !endwhile
+!endm
+
+store-procedure readhook-proc ; TeX and bib get C and Wrap modes
+; modified by MFR - you could replace the version in emacs.rc
+ run extension
+ !if &sin "|c|h|cpp|hpp|dlg|def|rc|cmd|" &cat &cat "|" %ext "|"
+ add-mode cmode
+ !else
+ !if &sin "||me|1st|doc|txt|" &cat &cat "|" %ext "|"
+ add-mode wrap
+ !else
+ !if &sin "||tex|bib|" &cat &cat "|" %ext "|"
+ add-mode cmode
+ add-mode wrap
+ !endif
+ !endif
+ !endif
+!endm
+; set $readhook readhook-proc ; commented out 10 Feb 94
+
+store-procedure file-split
+; split $cfname into %f-dir %f-name %f-ext
+; uses %f-tmp1, %f-tmp2, %f-tmp3
+ set %f-dir &low $cfname
+ set %f-name ""
+ set %f-ext ""
+ set %f-tmp1 &length %f-dir
+ set %f-tmp2 &sindex %f-dir "."
+ !if &not &equ %f-tmp2 0
+ set %f-ext &mid %f-dir &add %f-tmp2 1 &sub %f-tmp1 %f-tmp2
+ set %f-dir &mid %f-dir 1 &sub %f-tmp2 1
+ !endif
+ set %f-tmp1 &length %f-dir
+ set %f-tmp2 &sindex %f-dir "\"
+ !if &not &equ %f-tmp2 0
+ set %f-tmp2 &length %f-dir
+ !while &not &sequal "\" &mid %f-dir %f-tmp2 1
+ set %f-tmp3 &mid %f-dir %f-tmp2 1
+ set %f-tmp2 &sub %f-tmp2 1
+ !endwhile
+ set %f-name &mid %f-dir &add %f-tmp2 1 &sub %f-tmp1 %f-tmp2
+ set %f-dir &mid %f-dir 1 %f-tmp2
+ !endif
+ ; print &cat &cat &cat &cat %f-dir "+" %f-name "+" %f-ext
+!endm
+
+store-procedure query-save-all
+; This macro saves all the modified buffers to their respective
+; files, but asks as it goes along
+; uses %f-tmp1, %f-tmp2
+ set %f-tmp1 $cbufname
+ !while TRUE
+ !if &equ $cbflags 2
+ set %f-tmp2 @&cat &cat "Save " $cbufname " (y/n)? [y]: "
+ !if &not &sequal %f-tmp2 "n"
+ !force save-file
+ !endif
+ !endif
+ !force next-buffer
+ !if &seq %f-tmp1 $cbufname
+ !return
+ !endif
+ !endwhile
+!endm
+
+store-procedure backup-save
+; renames then saves, like gnuemcs x.y -> x.~y
+; uses %f-tmp1, %f-tmp2, %f-tmp3
+; x-rename is a batch file name. Batch file contains:
+; del %2
+; rename %1 %2
+ !if &not &equ $cbflags 2 ; needs saving?
+ print "[File not modified]"
+ !else
+ file-split
+ set %f-tmp1 $cbufname ; old buffer
+ set %f-tmp2 $cfname ; old filename
+ set %f-tmp3 &cat &cat &cat %f-name ".~~" %f-ext ; backup filename
+ print "[Backing up...]"
+ ; 1 forces it to wait for completion
+ 1 shell-command &cat &cat &cat &cat %x-rename " " %f-tmp2 " " %f-tmp3
+ save-file
+ !endif
+!endm
+
+store-procedure s-insert-file
+; insert file, keeping point at same place, like gnu emacs
+; uses %s-tmp
+ set %s-tmp $yankflag
+ set $yankflag TRUE
+ !force execute-named-command insert-file
+ set $yankflag %s-tmp
+!endm
+
+store-procedure force-current-directory
+; make sure we are using directory of current buffer
+ !if &not &seq $cfname "" ; e.g. main has no file name
+ !force find-file $cfname ; force current directory
+ !endif
+!endm
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; GENERAL MENU ADDITIONS
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+bind-to-key set-mark ^@ ; gnu binding ; Doesn't work for 3.12
+ ; This is because ^@ means ^-space --- see documentation :-(
+
+macro-to-key toggle-overwrite FNC ; Insert key
+macro-to-key del-blanks FN^D ; ^Delete
+macro-to-key save-all-buffers M-^Z ; bind to ESC Ctrl+Z
+macro-to-key backup-save M-S ;
+macro-to-key s-insert-file ^XI ; gnu binding
+macro-to-key s-insert-file ^X^I ; old insert-file binding
+
+!if &not %l-menus-loaded
+ ; change from insert-file to s-insert-file
+ unbind-menu ">&File>&Insert..."
+ macro-to-menu s-insert-file ">&File>&Insert...@2"
+ ; add backup-save to File menu
+ macro-to-menu backup-save ">&File>Back&up and Save@6"
+
+ ; add insert-date to Edit menu
+ macro-to-menu insert-date ">&Edit>Insert &Date@3"
+
+ ; add clip-region to menu under Edit/Region
+ bind-to-menu clip-region ">&Edit>&Region>To Clip&board@0"
+ bind-to-menu nop "-"
+!endif
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; SPELL-CHECKING COMMANDS
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; Run spell checker on current buffer and re-read the file.
+; The spell-checker is a DOS program stored in %spell-exec
+
+write-message "[Loading Spell macros...]"
+
+
+store-procedure spell-buffer
+; uses s-tmp1
+ save-file
+ run force-current-directory
+ ; the 1 forces it to wait for completion
+ 1 execute-program &cat &cat %spell-exec " " $cfname
+ set %s-tmp1 @"[Spell] (Wait until completion) Re-Read file (y/n)? [y]: "
+ !if &not &sequal &lower %s-tmp1 "n"
+ read-file $cfname
+ !endif
+!endm
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; SPELL-CHECKING MENU ADDITIONS
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+!if &not %l-menus-loaded
+ macro-to-menu spell-buffer ">S&pell@4>&Buffer"
+!endif
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;
+; LaTeX COMMANDS
+;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+
+print "[Loading LaTeX macros...]"
+
+set $fmtlead "\ %" ; to prevent formatting of TeX stuff. Note blank!
+set $paralead "\% ~t"
+
+set %l-log-screen "LaTeX LOG"
+set %l-log-buffer "_texlog"
+set %l-fn "?" ; file name being processed (no extension)
+set %l-prog "?" ; program being used
+set %l-ext "?" ; extension for program (tex, dvi, etc.)
+set %l-log "?" ; logfile extension
+
+store-procedure set-latex-fn
+; uses %l-fn, %l-tmp1
+; set LaTeX file name
+; default is current buffer - remembers from run to run.
+ !if &sequ %l-fn "?"
+ run file-split
+ set %l-fn %f-name
+ !endif
+ set %l-tmp1 ""
+ set %l-tmp1 @&cat &cat &cat %l-prog " Filename (^G aborts )[" %l-fn "]: "
+ !if &not &equ 0 &sindex %l-tmp1 "[" ; Hack for ^G
+ print [Abort]
+ set %l-fn "?"
+ set %l-tmp1 ""
+ !return
+ !endif
+ !if &not &equal 0 &length %l-tmp1
+ set %l-fn %l-tmp1
+ !endif
+ print &cat &cat %l-prog "file name: " %l-fn
+!endm
+
+store-procedure l-run
+; uses %l-fn
+; %l-prog and %l-ext must be set before running this
+ run query-save-all
+ run set-latex-fn
+ run force-current-directory
+ !if &seq %l-fn "?" ; no file
+ !return
+ !endif
+ !if &not &exist &cat &cat %l-fn "." %l-ext
+ print &cat &cat &cat &cat "[No file " %l-fn "." %l-ext "]"
+ set %l-fn "?"
+ !else
+ ; kill old log
+ !if &seq $scrname %l-log-screen ; current screen is log
+ !force delete-buffer %l-log-buffer ; kill buffer
+ !force select-buffer %l-log-buffer
+ add-mode view
+ !else ; current screen is not log
+ !force delete-screen %l-log-screen ; kill screen and buffer
+ !force delete-buffer %l-log-buffer
+ !endif
+ print &cat &cat &cat &cat "[" %l-prog " " %l-fn "]"
+ !if &seq %l-ext "ps" ; gs requires the ".ps"
+ execute-program &cat &cat &cat %l-prog " " %l-fn ".ps"
+ !else
+ execute-program &cat &cat %l-prog " " %l-fn
+ !endif
+ !endif
+!endm
+
+store-procedure run-latex
+ set %l-prog %l-latex
+ set %l-ext "tex"
+ set %l-log "log"
+ run l-run
+!endm
+
+store-procedure run-tex
+ set %l-prog %l-tex
+ set %l-ext "tex"
+ set %l-log "log"
+ run l-run
+!endm
+
+store-procedure run-bibtex
+ set %l-prog %l-bibtex
+ set %l-ext "aux"
+ set %l-log "blg"
+ run l-run
+!endm
+
+store-procedure run-makeindex
+ set %l-prog %l-makeindex
+ set %l-ext "aux"
+ set %l-log "ilg"
+ run l-run
+!endm
+
+store-procedure print-latex
+ set %l-prog %l-print
+ set %l-ext "dvi"
+ set %l-log "?"
+ run l-run
+!endm
+
+store-procedure dvi2ps-latex
+ set %l-prog %l-dvi2ps
+ set %l-ext "dvi"
+ set %l-log "?"
+ run l-run
+!endm
+
+store-procedure psview-latex
+ set %l-prog %l-psview
+ set %l-ext "ps"
+ set %l-log "?"
+ run l-run
+!endm
+
+store-procedure view-latex
+ set %l-prog %l-view
+ set %l-ext "dvi"
+ run set-latex-fn
+ run force-current-directory
+ !if &not &exist &cat %l-fn ".dvi"
+ run file-split
+ print &cat &cat "[No file " %l-fn ".dvi]"
+ set %l-fn "?"
+ !else
+ print &cat &cat "[view " %l-fn "]"
+ execute-program &cat &cat &cat %l-view " " %l-fn ".dvi"
+ !endif
+!endm
+
+store-procedure view-charset ; View LaTeX character set
+ !if &not &exist &cat %l-file-path "charset.dvi"
+ print &cat &cat "[No file " %l-file-path "charset.dvi]"
+ !else
+ print &cat &cat "[view " %l-file-path "charset.dvi]"
+ execute-program &cat &cat &cat %l-view " " %l-file-path "charset.dvi"
+ !endif
+!endm
+
+store-procedure l-display-log
+ run force-current-directory
+ set %l-tmp1 &cat &cat %l-fn "." %l-log
+ set %l-tmp2 @&cat &cat " Read Log (^G aborts )[" %l-tmp1 "]: "
+ !if &not &equ 0 &sindex %l-tmp2 "[" ; Hack for ^G
+ print "[Abort]"
+ !return
+ !endif
+ !if &not &equ &len %l-tmp2 0
+ set %l-tmp1 %l-tmp2
+ !endif
+ !if &not &exist %l-tmp1
+ print &cat &cat "[No file " %l-tmp1 "]"
+ !return
+ !endif
+ !force find-screen %l-log-screen
+ !force select-buffer %l-log-buffer
+ !force read-file %l-tmp1
+ add-mode view
+ print "[F4 to find error]"
+!endm
+
+store-procedure l-find-error
+; Modified for 3.12 by turning $discmd on and off... 4 Feb 94
+; parse LaTeX log-file for errors
+; %e-upto is line in log-file we are up to
+; %e-line and %e-file are where the errors are
+; uses %l-tmp1
+ print "[Searching for LaTeX error]"
+ set $discmd FALSE
+ find-screen %l-log-screen
+ select-buffer %l-log-buffer
+ set $discmd TRUE ; turning it on seems essential
+ !if &seq $cfname "" ; read log if there is none
+ l-display-log
+ update-screen
+ print "[Searching for LaTeX error]"
+ !endif
+ set $discmd FALSE
+ !force search-forward "~nl." ; find next error
+ !if &not $status
+ print "[No more errors]"
+ !return
+ !endif
+ update-screen
+ set %e-upto $curline
+ set-mark
+ end-of-word
+ set %e-line $region
+ set %e-paren 1 ; number of parentheses - count down to 0
+ !force search-reverse "~!" ; search back for file name
+ !while TRUE
+ !force previous-line
+ !if &not $status
+ print "[Cannot locate file name]"
+ !return
+ !endif
+ beginning-of-line
+ !if &seq &chr $curchar "?" ; skip error listing
+ !force search-reverse "~n!"
+ !force next-line
+ !else
+ !if &seq &chr $curchar "." ; TeX warnings
+ !force search-reverse "~n[]"
+ !else
+ !if &not &seq &mid $line 1 15 "LaTeX Warning: "
+ !if &not &seq &chr $curchar "\"
+ !if &not &and &equ &sindex $line "(" 0 &equ &sindex $line ")" 0
+ ; examine the line for brackets
+ ; update-screen
+ ; set %dummy @&cat &cat &cat "examining line" $line " " %e-paren
+
+ end-of-line
+ !while &not &equ $curcol 0
+ backward-character
+ !if &seq &chr $curchar "("
+ set %e-paren &sub %e-paren 1
+ !endif
+ !if &seq &chr $curchar ")"
+ set %e-paren &add %e-paren 1
+ !endif
+ !if &equ %e-paren 0
+ !break
+ !endif
+ !endwhile
+ !if &equ %e-paren 0
+ !break
+ !endif
+ !endif ; end of examine the line for brackets
+ !endif
+ !endif
+ !endif
+ !endif
+ !endwhile ; should now be at filename
+ !if &not &seq &chr $curchar "("
+ print "[Cannot locate file name]"
+ !return
+ !endif
+ forward-character
+ set-mark
+ end-of-line
+ set %e-file $region
+ set %l-tmp1 &sindex %e-file " " ; always a blank before [n] etc.
+ !if &not &equ 0 %l-tmp1
+ set %e-file &mid %e-file 1 &sub %l-tmp1 1
+ !endif
+ goto-line %e-upto
+ !force next-line
+ beginning-of-line
+ set $discmd TRUE
+ update-screen
+ print &cat &cat %e-file " " %e-line
+ set %l-tmp1 @&cat &cat &cat "Enter for error: " %e-file " " %e-line
+ set $discmd FALSE
+ !force find-file %e-file
+ set %l-tmp $cbufname ; juggle the buffers - must be easier way!
+ !force find-screen %l-tmp
+ !force select-buffer %l-tmp
+ !force find-screen %l-log-screen
+ !force select-buffer %l-log-buffer
+ !force find-screen %l-tmp
+ !if &not $status
+ set $discmd TRUE
+ print &cat &cat "[Cannot find file " %e-file "]"
+ set $discmd FALSE
+ !endif
+ !force goto-line %e-line
+ set $discmd TRUE
+ print "[F4 for next error]"
+!endm
+
+
+
+store-procedure clear-latex-file
+ set %l-fn "?"
+!endm
+
+; superscripts/subscripts
+
+store-procedure superscript-b
+ insert-string "^{}"
+ backward-character
+!endm
+
+store-procedure subscript-b
+ insert-string "_{}"
+ backward-character
+!endm
+
+; useful pairs of delimiters
+
+store-procedure curly-b
+ insert-string "{}"
+ backward-character
+!endm
+
+store-procedure round-b
+ insert-string "()"
+ backward-character
+!endm
+
+store-procedure square-b
+ insert-string "[]"
+ backward-character
+!endm
+
+store-procedure angle-b
+ insert-string "\langle\rangle"
+ 7 backward-character
+!endm
+
+store-procedure vert-b
+ insert-string "||"
+ backward-character
+!endm
+
+store-procedure d-vert-b
+ insert-string "\|\|"
+ 2 backward-character
+!endm
+
+store-procedure quote-b
+ insert-string "``''"
+ backward-character
+ backward-character
+!endm
+
+store-procedure slash-curly-b
+ insert-string "\{\}"
+ 2 backward-character
+!endm
+
+store-procedure slash-round-b
+ insert-string "\(\)"
+ 2 backward-character
+!endm
+
+store-procedure slash-square-b
+ insert-string "\[\]"
+ 2 backward-character
+!endm
+
+store-procedure dollar-b
+ insert-string "$$"
+ backward-character
+!endm
+
+store-procedure double-dollar-b
+ insert-string "$$$$"
+ 2 backward-character
+!endm
+
+store-procedure sizable-curly-b
+ insert-string "\left\{\right\}"
+ 8 backward-character
+!endm
+
+store-procedure sizable-square-b
+ insert-string "\left[\right]"
+ 7 backward-character
+!endm
+
+store-procedure sizable-round-b
+ insert-string "\left(\right)"
+ 7 backward-character
+!endm
+
+store-procedure sizable-angle-b
+ insert-string "\left\langle\right\rangle"
+ 13 backward-character
+!endm
+
+store-procedure sizable-vert-b
+ insert-string "\left|\right|"
+ 7 backward-character
+!endm
+
+store-procedure sizable-d-vert-b
+ insert-string "\left\|\right\|"
+ 8 backward-character
+!endm
+
+set %p-doline FALSE ; default is to do a "word"
+set %p-gotop TRUE ; default is to go to top of file
+ ; other choices may be useful
+
+; store the general motion commands for position-cursor
+; in %motion-c1 and %motion-c2
+; NOTE: Too long a string crashes the program !!
+set %motion-c1 "!forward-character!backward-character!"
+set %motion-c1 &cat %motion-c1 "next-line!previous-line!"
+set %motion-c1 &cat %motion-c1 "beginning-of-line!end-of-line!"
+set %motion-c2 "!beginning-of-file!end-of-file!"
+set %motion-c2 &cat %motion-c2 "end-of-word!previous-word!"
+set %motion-c2 &cat %motion-c2 "next-page!previous-page!"
+
+store-procedure position-cursor
+; Uses %p-tmp %p-tmp-t %p-tmp-l.
+; if %p-gotop make sure we are at top of file.
+; Use arrow, paging keys, mouse, or search to position cursor
+; OR type into %p-tmp-t
+; Enter terminates it, C-G aborts.
+; %p-tmp-t is not blank, return it in %p-tmp,
+; else if $curcol!=0 and $curline!=1 return blank-delimited string
+; (not "word") at current point. If %p-doline get whole line.
+ !if %p-gotop
+ set $curcol 0
+ set $curline 1
+ !endif
+ set %p-tmp ""
+ set %p-tmp-t ""
+ !while TRUE ; break out with newline
+ print &cat "[Type, or Select, then Enter (^G aborts)]: " %p-tmp-t
+ update-screen
+ set %p-tmp &gtcmd
+ !if &equ &len %p-tmp 1 ; Then it's a printable character
+ set %p-tmp-t &cat %p-tmp-t %p-tmp
+ !else
+ set %p-tmp &bind %p-tmp ; translate command
+ !if &seq %p-tmp "delete-previous-character" ; delete last character
+ set %p-tmp-l &len %p-tmp-t
+ !if &greater %p-tmp-l 0
+ set %p-tmp-t &mid %p-tmp-t 1 &sub %p-tmp-l 1
+ !endif
+ !else
+ ; print %p-tmp
+ !if &seq %p-tmp newline ; break out with newline
+ !break
+ !endif
+ !if &seq %p-tmp abort-command ; break out with ^G
+ !break
+ !endif
+ !if &not &seq %p-tmp ERROR ; if valid command
+ !while TRUE ; break out if recognized motion key
+ ; first look for general motion
+ !if &not &equ 0 &sindex %motion-c1 &cat &cat "!" %p-tmp "!"
+ !force %p-tmp
+ !break
+ !endif
+ !if &not &equ 0 &sindex %motion-c2 &cat &cat "!" %p-tmp "!"
+ !force %p-tmp
+ !break
+ !endif
+ !if &seq %p-tmp [MSleft-down] ; mouse strokes
+ !force run MSleft-down
+ !break
+ !endif
+ !if &seq %p-tmp [MSleft-up]
+ !force run MSleft-up
+ !break
+ !endif
+ !if &seq %p-tmp search-forward ; searching
+ execute-named-command search-forward
+ !endif
+ !if &seq %p-tmp search-reverse
+ execute-named-command search-reverse
+ !endif
+ !break ; break if we didnt get anything
+ !endwhile ; test for motion commands
+ !endif ; not ERROR
+ !endif
+ !endif
+ update-screen
+ !endwhile ; test for return
+ !if &seq %p-tmp abort-command ; return nothing if aborted
+ set %p-tmp ""
+ !else
+ !if &greater &len %p-tmp-t 0
+ set %p-tmp %p-tmp-t
+ !else
+ !if &and &equ $curline 1 &equ $curcol 0
+ set %p-tmp ""
+ !else
+ !if %p-doline ; copy line
+ beginning-of-line
+ !while &and &equ &chr $curchar " " &not &equ $curcol $lwidth
+ forward-character
+ !endwhile
+ set-mark
+ end-of-line
+ !else ; copy word
+ !while &and &not &seq &chr $curchar " " &not &equ $curcol 0
+ backward-character
+ !endwhile
+ !if &seq &chr $curchar " "
+ forward-character
+ !endif
+ set-mark
+ !while &and &not &seq &chr $curchar " " &not &equ $curcol $lwidth
+ forward-character
+ !endwhile
+ !endif
+ set %p-tmp $region
+ !endif
+ !endif
+ !endif
+ ; print %p-tmp
+!endm
+
+store-procedure get-help-word
+; uses %h-oldfile, %h-file, %h-buffer
+; display file %h-file and return a word using position-cursor
+; word is returned in %p-tmp
+ set %h-oldfile $cfname
+ !if &not &exist &cat %l-file-path %h-file
+ print &cat &cat &cat "[No file " %l-file-path %h-file "]"
+ set %p-tmp "ERROR"
+ !return
+ !endif
+ find-file &cat %l-file-path %h-file
+ add-mode VIEW
+ update-screen
+ run position-cursor
+ set %h-buffer $cbufname
+ !force find-file %h-oldfile
+ !force delete-buffer %h-buffer
+!endm
+
+store-procedure l-insert-word
+; Insert command from file %h-file
+; If it has a {, position after the first one.
+; Used by many of below command, but some have to add things, so
+; do similar things themselves.
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ set %l-tmp1 %p-tmp
+ ; print %l-tmp1
+ !if &not &equ &len %l-tmp1 0
+ insert-string &cat %l-tmp1
+ set %l-tmp2 &sindex %l-tmp1 "{"
+ !if &not &equ %l-tmp2 0
+ set %l-tmp3 &sub &len %l-tmp1 %l-tmp2
+ !force %l-tmp3 backward-character
+ !endif
+ !endif
+!endm
+
+store-procedure l-env-pair
+; uses %l-tmp1, %p-tmp
+; create a LaTeX environment from user input
+ set %h-file "environ.lh"
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ set %l-tmp1 %p-tmp
+ !if &not &equ &len %l-tmp1 0
+ 2 open-line
+ insert-string &cat &cat "\begin{" %l-tmp1 "}"
+ !if &seq %l-tmp1 "array"
+ insert-string "{lrc}"
+ !endif
+ !if &seq %l-tmp1 "list"
+ insert-string "{labeling}{spacing}"
+ !endif
+ !if &seq %l-tmp1 "minipage"
+ insert-string "[pos]{vsize}"
+ !endif
+ !if &seq %l-tmp1 "picture"
+ insert-string "(x,y)(xl,yl)"
+ !endif
+ !if &seq %l-tmp1 "tabular"
+ insert-string "{lrc}"
+ !endif
+ !if &seq %l-tmp1 "thebibliography"
+ insert-string "{99}"
+ !endif
+ 2 next-line
+ insert-string &cat &cat "\end{" %l-tmp1 "}"
+ previous-line
+ !endif
+!endm
+
+store-procedure l-heading
+; uses %h-file, %l-tmp1, %p-tmp
+; create a LaTeX heading from user input
+ set %h-file "headings.lh"
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ set %l-tmp1 %p-tmp
+ ; print %l-tmp1
+ !if &not &equ &len %l-tmp1 0
+ insert-string &cat &cat "\" %l-tmp1 "{}"
+ backward-character
+ !endif
+!endm
+
+store-procedure l-template
+; LaTeX templates
+; uses %l-tmp1, %l-tmp2, %h-file, %p-tmp
+ set %h-file "ltemp.lh"
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ set %l-tmp1 %p-tmp
+ !if &not &equ &len %l-tmp1 0
+ set %l-tmp1 &cat &cat %l-file-path %l-tmp1 ".lt"
+ !if &not &exist %l-tmp1
+ print &cat &cat &cat "[No file " %l-tmp1 "]"
+ !else
+ set %l-tmp2 $yankflag
+ set $yankflag TRUE ; keep point at start of included file
+ insert-file %l-tmp1
+ set $yankflag %l-tmp2
+ !endif
+ !endif
+!endm
+
+store-procedure b-template
+; BibTeX templates
+; uses %l-tmp1, %l-tmp2, %h-file, %p-tmp
+ set %h-file "btemp.lh"
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ set %l-tmp1 %p-tmp
+ !if &not &equ &len %l-tmp1 0
+ set %l-tmp1 &cat &cat %l-file-path %l-tmp1 ".bt"
+ !if &not &exist %l-tmp1
+ print &cat &cat &cat "[No file " %l-file-path %l-tmp1 "]"
+ !else
+ set %l-tmp2 $yankflag
+ set $yankflag TRUE ; keep point at start of included file
+ insert-file %l-tmp1
+ set $yankflag %l-tmp2
+ end-of-line
+ backward-character
+ !endif
+ !endif
+!endm
+
+store-procedure l-misc
+; Miscellaneous LaTeX commands
+ set %h-file "misc.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-taccents
+; Text accents
+ set %h-file "taccents.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-tspecial
+; special sybols
+ set %h-file "tspecial.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-tforeign
+; foreign symbols
+ set %h-file "tforeign.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-maccents
+; math accents
+ set %h-file "maccents.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-greek
+; greek letters
+ set %h-file "greek.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mbinops
+; math binary operators
+ set %h-file "mbinops.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mrel
+; math relations
+ set %h-file "mrel.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-marrow
+; math arrows
+ set %h-file "marrow.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mmisc
+; math miscellaneous
+ set %h-file "mmisc.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mloglike
+; math loglike
+ set %h-file "mloglike.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mdelim
+; math delimiters
+ set %h-file "mdelim.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mvarsym
+; math variable-sized symbols
+ set %h-file "mvarsym.lh"
+ run l-insert-word
+!endm
+
+store-procedure l-mline
+; math overline/underline
+ set %h-file "mline.lh"
+ run l-insert-word
+!endm
+
+store-procedure latex-help
+ help-engine &cat %l-file-path latex.hlp
+!endm
+
+store-procedure search-latex-help
+; uses %s-tmp
+; pull keyword off the current file and search help.
+; only works for exact match.
+ !force end-of-word
+ set-mark
+ !force previous-word
+ set %s-tmp @&cat &cat "Search Help for [" $region "]: "
+ !if &equ &len %s-tmp 0
+ set %s-tmp $region
+ !endif
+ help-engine &cat %l-file-path latex.hlp
+ help-engine &cat %l-file-path latex.hlp %s-tmp
+ ; note that there are two parameters to help engine in this case
+ print &cat &cat "[Searching help file for " %s-tmp "]"
+!endm
+
+store-procedure interface-help
+ help-engine &cat %l-file-path "interfac.hlp"
+!endm
+
+store-procedure installation-help
+ !force find-screen "Installation Help"
+ !force find-file &cat %l-file-path mewlatex.txt
+ add-mode view
+!endm
+
+store-procedure tex-info
+; TeX information files, e.g. FAQ
+; You will want to change texinfo.lh for you local setup
+ set %h-file "texinfo.lh"
+ run get-help-word
+ !if &seq %p-tmp "ERROR"
+ !return
+ !endif
+ !if &not &equ &len %p-tmp 0
+ !if &not &exist %p-tmp
+ print &cat &cat "[No file " %p-tmp "]"
+ !else
+ !force find-screen &cat "Information: "%p-tmp
+ !force find-file %p-tmp
+ add-mode view
+ !endif
+ !endif
+!endm
+
+store-procedure clean-bibitem
+; get rid of pairs of quotes from bibTeX item.
+; only makes sense for a .bib file.
+; NOTE!: assumes the format in the template files, i.e.
+; one item per line, and the closing } on an separate line.
+ set $discmd FALSE
+ !force search-reverse "@"
+ beginning-of-line
+ !if &not &sequal "@" &mid $line 1 1
+ !return
+ !endif
+ !while TRUE
+ !force next-line
+ !if &not $status
+ !break
+ !endif
+ !if &sequal "@" &mid $line 1 1
+ !break
+ !endif
+ !if &not &equ 0 &sindex $line "~"~""
+ 1 kill-to-end-of-line
+ !force previous-line
+ !endif
+ !endwhile
+ !force backward-character
+ !if &not $status
+ !return
+ !endif
+ !while &or &seq &chr $curchar " " &seq &chr $curchar "~n"
+ !force backward-character
+ !if &not $status
+ !return
+ !endif
+ !endwhile
+ !if &not &seq &chr $curchar "}"
+ !return
+ !endif
+ !force backward-character
+ !while &or &seq &chr $curchar " " &seq &chr $curchar "~n"
+ !force backward-character
+ !if &not $status
+ !return
+ !endif
+ !endwhile
+ !if &seq &chr $curchar ","
+ delete-next-character
+ !endif
+ ; clear-message-line
+ set $discmd TRUE
+!endm
+
+store-procedure clean-bibfile
+; run clean-bib-item on whole file
+ run query-save-all
+ set %l-tmp1 @"Do you really want to clean your entire bibTeX file? [n]: "
+ !if &not &sequal &lower %l-tmp1 "y"
+ !return
+ !endif
+ print "[Cleaning BibTeX file. This may take a while...]"
+ set $discmd FALSE
+ beginning-of-file
+ !while TRUE
+ !force search-forward "@"
+ !if &not $status
+ !break
+ !endif
+ run clean-bibitem
+ ; update-screen
+ !force next-line
+ end-of-line
+ !endwhile
+ beginning-of-file
+ open-line
+ insert-string "BibFile Cleaned: "
+ run insert-date
+ print "[Please check this has not messed up your file!]"
+ set $discmd TRUE
+!endm
+
+store-procedure get-bib-key
+; get bibkey from current line, assuming "@name{key," synatax
+ set %b-key ""
+ !force search-forward "{"
+ !if &not $status
+ !return
+ !endif
+ set-mark
+ !force end-of-word
+ set %b-key $region
+ ; print %b-key
+!endm
+
+store-procedure find-min-key
+; return %m-key and %m-pos
+ set %m-key ""
+ set %m-pos 0
+ !force search-forward "@"
+ !if &not $status
+ !return
+ !endif
+ run get-bib-key
+ set %m-key %b-key
+ set %m-pos $curline
+ !while TRUE
+ !force search-forward "@"
+ !if &not $status
+ !break
+ !endif
+ run get-bib-key
+ !if &sless %b-key %m-key
+ set %m-key %b-key
+ set %m-pos $curline
+ !endif
+ !endwhile
+ ; print &cat &cat %m-key " " %m-pos
+!endm
+
+store-procedure sort-bibfile
+; sort a .bib file on the cite key
+; uses %s-pos to remember the current position
+; works through the file, doing an insertion sort on the %b-key
+;
+ run query-save-all
+ set %l-tmp1 @"Do you really want to sort your entire bibTeX file? [n]: "
+ !if &not &sequal &lower %l-tmp1 "y"
+ !return
+ !endif
+ print "[Sorting BibTeX file. This may take a while...]"
+ set $discmd FALSE
+ beginning-of-file
+ !while TRUE
+ !force search-forward "@"
+ !if &not $status
+ !break
+ !endif
+ set %s-pos $curline
+ beginning-of-line
+ run find-min-key
+ ; update-screen
+ ; set %dummy @&cat &cat &cat %s-pos " " %m-pos
+ !if &greater %m-pos %s-pos
+ goto-line %m-pos
+ beginning-of-line
+ set-mark
+ end-of-line
+ !force search-forward "@"
+ !if &not $status
+ end-of-file
+ !else
+ beginning-of-line
+ !endif
+ kill-region
+ goto-line %s-pos
+ yank
+ !endif
+ goto-line %s-pos
+ end-of-line
+ !endwhile
+ beginning-of-file
+ open-line
+ insert-string "BibFile Sorted: "
+ run insert-date
+ print "[Please check this has not messed up your file!]"
+ set $discmd TRUE
+!endm
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+; LaTeX MENU ADDITIONS
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+; help
+macro-to-key latex-help FN1
+macro-to-key search-latex-help FN2
+
+; debug
+macro-to-key l-display-log FN3
+macro-to-key l-find-error FN4
+
+; environment pair
+macro-to-key l-env-pair A-V
+
+; super/subscripts
+macro-to-key superscript-b A-^ ; ^{}
+macro-to-key subscript-b A-_ ; _{}
+
+; delimiter pairs -- you may want to personalize these key-bindings
+macro-to-key curly-b A-{ ; {}
+macro-to-key round-b A-( ; ()
+macro-to-key square-b A-[ ; []
+macro-to-key angle-b A-< ; \langle\rangle
+macro-to-key vert-b A-| ; ||
+macro-to-key d-vert-b A-\ ; \|\|
+macro-to-key quote-b A-" ; ``''
+macro-to-key slash-curly-b A-} ; \{\}
+macro-to-key slash-round-b A-) ; \(\)
+macro-to-key slash-square-b A-] ; \{\}
+macro-to-key dollar-b A-$ ; $$
+macro-to-key double-dollar-b ^XA-$ ; $$$$
+macro-to-key sizable-curly-b ^XA-{ ; \left\{\right\}
+macro-to-key sizable-square-b ^XA-[ ; \left[\right]
+macro-to-key sizable-round-b ^XA-( ; \left(\right)
+macro-to-key sizable-angle-b ^XA-< ; \left\langle\right\rangle
+macro-to-key sizable-vert-b ^XA-| ; \left|\right|
+macro-to-key sizable-d-vert-b ^XA-\ ; \left\|\right\|
+
+!if &not %l-menus-loaded
+ print "[Setting up LaTeX Menus]"
+ macro-to-menu l-template ">&TeX@5>LaTeX &Input>&Templates"
+ macro-to-menu l-heading "&Headings"
+ macro-to-menu l-env-pair "En&vironments"
+
+ macro-to-menu dollar-b ">&TeX>LaTeX &Input>Math E&nvironments@3>$ $"
+ macro-to-menu double-dollar-b "$$ $$"
+ macro-to-menu slash-round-b "\( \)"
+ macro-to-menu slash-square-b "\[ \]"
+
+
+ macro-to-menu curly-b ">&TeX>LaTeX &Input>&Brackets@4>{ }"
+ macro-to-menu slash-curly-b "\{ \}"
+ macro-to-menu round-b "( )"
+ macro-to-menu square-b "[ ]"
+ macro-to-menu angle-b "\langle \rangle"
+ macro-to-menu vert-b "| |"
+ macro-to-menu d-vert-b "\| \|"
+ macro-to-menu quote-b "`` ''"
+
+ macro-to-menu l-taccents ">&TeX>LaTeX &Input>Te&xt@5>&Accents"
+ macro-to-menu l-tspecial "&Special Symbols"
+ macro-to-menu l-tforeign "&Foreign Symbols"
+
+ macro-to-menu superscript-b ">&TeX>LaTeX &Input>&Math@6>&Super/Subscripts>^{}"
+ macro-to-menu subscript-b "_{}"
+
+ macro-to-menu sizable-curly-b ">&TeX>LaTeX &Input>&Math>Variable &Brackets@1>left\{ \right\}"
+ macro-to-menu sizable-round-b "left( \right)"
+ macro-to-menu sizable-square-b "left[ \right]"
+ macro-to-menu sizable-angle-b "\left\langle \right\rangle"
+ macro-to-menu sizable-vert-b "left| \right|"
+ macro-to-menu sizable-d-vert-b "left\| \right\|"
+
+ macro-to-menu l-maccents ">&TeX>LaTeX &Input>&Math>&Accents@2"
+ macro-to-menu l-greek "&Greek"
+ macro-to-menu l-mbinops "Binary &Operators"
+ macro-to-menu l-mrel "&Relation Symbols"
+ macro-to-menu l-marrow "Arro&ws"
+ macro-to-menu l-mmisc "&Miscellanous"
+ macro-to-menu l-mloglike "&Log Like"
+ macro-to-menu l-mdelim "&Delimiters"
+ macro-to-menu l-mvarsym "&Variable Symbols"
+ macro-to-menu l-mline "Over/&Under Line"
+
+ macro-to-menu l-misc ">&TeX>LaTeX &Input>Mis&cellaneous@7"
+
+ macro-to-menu b-template ">&TeX>&BibTeX Input@1>&Templates"
+ macro-to-menu clean-bibitem "Clean Bib&Item"
+ macro-to-menu clean-bibfile "Clean Bib&File"
+ macro-to-menu sort-bibfile "&Sort BibFile"
+
+ macro-to-menu run-latex ">&TeX>E&xecute@2>&LaTeX"
+ macro-to-menu run-tex "&TeX"
+ macro-to-menu view-latex "&View"
+ macro-to-menu dvi2ps-latex "&DVI to PostScript"
+ macro-to-menu psview-latex "Post&Script Preview"
+ macro-to-menu print-latex "&Print"
+ macro-to-menu run-bibtex "&BibTeX"
+ macro-to-menu run-makeindex "&MakeIndex"
+ macro-to-menu clear-latex-file "&Clear Filename"
+
+ macro-to-menu l-display-log ">&TeX>&Debug@3>&Read Logfile"
+ macro-to-menu l-find-error "&Find Next Error"
+
+ macro-to-menu latex-help ">&TeX>&Help@4>&LaTeX Commands"
+ macro-to-menu search-latex-help "&Search LaTeX Commands"
+ macro-to-menu view-charset "&Character Set"
+ macro-to-menu tex-info "&TeX Information"
+ macro-to-menu interface-help "&MicroEMACS Interface"
+ macro-to-menu installation-help "MicroEMACS I&nstallation"
+!endif
+
+set %l-menus-loaded "TRUE" ; so menu commands are only done once.
+print "[LaTeX Interface Loaded]"
+set $discmd TRUE
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/support/mewltx/latex.pif b/support/mewltx/latex.pif
new file mode 100644
index 0000000000..8901b45ccd
--- /dev/null
+++ b/support/mewltx/latex.pif
Binary files differ
diff --git a/support/mewltx/letter.lt b/support/mewltx/letter.lt
new file mode 100644
index 0000000000..5e23c62a27
--- /dev/null
+++ b/support/mewltx/letter.lt
@@ -0,0 +1,10 @@
+\begin{letter}{%
+Dr. Who\\
+Where
+}
+\opening{Dear Who,}
+
+% message text
+
+\closing{Sincerely,}
+\end{letter}
diff --git a/support/mewltx/ltemp.lh b/support/mewltx/ltemp.lh
new file mode 100644
index 0000000000..c40849f2f8
--- /dev/null
+++ b/support/mewltx/ltemp.lh
@@ -0,0 +1,4 @@
+LaTeX templates:
+
+report article revtex wholeletter letter
+postscript usebibtex
diff --git a/support/mewltx/maccents.lh b/support/mewltx/maccents.lh
new file mode 100644
index 0000000000..82628c5b6b
--- /dev/null
+++ b/support/mewltx/maccents.lh
@@ -0,0 +1,6 @@
+Math accents.
+
+\hat{} \check{} \dot{} \ddot{}
+\breve{} \tilde{} \grave{} \acute{}
+\bar{} \vec{}
+
diff --git a/support/mewltx/makeindx.pif b/support/mewltx/makeindx.pif
new file mode 100644
index 0000000000..6c1800727e
--- /dev/null
+++ b/support/mewltx/makeindx.pif
Binary files differ
diff --git a/support/mewltx/manual.bt b/support/mewltx/manual.bt
new file mode 100644
index 0000000000..a8e19f381e
--- /dev/null
+++ b/support/mewltx/manual.bt
@@ -0,0 +1,11 @@
+@MANUAL{,
+ author= "",
+ title= "",
+ organization= "",
+ address= "",
+ year= "",
+ month= "",
+ edition= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/marrow.lh b/support/mewltx/marrow.lh
new file mode 100644
index 0000000000..cd00e97bfd
--- /dev/null
+++ b/support/mewltx/marrow.lh
@@ -0,0 +1,23 @@
+Arrow symbols.
+
+\leftarrow \rightarrow
+\longleftarrow \longrightarrow
+\Leftarrow \Rightarrow
+\Longleftarrow \Longrightarrow
+\hookleftarrow \hookrightarrow
+\leftharpoonup \rightharpoonup
+\leftharpoondown \rightharpoondown
+\rightleftharpoons \leadsto
+\leftrightarrow \longleftrightarrow
+\Leftrightarrow \Longleftrightarrow
+\mapsto \longmapsto
+ \uparrow
+ \downarrow
+ \Uparrow
+ \Downarrow
+ \updownarrow
+ \Updownarrow
+ \nearrow
+ \searrow
+ \swarrow
+ \nwarrow
diff --git a/support/mewltx/masterst.bt b/support/mewltx/masterst.bt
new file mode 100644
index 0000000000..fcf1467742
--- /dev/null
+++ b/support/mewltx/masterst.bt
@@ -0,0 +1,10 @@
+@MASTERSTHESIS{,
+ author= "",
+ title= "",
+ school= "",
+ year= "",
+ address= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/mbinops.lh b/support/mewltx/mbinops.lh
new file mode 100644
index 0000000000..63cbdab38d
--- /dev/null
+++ b/support/mewltx/mbinops.lh
@@ -0,0 +1,11 @@
+Binary operation symbols.
+
+\pm \mp \times \div
+\ast \star \circ \bullet
+\cap \cup \uplus \cdot
+\sqcap \sqcup \vee \wedge
+\oplus \ominus \otimes \oslash
+\bigtriangleup \odot \lhd \dagger
+\bigtriangledown \bigcirc \rhd \ddagger
+\triangleleft \diamond \unlhd \setminus
+\triangleright \wr \unrhd \amalg
diff --git a/support/mewltx/mdelim.lh b/support/mewltx/mdelim.lh
new file mode 100644
index 0000000000..fd9d1c5bfd
--- /dev/null
+++ b/support/mewltx/mdelim.lh
@@ -0,0 +1,10 @@
+Delimiters
+
+( ) /
+[ ] \backslash
+\{ \} |
+\langle \rangle \|
+\uparrow \Uparrow \lfloor
+\downarrow \Downarrow \rfloor
+\updownarrow \Updownarrow \lceil
+ \rceil
diff --git a/support/mewltx/menu.txt b/support/mewltx/menu.txt
new file mode 100644
index 0000000000..6f5c58a1d5
--- /dev/null
+++ b/support/mewltx/menu.txt
@@ -0,0 +1,106 @@
+############################################################
+ MENU STRUCTURE FOR MEW LaTeX INTERFACE
+############################################################
+
+M.F. Reid January 10, 1993.
+
+Here I list all the additions to the menus. The key-bindings are
+not shown here, but are automatically on the menus.
+
+Many of the commands use a file, stored in %l-file-path
+
+############################################################
+File MENU FILE MACRO
+############################################################
+ Insert File... none s-insert-file
+============================================================
+ Backup and Save none backup-save
+============================================================
+
+############################################################
+Edit MENU FILE MACRO
+############################################################
+ Insert Date none insert-date
+============================================================
+ Region
+ To Clipboard none clip-region
+============================================================
+
+############################################################
+Spell MENU FILE MACRO
+############################################################
+ Buffer %spell-exec spell-buffer
+============================================================
+
+
+############################################################
+TeX MENU FILE MACRO
+############################################################
+
+LaTeX Input
+
+ Templates LTEMP.LH l-template
+
+ Headings HEADINGS.LH l-heading
+
+ Environments ENVIRON.LH l-env-pair
+
+ Math Environments none dollar-b, double-dollar-b,
+ slash-round-b, slash-square-b
+
+ Brackets none curly-b, slash-curly-b, round-b,
+ square-b, angle-b, vert-b, quote-b
+
+ Text
+ Accents TACCENTS.LH l-taccents
+ Special Symbols TSPECIAL.LH l-tspecial
+ Foreign Symbols TFOREIGN.LH l-tforeign
+
+ Math
+ Super/Subscript none superscript-b, subscript-b
+ Variable Brackets none sizable-curly-b, sizable-round-b,
+ sizable-square-b, sizable-angle-b,
+ sizable-vert-b, sizable-d-vert-b
+ Accents MACCENTS.LH l-maccents
+ Greek GREEK.LH l-greek
+ Binary Operators MBINOPS.LH l-mbinops
+ Relation Symbols MREL.LH l-mrel
+ Arrow Symbols MARROW.LH l-marrow
+ Miscellaneous MMISC.LH l-mmisc
+ Loglike MLOGLIKE.LH l-mloglike
+ Delimiters MDELIM.LH l-mdelim
+ Variable Symbols MVARSYM.LH l-mvarsym
+ Over/Under Line MLINE.LH l-mline
+
+ Miscellaneous MISC.LH l-misc
+============================================================
+BibTeX Input
+ Templates BTEMP.LH b-template
+ Clean BibItem none clean-bibitem
+ Clean BibFile none clean-bibfile
+ Sort BibFile none sort-bibfile
+============================================================
+Execute
+ LaTeX %l-latex run-latex
+ TeX %l-tex run-tex
+ View %l-view view-latex
+ DVI to PostScript %l-dvi2ps dvi2ps-latex
+ PostScript Preview %l-psview psview-latex
+ Print %l-print print-latex
+ BibTeX %l-bibtex run-bibtex
+ MakeIndex %l-makeindex run-makeindex
+ Clear Filename none clear-latex-file
+============================================================
+Debug
+ Read Logfile none l-display-log
+ Next Error none l-find-error
+============================================================
+Help
+ LaTeX Commands LATEX.HLP latex-help
+ Search LaTeX Commands LATEX.HLP search-latex-help
+ Character Set CHARSET.DVI view-charset
+ TeX Information TEXINFO.LH tex-info
+ MicroEMACS Interface INTERFAC.HLP interface-help
+ MicroEMACS Installation MEWLATEX.TXT installation-help
+============================================================
+
diff --git a/support/mewltx/mewlatex.txt b/support/mewltx/mewlatex.txt
new file mode 100644
index 0000000000..a3c966c0d5
--- /dev/null
+++ b/support/mewltx/mewlatex.txt
@@ -0,0 +1,166 @@
+MICROEMACS FOR WINDOWS LaTeX INTERFACE INSTALLATION.
+
+
+File: MEWLATEX.TXT
+January 10, 1993.
+Michael F. Reid <mfreid@hkuxa.hku.hk>
+Department of Physics, University of Hong Kong.
+From April 1993 <mfr@phys.canterbury.ac.nz>
+
+Version 1.0 of MEWLATEX, bundled as MEWLTX10.ZIP.
+
+This collection of files implements a LaTeX environment for micoEMACS
+for Windows (mewin), allowing you to prepare input, spell check,
+process, and view your document using mewin as a shell. There is crude
+error processing, and Windows Help on LaTeX commands.
+
+There is much that could probably be improved in this implementation.
+Please feel free to modify menu and key bindings to suit yourself, and
+tell me of any errors or omissions.
+
+You may also decide that much of what I have created is a waste of time,
+and you are welcome to shorten the LATEX.CMD file by removing unneeded
+items.
+
+These files are donated to the public domain, and, of course, come with
+no warrenty. Please note that the LATEX.HLP file is derived from a file
+compiled by George Greenwade, and the CHARSET.TEX and CHARSET.DVI files
+from a RevTeX file.
+
+NOTE:
+
+The LATEX.HLP file mentioned below has been bundled separately as
+LATEXHLP.ZIP. To rebuild it you also need VMS2WINH.ZIP.
+
+WHAT YOU NEED BEFORE YOU START.
+
+1. A working mewin. You need the files mew11.zip (executables) and
+mewh11.zip (help) (sources also available) from "cica",
+ftp.cica.indiana.edu, directory pub/pc/win3/util, and probably from
+"simtel".
+
+2. A spell checker. A TeX-aware spell checker is amSpell, available as
+amspel20.zip on "simtel" e.g. wuarchive.wustl.edu, directory
+mirrors/msdos/txtutl.
+
+3. TeX, BibTeX and MakeIndex binaries, and associated files. I use
+emTeX, available from niord.shsu.edu, in the EMTEX directory and
+subdirectories.
+
+4. A previewer, such as dvimswin (a Windows application), available as
+dvimsw24.zip from "simtel", e.g. wuarchive.wustl.edu, directory
+mirrors/msdos/tex. You also need fonts from the dvivga?.zip files.
+
+5. A printer driver. Either one of the emTeX drivers, or, if you use
+PostScript, get dvips, available on "simtel" as dvips???.zip, e.g.
+wuarchive.wustl.edu, directory mirrors/msdos/postscript.
+
+6. A PostScript previewer if you want to insert PostScript figures. I
+use GhostScript, available on "simtel" as gs???.zip, e.g.
+wuarchive.wustl.edu, directory mirrors/msdos/postscript. The 386 version
+runs in a DOS box. There is a Windows version, but it is much slower.
+
+INSTALLING FILES.
+
+The following files are NEEDED to run the system:
+
+ LATEX.CMD
+which would normally be placed in the same directory as the mewin
+executable.
+
+ MEWLATEX.TXT This file (Installation Help).
+ *.LH Header files used by LATEX.CMD
+ *.LT LaTeX document templates
+ *.BT bibTeX document templates
+ LATEX.HLP LaTeX command help (SEE COMMENTS ABOVE!)
+ INTERFAC.HLP Help on this interface
+ CHARSET.DVI LaTeX characters
+which might usefully be placed in a separate directory.
+
+ *.PIF pif and
+ *.BAT batch files
+You will need need to change and add to these and put them somewhere on
+your path.
+
+The following files are useful if you need to rebuild the system.
+
+ MENU.TXT Description of the menu setup.
+ CHARSET.TEX Source for CHARSET.DVI (requires RevTeX to process).
+ INTERFAC.RTF RTF (edit with Word) and
+ INTERFAC.HPJ HPJ files used to prepare INTERFAC.HLP, by running
+ HC INTERFAC.HPJ, where HC is the MSWindows help
+ compiler that comes with various Windows programming
+ toolkits. See the appropriate documentation.
+ INTERFAC.TXT Text version of INTERFAC.RTF.
+
+SETTING UP.
+
+Once you have the files, you need to edit your EMACS.RC, to add the
+line:
+ execute-file "LATEX.CMD"
+at the end. This will cause the LaTeX macros to be loaded.
+
+You MUST examine LATEX.CMD to at make sure that %l-file-path points to
+the files mentioned above, and the following variables point to files,
+either explicitly, or on your path. Personally, I use the pif files to
+point to batch files, which set up the appropriate environmental
+variables before running the executables.
+
+; GENERAL
+set %x-rename "xrename.bat" ; delete and rename, used for backup-save
+; if xrename.bat is not in your path, you won't get a backup!
+
+; SPELL-CHECKING
+set %spell-exec "spell.pif" ; spell checker
+; using spell.pif allows better control over the spell-checker
+; amSpell likes to run full-screen, for example
+
+; LaTeX
+set %l-file-path "c:\bin\mewin\latex\"
+ ; finish with "\"
+ ; place to look for help and templates
+set %l-latex "latex.pif" ; LaTeX executable
+set %l-tex "tex.pif" ; plain TeX executable
+set %l-view "dvimswin.exe" ; previewer
+set %l-print "texprint.pif" ; printer driver
+set %l-dvi2ps "dvi2ps.pif" ; dvi to postscript
+set %l-psview "gs.pif" ; postscript previewer
+set %l-makeindex "makeindx.pif" ; MakeIndex executable
+set %l-bibtex "bibtex.pif" ; bibTeX executable
+
+
+USING THE MACROS.
+
+Now run mewin and look under the (new) TeX menu item for the help menu,
+and read the Help Interface help (or print INTERFAC.TXT as text or
+INTERFAC.RTF using MS Word).
+
+
+EXTENDING THE MACROS.
+
+Several macros are implemented by displaying a "Heading" .LH file, and
+allowing the user to point at the appropriate selection. The files are
+shown in MENU.TXT
+
+For example, if the user selected LaTeX Input, then Templates, the file
+LTEMP.LH would be displayed. If she then picked "report", the file
+REPORT.LT would be inserted into her file. Thus, modification is
+accomplished by adding to TEMPLATE.LH and adding appropriate files. I
+suspect that the LaTeX Templates area is the one you are most likely to
+want to change.
+
+The TEXINFO.LH file will almost certainly need to be modified. I have it
+set up to load the TeX FAQ files.
+
+If you want to make other modifications you need to read the description
+of the macro language in the online help. It is quite likely that you
+will have other ideas for key-bindings, so feel free to experiment!
+
+Note that my macros for:
+
+1. Tidying up bibTeX files; and
+2. Searching for errors in LaTeX log files;
+
+are not very good (parsing LaTeX log files is quite a challenge) and I
+welcome suggestions for improvement.
+
diff --git a/support/mewltx/misc.bt b/support/mewltx/misc.bt
new file mode 100644
index 0000000000..acb0e994b0
--- /dev/null
+++ b/support/mewltx/misc.bt
@@ -0,0 +1,9 @@
+@MISC{,
+ author= "",
+ title= "",
+ howpublished= "",
+ year= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/misc.lh b/support/mewltx/misc.lh
new file mode 100644
index 0000000000..96d47eddd6
--- /dev/null
+++ b/support/mewltx/misc.lh
@@ -0,0 +1,24 @@
+Miscellaneous LaTeX commands
+
+\frac{}{}
+\makebox[size][pos]{text}
+\multicolumn{noc}{fmt}{text}
+\newcommand{\cs}[narg]{def}
+\newcounter{counter}[name]
+\newenvironment{envname}[narg]{def1}{def2}
+\newtheorem{env}[env2]{label}[sectype]
+\raisebox{dim}[d2][d3]{text}
+\renewcommand{\cs}[narg]{def}
+\renewenvironment{envname}[narg]{def1}{def2}
+\rule[height]{length}{width}
+\savebox{\binname}[width][pos]{text}
+\sbox{\binname}{text}
+\setlength{\nl}{length}
+\settowidth{\nl}{text}
+\shortstack[pos]{x\\y}
+\sqrt[]{}
+\stackrel{stuff}{delim}
+\typein[\cs]{text}
+\typeout{}
+\usebox{\binname}
+\verb||
diff --git a/support/mewltx/mline.lh b/support/mewltx/mline.lh
new file mode 100644
index 0000000000..aec50a1395
--- /dev/null
+++ b/support/mewltx/mline.lh
@@ -0,0 +1,6 @@
+Overline/Underline.
+
+\overline{} \underline{}
+\overbrace{} \underbrace{}
+\widehat{} \widetilde{}
+
diff --git a/support/mewltx/mloglike.lh b/support/mewltx/mloglike.lh
new file mode 100644
index 0000000000..380eac1cf0
--- /dev/null
+++ b/support/mewltx/mloglike.lh
@@ -0,0 +1,10 @@
+Log-like functions.
+
+\arccos \arcsin \arctan \arg \cos
+\cosh \cot \coth \csc \deg
+\det \dim \exp \gcd \hom
+\inf \ker \lg \lim \liminf
+\limsup \ln \log \max \min
+\Pr \sec \sin \sinh \sup
+\tan \tanh
+
diff --git a/support/mewltx/mmisc.lh b/support/mewltx/mmisc.lh
new file mode 100644
index 0000000000..ad334d9375
--- /dev/null
+++ b/support/mewltx/mmisc.lh
@@ -0,0 +1,14 @@
+Miscellaneous symbols.
+
+\frac{}{} \sqrt[]{}
+
+\flat \natural \sharp \prime
+\backslash \forall \infty \exists
+\emptyset \Box \nabla \neg
+\Diamond \surd \triangle \|
+\clubsuit \aleph \wp \top
+\diamondsuit \Re \ell \bot
+\heartsuit \Im \imath \partial
+\spadesuit \hbar \jmath \angle
+\mho
+
diff --git a/support/mewltx/mrel.lh b/support/mewltx/mrel.lh
new file mode 100644
index 0000000000..1b678273c8
--- /dev/null
+++ b/support/mewltx/mrel.lh
@@ -0,0 +1,13 @@
+Relation symbols.
+
+\leq \geq \ll \gg
+\equiv \asymp \neq \doteq
+\subset \supset \subseteq \supseteq
+\sqsubset \sqsupset \sqsubseteq \sqsupseteq
+\models \perp \mid \parallel
+\prec \succ \preceq \succeq
+\sim \simeq \approx \cong
+\bowtie \Join \smile \frown
+\in \ni \vdash \dashv
+\propto
+
diff --git a/support/mewltx/mvarsym.lh b/support/mewltx/mvarsym.lh
new file mode 100644
index 0000000000..89e192d24e
--- /dev/null
+++ b/support/mewltx/mvarsym.lh
@@ -0,0 +1,7 @@
+Variable-sized symbols.
+
+\sum \prod \coprod
+\int \oint \biguplus
+\bigcap \bigcup \bigsqcup
+\bigodot \bigotimes \bigoplus
+\bigvee \bigwedge
diff --git a/support/mewltx/phdthesi.bt b/support/mewltx/phdthesi.bt
new file mode 100644
index 0000000000..fcf1467742
--- /dev/null
+++ b/support/mewltx/phdthesi.bt
@@ -0,0 +1,10 @@
+@MASTERSTHESIS{,
+ author= "",
+ title= "",
+ school= "",
+ year= "",
+ address= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/postscri.lt b/support/mewltx/postscri.lt
new file mode 100644
index 0000000000..c1a17edfbf
--- /dev/null
+++ b/support/mewltx/postscri.lt
@@ -0,0 +1,5 @@
+\begin{figure}[hl]
+\caption{caption}
+\vspace{5.0cm}
+\special{psfile="myfile.ps" hoffset=-72 voffset=-36}
+\end{figure}
diff --git a/support/mewltx/proceedi.bt b/support/mewltx/proceedi.bt
new file mode 100644
index 0000000000..94072f4dc8
--- /dev/null
+++ b/support/mewltx/proceedi.bt
@@ -0,0 +1,12 @@
+@PROCEEDINGS{,
+ editor= "",
+ title= "",
+ publisher= "",
+ address= "",
+ organization= "",
+ year= "",
+ volume= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/readme.mwl b/support/mewltx/readme.mwl
new file mode 100644
index 0000000000..3f494e4006
--- /dev/null
+++ b/support/mewltx/readme.mwl
@@ -0,0 +1,7 @@
+README.MWL
+January 11 1993
+Readme file for MEWLTX10, MEWLaTeX interface version 1.0
+
+See MEWLATEX.TXT for information.
+
+
diff --git a/support/mewltx/report.lt b/support/mewltx/report.lt
new file mode 100644
index 0000000000..f1d9b57d55
--- /dev/null
+++ b/support/mewltx/report.lt
@@ -0,0 +1,4 @@
+\documentstyle[12pt,a4]{report}
+\begin{document}
+
+\end{document}
diff --git a/support/mewltx/revtex.lt b/support/mewltx/revtex.lt
new file mode 100644
index 0000000000..59720eea0a
--- /dev/null
+++ b/support/mewltx/revtex.lt
@@ -0,0 +1,67 @@
+% ****** Start of file template.aps ****** %
+%
+% This file is part of the APS files in the REVTeX 3.0 distribution.
+% Version 3.0 of REVTeX, November 10, 1992.
+%
+% Copyright (c) 1992 The American Physical Society.
+%
+% See the REVTeX 3.0 README file for restrictions and more information.
+%
+%
+% This is a template for producing files for use with REVTEX 3.0.
+% Copy this file to another name and then work on that file.
+% That way, you always have this original template file to use.
+%
+\documentstyle[aps]{revtex}
+\begin{document}
+% \draft command makes pacs numbers print
+\draft
+% repeat the \author\address pair as needed
+\author{}
+\address{}
+\date{\today}
+\maketitle
+\begin{abstract}
+% insert abstract here
+\end{abstract}
+% insert suggested PACS numbers in braces on next line
+\pacs{}
+
+% body of paper here
+
+% now the references. delete or change fake bibitem. delete next three
+% lines and directly read in your .bbl file if you use bibtex.
+\begin{references}
+\bibitem{tag} Fake bibitem.
+\end{references}
+
+% figures follow here
+%
+% Here is an example of the general form of a figure:
+% Fill in the caption in the braces of the \caption{} command. Put the label
+% that you will use with \ref{} command in the braces of the \label{} command.
+%
+% \begin{figure}
+% \caption{}
+% \label{}
+% \end{figure}
+
+% tables follow here
+%
+% Here is an example of the general form of a table:
+% Fill in the caption in the braces of the \caption{} command. Put the label
+% that you will use with \ref{} command in the braces of the \label{} command.
+% Insert the column specifiers (l, r, c, d, etc.) in the empty braces of the
+% \begin{tabular}{} command.
+%
+% \begin{table}
+% \caption{}
+% \label{}
+% \begin{tabular}{}
+% \end{tabular}
+% \end{table}
+
+\end{document}
+%
+% ****** End of file template.aps ******
+
diff --git a/support/mewltx/spell.pif b/support/mewltx/spell.pif
new file mode 100644
index 0000000000..361d2e68f2
--- /dev/null
+++ b/support/mewltx/spell.pif
Binary files differ
diff --git a/support/mewltx/taccents.lh b/support/mewltx/taccents.lh
new file mode 100644
index 0000000000..f35d1573d4
--- /dev/null
+++ b/support/mewltx/taccents.lh
@@ -0,0 +1,7 @@
+Text accents.
+
+\`{} \'{} \^{} \"{}
+\~{} \={} \.{} \u{}
+\v{} \H{} \t{} \c{}
+\d{} \b{}
+
diff --git a/support/mewltx/techrepo.bt b/support/mewltx/techrepo.bt
new file mode 100644
index 0000000000..f40f93dca5
--- /dev/null
+++ b/support/mewltx/techrepo.bt
@@ -0,0 +1,11 @@
+@TECHREPORT{,
+ author= "",
+ title= "",
+ institution= "",
+ address= "",
+ type= "",
+ year= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/tex.pif b/support/mewltx/tex.pif
new file mode 100644
index 0000000000..0749bb95f5
--- /dev/null
+++ b/support/mewltx/tex.pif
Binary files differ
diff --git a/support/mewltx/texinfo.lh b/support/mewltx/texinfo.lh
new file mode 100644
index 0000000000..8c1baa5701
--- /dev/null
+++ b/support/mewltx/texinfo.lh
@@ -0,0 +1,14 @@
+TeX Information files
+
+i:\tex\info\tex.faq TeX Frequently Asked Questions
+
+i:\tex\info\sup-tex.faq Supplement to TeX Frequently Asked Questions
+
+i:\tex\info\lat-sty.ymir LaTeX style files on ymir.claremont.edu
+
+i:\tex\info\lat-sty.shsu LaTeX style files on niord.shsu.edu
+
+i:\tex\info\bib-sty.ymir BibTeX style files on ymir.claremont.edu
+
+i:\tex\info\bib-sty.shsu BibTeX style files on niord.shsu.edu
+
diff --git a/support/mewltx/texprint.pif b/support/mewltx/texprint.pif
new file mode 100644
index 0000000000..0ffbccb71c
--- /dev/null
+++ b/support/mewltx/texprint.pif
Binary files differ
diff --git a/support/mewltx/tforeign.lh b/support/mewltx/tforeign.lh
new file mode 100644
index 0000000000..7f046b4cbf
--- /dev/null
+++ b/support/mewltx/tforeign.lh
@@ -0,0 +1,6 @@
+Foreign symbols.
+
+\aa \AA \ae \AE
+\o \O \oe \OE
+\l \L ?` !`
+\ss
diff --git a/support/mewltx/tspecial.lh b/support/mewltx/tspecial.lh
new file mode 100644
index 0000000000..e8b7a921d5
--- /dev/null
+++ b/support/mewltx/tspecial.lh
@@ -0,0 +1,4 @@
+Special sybols; any mode.
+
+\dag \S \copyright
+\ddag \P \pounds
diff --git a/support/mewltx/unpublis.bt b/support/mewltx/unpublis.bt
new file mode 100644
index 0000000000..365de3e8ac
--- /dev/null
+++ b/support/mewltx/unpublis.bt
@@ -0,0 +1,8 @@
+@UNPUBLISHED{,
+ author= "",
+ title= "",
+ year= "",
+ month= "",
+ note= "",
+ annote= ""
+}
diff --git a/support/mewltx/usebibte.lt b/support/mewltx/usebibte.lt
new file mode 100644
index 0000000000..5df0df0ccc
--- /dev/null
+++ b/support/mewltx/usebibte.lt
@@ -0,0 +1,3 @@
+% \nocite{*} % uncomment to print entire database
+\bibliography{mybib} % .bib files: thisbib,thatbib
+\bibliographystyle{style} % .bst files: prsty, astron, aplain, etc.
diff --git a/support/mewltx/wholelet.lt b/support/mewltx/wholelet.lt
new file mode 100644
index 0000000000..deb84edc87
--- /dev/null
+++ b/support/mewltx/wholelet.lt
@@ -0,0 +1,16 @@
+\documentstyle[12pt,a4,physhead]{letter}
+\signature {name}
+\address{additional address}
+%\makelabels % generate labels after all the letters
+\begin{document}
+
+\begin{letter}{%
+Dr. Who\\
+Where}
+\opening{Dear Who,}
+
+% message text
+
+\closing{Sincerely,}
+\end{letter}
+\end{document}
diff --git a/support/mewltx/xrename.bat b/support/mewltx/xrename.bat
new file mode 100644
index 0000000000..91f4d99410
--- /dev/null
+++ b/support/mewltx/xrename.bat
@@ -0,0 +1,3 @@
+rem xrename renames %1 to %2, deleting %2 first.
+del %2
+rename %1 %2