[OS X TeX] Re: MacOSX-TeX Digest, Vol 48, Issue 5
Ulrich Groh
ugroh at mac.com
Thu Oct 6 20:59:55 CEST 2011
>>
>> Maybe a simple answer available, but ..
>>
>> I would like to have \{ completed by the esc-key to \{ ∙ \} and I have entered
>> \{:=\{ #INS#•#INS# \} into the CommandCompletion.txt file. But nothing happens. Is this not possible?
>>
>> Ulrich
>>
>
> Howdy,
>
> Not possible because { is one of the left hand terminator keys so when you type
>
> \{ and then Esc (or Tab if you have that set as the trigger key) it goes backward, reads the { and stops since there is nothing to complete.
>
> However, why not use
>
> \braces:=\{ #INS#•#INS# \}•
>
> and then when you put in
>
> \br and Esc you'll get
>
> \{|•|\}•
>
> where |•| is a selected Mark, •. I used the \ version, even though it's an extra character to type, because it guarantees the terminator so x\br will expand to x\{... while, without the \ in the definition of the abbreviation xbr won't work properly.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
Herb, thanks for this solution and the explanation.
Regards
Ulrich
More information about the macostex-archives
mailing list