Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One column matrix error #5

Open
MarioMally opened this issue Nov 3, 2020 · 1 comment
Open

One column matrix error #5

MarioMally opened this issue Nov 3, 2020 · 1 comment

Comments

@MarioMally
Copy link

MarioMally commented Nov 3, 2020

Hi,
In the appended example, errors occur because matrix.skeleton is loaded and used on a one-column-matrix. Just using the matrix-library or adding an empty second column seems to be working. Maybe this is related to pgf-tikz/pgf#267.

I don't know if you actively work on this Repo but thank you for your help.
Kind regards

\documentclass[]{article} 
\usepackage{tikz}
\usetikzlibrary{
	matrix,
	matrix.skeleton
}

\begin{document}
	\begin{tikzpicture}[]
		\matrix(m1)[matrix of nodes]  at (0,0){
			a \\
			b \\
		};
	\end{tikzpicture}
\end{document}
@dudebout
Copy link
Owner

dudebout commented Nov 5, 2020

Thank you for reporting this issue. I am indeed not actively working on this repo anymore and do not quite know how to debug this issue. It took a look and confirmed that:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix}

\begin{document}
  \begin{tikzpicture}
    \matrix{
      a \\
      b \\
    };
  \end{tikzpicture}
\end{document}

works, whereas:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix.skeleton}

\begin{document}
  \begin{tikzpicture}
    \matrix{
      a \\
      b \\
    };
  \end{tikzpicture}
\end{document}

throws the error:

! Undefined control sequence.
<argument> \pgf@matrix@last@nextcell@options 
                                             
l.8       a \\

It looks like \pgf@matrix@last@nextcell@options is code that is part of the matrix TikZ library, and not matrix.skeleton. matrix.skeleton is setting something up incorrectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants