Thanks in advance.
'''''
(O O)
+------------------oOO--------(_)-------+------------------------------+
| Christophe Caloz | Electromagnetics Laboratory |
| | Electricity Department |
| Tel: +41 21 693.46.43 | Swiss Federal Institute |
| Fax: +41 21 693.46.60 | of Technology of Lausanne |
| e-mail:ca...@lema.de.epfl.ch | CH-1015 LAUSANNE |
+---------------------------------------OOo----------------------------+
|__|__|
|| ||
ooO Ooo
Dines
Christophe Caloz <ca...@lema.epfl.ch> wrote in message
news:372A128B...@lema.epfl.ch...
Wrong news group. You want comp.text.tex, but anyway, I guess
this is what you are looking for
\begin{equation}
\begin{array}{cccc}
a & b & \cdots & d \\
e & f & \cdots & h \\
\vdots & \vdots & \ddots & \vdots \\
w & x & \cdots & z
\end{array}
\end{equation}
Peter
--
Peter J. Acklam - jac...@math.uio.no - http://www.math.uio.no/~jacklam
> Christophe Caloz wrote:
> >
> > Does anybody know how to create horizontal and vertical
> > dashed (or dotted) lines to separate the different blocks
> > of a matrix (in the array environment) ?
>
> Wrong news group. You want comp.text.tex, but anyway, I guess
> this is what you are looking for
>
> \begin{equation}
> \begin{array}{cccc}
> a & b & \cdots & d \\
> e & f & \cdots & h \\
> \vdots & \vdots & \ddots & \vdots \\
> w & x & \cdots & z
> \end{array}
> \end{equation}
>
> Peter
Hi !
This is not what I am looking for. What I need is to SEPARATE
the lines and columns of a matrix with dashed lines, and not to
JUXTAPOSE dots in the lines and columns. You have probably
seen in linear algebra books this way of presenting block matrixes.
Thank you anyway for your kind answer.
Christophe
> I would try to use the \hdotsfor command from the amsmath package in the
> matrix environment. \dotfill and a multicolumn command works too, but the
> output does not look right. I tried to use the \vdots command to create the
> vertical lines, it is not perfect, but the best I could find.
>
> Dines
>
Thank you very much for your kind answer. \hdotsfor is also the best I could
find, as in the following example
\begin{equation}
\begin{pmatrix}
a & b & c & d \\
\hdotsfor{4}\\
e & g & h & i \\
e & \hdotsfor{3}
\end{pmatrix}
\end{equation}
The horizontal dots are ok with \hdotsfor. The question is now how to obtain
vertical
separations (There seems not to be a \vdotsfor command!) And finally how to
obtain
other types of lines, e.g. dashed lines.
Chris
This is certainly the wrong news group -- however...
here's a style file and example document that achieves
what I think you require.
Phil.
== Phil Goddard, Ph.D. =================== pgod...@mathworks.com ==
The MathWorks, Inc.
in...@mathworks.com
24 Prime Park Way
http://www.mathworks.com
Natick, MA 01760-1500
ftp.mathworks.com
== Tel: (508) 647-7828 ===================== Fax: (508) 647-7001 ==*********
start of style file% hvdashln.sty : h(orizontal and )v(ertical )dash(ed
)l(i)n(e).sty
%
% By naka...@kuis.kyoto-u.ac.jp
%
% \hdashline is for the horizontal dashed line
% \vdashline is for the vertical one
%
% parameters :
%
% \hdashlinewidth (w)
% \hdashlinegap (g)
%
% w=4pt
% |--- --- --- ---|
% g=4pt
%
\newcount\hdl@columns
\let\hdl@mkpream\@mkpream
\def\@mkpream{\hdl@columns\@ne \hdl@mkpream}
\def\@addamp{\if@firstamp\@firstampfalse
\else\edef\@preamble{\@preamble &}\advance\hdl@columns\@ne\fi}
\def\hdashline{\multispan{\hdl@columns}\unskip
\vrule\@height\arrayrulewidth\@width\hdashlinewidth
\hskip.5\hdashlinegap
\xleaders\hbox{\hskip.5\hdashlinegap
\vrule\@height\arrayrulewidth\@width\hdashlinewidth
\hskip.5\hdashlinegap}\hfill
\hskip.5\hdashlinegap
\vrule\@height\arrayrulewidth\@width\hdashlinewidth\cr
\noalign{\vskip-\arrayrulewidth}}
\newdimen\hdashlinewidth \hdashlinewidth4pt %
\newdimen\hdashlinegap \hdashlinegap4pt %
\def\vdashline{\hskip\arraycolsep
\@tempdima\ht\@arstrutbox \advance\@tempdima\dp\@arstrutbox
\lower\dp\@arstrutbox\vbox to\@tempdima{
\hrule\@height.5\hdashlinewidth\@width\arrayrulewidth
\vskip.5\hdashlinegap
\xleaders\vbox{\vskip.5\hdashlinegap
\hrule\@height\hdashlinewidth\@width\arrayrulewidth
\vskip.5\hdashlinegap}\vfil
\vskip.5\hdashlinegap
\hrule\@height.5\hdashlinewidth\@width\arrayrulewidth}%
\hskip\arraycolsep}
\endinput
********* end of style file
********* start of example document
\documentstyle[hvdashln]{article}
\title{Usage of {\tt hvdashln.sty}}
\author{Nakashima}
\date{Nov. 16, 1992}
\hdashlinewidth=2pt \hdashlinegap=2pt
\begin{document}
\maketitle\thispagestyle{empty}
Definitions of horizontal and vertical dashed lines for
{\tt array} and {\tt tabular} environment.
Instead of partial horizontal dashed line by
the \verb+\cline{2-3}+ by Isozaki,
\verb+\hdashline+ fills the full width.
The proportion of the dashed line is defined by the two
parameters: \verb+\hdashlinewidth=2pt+ and
\verb+\hdashlinegap=2pt+, where the former defines the
width of the dash and the latter sets their gap.
The default values of these are {\tt 4pt} while
{\tt 2pt} is employed in the examples below.
\medskip
\[
\left[
\begin{array}{c @{\vdashline} cc}
A & B & C \\
\hdashline
D & E & F \\
G & H & I
\end{array}
\right]
\]
\bigskip
\begin{minipage}[t]{.48\textwidth}
\begin{center}
\begin{tabular}{|c|c|c|} \hline
a & b & c \\ \hline
a & b & c \\ \hline
a & b & c \\ \hline
\end{tabular}
\end{center}
\end{minipage}
\begin{minipage}[t]{.48\textwidth}
\begin{center}
\begin{tabular}{|c @{\vdashline} c|c|} \hdashline
a & b & c \\ \hdashline
a & b & c \\ \hline
a & b & c \\ \hdashline
\end{tabular}
\end{center}
\end{minipage}
\end{document}
**********end of example document
I have not seen anyway to make dashed lines, try asking in a LaTeX newsgroup
DInes
Christophe Caloz <ca...@lema.epfl.ch> wrote in message
news:372FED11...@lema.epfl.ch...