Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Partitioned AMSMath Matrices

619 views
Skip to first unread message

Randy Yates

unread,
Feb 1, 2006, 5:57:33 PM2/1/06
to
Is a way to partition an amsmath matrix like bmatrix? A
google search turned up an old reference to the pmat package
but it doesn't appear to work with amsmath.
--
% Randy Yates % "...the answer lies within your soul
%% Fuquay-Varina, NC % 'cause no one knows which side
%%% 919-577-9882 % the coin will fall."
%%%% <ya...@ieee.org> % 'Big Wheels', *Out of the Blue*, ELO
http://home.earthlink.net/~yatescr

Lars Madsen

unread,
Feb 1, 2006, 6:31:50 PM2/1/06
to
Randy Yates wrote:
> Is a way to partition an amsmath matrix like bmatrix? A
> google search turned up an old reference to the pmat package
> but it doesn't appear to work with amsmath.

what is an ams matrix?

could you provide a minimal example?

/daleif

Randy Yates

unread,
Feb 1, 2006, 9:21:10 PM2/1/06
to
Lars Madsen <dal...@imf.au.dk> writes:

You're kidding, right?

By "ams matrix" I mean any of the amsmath package matrix
extensions to LaTeX, such as pmatrix, bmatrix, etc. For
example,

\documentclass[10pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{align}
\begin{bmatrix}
1 & 0 & 0 \\
0 & 1 & 0 \\
0 & 0 & 1
\end{bmatrix}
\end{align}

\end{document}

By a partition, I mean a way of adding a dashed line between
matrix rows or columns - either a dashed horizontal line between
rows, or a dashed vertical line between columns.
--
% Randy Yates % "Bird, on the wing,
%% Fuquay-Varina, NC % goes floating by
%%% 919-577-9882 % but there's a teardrop in his eye..."
%%%% <ya...@ieee.org> % 'One Summer Dream', *Face The Music*, ELO
http://home.earthlink.net/~yatescr

Danie

unread,
Feb 2, 2006, 2:08:56 AM2/2/06
to
Use \hdotsfor

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{bmatrix}
a_{11} & a_{12} & \dots & a_{1n}\\
a_{21} & a_{22} & \dots & a_{2n}\\
\hdotsfor[2.0]{4}\\
a_{m1} & a_{m2} & \dots & a_{mn}
\end{bmatrix}
\]
\end{document}

Danie Els (dnjels at sun dot ac dot za)

Jean-Côme Charpentier

unread,
Feb 2, 2006, 2:22:43 AM2/2/06
to
Randy Yates wrote:
> [...]

> By a partition, I mean a way of adding a dashed line between
> matrix rows or columns - either a dashed horizontal line between
> rows, or a dashed vertical line between columns.

blkarray package?
David Carlisle say that blkarray is "A LaTeX style option extending
array and tabular HIGGHLY VOLATILE, use at your own risk!!!!!!!!". Well,
I have used it at my own risk and I'm still alive :-)

Jean-Côme Charpentier

Lars Madsen

unread,
Feb 2, 2006, 5:34:52 AM2/2/06
to
Randy Yates wrote:
> Lars Madsen <dal...@imf.au.dk> writes:
>
>
>>Randy Yates wrote:
>>
>>>Is a way to partition an amsmath matrix like bmatrix? A
>>>google search turned up an old reference to the pmat package
>>>but it doesn't appear to work with amsmath.
>>
>>what is an ams matrix?
>>
>>could you provide a minimal example?
>
>
> You're kidding, right?
>

I misunderstod your question

> By "ams matrix" I mean any of the amsmath package matrix
> extensions to LaTeX, such as pmatrix, bmatrix, etc. For
> example,
>
> \documentclass[10pt]{article}
> \usepackage{amsmath}
>
> \begin{document}
>
> \begin{align}
> \begin{bmatrix}
> 1 & 0 & 0 \\
> 0 & 1 & 0 \\
> 0 & 0 & 1
> \end{bmatrix}
> \end{align}
>
> \end{document}
>
> By a partition, I mean a way of adding a dashed line between
> matrix rows or columns - either a dashed horizontal line between
> rows, or a dashed vertical line between columns.

between columns might not be possible, but basically bmatrix is just

\left[
\begin{array}{@{} ccc's {}@} % it does autodetection

\end{array}
\right]

so if lines between cols are needed then the above could be used


--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal working examples.

0 new messages