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

TikZ matrix: most styles do not work with "row sep". #503

Closed
pgf-tikz-bot opened this issue Jan 19, 2019 · 4 comments
Closed

TikZ matrix: most styles do not work with "row sep". #503

pgf-tikz-bot opened this issue Jan 19, 2019 · 4 comments

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: andre-c
Timestamp: 2019-01-19 06:05:53.570000

From https://tex.stackexchange.com/q/469954/138900

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{matrix}

\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,
            nodes={draw, font=\footnotesize, minimum size=1em,
                   anchor=center,inner sep=0pt},
                   column sep=-\pgflinewidth,
                   row sep=-\pgflinewidth,
                   every even column/.style={column sep=2pt},
                   every even row/.style={row sep=2pt},% doesn't insert row separation
                   inner sep=1pt,
                   left delimiter={[},right delimiter={]},
             ]
{
\alpha  & \beta   & \gamma  & \delta    \\
\alpha  & \beta   & \gamma  & \delta    \\
\alpha  & \beta   & \gamma  & \delta    \\
\alpha  & \beta   & \gamma  & \delta    \\
};
\end{tikzpicture}
\end{document}
@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: mo-gul
Timestamp: 2019-01-20 18:57:02.479000

https://sourceforge.net/p/pgf/bugs/_discuss/thread/ff55f32f2f/3700/attachment/P.PNG
As it seems, only row sep doesn't work. Does somebody else eind seomething else that doesn't work?

\documentclass[margin=5pt]{standalone}
\usepackage{tikz}
    \usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
    \matrix (m) [
        matrix of nodes,
        nodes={draw},
        every odd column/.style={
            green,
            column sep=5pt,
        },
        every odd row/.style={
            red,
            row sep=5pt,    % <-- not working
        },
    ] {
        a & a & a & a \\
        a & a & a & a \\
        a & a & a & a \\
        a & a & a & a \\
    };
\end{tikzpicture}
\end{document}

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: hmenke
Timestamp: 2019-01-21 04:38:55.342000

Fixed https://sourceforge.net/p/pgf/git/ci/a31bafb79eb688741181404dc4a493e75a7b93d8/

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: hmenke
Timestamp: 2019-01-21 20:49:44.380000

  • status: open --> closed-fixed

@pgf-tikz-bot
Copy link
Author

Migrated from SourceForge
Author: hmenke
Timestamp: 2019-01-24 03:55:10.325000

  • assigned_to: Henri Menke
  • Group: v1.0 (example) --> TeX Live 2019

gabor-braun added a commit to gabor-braun/pgf that referenced this issue Dec 2, 2021
Upcoming changes require that \pgfmatrixendrow start with &,
and column separation will need to be saved as well,
as it will be processed later outside the cell group.

These are to support constructs like (see bug pgf-tikz#503)

\matrix[every odd row/.style={row sep=1cm}] {...};
gabor-braun added a commit to gabor-braun/pgf that referenced this issue Dec 3, 2021
Upcoming changes require that \pgfmatrixendrow start with &,
and column separation will need to be saved as well,
as it will be processed later outside the cell group.

These are to support constructs like (see bug pgf-tikz#503)

\matrix[every odd row/.style={row sep=1cm}] {...};

Signed-off-by: Gábor Braun <gabor.braun@uni-duisburg-essen.de>
gabor-braun added a commit to gabor-braun/pgf that referenced this issue Dec 18, 2021
Upcoming changes require that \pgfmatrixendrow start with &,
and column separation will need to be saved as well,
as it will be processed later outside the cell group.

These are to support constructs like (see bug pgf-tikz#503)

\matrix[every odd row/.style={row sep=1cm}] {...};

Signed-off-by: Gábor Braun <gabor.braun@uni-duisburg-essen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant