I'm using the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
% \usepackage{arydshln} %code doesn't compile anymore with this package
\begin{document}
\begin{tikzpicture}
\node at (0,0){$\begin{aligned}
& A \to B\\
& A \\\hline
& B
\end{aligned}$};
\end{tikzpicture}
\end{document}
to produce this (the actual formula is a bit longer but I don't think that does matter):
Problem is that in other parts of the document I need to use the \hdashline
macro from the arydshln
package and it seems that the package conflicts with the \hline
macro when placed inside the aligned
environment.
I tried replacing \hline
with \cline
and \hhline
but both produce something like this:
with too much whitespace around the horizontal line.
Is there a way to have an horizontal line like\hline
in an aligned
environment while the arydshln
is loaded? It would be ok also to change the environment to something else, assuming it works inside a TikZ node.
$\begin{array}{@{}l@{}}
instead ofaligned
? – egreg Apr 28 '13 at 16:23\extrarowheight
of thearray
package might help. – egreg Apr 28 '13 at 16:39