Home  |  AirMac Express  |  milano  |  木島平  |  高知  |  iMac G5  |  ソウルです  |  雪の日  |  TeXType
 

TeXType

What is TeXType?

It is yet another equation creator using TeX. It supports standard Copy/Paste, allows drag&drop, and has LinkBack support. It even auto-compiles ! It is a TeXPoint for Keynote, if you know TeXPoint.

What is LinkBack ?

With LinkBack: You double-click on the equation you pasted on the other LinkBack-enabled app, and Boom! the TeXType pops up. When your edit was finished, just hit ⌘-S. and Boom! the equation in the other app is refereshed !

Here is the demo. The Keynote Linkback plugin can be found here.

Supported Platform

To install

Download from the above link, and put the TeXType app to wherever you want. You need to have some standard TeX distribution and ghostscript installed.
In the default setting, TeXType searches /opt/local/bin,/sw/bin, /usr/local/bin, /usr/local/teTeX/bin/{powerpc,i386}-apple-darwin-current, /usr/bin, /bin. So all major TeX distribution should be covered. If these paths don't suffice, add in the preference (⌘-,), and inform me.

Usage: Basics.

Type in the TeX code in the lower pane, click the Typeset button. You can copy (⌘-c) and drag-drop the resulting image displayed in the upper pane. When the focus is in the text view, ⌘-c copies the text in the box, so please click the image once to move the focus.

Usage: Library.

You can save multiple TeX sources and the typeset images toghether in the Library. By default, one library is open. You can put the result by drag&drop or copy/paste. Double click to edit. Save the change by ⌘-S. If you want multiple library, just Save-As the default library.

Usage: Services.

Even from apps which doesn't support LinkBack, you can easily use TeXType. Just select and highlight the TeX snippet, and type Control-⌘-T or choose AppName->Services->"TeXType or UnTeXType". Boom, the text is replaced with the compiled image. Select the image, and again type Control-⌘-T or choose "TeXType or UnTeXType". Boom, it becomes the original TeX snippet !
You can assign other key combo to the "TeXType or UnTeXType" menu if you don't like this key combination: Open System Preferences, choose the Pane Keyboard and Mouse, and set the shortcut in the Keyboard Shortcut Tab.

Technical Info

LinkBack data is just an archived NSDictionary with keys texSourceToCompile, color, compileMode, imageHeight, imageDepth. To access, just get NSData* by

[[[link pasteboard] propertyListForType: LinkBackPboardType] linkBackAppData]
and use NSPropertyListSerialization's propertyListFromData:mutabilityOption:format:errorDescription:.

The source code is available from here. I release it under BSD license.

Credit

Of course my great thanks are to D. Knuth, who created TeX. The design is heavily influenced by LaTeX Equation Editor. The most of the source code are modeled on the sample code provided by Apple.

Extra info on the backslash/yen thing in Japanese Cocoa environment

See here.

Disclaimer

This software is extremely preliminary, so use at your own risk. Bug reports and suggestions are welcome: please contact yujit_achikawa at mac.com. (replace at by @)

Change Log