On 10/03/2011 11:23 AM, Abiel Reinhart wrote:
I'm able to type plain text as you've suggested but I'm still unable
to get the alignment and spacing right. I can  type text to the right
of an equation on a given line, spacing it out from the equation using
something like \quad. However, then the annotations from different
lines of the equation won't necessarily align. Alternately I can add a
column to the aligned environment. That takes care of horizontal
alignment but unfortunately then I run into problems with spacing, as
there is little spacing between the annotation and the math part of
the equation. This can sometimes be solved by adding a blank column to
the aligned environment, but in other cases the blank column doesn't
seem to do much and may in fact affect the alignment in other columns.
All of these things can happen, to be sure. But won't they happen with the
plain LaTeX you mentioned

\begin{align*}
    h(x)&= \int_a^b{[f(x)+g(x)]dx}&&    \text{(Some annotation)}\\
&= \int_a^b{y(x)dx}&&    \text{(Another annotation)}
\end{align*}


just as well?

Try this: Copy that very text and paste it into LyX (as plain text). Now highlight
that same text and hit Ctrl-M. Look at View>Source to see what LyX will now
generate.

Richard

Reply via email to