Graphics, Figures & Tablesaddpath problem in easybmat (bmat environment)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
3nids
Posts: 2
Joined: Thu Aug 05, 2010 11:01 am

addpath problem in easybmat (bmat environment)

Post by 3nids »

Hi all,

I have a problem with the addpath command in easybmat. I am imbricating a BMAT within another one. The problem is at the two commented lines in the code.

At the first line, it produces two lines drawn and I have no idea why.

At the second line, if uncommented, I get a compilation error "Missing number, treated as zero \end{BMAT}". I get the same error if I use any position which is bigger than the parent matrix.

It seems that addpath is drawing the lines in both BMAT environment and that as soon as it goes further than parent matrix size, it crashes (except if you draw a vertical line as in first commented line).

I try to use only the imbricated matrix and I get no error even with the commented lines.

Any idea to work around this?

Thanks by advance!
This is kind of turning me crazy! I tried to reduce the problem as I could!

all the best,

Denis

Here is a pdf of the result
and here is the code:

Code: Select all

\documentclass[a4paper,11pt]{report}
%--- Packages
\usepackage{etex}                % Avoid "no room" errors
\usepackage[T1]{fontenc}
\usepackage{lmodern}			 % Vector Typesetting
\usepackage[english]{babel} 	 % Multilingual support for Plain TeX or LaTeX.
\usepackage[latin1]{inputenc}   
\usepackage{amsmath, amsfonts}
\usepackage{array}		% An extended implementation of the array and tabular environments which extends the options for column formats, and provides "programmable" format specifications.
\usepackage{easybmat}		% Block matrices
\usepackage{hyperref}
%--- Doc
\begin{document}
$$
\begin{BMAT}(@,0cm,3cm)[0pt,5cm,5cm]{|c:c|}{|c:c:c|} 
	 \begin{BMAT}(e,1.1cm,1.1cm)[0cm,5cm,5cm]{cccccc}{cccccc}
		a & b &   &   &   &\\
		  & b & c &   &   &\\
		  & b & c & d &   &\\
		  & b &   &   &   &\\
		  &   &   &   & e &\\
		  &   &   & d & e &
		\addpath{(1,6,2)ddd}
		\addpath{(2,6,2)ddd}
		\addpath{(3,5,2)dd}
		\addpath{(4,4,2)d}
		\addpath{(0,5,2)rrr}
		\addpath{(0,4,2)rrrr}
		\addpath{(1,3,2)rrr}
		\addpath{(5,0,9)u} % this line causes 2 lines: one here, and one in the parent matrix
		\addpath{(6,0,9)l} % this line causes compilation bug! 
	\end{BMAT}
	&
top-right
	\\
middle-left
	&
middle-right
	\\
bottom-left
	&
bottom-right
\end{BMAT}
$$
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

3nids
Posts: 2
Joined: Thu Aug 05, 2010 11:01 am

addpath problem in easybmat (bmat environment)

Post by 3nids »

It was apparently a bug.

Here is the mail I received today from the author:
Dear Denis,
thank you for your remarks.
I have (I hope) corrected the problem and now addpath is recursive.
You can find the corrected version in the CTAN in the next week or if you are in hurry
on my homepage at:

http://www.ing.unitn.it/~bertolaz/3-pac ... /index.php

Best regards
Post Reply