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)

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)

--
Julien

Reply via email to