Discussion:
Multline subscript / AMS in LyX
Rudi Gaelzer
2005-11-11 19:33:39 UTC
Permalink
Does anyone know if the subarray AMS environment is implemented in LyX (I
mean, not in ERT mode) and how to use it?

I want a multline subscript with the lines left-aligned. The command
\substack is implemented, but the lines are centered. The subarray
environment is the way to do this.

Also, where can I find a description of AMS resources supported by LyX? The
User Guide seems to be fairly incomplete on the subject.

Thanks.
--
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Phone: +55-53-3275-7468
FAX: +55-53-3275-7343
Registered linux user # 153741
Helge Hafting
2005-11-11 20:04:12 UTC
Permalink
Post by Rudi Gaelzer
Does anyone know if the subarray AMS environment is implemented in LyX (I
mean, not in ERT mode) and how to use it?
I want a multline subscript with the lines left-aligned. The command
\substack is implemented, but the lines are centered. The subarray
environment is the way to do this.
How about this way:
1. Create the subscript
2. Insert a matrix into subscript - (1 column, and as many rows as you need)
You can specify a left-aligned matrix.

Helge Hafting
Rudi Gaelzer
2005-11-11 21:32:02 UTC
Permalink
Well, OK, thanks anyway, but this is Lamport-style, standard LaTeX. One of
the aims of the AMS package, though, is to provide resources that render
mathematical display that is aesthetically more appealing than standard
LaTeX...

Just for you to notice the difference between array and subarray environments
in this case, I'm attaching a small .tex file which compares both instances.

Cheers.
Post by Helge Hafting
Post by Rudi Gaelzer
Does anyone know if the subarray AMS environment is implemented in LyX (I
mean, not in ERT mode) and how to use it?
I want a multline subscript with the lines left-aligned. The command
\substack is implemented, but the lines are centered. The subarray
environment is the way to do this.
1. Create the subscript
2. Insert a matrix into subscript - (1 column, and as many rows as you
need) You can specify a left-aligned matrix.
Helge Hafting
--
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
Phone: +55-53-3275-7468
FAX: +55-53-3275-7343
Registered linux user # 153741
Georg Baum
2005-11-12 13:41:56 UTC
Permalink
Post by Rudi Gaelzer
Well, OK, thanks anyway, but this is Lamport-style, standard LaTeX. One
of the aims of the AMS package, though, is to provide resources that
render mathematical display that is aesthetically more appealing than
standard LaTeX...
And it offers a lot of useful tools.
Post by Rudi Gaelzer
Just for you to notice the difference between array and subarray
environments in this case, I'm attaching a small .tex file which compares
both instances.
And I attach the same file converted to LyX with tex2lyx.
Post by Rudi Gaelzer
Post by Rudi Gaelzer
Does anyone know if the subarray AMS environment is implemented in LyX
(I mean, not in ERT mode) and how to use it?
It is "semi-supported": It has no GUI entry, and you can't distinguish it
optically in LyX from a normal array, but you can create a 1x1 subarray if
you enter \subarray <space> in math mode. You can then add columns and rows
or change alignment with the usual tabular commands.
Every AMS construct I know of is at least supported like subarray.


Georg
Rudi Gaelzer
2005-11-13 16:14:54 UTC
Permalink
Post by Georg Baum
It is "semi-supported": It has no GUI entry, and you can't distinguish it
optically in LyX from a normal array, but you can create a 1x1 subarray if
you enter \subarray <space> in math mode. You can then add columns and rows
or change alignment with the usual tabular commands.
Every AMS construct I know of is at least supported like subarray.
Georg
Yep! It works! Thanks Georg.
I entered the command \subarray, created the lines and then changed the
alignment in Edit -> Tabular -> Align Left.

Do you know if the package empheq:
http://www.ctan.org/tex-archive/macros/latex/contrib/mh/doc/empheq.pdf
is also implemented in LyX? Among other stuff it creates a box around a
system of equations.
--
Rudi Gaelzer
Departament of Physics
Institute of Physics & Mathematics
Federal University of Pelotas
Caixa Postal 354 - Campus UFPel
96010-900 Pelotas - RS
BRAZIL
Phone: +55-53-275-7468
FAX: +55-53-275-7343

Registered Linux user # 153741
Georg Baum
2005-11-13 17:52:14 UTC
Permalink
Post by Rudi Gaelzer
http://www.ctan.org/tex-archive/macros/latex/contrib/mh/doc/empheq.pdf
is also implemented in LyX? Among other stuff it creates a box around a
system of equations.
No, it is not, but it should be ;-) See
http://bugzilla.lyx.org/show_bug.cgi?id=2128


Georg
Uwe Stöhr
2005-11-14 00:57:17 UTC
Permalink
Post by Rudi Gaelzer
Does anyone know if the subarray AMS environment is implemented in LyX (I
mean, not in ERT mode) and how to use it?
I want a multline subscript with the lines left-aligned. The command
\substack is implemented, but the lines are centered. The subarray
environment is the way to do this.
Can you read german? If yes then have a look at chapter 10.2 of

http://wiki.lyx.org/uploads/LyX/LyXMathebefehle/LyXMathebefehle.pdf
or
http://wiki.lyx.org/uploads/LyX/LyXMathebefehle/LyXMathebefehle.lyx

(from http://wiki.lyx.org/LyX/LyXMathebefehle)

Th last two formulas in this chapter are examples for multiline subscripts.
Post by Rudi Gaelzer
Also, where can I find a description of AMS resources supported by LyX? The
User Guide seems to be fairly incomplete on the subject.
The LyXMathebefehle documentation cover nearly every math stuff and how
it is implemented in LyX. Unfortunately only in german because I don't
find the time to translate it.

regards Uwe

Loading...