> Oscar wrote:
> >
> > Hi all:
> >
> > I am trying to get the time derivative of the mean value of a variable.
> > To
> > implement the mean value of a variable I defined in the preamble:
> >
> > \newcommand{\mean}[1]{<#1>}
> > [snip]
> > I guess that there is a problem with \dot in math mode, but maybe I have
> > missed something important. What am I doing wrong? How can I do?
My first suggestion was to change the order of input (supposing that for
typesetting it does not matter, whether the operations are commutative),
i.e. instead of
\dot{\mean{g (with lyx inserting the closing brackets)
put
\mean{\dot g
It works, but the output may not be exactly what you want: the dot is nearer
to the g than it is for Herberts suggestions
> \newcommand\myDot[1]{\dot{#1}}
> or
> \newcommand\myDotMean[1]{\dot{\mean{#1}}}
\mean{\dot{g
Thus I ooked at the .lyx file to see what happens to \dot{<something>
I tried what the output of different input variants:
\dot{g gives \dot{{}g
\dot{\mean{g --> \dot{{}\mean {g}
\dot g --> \dot{g} (which is the right thing)
\dot \mean{g --> \dot{\mean }{g
i.e. the LyX expects a "simple" token after the \dot and cannot handle
compounds.
I wonder whether this can be changed.
Guenter
--
[EMAIL PROTECTED]