Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a  b \\
\hdashline c  d
\end{array}\right)
\]
==
Notice the {c:c} that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a  b \\
\hdashline c  d
\end{array}\right)
\]
==
Notice the {c:c} that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741


Dashed lines in array/matrix environment.

2014-04-22 Thread Rudi Gaelzer
The embedded objects manual teaches us that by using the arydshln package
one can create tables with horizontal/vertical dashed lines.

However, I want to do the same in the math environment.  I need to
represent matrices in block-diagonal notation and the use of dashed lines
is one way to distinguish the different parent matrices.

In math mode I can create horizontal dashes within a pmatrix inserting
\hdashline before the first element of a given line in order to put the
dash over it.  However, for the vertical dashes, I had to resort to ERT:
==
(within the ERT):
\[
\left(\begin{array}{c:c}
a & b \\
\hdashline c & d
\end{array}\right)
\]
==
Notice the "{c:c}" that puts the vert dash between the columns.

It works but it's not wysiwyg... is there no other way to do this within
LyX?
Thanks.
-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741