On Wed, Feb 21, 2007 at 03:12:24PM +0100, Stefan Schimanski wrote:
> Hi all!
> 
> I wrote here recently about the sometimes hard to use math macros in  
> LyX:
> 
>   http://www.mail-archive.com/[email protected]/msg53740.html
> 
> Attached is an experimental patch against the 1.5 branch to make  
> inline editing of macros possible, i.e. _without_ jumping back and  
> forth between the LyX macro preview and the unfolded version with the  
> #1, #2, ... lines.
> 
> The main idea is the following: If a macro is expanded, the  
> MathMacroArguments are replaced by MathMacroArgumentValues. These  
> have pointers to the MathMacro cells to (only) pass through draw and  
> metric calls to the cell. Hence the MathMacroArgumentValues will  
> behave like the cell visually.
> 
> This works quite nice, even if arguments appear multiple times in the  
> macro definition. Also the cursor movement is acceptable.

Well... I am not sure about 'acceptable' cursor movement.

The equivalent of \def\x#1#2#3{#3+#2+#1} is not exactly
'easy' to navigate. And that's only a 'linear' formula.


Andre'

Reply via email to