On 26/01/2011 2:33 PM, Bennink, Ryan S. wrote:
I am fairly new to LyX. I have been disappointed to find that simple commands defined via \newcommand and \DeclareMathOperator in the preamble (for example, \newcommand{\sinc}{sinc}) appear as "evil red text" onscreen. In fact, they look exactly the same as undefined (illegal!) commands. I got the impression from the LyX manuals and user comments that LyX was pretty good at interpreting and rendering user-defined commands. Have I misunderstood something, or am I doing something wrong, or is there something wrong with my LyX installation? (I realize there are several other threads with similar questions, but none of them have a clear answer to this as far as I can tell.)I am using LyX 1.6.7 on windows xp sp3. RSB
To help you search through the Math manual: the nomenclature that LyX uses for this is "math macro". The caveat is that you define math macros in the body of the document, not in the preamble. All things in the preamble are not parsed by LyX at all but simply passed on to the latex process.
-- Julien
