On 2016-10-07, Joel Kulesza wrote:
> On Fri, Oct 7, 2016 at 8:26 AM, Paul A. Rubin <[email protected]> wrote:

>> As far as defining them globally, a couple of options come to mind:

>>    1. put them in a file and include it in any document where you need
>>    them; or

thnis is wha I do usually.

>>    2. write a module that contains them, and add it into documents as
>>    needed.

this does not work, you cannot define a math-macro in a layout.

> Thanks for the quick reply!  Both of these approaches require
> document-manipulation (global, yes, but added action that must be
> remembered).

> Regardless, what I'm wondering is if there is a way to add them so that
> LyX makes them part of the default set (e.g., they are automatically
> recognized and available among the other functions).

Not really. You will always need a way to add this macro to tex, while sin,
log, etc are pre-defined. 

However, you could simlply define the math-macro in a template file and it
will be available for every new document. (new from tgenplate with a
specific template or "new" with a custom "standard.lyx" template.


> I could add it to the source and compile, but I was hoping for a less
> heroic approach.

no need to recompile. You could modify the file "symbols" in the lyxdir (or
better, a copy in the local or peersonal lyxdir.
This would add the GUI def, but not the def for latex.

Günter

Reply via email to