sunlight

Embedded TEXTeX

Introduction

The worldwide standard for document formatting is a program called TEX. This program is widely used for books, research papers and documents worldwide.

However, TEX is a difficult system to use - it demands that your entire document be written in TEX's native language, which is a text mark-up language similar to Rich Text Format. Many people prefer to write in Microsoft Word or another word-processing package.  Unfortunately, this denies access to TEX's rich formatting capabilities, notably in the area of equation processing.

Embedded TEX solves this problem, by allowing you to embed TEX equations directly in Word, Excel, PowerPoint or any other package capable of inserting OLE objects.

Features

Embedded TEX offers the following features:

  • Fast - equation is rendered once, and further drawing is very quick
  • Standard - Embedded TEX uses the MiKTEX implementation of LATEX, version 2.0, an up-to-date Win32 implementation of TEX;
  • Extensible - Embedded TEX allows you to use any standard TEX package;
  • Easy-to-use - just double-click on the control to edit.

Examples

All these examples were generated in Microsoft Word.

\label{e:barwq}\begin{split}
H_c&=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-{l})^{p-2}
\sum_{l _1+\dots+ l _p=l}\prod^p_{i=1} \binom{n_i}{l _i}\\
&\quad\cdot[(n-l )-(n_i-l _i)]^{n_i-l _i}\cdot
\Bigl[(n-l )^2-\sum^p_{j=1}(n_i-l _i)^2\Bigr].
\kern-2em\end{split}

\left.\begin{aligned}
  B'&=-\partial\times E,\\
  E'&=\partial\times B - 4\pi j,
\end{aligned}
\right\}
\qquad \text{Maxwell's equations}

\label{eq:D}
\begin{pmatrix} D_1t&-a_{12}t_2&\dots&-a_{1n}t_n\\
-a_{21}t_1&D_2t&\dots&-a_{2n}t_n\\
\hdotsfor[2]{4}\\
-a_{n1}t_1&-a_{n2}t_2&\dots&D_nt\end{pmatrix}

Download

Before you can use Embedded TEX, you must download and install MiKTEX version 2.0 or later.

The Embedded TEX control is distributed under the terms of the GNU General Public License, since it is based on MiKTEX.

The Embedded TEX installation uses the new Microsoft Windows Installer technology, to be fully Windows 2000-compliant. You must have the Windows Installer installed (included in Windows 2000 and Office 2000), downloadable from Microsoft's Web site.

Install file (300k)
Readme.txt
(1k)
License.txt (15k)

If you get Windows Installer errors with this, try downloading the Zip file (234k).

You can download the source code for the Embedded TEX control as a Zip file (53k).

Using Embedded TEX

Once it is installed, simply choose Edit - Insert Object or Insert - Object from any OLE compatible program, and type your TEX code directly in. If you are new to TEX, go to http://www.tug.org/ to find out more!

If the 'Full Document' check box is checked, Embedded TEX will expect a complete TEX document, which it will pass to LATEX. It will then display the content of the first page only in the control. If page numbers are included, Embedded TEX will display these as well; for this reason, it is recommended that you put

\thispagestyle{empty}

in your document. 'Full Document' mode is primarily useful for equation arrays.

If the 'Full Document' check box is not checked (by default), Embedded TEX will insert the following lines before and after your text:

\documentclass{amsart}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amscd}

\begin{document}
\thispagestyle{empty}
\begin{equation*}
...
\end{equation*}
\end{document}

before passing it onto LATEX.

Bugs

Embedded TEX has been tested on Windows 2000 only, although in theory it should operate on Windows 95, 98, ME and NT 4 as well.

Please feel free to contact me if you encounter any problems with this control; do not ask me TEX questions!

 

Copyright © David McCabe, 1998 - 2001. All rights reserved.

You will need to download and install the m-math control to display any equations on this Web site. Without this control, you will not see most of the equations. Please do not e-mail me asking why the equations do not display!

[an error occurred while processing this directive]