GeneralIncompatibility between delarray and arydshln?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
tristof
Posts: 3
Joined: Tue Mar 18, 2008 3:47 pm

Incompatibility between delarray and arydshln?

Post by tristof »

Hello everybody,
I'm trying to create a tabular using packages array and arydshln (in order to use dashed line between lines and columns):

Code: Select all

\documentclass[american,12pt,fleqn,a4paper]{report}
\NeedsTeXFormat{LaTeX2e}
\usepackage{t1enc}
\usepackage[latin1]{inputenc}
\usepackage[american]{babel}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{array}
\usepackage{delarray}
\usepackage{arydshln}
\begin{document}
	\begin{equation}
		\left(
			\begin{array}{c;{2.5pt/1.2pt}c}
				A & B  \\  \hdashline[2.5pt/1.2pt]
				C & D
			\end{array}
		\right)
	\end{equation}
\end{document}
In order to simplify the use of the delimitters [\left( and \right) around the tabular], I decided to use the package delarray. In that case, it doesn't work anymore:

Code: Select all

	\begin{equation}
		\begin{array}({c;{2.5pt/1.2pt}c})
			A & B  \\  \hdashline[2.5pt/1.2pt]
			C & D
		\end{array}
	\end{equation}
On the other hand, if I use only the package delarray and not arydshln, everything works fine:

Code: Select all

	\begin{equation}
		\begin{array}({c|c})
			A & B  \\  \hline
			C & D
		\end{array}
	\end{equation}
I did a Google search, and looked also in the documentations of both packages but they don't say they are incompatible. I also tried to modify the order of the declaration of the packages, but without any success. Does anybody have a suggestion, besides not using delarray?

Thanks a lot,
Christophe

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Re: Incompatibility between delarray and arydshln?

Post by Stefan Kottwitz »

Hi Christophe,

it seems those packages do not work together. Both packages redefine internal commands of the array package, each in a different way. Perhaps delarray could be modified more simply than arydshln because delarray contains about 20 lines of code, arydshln a lot more. Or define a new environment similar to delarray using arydshln with delimiters.

Stefan
LaTeX.org admin
tristof
Posts: 3
Joined: Tue Mar 18, 2008 3:47 pm

Re: Incompatibility between delarray and arydshln?

Post by tristof »

Thank you for your reply ;) I'll try to look into the code of delarray to see if I can figure out a way to adapt it.

Christophe
Post Reply