[OS X TeX] Selecting a formula

Herbert Schulz herbs at wideopenwest.com
Sat Sep 12 00:36:15 CEST 2009


On Sep 11, 2009, at 1:51 PM, Alain Schremmer wrote:

> Given a formula between dollar signs, such as $x<2$, is there a way  
> in TeXshop, by just clicking somewhere between the dollar signs  
> while holding something down
>
> 1) to select the formula dollar signs included, e.g. $x<2$
>
> 2) to select just the formula that is between the dollar signs, that  
> is without the dollar signs. e.g. x<2
>
> Hopeful regards
> --schremmer

Howdy,

You might be able to write a macro that does something like that. A  
small part of the problem is that using $....$ is symmetric, you don't  
know if you're at the starting or ending $ although you could make an  
(unsafe) assumption that you always click on the inside part of the  
equation.

It works with brace pairs because they are an asymmetric pair; try  
double clicking on one brace and everything in between, including the  
braces, is selected.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the macostex-archives mailing list