Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

On 10/02/2011 10:54 PM, David L. Johnson wrote:

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, entering a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the 
Enter key; you will then be in the text environment you want, but I 
have enter an inline math environment linked to F10, so I just hit 
F10.  You can leave that environment by moving the cursor.


This is normally bound to Ctrl-M. In math, it has the effect of 
introducing a text box.


Richard




Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
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.

On Mon, Oct 3, 2011 at 11:05 AM, Richard Heck rgh...@comcast.net wrote:
 On 10/02/2011 10:54 PM, David L. Johnson wrote:

 On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

 I'm trying to understand how I can add annotations that sit to the
 right of each line of a multiline equation. For example, in a proof,
 such annotations might provide justification for each step in the
 proof.

 In pure LaTeX I could accomplish this like so:

 \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*}'

 However, I'm not sure how to achieve the same effect in LyX.

 Abiel

 Try, within an aligned environment, entering a standard inline math
 environment.  This will give you a blue rectangle, and if you type something
 there, it will be in standard Roman text.  It is a \text{} environment.
 Alternately, heck, you can type  \text  and hit the Enter key; you will then
 be in the text environment you want, but I have enter an inline math
 environment linked to F10, so I just hit F10.  You can leave that
 environment by moving the cursor.

 This is normally bound to Ctrl-M. In math, it has the effect of introducing
 a text box.

 Richard





Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

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 ViewSource to see what LyX will now
generate.

Richard



Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.

On Mon, Oct 3, 2011 at 11:30 AM, Richard Heck rgh...@comcast.net wrote:
 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 ViewSource to see what LyX will now
 generate.

 Richard




Re: Equation annotations in a multiline equation

2011-10-03 Thread David L. Johnson

On 10/03/2011 11:45 AM, Abiel Reinhart wrote:

Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.
The problem really is in the default alignments that AMS-LaTeX uses 
here.  I don't know offhand what the rules are supposed to be, but the 
problem is that some of the columns are right-justified, and others are 
left-justified.  I'm sure that the algorithms are available somewhere.  
You placing the = in the first column, rather than in a column by 
itself, changed the count of columns, and thus the justification.


The justification is different in LyX than it is in the output, which 
might be something to worry about in the future.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: Equation annotations in a multiline equation

2011-10-03 Thread Julien Rioux

On 03/10/2011 10:25 PM, David L. Johnson wrote:

The justification is different in LyX than it is in the output, which
might be something to worry about in the future.


I also have found that the display in LyX of the alignment of math 
columns can get confused, although when you close and reopen the file it 
will be correct. We should fix this.


--
Julien



Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

On 10/02/2011 10:54 PM, David L. Johnson wrote:

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, entering a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the 
Enter key; you will then be in the text environment you want, but I 
have enter an inline math environment linked to F10, so I just hit 
F10.  You can leave that environment by moving the cursor.


This is normally bound to Ctrl-M. In math, it has the effect of 
introducing a text box.


Richard




Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
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.

On Mon, Oct 3, 2011 at 11:05 AM, Richard Heck rgh...@comcast.net wrote:
 On 10/02/2011 10:54 PM, David L. Johnson wrote:

 On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

 I'm trying to understand how I can add annotations that sit to the
 right of each line of a multiline equation. For example, in a proof,
 such annotations might provide justification for each step in the
 proof.

 In pure LaTeX I could accomplish this like so:

 \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*}'

 However, I'm not sure how to achieve the same effect in LyX.

 Abiel

 Try, within an aligned environment, entering a standard inline math
 environment.  This will give you a blue rectangle, and if you type something
 there, it will be in standard Roman text.  It is a \text{} environment.
 Alternately, heck, you can type  \text  and hit the Enter key; you will then
 be in the text environment you want, but I have enter an inline math
 environment linked to F10, so I just hit F10.  You can leave that
 environment by moving the cursor.

 This is normally bound to Ctrl-M. In math, it has the effect of introducing
 a text box.

 Richard





Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

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 ViewSource to see what LyX will now
generate.

Richard



Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.

On Mon, Oct 3, 2011 at 11:30 AM, Richard Heck rgh...@comcast.net wrote:
 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 ViewSource to see what LyX will now
 generate.

 Richard




Re: Equation annotations in a multiline equation

2011-10-03 Thread David L. Johnson

On 10/03/2011 11:45 AM, Abiel Reinhart wrote:

Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.
The problem really is in the default alignments that AMS-LaTeX uses 
here.  I don't know offhand what the rules are supposed to be, but the 
problem is that some of the columns are right-justified, and others are 
left-justified.  I'm sure that the algorithms are available somewhere.  
You placing the = in the first column, rather than in a column by 
itself, changed the count of columns, and thus the justification.


The justification is different in LyX than it is in the output, which 
might be something to worry about in the future.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: Equation annotations in a multiline equation

2011-10-03 Thread Julien Rioux

On 03/10/2011 10:25 PM, David L. Johnson wrote:

The justification is different in LyX than it is in the output, which
might be something to worry about in the future.


I also have found that the display in LyX of the alignment of math 
columns can get confused, although when you close and reopen the file it 
will be correct. We should fix this.


--
Julien



Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

On 10/02/2011 10:54 PM, David L. Johnson wrote:

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, "entering" a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the 
Enter key; you will then be in the text environment you want, but I 
have "enter an inline math environment" linked to F10, so I just hit 
F10.  You can leave that environment by moving the cursor.


This is normally bound to Ctrl-M. In math, it has the effect of 
introducing a text box.


Richard




Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
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.

On Mon, Oct 3, 2011 at 11:05 AM, Richard Heck  wrote:
> On 10/02/2011 10:54 PM, David L. Johnson wrote:
>>
>> On 10/02/2011 08:27 PM, Abiel Reinhart wrote:
>>>
>>> I'm trying to understand how I can add annotations that sit to the
>>> right of each line of a multiline equation. For example, in a proof,
>>> such annotations might provide justification for each step in the
>>> proof.
>>>
>>> In pure LaTeX I could accomplish this like so:
>>>
>>> \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*}'
>>>
>>> However, I'm not sure how to achieve the same effect in LyX.
>>>
>>> Abiel
>>
>> Try, within an aligned environment, "entering" a standard inline math
>> environment.  This will give you a blue rectangle, and if you type something
>> there, it will be in standard Roman text.  It is a \text{} environment.
>> Alternately, heck, you can type  \text  and hit the Enter key; you will then
>> be in the text environment you want, but I have "enter an inline math
>> environment" linked to F10, so I just hit F10.  You can leave that
>> environment by moving the cursor.
>>
> This is normally bound to Ctrl-M. In math, it has the effect of introducing
> a text box.
>
> Richard
>
>
>


Re: Equation annotations in a multiline equation

2011-10-03 Thread Richard Heck

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



Re: Equation annotations in a multiline equation

2011-10-03 Thread Abiel Reinhart
Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.

On Mon, Oct 3, 2011 at 11:30 AM, Richard Heck  wrote:
> 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
>
>


Re: Equation annotations in a multiline equation

2011-10-03 Thread David L. Johnson

On 10/03/2011 11:45 AM, Abiel Reinhart wrote:

Thanks, after pasting in the text and then examining it I was able to
figure out the correct approach. It appears my earlier alignment
difficulty stemmed from placing the equals sign in its own column. Now
I create a four-column structure in the align environment, with
equation= in the first column, equation in the second column, nothing
in the third column, and the annotation in the last column. This gets
me exactly what I had in pure LaTeX, which makes sense.
The problem really is in the default alignments that AMS-LaTeX uses 
here.  I don't know offhand what the rules are supposed to be, but the 
problem is that some of the columns are right-justified, and others are 
left-justified.  I'm sure that the algorithms are available somewhere.  
You placing the = in the first column, rather than in a column by 
itself, changed the count of columns, and thus the justification.


The justification is different in LyX than it is in the output, which 
might be something to worry about in the future.


--

David L. Johnson

The lottery is a tax on those who fail to understand mathematics.



Re: Equation annotations in a multiline equation

2011-10-03 Thread Julien Rioux

On 03/10/2011 10:25 PM, David L. Johnson wrote:

The justification is different in LyX than it is in the output, which
might be something to worry about in the future.


I also have found that the display in LyX of the alignment of math 
columns can get confused, although when you close and reopen the file it 
will be correct. We should fix this.


--
Julien



Re: Equation annotations in a multiline equation

2011-10-02 Thread David L. Johnson

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, entering a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the Enter 
key; you will then be in the text environment you want, but I have 
enter an inline math environment linked to F10, so I just hit F10.  
You can leave that environment by moving the cursor.


--

David L. Johnson

As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein



Re: Equation annotations in a multiline equation

2011-10-02 Thread David L. Johnson

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, entering a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the Enter 
key; you will then be in the text environment you want, but I have 
enter an inline math environment linked to F10, so I just hit F10.  
You can leave that environment by moving the cursor.


--

David L. Johnson

As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein



Re: Equation annotations in a multiline equation

2011-10-02 Thread David L. Johnson

On 10/02/2011 08:27 PM, Abiel Reinhart wrote:

I'm trying to understand how I can add annotations that sit to the
right of each line of a multiline equation. For example, in a proof,
such annotations might provide justification for each step in the
proof.

In pure LaTeX I could accomplish this like so:

\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*}'

However, I'm not sure how to achieve the same effect in LyX.

Abiel
Try, within an aligned environment, "entering" a standard inline math 
environment.  This will give you a blue rectangle, and if you type 
something there, it will be in standard Roman text.  It is a \text{} 
environment.   Alternately, heck, you can type  \text  and hit the Enter 
key; you will then be in the text environment you want, but I have 
"enter an inline math environment" linked to F10, so I just hit F10.  
You can leave that environment by moving the cursor.


--

David L. Johnson

As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein