Re: Equation Array

2009-09-02 Thread Ignacio García
Julio Rojas jcredbe...@... writes:

 
 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...
 

Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.

IG
 






Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:
 Julio Rojas jcredbe...@... writes:


 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...


 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.

 IG








Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

Julio Rojas jcredbe...@... writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.



Julio,

Actually, I think what you want is in section 19.1.  Inside an equation 
array environment, Alt-m n toggles numbering of the entire array 
(separate number on each line), while Alt-m Shift-n toggles numbering of 
just the line the cursor occupies.


BTW, I too write integer programs.  A while back I came across a 
reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX 
Journal #4, 2006) that claims that eqnarray is somehow evil.  The 
complaints are mainly about spacing (including the possibility that 
equation numbers are overwritten or crowded off the line).  He 
recommends AMS math environments or the mathenv package.  Then again, I 
came across a post on sci.op-research that as I recall advocated eqnarray.


Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
  \text{maximize }  z=2x_{1}+3x_{2}+
4x_{3}\\
  \text{subject to: }  44x_{1}+50x_{3} 
 \ge900\\

\llap{\ensuremath{x_{1},x_{2},x_{3}}}  \ge0

\end{alignat*}

FWIW,
Paul



Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned. I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:
 Julio Rojas wrote:

 Thanks, I've already done that, but no option seems to be of help. I'm
 trying to put an integer programing model and every restriction should
 be numbered and aligned like:

 Maximize Z                                          (1)
 Subject to:
 Z=sum(Xi)                                             (2)
 Xi+Xj=1                       for all i,j in P, ij (3)
 Xi,Xj in {0,1}                        for all i,j in P (4)

 So, some rows are numbered, the left column is left aligned and the
 right column is right aligned. How can this numbered array be done?
 -
 Julio Rojas
 jcredbe...@gmail.com



 2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

 Julio Rojas jcredbe...@... writes:

 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...

 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.


 Julio,

 Actually, I think what you want is in section 19.1.  Inside an equation
 array environment, Alt-m n toggles numbering of the entire array (separate
 number on each line), while Alt-m Shift-n toggles numbering of just the line
 the cursor occupies.

 BTW, I too write integer programs.  A while back I came across a reference
 to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
 2006) that claims that eqnarray is somehow evil.  The complaints are mainly
 about spacing (including the possibility that equation numbers are
 overwritten or crowded off the line).  He recommends AMS math environments
 or the mathenv package.  Then again, I came across a post on sci.op-research
 that as I recall advocated eqnarray.

 Anyway, here's an alternative I found somewhere:

 \begin{alignat*}{7}
   \text{maximize }  z=    2x_{1}    +    3x_{2}    +    4x_{3}\\
   \text{subject to: }      44x_{1}            +    50x_{3} 
 \ge900\\
                         \llap{\ensuremath{x_{1},x_{2},x_{3}}} 
 \ge0
 \end{alignat*}

 FWIW,
 Paul




Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio,

Julio Rojas wrote:

Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned.


In the alignat* example?  Shouldn't be -- the alignment alternates 
right-left-right, so the first and third columns should have the same 
alignment.  Note that the first column is intentionally left empty, so 
that the 'maximize' and 'subject to' are in the second column (and hence 
left-aligned).



I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?


I'm not sure there's a generally accepted standard.  I like to put the 
keywords (maximize, s.t.) in one column, the objective function and LHS 
of constraints in a second column, the constraint direction (=,,) in a 
 third column, the RHS in the fourth column and any indexing stuff in a 
fifth column, so I usually use eqnarray (critics be damned).  If I'm 
going to use alignat, then I'll put max/s.t. in column 2 (left aligned), 
the LHS _and_ =// in the third column (right aligned), the RHS in the 
fourth column (left aligned) and indexing in the fifth column (right 
aligned), which should work pretty well (it avoids gratuitous space in 
the middle of the constraints).


I guess it's a matter of taste (unless the constraints get long enough 
that eqnarray sends the equation numbers into another galaxy).


/Paul


-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

Julio Rojas jcredbe...@... writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.


Julio,

Actually, I think what you want is in section 19.1.  Inside an equation
array environment, Alt-m n toggles numbering of the entire array (separate
number on each line), while Alt-m Shift-n toggles numbering of just the line
the cursor occupies.

BTW, I too write integer programs.  A while back I came across a reference
to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
2006) that claims that eqnarray is somehow evil.  The complaints are mainly
about spacing (including the possibility that equation numbers are
overwritten or crowded off the line).  He recommends AMS math environments
or the mathenv package.  Then again, I came across a post on sci.op-research
that as I recall advocated eqnarray.

Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
  \text{maximize }  z=2x_{1}+3x_{2}+4x_{3}\\
  \text{subject to: }  44x_{1}+50x_{3} 
\ge900\\
\llap{\ensuremath{x_{1},x_{2},x_{3}}} 
\ge0
\end{alignat*}

FWIW,
Paul








Re: Equation Array

2009-09-02 Thread Julio Rojas
I made it with eqarray, but it only allows me to have 3 columns. How
did you add more columns?

I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.

Thanks for your help.
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubinru...@msu.edu wrote:
 Julio,

 Julio Rojas wrote:

 Thanks Paul, I've tried it but the first column is right aligned and
 the third is left aligned.

 In the alignat* example?  Shouldn't be -- the alignment alternates
 right-left-right, so the first and third columns should have the same
 alignment.  Note that the first column is intentionally left empty, so that
 the 'maximize' and 'subject to' are in the second column (and hence
 left-aligned).

 I'm kind of new on the subject and the
 references I have from a friend make them left and right aligned,
 respectively. Is there an standard way of aligning them?

 I'm not sure there's a generally accepted standard.  I like to put the
 keywords (maximize, s.t.) in one column, the objective function and LHS of
 constraints in a second column, the constraint direction (=,,) in a  third
 column, the RHS in the fourth column and any indexing stuff in a fifth
 column, so I usually use eqnarray (critics be damned).  If I'm going to use
 alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_
 =// in the third column (right aligned), the RHS in the fourth column
 (left aligned) and indexing in the fifth column (right aligned), which
 should work pretty well (it avoids gratuitous space in the middle of the
 constraints).

 I guess it's a matter of taste (unless the constraints get long enough that
 eqnarray sends the equation numbers into another galaxy).

 /Paul

 -
 Julio Rojas
 jcredbe...@gmail.com



 On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:

 Julio Rojas wrote:

 Thanks, I've already done that, but no option seems to be of help. I'm
 trying to put an integer programing model and every restriction should
 be numbered and aligned like:

 Maximize Z                                          (1)
 Subject to:
 Z=sum(Xi)                                             (2)
 Xi+Xj=1                       for all i,j in P, ij (3)
 Xi,Xj in {0,1}                        for all i,j in P (4)

 So, some rows are numbered, the left column is left aligned and the
 right column is right aligned. How can this numbered array be done?
 -
 Julio Rojas
 jcredbe...@gmail.com



 2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

 Julio Rojas jcredbe...@... writes:

 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...

 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.

 Julio,

 Actually, I think what you want is in section 19.1.  Inside an equation
 array environment, Alt-m n toggles numbering of the entire array
 (separate
 number on each line), while Alt-m Shift-n toggles numbering of just the
 line
 the cursor occupies.

 BTW, I too write integer programs.  A while back I came across a
 reference
 to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
 2006) that claims that eqnarray is somehow evil.  The complaints are
 mainly
 about spacing (including the possibility that equation numbers are
 overwritten or crowded off the line).  He recommends AMS math
 environments
 or the mathenv package.  Then again, I came across a post on
 sci.op-research
 that as I recall advocated eqnarray.

 Anyway, here's an alternative I found somewhere:

 \begin{alignat*}{7}
   \text{maximize }  z=    2x_{1}    +    3x_{2}    +   
 4x_{3}\\
   \text{subject to: }      44x_{1}            +    50x_{3} 
 \ge900\\
                         \llap{\ensuremath{x_{1},x_{2},x_{3}}}
 
 \ge0
 \end{alignat*}

 FWIW,
 Paul







Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

I made it with eqarray, but it only allows me to have 3 columns. How
did you add more columns?


Oops -- forgot about that.  I'm not very consistent in what I use (I 
just went back and loaded some old papers to look).  Sometimes I use 
eqnarray (which is locked into three columns), in which case I put 
maximize and subject to in the left column, indexing in the right 
column and everything else in the middle.  Most times I create a display 
equation, then create an array with five columns, and go from there.  I 
think I've used alignat once or twice.  Seems to me there's some 
objection to using a plain old array, I think maybe relating to vertical 
space (not sure), but I'm not much concerned with aesthetics, and array 
is for me the easiest route.


I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.


But it comes out right in the DVI/PDF output, which is all I worry about.


Thanks for your help.


My pleasure,
Paul



Re: Equation Array

2009-09-02 Thread Ignacio García
Julio Rojas jcredbe...@... writes:

 
 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...
 

Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.

IG
 






Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:
 Julio Rojas jcredbe...@... writes:


 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...


 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.

 IG








Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

Julio Rojas jcredbe...@... writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.



Julio,

Actually, I think what you want is in section 19.1.  Inside an equation 
array environment, Alt-m n toggles numbering of the entire array 
(separate number on each line), while Alt-m Shift-n toggles numbering of 
just the line the cursor occupies.


BTW, I too write integer programs.  A while back I came across a 
reference to an article (Avoid eqnarray! by Lars Madsen, The PracTeX 
Journal #4, 2006) that claims that eqnarray is somehow evil.  The 
complaints are mainly about spacing (including the possibility that 
equation numbers are overwritten or crowded off the line).  He 
recommends AMS math environments or the mathenv package.  Then again, I 
came across a post on sci.op-research that as I recall advocated eqnarray.


Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
  \text{maximize }  z=2x_{1}+3x_{2}+
4x_{3}\\
  \text{subject to: }  44x_{1}+50x_{3} 
 \ge900\\

\llap{\ensuremath{x_{1},x_{2},x_{3}}}  \ge0

\end{alignat*}

FWIW,
Paul



Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned. I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:
 Julio Rojas wrote:

 Thanks, I've already done that, but no option seems to be of help. I'm
 trying to put an integer programing model and every restriction should
 be numbered and aligned like:

 Maximize Z                                          (1)
 Subject to:
 Z=sum(Xi)                                             (2)
 Xi+Xj=1                       for all i,j in P, ij (3)
 Xi,Xj in {0,1}                        for all i,j in P (4)

 So, some rows are numbered, the left column is left aligned and the
 right column is right aligned. How can this numbered array be done?
 -
 Julio Rojas
 jcredbe...@gmail.com



 2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

 Julio Rojas jcredbe...@... writes:

 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...

 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.


 Julio,

 Actually, I think what you want is in section 19.1.  Inside an equation
 array environment, Alt-m n toggles numbering of the entire array (separate
 number on each line), while Alt-m Shift-n toggles numbering of just the line
 the cursor occupies.

 BTW, I too write integer programs.  A while back I came across a reference
 to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
 2006) that claims that eqnarray is somehow evil.  The complaints are mainly
 about spacing (including the possibility that equation numbers are
 overwritten or crowded off the line).  He recommends AMS math environments
 or the mathenv package.  Then again, I came across a post on sci.op-research
 that as I recall advocated eqnarray.

 Anyway, here's an alternative I found somewhere:

 \begin{alignat*}{7}
   \text{maximize }  z=    2x_{1}    +    3x_{2}    +    4x_{3}\\
   \text{subject to: }      44x_{1}            +    50x_{3} 
 \ge900\\
                         \llap{\ensuremath{x_{1},x_{2},x_{3}}} 
 \ge0
 \end{alignat*}

 FWIW,
 Paul




Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio,

Julio Rojas wrote:

Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned.


In the alignat* example?  Shouldn't be -- the alignment alternates 
right-left-right, so the first and third columns should have the same 
alignment.  Note that the first column is intentionally left empty, so 
that the 'maximize' and 'subject to' are in the second column (and hence 
left-aligned).



I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?


I'm not sure there's a generally accepted standard.  I like to put the 
keywords (maximize, s.t.) in one column, the objective function and LHS 
of constraints in a second column, the constraint direction (=,,) in a 
 third column, the RHS in the fourth column and any indexing stuff in a 
fifth column, so I usually use eqnarray (critics be damned).  If I'm 
going to use alignat, then I'll put max/s.t. in column 2 (left aligned), 
the LHS _and_ =// in the third column (right aligned), the RHS in the 
fourth column (left aligned) and indexing in the fifth column (right 
aligned), which should work pretty well (it avoids gratuitous space in 
the middle of the constraints).


I guess it's a matter of taste (unless the constraints get long enough 
that eqnarray sends the equation numbers into another galaxy).


/Paul


-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj=1   for all i,j in P, ij (3)
Xi,Xj in {0,1}for all i,j in P (4)

So, some rows are numbered, the left column is left aligned and the
right column is right aligned. How can this numbered array be done?
-
Julio Rojas
jcredbe...@gmail.com



2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

Julio Rojas jcredbe...@... writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at HelpMath (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.


Julio,

Actually, I think what you want is in section 19.1.  Inside an equation
array environment, Alt-m n toggles numbering of the entire array (separate
number on each line), while Alt-m Shift-n toggles numbering of just the line
the cursor occupies.

BTW, I too write integer programs.  A while back I came across a reference
to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
2006) that claims that eqnarray is somehow evil.  The complaints are mainly
about spacing (including the possibility that equation numbers are
overwritten or crowded off the line).  He recommends AMS math environments
or the mathenv package.  Then again, I came across a post on sci.op-research
that as I recall advocated eqnarray.

Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
  \text{maximize }  z=2x_{1}+3x_{2}+4x_{3}\\
  \text{subject to: }  44x_{1}+50x_{3} 
\ge900\\
\llap{\ensuremath{x_{1},x_{2},x_{3}}} 
\ge0
\end{alignat*}

FWIW,
Paul








Re: Equation Array

2009-09-02 Thread Julio Rojas
I made it with eqarray, but it only allows me to have 3 columns. How
did you add more columns?

I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.

Thanks for your help.
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubinru...@msu.edu wrote:
 Julio,

 Julio Rojas wrote:

 Thanks Paul, I've tried it but the first column is right aligned and
 the third is left aligned.

 In the alignat* example?  Shouldn't be -- the alignment alternates
 right-left-right, so the first and third columns should have the same
 alignment.  Note that the first column is intentionally left empty, so that
 the 'maximize' and 'subject to' are in the second column (and hence
 left-aligned).

 I'm kind of new on the subject and the
 references I have from a friend make them left and right aligned,
 respectively. Is there an standard way of aligning them?

 I'm not sure there's a generally accepted standard.  I like to put the
 keywords (maximize, s.t.) in one column, the objective function and LHS of
 constraints in a second column, the constraint direction (=,,) in a  third
 column, the RHS in the fourth column and any indexing stuff in a fifth
 column, so I usually use eqnarray (critics be damned).  If I'm going to use
 alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_
 =// in the third column (right aligned), the RHS in the fourth column
 (left aligned) and indexing in the fifth column (right aligned), which
 should work pretty well (it avoids gratuitous space in the middle of the
 constraints).

 I guess it's a matter of taste (unless the constraints get long enough that
 eqnarray sends the equation numbers into another galaxy).

 /Paul

 -
 Julio Rojas
 jcredbe...@gmail.com



 On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubinru...@msu.edu wrote:

 Julio Rojas wrote:

 Thanks, I've already done that, but no option seems to be of help. I'm
 trying to put an integer programing model and every restriction should
 be numbered and aligned like:

 Maximize Z                                          (1)
 Subject to:
 Z=sum(Xi)                                             (2)
 Xi+Xj=1                       for all i,j in P, ij (3)
 Xi,Xj in {0,1}                        for all i,j in P (4)

 So, some rows are numbered, the left column is left aligned and the
 right column is right aligned. How can this numbered array be done?
 -
 Julio Rojas
 jcredbe...@gmail.com



 2009/9/2 Ignacio García ignacio.gmora...@gmail.com:

 Julio Rojas jcredbe...@... writes:

 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...

 Please have a look at HelpMath (or Ecuaciones) where you can
 find a very fine description of this issue in the section 19,
 19.3 and/or 19.4.

 Julio,

 Actually, I think what you want is in section 19.1.  Inside an equation
 array environment, Alt-m n toggles numbering of the entire array
 (separate
 number on each line), while Alt-m Shift-n toggles numbering of just the
 line
 the cursor occupies.

 BTW, I too write integer programs.  A while back I came across a
 reference
 to an article (Avoid eqnarray! by Lars Madsen, The PracTeX Journal #4,
 2006) that claims that eqnarray is somehow evil.  The complaints are
 mainly
 about spacing (including the possibility that equation numbers are
 overwritten or crowded off the line).  He recommends AMS math
 environments
 or the mathenv package.  Then again, I came across a post on
 sci.op-research
 that as I recall advocated eqnarray.

 Anyway, here's an alternative I found somewhere:

 \begin{alignat*}{7}
   \text{maximize }  z=    2x_{1}    +    3x_{2}    +   
 4x_{3}\\
   \text{subject to: }      44x_{1}            +    50x_{3} 
 \ge900\\
                         \llap{\ensuremath{x_{1},x_{2},x_{3}}}
 
 \ge0
 \end{alignat*}

 FWIW,
 Paul







Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

I made it with eqarray, but it only allows me to have 3 columns. How
did you add more columns?


Oops -- forgot about that.  I'm not very consistent in what I use (I 
just went back and loaded some old papers to look).  Sometimes I use 
eqnarray (which is locked into three columns), in which case I put 
maximize and subject to in the left column, indexing in the right 
column and everything else in the middle.  Most times I create a display 
equation, then create an array with five columns, and go from there.  I 
think I've used alignat once or twice.  Seems to me there's some 
objection to using a plain old array, I think maybe relating to vertical 
space (not sure), but I'm not much concerned with aesthetics, and array 
is for me the easiest route.


I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.


But it comes out right in the DVI/PDF output, which is all I worry about.


Thanks for your help.


My pleasure,
Paul



Re: Equation Array

2009-09-02 Thread Ignacio García
Julio Rojas  writes:

> 
> Dear all, is there a way to individually label some equations of an
> equation array? Or some rows from an array?
> -
> Julio Rojas
> jcredbe...@...
> 

Please have a look at Help>Math (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.

IG
 






Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj<=1   for all i,j in P, i:
> Julio Rojas  writes:
>
>>
>> Dear all, is there a way to individually label some equations of an
>> equation array? Or some rows from an array?
>> -
>> Julio Rojas
>> jcredbe...@...
>>
>
> Please have a look at Help>Math (or Ecuaciones) where you can
> find a very fine description of this issue in the section 19,
> 19.3 and/or 19.4.
>
> IG
>
>
>
>
>
>


Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj<=1   for all i,j in P, i:

Julio Rojas  writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at Help>Math (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.



Julio,

Actually, I think what you want is in section 19.1.  Inside an equation 
array environment, Alt-m n toggles numbering of the entire array 
(separate number on each line), while Alt-m Shift-n toggles numbering of 
just the line the cursor occupies.


BTW, I too write integer programs.  A while back I came across a 
reference to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX 
Journal #4, 2006) that claims that eqnarray is somehow evil.  The 
complaints are mainly about spacing (including the possibility that 
equation numbers are overwritten or crowded off the line).  He 
recommends AMS math environments or the mathenv package.  Then again, I 
came across a post on sci.op-research that as I recall advocated eqnarray.


Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
 & \text{maximize } & z= &  & 2x_{1} &  & + &  & 3x_{2} &  & + &  & 
4x_{3}\\
 & \text{subject to: } &  &  & 44x_{1} &  &  &  &  &  & + &  & 50x_{3} 
& \ge900\\
 &  &  &  &  &  &  &  &  &  &  &  & 
\llap{\ensuremath{x_{1},x_{2},x_{3}}} & \ge0

\end{alignat*}

FWIW,
Paul



Re: Equation Array

2009-09-02 Thread Julio Rojas
Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned. I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubin wrote:
> Julio Rojas wrote:
>>
>> Thanks, I've already done that, but no option seems to be of help. I'm
>> trying to put an integer programing model and every restriction should
>> be numbered and aligned like:
>>
>> Maximize Z                                          (1)
>> Subject to:
>> Z=sum(Xi)                                             (2)
>> Xi+Xj<=1                       for all i,j in P, i> Xi,Xj in {0,1}                        for all i,j in P (4)
>>
>> So, some rows are numbered, the left column is left aligned and the
>> right column is right aligned. How can this numbered array be done?
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>>
>>
>>
>> 2009/9/2 Ignacio García :
>>>
>>> Julio Rojas  writes:
>>>
 Dear all, is there a way to individually label some equations of an
 equation array? Or some rows from an array?
 -
 Julio Rojas
 jcredbe...@...

>>> Please have a look at Help>Math (or Ecuaciones) where you can
>>> find a very fine description of this issue in the section 19,
>>> 19.3 and/or 19.4.
>>>
>
> Julio,
>
> Actually, I think what you want is in section 19.1.  Inside an equation
> array environment, Alt-m n toggles numbering of the entire array (separate
> number on each line), while Alt-m Shift-n toggles numbering of just the line
> the cursor occupies.
>
> BTW, I too write integer programs.  A while back I came across a reference
> to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4,
> 2006) that claims that eqnarray is somehow evil.  The complaints are mainly
> about spacing (including the possibility that equation numbers are
> overwritten or crowded off the line).  He recommends AMS math environments
> or the mathenv package.  Then again, I came across a post on sci.op-research
> that as I recall advocated eqnarray.
>
> Anyway, here's an alternative I found somewhere:
>
> \begin{alignat*}{7}
>  & \text{maximize } & z= &  & 2x_{1} &  & + &  & 3x_{2} &  & + &  & 4x_{3}\\
>  & \text{subject to: } &  &  & 44x_{1} &  &  &  &  &  & + &  & 50x_{3} &
> \ge900\\
>  &  &  &  &  &  &  &  &  &  &  &  & \llap{\ensuremath{x_{1},x_{2},x_{3}}} &
> \ge0
> \end{alignat*}
>
> FWIW,
> Paul
>
>


Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio,

Julio Rojas wrote:

Thanks Paul, I've tried it but the first column is right aligned and
the third is left aligned.


In the alignat* example?  Shouldn't be -- the alignment alternates 
right-left-right, so the first and third columns should have the same 
alignment.  Note that the first column is intentionally left empty, so 
that the 'maximize' and 'subject to' are in the second column (and hence 
left-aligned).



I'm kind of new on the subject and the
references I have from a friend make them left and right aligned,
respectively. Is there an standard way of aligning them?


I'm not sure there's a generally accepted standard.  I like to put the 
keywords (maximize, s.t.) in one column, the objective function and LHS 
of constraints in a second column, the constraint direction (=,<,>) in a 
 third column, the RHS in the fourth column and any indexing stuff in a 
fifth column, so I usually use eqnarray (critics be damned).  If I'm 
going to use alignat, then I'll put max/s.t. in column 2 (left aligned), 
the LHS _and_ =/>/< in the third column (right aligned), the RHS in the 
fourth column (left aligned) and indexing in the fifth column (right 
aligned), which should work pretty well (it avoids gratuitous space in 
the middle of the constraints).


I guess it's a matter of taste (unless the constraints get long enough 
that eqnarray sends the equation numbers into another galaxy).


