I did that at first, it's rather a subtle point but if I create a
math-macro for pmatrix, it requires specifying the quantity inside
parentheses as an argument to the macro. This is fine for initial
typing, but for corrections and things it's very annoying to click the
area I want to change and have the screen shift as LyX displays the
macro. It's also worth noting that if you click anywhere in the argument
of a macro, the cursor goes to the far left of said argument.

I suppose another possibility (that would have other nice applications)
would be to allow one to specify that a macro is to be "dereferenced"
(that is, once it is typed its component pieces are inserted into the
document rather than the macro reference). Clearly this would not always
be desirable in all circumstances (often you want to be able to update a
macro and make changes across the document). For example, this macro for
displaying a derivative

Macro: dd [\frac{d#1}{d#2}]

I would like to have the /ability/ to make the macro's contents
inserted, rather than a reference. Of course, I'm not advocating
changing the current math macro behavior nor am I saying this should
become default, merely an alternate choice.

That would definitely be a more elegant solution now that I think about it.

Comments?

Jean-Marc Lasgouttes wrote:
>>>>>> "Alex" == Alex Roper <[EMAIL PROTECTED]> writes:
> 
> Alex> Hi, I'd be interesting in having added (or adding myself) a
> Alex> feature to LyX.
> 
> Alex> It would be neat if there were a user-configurable way to
> Alex> reassign shortcuts. For example, I type "\pmatrix" a lot, and
> Alex> would like to assign a shortcut like "\Pm" or something. It
> Alex> would be nice if I could just edit a user profile file and
> Alex> reassign pmatrix to Pm.
> 
> Why not use math-macro? Isn't it what you are trying to do?
> 
> JMarc
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to