Re: Adding new builtin math macros

2014-11-19 Thread Georg Baum
Richard Heck wrote: > You know what would be really cool? The ability to custom-define default > macros in a module, including ones with arguments. Yes. And I guess it would not be difficult to implement. If I find some time I might at least extend lib/symbols to support macros with arguments, s

Re: Adding new builtin math macros

2014-11-17 Thread Richard Heck
On 11/17/2014 04:51 PM, Georg Baum wrote: Jean-Marc Lasgouttes wrote: The answer really depend on the macro you want to define. In the case of \pmod, I did not find any inset (in src/mathed) that seems to be similar enough. You want an inset with only one cell, like in InsetMathDecoration, whic

Re: Adding new builtin math macros

2014-11-17 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > The answer really depend on the macro you want to define. In the case of > \pmod, I did not find any inset (in src/mathed) that seems to be similar > enough. You want an inset with only one cell, like in > InsetMathDecoration, which implements accents. So the inset wo

Re: Adding new builtin math macros

2014-11-17 Thread Jean-Marc Lasgouttes
Le 09/11/2014 22:06, Guy Rutenberg a écrit : Hi, Suppose I want to add to LyX new built-in math macros, like \pmod. Which files do I need to modify? (To clarify, I want to change the sources not my specific document). Dear Guy, I see you did not get any answer, so I'll try to help. Unfortuna

Adding new builtin math macros

2014-11-09 Thread Guy Rutenberg
Hi, Suppose I want to add to LyX new built-in math macros, like \pmod. Which files do I need to modify? (To clarify, I want to change the sources not my specific document). Thanks, Guy