# [OS X TeX] New Version of CommandCompletion.txt for TeXShop

Herb Schulz herbs at wideopenwest.com
Wed Sep 29 14:17:26 EDT 2004

Howdy,

I've posted a new version the CommandCompletion.txt file(s) along with the
two Applescript macros (those aren't changed) on my download page:

<http://homepage.mac.com/herbs2/>.

This version has some added commands but the principal additions are
abbreviations to many of the commands.

Command completion allows you to start typing a command and have a press of
the Escape key complete that command. Additional presses of the Escape key
substitute alternatives (e.g., variants with optional arguments or
*-variants) until it reverts back to the original typed partial command.

Abbreviations, on the other hand, are short names which will have the
commands they represent substituted when you press the Escape key. Most of
the abbreviations have been inspired by those used by FasTeX(*) with
TypeIt4Me(**). For example typing "benu" (without the quotes) at the
beginning of a new line and then Escape will substitute a complete
enumerated list environment. A second press of the Escape key will give a
version with an optional argument as used with the paralist package. These
also can have completions: the actual abbreviation for the enumerated list
with optional argument is "benuo".

For some abbreviations two version exist; one that is stand alone and one
with a preceding \'. When preceded by a new line, simple punctuation or
space the stand alone version works but when preceded by a single quote ""
character it won't work (see the documentation for the reason for this). So
"tt" won't expand properly but "\tt" will expand properly to "\texttt{}"
with the cursor between the braces. By the way, a second press of Escape
with "tt" or "\tt" will give the declaration form, "\ttfamily".

Greek characters have abbreviations that follow the rules:
1)The name starts with an "x": e.g., "xa" expands to "\alpha".
2)Capital versions, if they exist, start with "xc": e.g., "xcd" expands to
"\Delta".
3)Versions preceded by a "d" add in-line equation marks around the
character: e.g., "dxcg" expands to "$$\Gamma$$".
4)There are "\" versions for the abbreviations: e.g., both "dxcl" and
"\dxcl" expand to "$$\Lambda$$".

If you try these out I'd appreciate any and all feedback. Any bugs,
suggestions, etc., will help.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)

(*)FasTeX  was developed by Filip G. Machi, Jerrold E. Marsden and Wendy G.
McKay. For more information see the FasTeX web page at
<http://www.cds.caltech.edu/~fastex/>

(**)TypeIt4Me, by Riccardo Ettore, is an input method that allows
abbreviation replacement in most OS X programs. See the TypeIt4Me web page,
`