On 2011-04-20, Julien Rioux wrote:
> On 20/04/2011 3:39 PM, Mathieu Dubois wrote:
>> Hello,

>> I'm a new LyX user but I'm a bit experienced with LaTeX.

>> I have developed my own set of LaTeX math macros (mainly to have simple
>> and coherent notations). It's not a package but just a tex file that I
>> \input in my documents.

>> I have \input'ed my tex file in the preamble but I cannot use commands
>> with several arguments because LyX interprets the curly braces.

>> How can I use my macros?

>> The best way is probably to define them as LyX macros but I have no idea
>> of how to do that.

>> Thanks in advance,
>> Mathieu


> The quick and dirty way to get in latex {arg} in math is to type \{ arg
> (i.e., backslash, curly brace, space, a, r, g)

I.e. in LyX's math editor,
type { to get \{ 
and \{ to get {

> For ease of use in the long term you could define all such macros by 
> Insert > Math > Macro. Create one such file math-macros.lyx and \input 
> it once in your master document. (while defining macros in LyX, type \#1 
> to get the latex #1)

You can also try to re-lyx your math macro TeX file (File>Import>LaTeX).
If this fails, you can paste the macro definitions into a LyX buffer
as text, select and convert to math (Ctrl-m).

Günter

Reply via email to