MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: Latex block matrixes

 Subject: Latex block matrixes From: Christophe Caloz Date: 30 Apr, 1999 22:28:59 Message: 1 of 7 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) ? 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:caloz@lema.de.epfl.ch | CH-1015 LAUSANNE | +---------------------------------------OOo----------------------------+                             |__|__|                              || ||                             ooO Ooo
 Subject: Latex block matrixes From: Dines Justesen Date: 30 Apr, 1999 17:50:47 Message: 2 of 7 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 Christophe Caloz wrote in message news:372A128B.ED8C2DFB@lema.epfl.ch... > 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) ? > > 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:caloz@lema.de.epfl.ch | CH-1015 LAUSANNE | > +---------------------------------------OOo----------------------------+ > |__|__| > || || > ooO Ooo > >
 Subject: Latex block matrixes From: Peter J. Acklam Date: 30 Apr, 1999 23:59:02 Message: 3 of 7 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{array}{cccc}       a & b & \cdots & d \\       e & f & \cdots & h \\    \vdots & \vdots & \ddots & \vdots \\       w & x & \cdots & z    \end{array}     Peter -- Peter J. Acklam - jacklam@math.uio.no - http://www.math.uio.no/~jacklam
 Subject: Latex block matrixes From: Christophe Caloz Date: 5 May, 1999 08:54:22 Message: 4 of 7 Peter J. Acklam wrote: > 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{array}{cccc} > a & b & \cdots & d \\ > e & f & \cdots & h \\ > \vdots & \vdots & \ddots & \vdots \\ > w & x & \cdots & z > \end{array} > > > 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 > > > > ''''' > (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:caloz@lema.de.epfl.ch | CH-1015 LAUSANNE | > +---------------------------------------OOo----------------------------+ > |__|__| > || || > ooO Ooo
 Subject: Latex block matrixes From: Christophe Caloz Date: 5 May, 1999 09:02:41 Message: 5 of 7 Dines Justesen wrote: > 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{pmatrix}         a & b & c & d \\         \hdotsfor{4}\\         e & g & h & i \\         e & \hdotsfor{3}     \end{pmatrix} 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                              '''''                              (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:caloz@lema.de.epfl.ch | CH-1015 LAUSANNE | +---------------------------------------OOo----------------------------+                             |__|__|                              || ||                             ooO Ooo
 Subject: Latex block matrixes From: Phil Goddard Date: 5 May, 1999 09:31:29 Message: 6 of 7 > > > > 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) ? > 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. =================== pgoddard@mathworks.com ==    The MathWorks, Inc. info@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 nakasima@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
 Subject: Latex block matrixes From: Dines Justesen Date: 6 May, 1999 22:20:13 Message: 7 of 7 Try this:        \begin{pmatrix}          a & b & \vdots & c & d \\          \hdotsfor{5}\\          e & g & \vdots & h & i \\          e & \hdotsfor{4}      \end{pmatrix}   It is not perfect, but it works. I have not seen anyway to make dashed lines, try asking in a LaTeX newsgroup DInes Christophe Caloz wrote in message news:372FED11.30325CB5@lema.epfl.ch... > Dines Justesen wrote: > > > 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{pmatrix} > a & b & c & d \\ > \hdotsfor{4}\\ > e & g & h & i \\ > e & \hdotsfor{3} > \end{pmatrix} > > > 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 > > ''''' > (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:caloz@lema.de.epfl.ch | CH-1015 LAUSANNE | > +---------------------------------------OOo----------------------------+ > |__|__| > || || > ooO Ooo > >

No tags are associated with this thread.

### What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.