Enrico Bertolazzi
Department of Mechanics and Structures Engineering
University of Trento
via Mesiano 77, I - 38050 Trento, Italy
enrico.bertolazzi@ing.unitn.it
\documentclass{article} . . \usepackage[thinlines,thiklines]{easybmat} . . |
The options thinlines and thicklines are self explanatory. EASYBMAT provides the BMAT environment which is a re-implementation of the array/tabular environment, with some limitation and some additional features. The syntax is
\begin{BMAT}`(eq)'`[ex]'`{cc...c}'`{cc...c}' a & b & ... & n \\ ... \end{BMAT} |
or
\begin{BMAT}`(eq,mx,my)' `[ex,MX,MY]' `{cc...c}' `{cc...c}' a & b & ... & n \\ ... \end{BMAT} |
![]() |
(eq) or (eq,mx,my) . By eq you can balance
the rows or the column or both, as shown in this table:
Table 1.
mx and my you can modify the minimum size of the
box in the BMAT environment. This must be a valid measure e.g.
2pt . This is useful in writing matrices an vectors.
| ||||||||||||
![]() |
[ex] or [ex,MX,MY] . By ex you can specify
the amount of extra space around the item in the
BMAT
environment. The default is 2pt . By MX and MY
you can modify the minimum size of the whole block matrix in the
BMAT environment. This must be a valid measure e.g.
10cm .
| ||||||||||||
![]() |
The first {cc...c} is the definition of the columns and
their alignment. The possible alignment for the columns are:
Table 2.
| ||||||||||||
![]() |
The second {cc...c} is the definition of the rows their
alignment. The possible alignment for the rows are:
Table 3.
|
IMPORTANT: The package can manage matrices with a maximum of
30
rows by 30
columns.
It is possible to produce rules among columns or rows as this example shows:
|
The available rules for the rows and columns are
nothing | no rule |
| |
solid line |
: |
dash line |
; |
dot-dash line |
. |
dotted line |
0 |
solid line with size 1/5 of normal line |
1 |
solid line with size 1/4 of normal line |
2 |
solid line with size 1/3 of normal line |
3 |
solid line with size 1/2 of normal line |
4 |
equivalent to | |
5 |
solid line with size 2 times of normal line |
6 |
solid line with size 3 times of normal line |
7 |
solid line with size 4 times of normal line |
8 |
solid line with size 5 times of normal line |
9 |
solid line with size 6 times of normal line |
|
IMPORTANT: The package can manage a maximum reentrance
of 8
levels.
|
|
It is possible to specify the total minimal size of a BMAT environment, as shown here
|
|
\begin{BMAT} ...... {...}{...} ...... \\ ...... \\ ...... \\ \addpath{(`x',`y',`rule')`path'} . . \addpath{(`x',`y',`rule')`path'} \end{BMAT} |
where
letter | direction |
l |
left movement and drawing |
r |
right movement and drawing |
u |
up movement and drawing |
d |
down movement and drawing |
The following example shows the use of \addpath,
|
This is another example
|
\def\rec(#1){\expandafter\recurse#1-\end} \def\recurse#1#2\end{% \if\noexpand#1-\def\next##1##2{}% \else\let\next=\recursea\fi% \expandafter\next{#1}{#2}% }% \def\recursea#1#2{% \bgroup \begin{BMAT}[0pt]{l:c:r}{t;c;b} \rec(#2) & #1 & \rec(#2) \\ #1 & \rec(#2) & #1 \\ \rec(#2) & #1 & \rec(#2) \end{BMAT} \egroup } \[ \recurse\clubsuit\diamondsuit\heartsuit\end \] |
It produces the following output:
![]() |
This document was generated using the LaTeX2HTML translator Version 2K.1beta (1.61)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -transparent -local_icons -no_navigation -split 0 docbmat
The translation was initiated by Enrico Bertolazzi on 2002-03-19