In a LaTeX file, I want to add "\left" and "\right" in front of all *closed* square brackets intervals like "[a, b]" so they are changed to "\left[a, b\right]".

But I don't want to add anything in front of square brackets belonging to *open* or *half-open* intervals like "]a, b]" or "[a, b[".

Inside of one equation, several kinds of intervals may appear; for example:

$[a, b[ \cup ]c, d]$ (nothing should be added here),

while

$]a, b] \cap [c, d]" should be changed to: $]a, b] \cap \left[c, d\right]"

First, I select the whole equation (including dollars); then...

Any idea?

Thanks,

DM


--
------------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_script.shtml>
List archives: <http://www.listsearch.com/bbeditscripting.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to