/Paul


-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubin wrote:

Julio Rojas wrote:

Thanks, I've already done that, but no option seems to be of help. I'm
trying to put an integer programing model and every restriction should
be numbered and aligned like:

Maximize Z  (1)
Subject to:
Z=sum(Xi) (2)
Xi+Xj<=1   for all i,j in P, i:

Julio Rojas  writes:


Dear all, is there a way to individually label some equations of an
equation array? Or some rows from an array?
-
Julio Rojas
jcredbe...@...


Please have a look at Help>Math (or Ecuaciones) where you can
find a very fine description of this issue in the section 19,
19.3 and/or 19.4.


Julio,

Actually, I think what you want is in section 19.1.  Inside an equation
array environment, Alt-m n toggles numbering of the entire array (separate
number on each line), while Alt-m Shift-n toggles numbering of just the line
the cursor occupies.

BTW, I too write integer programs.  A while back I came across a reference
to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4,
2006) that claims that eqnarray is somehow evil.  The complaints are mainly
about spacing (including the possibility that equation numbers are
overwritten or crowded off the line).  He recommends AMS math environments
or the mathenv package.  Then again, I came across a post on sci.op-research
that as I recall advocated eqnarray.

Anyway, here's an alternative I found somewhere:

\begin{alignat*}{7}
 & \text{maximize } & z= &  & 2x_{1} &  & + &  & 3x_{2} &  & + &  & 4x_{3}\\
 & \text{subject to: } &  &  & 44x_{1} &  &  &  &  &  & + &  & 50x_{3} &
\ge900\\
 &  &  &  &  &  &  &  &  &  &  &  & \llap{\ensuremath{x_{1},x_{2},x_{3}}} &
\ge0
\end{alignat*}

FWIW,
Paul








Re: Equation Array

2009-09-02 Thread Julio Rojas
I made it with eqarray, but it "only" allows me to have 3 columns. How
did you add more columns?

I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.

Thanks for your help.
-
Julio Rojas
jcredbe...@gmail.com



On Wed, Sep 2, 2009 at 6:00 PM, Paul A. Rubin wrote:
> Julio,
>
> Julio Rojas wrote:
>>
>> Thanks Paul, I've tried it but the first column is right aligned and
>> the third is left aligned.
>
> In the alignat* example?  Shouldn't be -- the alignment alternates
> right-left-right, so the first and third columns should have the same
> alignment.  Note that the first column is intentionally left empty, so that
> the 'maximize' and 'subject to' are in the second column (and hence
> left-aligned).
>
>> I'm kind of new on the subject and the
>> references I have from a friend make them left and right aligned,
>> respectively. Is there an standard way of aligning them?
>
> I'm not sure there's a generally accepted standard.  I like to put the
> keywords (maximize, s.t.) in one column, the objective function and LHS of
> constraints in a second column, the constraint direction (=,<,>) in a  third
> column, the RHS in the fourth column and any indexing stuff in a fifth
> column, so I usually use eqnarray (critics be damned).  If I'm going to use
> alignat, then I'll put max/s.t. in column 2 (left aligned), the LHS _and_
> =/>/< in the third column (right aligned), the RHS in the fourth column
> (left aligned) and indexing in the fifth column (right aligned), which
> should work pretty well (it avoids gratuitous space in the middle of the
> constraints).
>
> I guess it's a matter of taste (unless the constraints get long enough that
> eqnarray sends the equation numbers into another galaxy).
>
> /Paul
>
>> -
>> Julio Rojas
>> jcredbe...@gmail.com
>>
>>
>>
>> On Wed, Sep 2, 2009 at 5:11 PM, Paul A. Rubin wrote:
>>>
>>> Julio Rojas wrote:

 Thanks, I've already done that, but no option seems to be of help. I'm
 trying to put an integer programing model and every restriction should
 be numbered and aligned like:

 Maximize Z                                          (1)
 Subject to:
 Z=sum(Xi)                                             (2)
 Xi+Xj<=1                       for all i,j in P, i>>> Xi,Xj in {0,1}                        for all i,j in P (4)

 So, some rows are numbered, the left column is left aligned and the
 right column is right aligned. How can this numbered array be done?
 -
 Julio Rojas
 jcredbe...@gmail.com



 2009/9/2 Ignacio García :
>
> Julio Rojas  writes:
>
>> Dear all, is there a way to individually label some equations of an
>> equation array? Or some rows from an array?
>> -
>> Julio Rojas
>> jcredbe...@...
>>
> Please have a look at Help>Math (or Ecuaciones) where you can
> find a very fine description of this issue in the section 19,
> 19.3 and/or 19.4.
>
>>> Julio,
>>>
>>> Actually, I think what you want is in section 19.1.  Inside an equation
>>> array environment, Alt-m n toggles numbering of the entire array
>>> (separate
>>> number on each line), while Alt-m Shift-n toggles numbering of just the
>>> line
>>> the cursor occupies.
>>>
>>> BTW, I too write integer programs.  A while back I came across a
>>> reference
>>> to an article ("Avoid eqnarray!" by Lars Madsen, The PracTeX Journal #4,
>>> 2006) that claims that eqnarray is somehow evil.  The complaints are
>>> mainly
>>> about spacing (including the possibility that equation numbers are
>>> overwritten or crowded off the line).  He recommends AMS math
>>> environments
>>> or the mathenv package.  Then again, I came across a post on
>>> sci.op-research
>>> that as I recall advocated eqnarray.
>>>
>>> Anyway, here's an alternative I found somewhere:
>>>
>>> \begin{alignat*}{7}
>>>  & \text{maximize } & z= &  & 2x_{1} &  & + &  & 3x_{2} &  & + &  &
>>> 4x_{3}\\
>>>  & \text{subject to: } &  &  & 44x_{1} &  &  &  &  &  & + &  & 50x_{3} &
>>> \ge900\\
>>>  &  &  &  &  &  &  &  &  &  &  &  & \llap{\ensuremath{x_{1},x_{2},x_{3}}}
>>> &
>>> \ge0
>>> \end{alignat*}
>>>
>>> FWIW,
>>> Paul
>>>
>>>
>>
>
>


Re: Equation Array

2009-09-02 Thread Paul A. Rubin

Julio Rojas wrote:

I made it with eqarray, but it "only" allows me to have 3 columns. How
did you add more columns?


Oops -- forgot about that.  I'm not very consistent in what I use (I 
just went back and loaded some old papers to look).  Sometimes I use 
eqnarray (which is locked into three columns), in which case I put 
"maximize" and "subject to" in the left column, indexing in the right 
column and everything else in the middle.  Most times I create a display 
equation, then create an array with five columns, and go from there.  I 
think I've used alignat once or twice.  Seems to me there's some 
objection to using a plain old array, I think maybe relating to vertical 
space (not sure), but I'm not much concerned with aesthetics, and array 
is for me the easiest route.


I tried using alignat and it works ok, except for the fact that LyX
doesn't show proper alignment (only the first column is right aligned,
while all of the others are left aligned.


But it comes out right in the DVI/PDF output, which is all I worry about.


Thanks for your help.


My pleasure,
Paul



Re: Equation array and two column layout

2008-11-25 Thread Vittorio Zuccala'
Hello Julio,
i do not know if i've understood your question.
Anyway, probably you can be interested one of this...

First solution:
press CTRL+L entering in ERT mode and then:
\begin{eqnarray}
d = a + b, if a1 \nonumber \\
= a-b, if a1 \nonumber \\
=0, if a=1 \nonumber
\end{eqnarray}

Second solution (i think better for you):
press CTRL+L entering in ERT mode and then:
$$ d = \left\{
\begin{array}{rl}  a+b \mbox{ if a1} \\
a-b \mbox{ if a1} \\
0 \mbox{ if a=1} \\
\end{array}
\right. $$


I hope it'll be usefull for you.
Bye,
   Vittorio


On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Dear all, I'm finishing a paper with the two columned article class. I
 have a problem with some equation arrays that are two big for this
 format. They span over the other column or over the margins, even with
 an smaller font (\scriptstyle). What can I do to solve this problem?
 Should I use an even smaller font (\scriptscriptstyle)? How can I
 break the line in an equation array and put the right hand of the
 array under the first part, but slightly to the right?

 The kind of equation array I'm using is conditional:

 d= a+b, if a1
 a-b, if a1
 0,if a=1

 Hope you can help me.
 -
 Julio Rojas
 [EMAIL PROTECTED]




-- 
Vittorio Zuccalà


Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thank you Vittorio. What I would like with this matrix is that the
right column can overfill the left one and viceversa. That way I can
have the long equations and the cases in two lines (eq. on the left
column, cases on the right column) every other line.

d= a+b+c+d+e+f+g
if a,b,c,d,e,f,g 1
 a-b-c-d-e-f-g
if a,b,c,d,e,f,g1

With this arrangement I can include the equations in just one column
of the two column paper. Is this something usual to do? What is the
regular way of handling the case of a series of long equations in
two columned papers?

Thanks in advance.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
[EMAIL PROTECTED] wrote:
 Hello Julio,
 i do not know if i've understood your question.
 Anyway, probably you can be interested one of this...

 First solution:
 press CTRL+L entering in ERT mode and then:
 \begin{eqnarray}
 d = a + b, if a1 \nonumber \\
 = a-b, if a1 \nonumber \\
 =0, if a=1 \nonumber
 \end{eqnarray}

 Second solution (i think better for you):
 press CTRL+L entering in ERT mode and then:
 $$ d = \left\{
 \begin{array}{rl}  a+b \mbox{ if a1} \\
 a-b \mbox{ if a1} \\
 0 \mbox{ if a=1} \\
 \end{array}
 \right. $$


 I hope it'll be usefull for you.
 Bye,
Vittorio


 On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Dear all, I'm finishing a paper with the two columned article class. I
 have a problem with some equation arrays that are two big for this
 format. They span over the other column or over the margins, even with
 an smaller font (\scriptstyle). What can I do to solve this problem?
 Should I use an even smaller font (\scriptscriptstyle)? How can I
 break the line in an equation array and put the right hand of the
 array under the first part, but slightly to the right?

 The kind of equation array I'm using is conditional:

 d= a+b, if a1
 a-b, if a1
 0,if a=1

 Hope you can help me.
 -
 Julio Rojas
 [EMAIL PROTECTED]



 --
 Vittorio Zuccalà



Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thanks Vittorio, but this solution is not the one I'm looking for. I
would like the right column to be right aligned and the left column to
be left aligned. When I do that with your solution (changing the rl
to lr) this turns our to be the original matrix I started with. As I
said, I need the right column to overfill the left one in order to
make the equation fit inside one column of the document.

Anyways, thank you very much.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 4:48 PM, Vittorio Zuccala'
[EMAIL PROTECTED] wrote:
 If you have to go to another line, you may use \\ in ERT
 and you may use \: to have additional space.
 In this way un can use in ERT mode:

 $$ d = \left\{
 \begin{array}{rl}
 a+b+c+d+e+f+g \\ \: \mbox{ if a,b,c,d,e,f,g 1} \\
 a-b-c-d-e-f-g \\ \: \mbox{ if a,b,c,d,e,f,g1} \\
 0 \mbox{ if a=1} \\ \: \end{array}
 \right. $$

 I hope this will be usefull.
 Bye,
 Vittorio


 On Tue, Nov 25, 2008 at 4:18 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Thank you Vittorio. What I would like with this matrix is that the
 right column can overfill the left one and viceversa. That way I can
 have the long equations and the cases in two lines (eq. on the left
 column, cases on the right column) every other line.

 d= a+b+c+d+e+f+g
if a,b,c,d,e,f,g 1
 a-b-c-d-e-f-g
if a,b,c,d,e,f,g1

 With this arrangement I can include the equations in just one column
 of the two column paper. Is this something usual to do? What is the
 regular way of handling the case of a series of long equations in
 two columned papers?

 Thanks in advance.
 -
 Julio Rojas
 [EMAIL PROTECTED]



 On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
 [EMAIL PROTECTED] wrote:
  Hello Julio,
  i do not know if i've understood your question.
  Anyway, probably you can be interested one of this...
 
  First solution:
  press CTRL+L entering in ERT mode and then:
  \begin{eqnarray}
  d = a + b, if a1 \nonumber \\
  = a-b, if a1 \nonumber \\
  =0, if a=1 \nonumber
  \end{eqnarray}
 
  Second solution (i think better for you):
  press CTRL+L entering in ERT mode and then:
  $$ d = \left\{
  \begin{array}{rl}  a+b \mbox{ if a1} \\
  a-b \mbox{ if a1} \\
  0 \mbox{ if a=1} \\
  \end{array}
  \right. $$
 
 
  I hope it'll be usefull for you.
  Bye,
 Vittorio
 
 
  On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED]
  wrote:
 
  Dear all, I'm finishing a paper with the two columned article class. I
  have a problem with some equation arrays that are two big for this
  format. They span over the other column or over the margins, even with
  an smaller font (\scriptstyle). What can I do to solve this problem?
  Should I use an even smaller font (\scriptscriptstyle)? How can I
  break the line in an equation array and put the right hand of the
  array under the first part, but slightly to the right?
 
  The kind of equation array I'm using is conditional:
 
  d= a+b, if a1
  a-b, if a1
  0,if a=1
 
  Hope you can help me.
  -
  Julio Rojas
  [EMAIL PROTECTED]
 
 
 
  --
  Vittorio Zuccalà
 



 --
 Vittorio Zuccalà



Re: Equation array and two column layout

2008-11-25 Thread Vittorio Zuccala'
Hello Julio,
i do not know if i've understood your question.
Anyway, probably you can be interested one of this...

First solution:
press CTRL+L entering in ERT mode and then:
\begin{eqnarray}
d = a + b, if a1 \nonumber \\
= a-b, if a1 \nonumber \\
=0, if a=1 \nonumber
\end{eqnarray}

Second solution (i think better for you):
press CTRL+L entering in ERT mode and then:
$$ d = \left\{
\begin{array}{rl}  a+b \mbox{ if a1} \\
a-b \mbox{ if a1} \\
0 \mbox{ if a=1} \\
\end{array}
\right. $$


I hope it'll be usefull for you.
Bye,
   Vittorio


On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Dear all, I'm finishing a paper with the two columned article class. I
 have a problem with some equation arrays that are two big for this
 format. They span over the other column or over the margins, even with
 an smaller font (\scriptstyle). What can I do to solve this problem?
 Should I use an even smaller font (\scriptscriptstyle)? How can I
 break the line in an equation array and put the right hand of the
 array under the first part, but slightly to the right?

 The kind of equation array I'm using is conditional:

 d= a+b, if a1
 a-b, if a1
 0,if a=1

 Hope you can help me.
 -
 Julio Rojas
 [EMAIL PROTECTED]




-- 
Vittorio Zuccalà


Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thank you Vittorio. What I would like with this matrix is that the
right column can overfill the left one and viceversa. That way I can
have the long equations and the cases in two lines (eq. on the left
column, cases on the right column) every other line.

d= a+b+c+d+e+f+g
if a,b,c,d,e,f,g 1
 a-b-c-d-e-f-g
if a,b,c,d,e,f,g1

With this arrangement I can include the equations in just one column
of the two column paper. Is this something usual to do? What is the
regular way of handling the case of a series of long equations in
two columned papers?

Thanks in advance.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
[EMAIL PROTECTED] wrote:
 Hello Julio,
 i do not know if i've understood your question.
 Anyway, probably you can be interested one of this...

 First solution:
 press CTRL+L entering in ERT mode and then:
 \begin{eqnarray}
 d = a + b, if a1 \nonumber \\
 = a-b, if a1 \nonumber \\
 =0, if a=1 \nonumber
 \end{eqnarray}

 Second solution (i think better for you):
 press CTRL+L entering in ERT mode and then:
 $$ d = \left\{
 \begin{array}{rl}  a+b \mbox{ if a1} \\
 a-b \mbox{ if a1} \\
 0 \mbox{ if a=1} \\
 \end{array}
 \right. $$


 I hope it'll be usefull for you.
 Bye,
Vittorio


 On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Dear all, I'm finishing a paper with the two columned article class. I
 have a problem with some equation arrays that are two big for this
 format. They span over the other column or over the margins, even with
 an smaller font (\scriptstyle). What can I do to solve this problem?
 Should I use an even smaller font (\scriptscriptstyle)? How can I
 break the line in an equation array and put the right hand of the
 array under the first part, but slightly to the right?

 The kind of equation array I'm using is conditional:

 d= a+b, if a1
 a-b, if a1
 0,if a=1

 Hope you can help me.
 -
 Julio Rojas
 [EMAIL PROTECTED]



 --
 Vittorio Zuccalà



Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thanks Vittorio, but this solution is not the one I'm looking for. I
would like the right column to be right aligned and the left column to
be left aligned. When I do that with your solution (changing the rl
to lr) this turns our to be the original matrix I started with. As I
said, I need the right column to overfill the left one in order to
make the equation fit inside one column of the document.

Anyways, thank you very much.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 4:48 PM, Vittorio Zuccala'
[EMAIL PROTECTED] wrote:
 If you have to go to another line, you may use \\ in ERT
 and you may use \: to have additional space.
 In this way un can use in ERT mode:

 $$ d = \left\{
 \begin{array}{rl}
 a+b+c+d+e+f+g \\ \: \mbox{ if a,b,c,d,e,f,g 1} \\
 a-b-c-d-e-f-g \\ \: \mbox{ if a,b,c,d,e,f,g1} \\
 0 \mbox{ if a=1} \\ \: \end{array}
 \right. $$

 I hope this will be usefull.
 Bye,
 Vittorio


 On Tue, Nov 25, 2008 at 4:18 PM, Julio Rojas [EMAIL PROTECTED] wrote:

 Thank you Vittorio. What I would like with this matrix is that the
 right column can overfill the left one and viceversa. That way I can
 have the long equations and the cases in two lines (eq. on the left
 column, cases on the right column) every other line.

 d= a+b+c+d+e+f+g
if a,b,c,d,e,f,g 1
 a-b-c-d-e-f-g
if a,b,c,d,e,f,g1

 With this arrangement I can include the equations in just one column
 of the two column paper. Is this something usual to do? What is the
 regular way of handling the case of a series of long equations in
 two columned papers?

 Thanks in advance.
 -
 Julio Rojas
 [EMAIL PROTECTED]



 On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
 [EMAIL PROTECTED] wrote:
  Hello Julio,
  i do not know if i've understood your question.
  Anyway, probably you can be interested one of this...
 
  First solution:
  press CTRL+L entering in ERT mode and then:
  \begin{eqnarray}
  d = a + b, if a1 \nonumber \\
  = a-b, if a1 \nonumber \\
  =0, if a=1 \nonumber
  \end{eqnarray}
 
  Second solution (i think better for you):
  press CTRL+L entering in ERT mode and then:
  $$ d = \left\{
  \begin{array}{rl}  a+b \mbox{ if a1} \\
  a-b \mbox{ if a1} \\
  0 \mbox{ if a=1} \\
  \end{array}
  \right. $$
 
 
  I hope it'll be usefull for you.
  Bye,
 Vittorio
 
 
  On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas [EMAIL PROTECTED]
  wrote:
 
  Dear all, I'm finishing a paper with the two columned article class. I
  have a problem with some equation arrays that are two big for this
  format. They span over the other column or over the margins, even with
  an smaller font (\scriptstyle). What can I do to solve this problem?
  Should I use an even smaller font (\scriptscriptstyle)? How can I
  break the line in an equation array and put the right hand of the
  array under the first part, but slightly to the right?
 
  The kind of equation array I'm using is conditional:
 
  d= a+b, if a1
  a-b, if a1
  0,if a=1
 
  Hope you can help me.
  -
  Julio Rojas
  [EMAIL PROTECTED]
 
 
 
  --
  Vittorio Zuccalà
 



 --
 Vittorio Zuccalà



Re: Equation array and two column layout

2008-11-25 Thread Vittorio Zuccala'
Hello Julio,
i do not know if i've understood your question.
Anyway, probably you can be interested one of this...

First solution:
press CTRL+L entering in ERT mode and then:
\begin{eqnarray}
d &=& a + b, if a>1 \nonumber \\
&=& a-b, if a<1 \nonumber \\
&=&0, if a=1 \nonumber
\end{eqnarray}

Second solution (i think better for you):
press CTRL+L entering in ERT mode and then:
$$ d = \left\{
\begin{array}{rl}  a+b &\mbox{ if a>1} \\
a-b &\mbox{ if a<1} \\
0 &\mbox{ if a=1} \\
\end{array}
\right. $$


I hope it'll be usefull for you.
Bye,
   Vittorio


On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas <[EMAIL PROTECTED]> wrote:

> Dear all, I'm finishing a paper with the two columned article class. I
> have a problem with some equation arrays that are two big for this
> format. They span over the other column or over the margins, even with
> an smaller font (\scriptstyle). What can I do to solve this problem?
> Should I use an even smaller font (\scriptscriptstyle)? How can I
> break the line in an equation array and put the right hand of the
> array under the first part, but slightly to the right?
>
> The kind of equation array I'm using is conditional:
>
> d= a+b, if a>1
> a-b, if a<1
> 0,if a=1
>
> Hope you can help me.
> -
> Julio Rojas
> [EMAIL PROTECTED]
>



-- 
Vittorio Zuccalà


Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thank you Vittorio. What I would like with this matrix is that the
right column can overfill the left one and viceversa. That way I can
have the long equations and the cases in two lines (eq. on the left
column, cases on the right column) every other line.

d= a+b+c+d+e+f+g
if a,b,c,d,e,f,g >1
 a-b-c-d-e-f-g
if a,b,c,d,e,f,g<1

With this arrangement I can include the equations in just one column
of the two column paper. Is this something usual to do? What is the
"regular" way of handling the case of a series of long equations in
two columned papers?

Thanks in advance.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
<[EMAIL PROTECTED]> wrote:
> Hello Julio,
> i do not know if i've understood your question.
> Anyway, probably you can be interested one of this...
>
> First solution:
> press CTRL+L entering in ERT mode and then:
> \begin{eqnarray}
> d &=& a + b, if a>1 \nonumber \\
> &=& a-b, if a<1 \nonumber \\
> &=&0, if a=1 \nonumber
> \end{eqnarray}
>
> Second solution (i think better for you):
> press CTRL+L entering in ERT mode and then:
> $$ d = \left\{
> \begin{array}{rl}  a+b &\mbox{ if a>1} \\
> a-b &\mbox{ if a<1} \\
> 0 &\mbox{ if a=1} \\
> \end{array}
> \right. $$
>
>
> I hope it'll be usefull for you.
> Bye,
>Vittorio
>
>
> On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas <[EMAIL PROTECTED]> wrote:
>>
>> Dear all, I'm finishing a paper with the two columned article class. I
>> have a problem with some equation arrays that are two big for this
>> format. They span over the other column or over the margins, even with
>> an smaller font (\scriptstyle). What can I do to solve this problem?
>> Should I use an even smaller font (\scriptscriptstyle)? How can I
>> break the line in an equation array and put the right hand of the
>> array under the first part, but slightly to the right?
>>
>> The kind of equation array I'm using is conditional:
>>
>> d= a+b, if a>1
>> a-b, if a<1
>> 0,if a=1
>>
>> Hope you can help me.
>> -
>> Julio Rojas
>> [EMAIL PROTECTED]
>
>
>
> --
> Vittorio Zuccalà
>


Re: Equation array and two column layout

2008-11-25 Thread Julio Rojas
Thanks Vittorio, but this solution is not the one I'm looking for. I
would like the right column to be right aligned and the left column to
be left aligned. When I do that with your solution (changing the "rl"
to "lr") this turns our to be the original matrix I started with. As I
said, I need the right column to overfill the left one in order to
make the equation fit inside one column of the document.

Anyways, thank you very much.
-
Julio Rojas
[EMAIL PROTECTED]



On Tue, Nov 25, 2008 at 4:48 PM, Vittorio Zuccala'
<[EMAIL PROTECTED]> wrote:
> If you have to go to another line, you may use \\ in ERT
> and you may use \: to have additional space.
> In this way un can use in ERT mode:
>
> $$ d = \left\{
> \begin{array}{rl}
> a+b+c+d+e+f+g &\\ \: \mbox{ if a,b,c,d,e,f,g >1} \\
> a-b-c-d-e-f-g &\\ \: \mbox{ if a,b,c,d,e,f,g<1} \\
> 0 &\mbox{ if a=1} \\ \: \end{array}
> \right. $$
>
> I hope this will be usefull.
> Bye,
> Vittorio
>
>
> On Tue, Nov 25, 2008 at 4:18 PM, Julio Rojas <[EMAIL PROTECTED]> wrote:
>>
>> Thank you Vittorio. What I would like with this matrix is that the
>> right column can overfill the left one and viceversa. That way I can
>> have the long equations and the cases in two lines (eq. on the left
>> column, cases on the right column) every other line.
>>
>> d= a+b+c+d+e+f+g
>>if a,b,c,d,e,f,g >1
>> a-b-c-d-e-f-g
>>if a,b,c,d,e,f,g<1
>>
>> With this arrangement I can include the equations in just one column
>> of the two column paper. Is this something usual to do? What is the
>> "regular" way of handling the case of a series of long equations in
>> two columned papers?
>>
>> Thanks in advance.
>> -
>> Julio Rojas
>> [EMAIL PROTECTED]
>>
>>
>>
>> On Tue, Nov 25, 2008 at 2:50 PM, Vittorio Zuccala'
>> <[EMAIL PROTECTED]> wrote:
>> > Hello Julio,
>> > i do not know if i've understood your question.
>> > Anyway, probably you can be interested one of this...
>> >
>> > First solution:
>> > press CTRL+L entering in ERT mode and then:
>> > \begin{eqnarray}
>> > d &=& a + b, if a>1 \nonumber \\
>> > &=& a-b, if a<1 \nonumber \\
>> > &=&0, if a=1 \nonumber
>> > \end{eqnarray}
>> >
>> > Second solution (i think better for you):
>> > press CTRL+L entering in ERT mode and then:
>> > $$ d = \left\{
>> > \begin{array}{rl}  a+b &\mbox{ if a>1} \\
>> > a-b &\mbox{ if a<1} \\
>> > 0 &\mbox{ if a=1} \\
>> > \end{array}
>> > \right. $$
>> >
>> >
>> > I hope it'll be usefull for you.
>> > Bye,
>> >Vittorio
>> >
>> >
>> > On Tue, Nov 25, 2008 at 1:01 PM, Julio Rojas <[EMAIL PROTECTED]>
>> > wrote:
>> >>
>> >> Dear all, I'm finishing a paper with the two columned article class. I
>> >> have a problem with some equation arrays that are two big for this
>> >> format. They span over the other column or over the margins, even with
>> >> an smaller font (\scriptstyle). What can I do to solve this problem?
>> >> Should I use an even smaller font (\scriptscriptstyle)? How can I
>> >> break the line in an equation array and put the right hand of the
>> >> array under the first part, but slightly to the right?
>> >>
>> >> The kind of equation array I'm using is conditional:
>> >>
>> >> d= a+b, if a>1
>> >> a-b, if a<1
>> >> 0,if a=1
>> >>
>> >> Hope you can help me.
>> >> -
>> >> Julio Rojas
>> >> [EMAIL PROTECTED]
>> >
>> >
>> >
>> > --
>> > Vittorio Zuccalà
>> >
>
>
>
> --
> Vittorio Zuccalà
>


Re: equation array and delimiter problem

2001-08-05 Thread Dekel Tsur

On Sat, Aug 04, 2001 at 09:42:54PM +0200, Herbert Voss wrote:
 Michael Koundouros wrote:
  
  equation array was input using the equation array utility (Ctrl-enter)
  matrix was input using a 2x3 matrix within a delimiter.
  
  looking at the ps file you will see the equation in the matrix is rather
  squashed. what I would like is the equation to look like in equation array
  but to have the delimiter and numbering of the matrix equation.
  
  Does anyone know how to do this as I was unable to insert a delimiter in
  equation array.
 
 look at your example.
 there are different sizes, used by latex when you have equnarray or
 array.

You cannot use the latex \displaystyle command because it confuses the lyx
parser (this will be fixed in 1.2.0), so you need to use an alias instead. 
See the attached file.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}

\let\dispstyle=\displaystyle
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)   =  P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)   =  P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)   =  \dispstyle {P\frac{-i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 
1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)   =  \dispstyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end



Re: equation array and delimiter problem

2001-08-05 Thread Dekel Tsur

On Sat, Aug 04, 2001 at 09:42:54PM +0200, Herbert Voss wrote:
 Michael Koundouros wrote:
  
  equation array was input using the equation array utility (Ctrl-enter)
  matrix was input using a 2x3 matrix within a delimiter.
  
  looking at the ps file you will see the equation in the matrix is rather
  squashed. what I would like is the equation to look like in equation array
  but to have the delimiter and numbering of the matrix equation.
  
  Does anyone know how to do this as I was unable to insert a delimiter in
  equation array.
 
 look at your example.
 there are different sizes, used by latex when you have equnarray or
 array.

You cannot use the latex \displaystyle command because it confuses the lyx
parser (this will be fixed in 1.2.0), so you need to use an alias instead. 
See the attached file.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}

\let\dispstyle=\displaystyle
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)   =  P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)   =  P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)   =  \dispstyle {P\frac{-i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 
1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)   =  \dispstyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end



Re: equation array and delimiter problem

2001-08-05 Thread Dekel Tsur

On Sat, Aug 04, 2001 at 09:42:54PM +0200, Herbert Voss wrote:
> Michael Koundouros wrote:
> > 
> > "equation array" was input using the equation array utility (Ctrl-enter)
> > "matrix" was input using a 2x3 matrix within a delimiter.
> > 
> > looking at the ps file you will see the equation in the matrix is rather
> > squashed. what I would like is the equation to look like in "equation array"
> > but to have the delimiter and numbering of the "matrix" equation.
> > 
> > Does anyone know how to do this as I was unable to insert a delimiter in
> > "equation array".
> 
> look at your example.
> there are different sizes, used by latex when you have equnarray or
> array.

You cannot use the latex \displaystyle command because it confuses the lyx
parser (this will be fixed in 1.2.0), so you need to use an alias instead. 
See the attached file.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}

\let\dispstyle=\displaystyle
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)  & = & P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)  & = & P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)  & = & \dispstyle {P\frac{-i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 
1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)  & = & \dispstyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end



Re: equation array and delimiter problem

2001-08-04 Thread Herbert Voss

Michael Koundouros wrote:
 
 equation array was input using the equation array utility (Ctrl-enter)
 matrix was input using a 2x3 matrix within a delimiter.
 
 looking at the ps file you will see the equation in the matrix is rather
 squashed. what I would like is the equation to look like in equation array
 but to have the delimiter and numbering of the matrix equation.
 
 Does anyone know how to do this as I was unable to insert a delimiter in
 equation array.

look at your example.
there are different sizes, used by latex when you have equnarray or
array.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)   =  P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)   =  P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)   =  \displaystyle {P\frac{-i}{2\left( 
s_{1}-s_{2}\right) \left( 1+is_{1}\right) }\left[ 
1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)   =  \displaystyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end



Re: equation array and delimiter problem

2001-08-04 Thread Herbert Voss

Michael Koundouros wrote:
 
 equation array was input using the equation array utility (Ctrl-enter)
 matrix was input using a 2x3 matrix within a delimiter.
 
 looking at the ps file you will see the equation in the matrix is rather
 squashed. what I would like is the equation to look like in equation array
 but to have the delimiter and numbering of the matrix equation.
 
 Does anyone know how to do this as I was unable to insert a delimiter in
 equation array.

look at your example.
there are different sizes, used by latex when you have equnarray or
array.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)   =  P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)   =  P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)   =  \displaystyle {P\frac{-i}{2\left( 
s_{1}-s_{2}\right) \left( 1+is_{1}\right) }\left[ 
1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)   =  \displaystyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end



Re: equation array and delimiter problem

2001-08-04 Thread Herbert Voss

Michael Koundouros wrote:
> 
> "equation array" was input using the equation array utility (Ctrl-enter)
> "matrix" was input using a 2x3 matrix within a delimiter.
> 
> looking at the ps file you will see the equation in the matrix is rather
> squashed. what I would like is the equation to look like in "equation array"
> but to have the delimiter and numbering of the "matrix" equation.
> 
> Does anyone know how to do this as I was unable to insert a delimiter in
> "equation array".

look at your example.
there are different sizes, used by latex when you have equnarray or
array.

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/

#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble
\usepackage{cite}
\usepackage{fancyhdr}
\lhead{}
\renewcommand {\sectionmark}[1]{\markright{#1}}
\rhead{\nouppercase{\rightmark}}
\end_preamble
\language british
\inputencoding auto
\fontscheme default
\graphics default
\float_placement !hbtp
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage widemarginsa4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle fancy

\layout Standard


\begin_inset Formula \begin{eqnarray}
\varphi \left( z_{1}\right)  & = & P\frac{-i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{1}\right) }\left[ 1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) 
}}\right] \\
\psi \left( z_{2}\right)  & = & P\frac{+i}{2\left( s_{1}-s_{2}\right) \left( 
1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 1+s^{2}_{2}\right) 
}}\right] \label{equation array} 
\end{eqnarray}

\end_inset 


\layout Standard


\begin_inset Formula \begin{equation}
\label{matrix}
\left. \begin{array}{ccc}
\varphi \left( z_{1}\right)  & = & \displaystyle {P\frac{-i}{2\left( 
s_{1}-s_{2}\right) \left( 1+is_{1}\right) }\left[ 
1-\frac{z_{1}}{\sqrt{z^{2}_{1}-R^{2}\left( 1+s^{2}_{1}\right) }}\right] }\\
\psi \left( z_{2}\right)  & = & \displaystyle {P\frac{+i}{2\left( s_{1}-s_{2}\right) 
\left( 1+is_{2}\right) }\left[ 1-\frac{z_{2}}{\sqrt{z^{2}_{2}-R^{2}\left( 
1+s^{2}_{2}\right) }}\right] }
\end{array}\right\} 
\end{equation}

\end_inset 


\the_end