Error while using cellcolor
up vote
2
down vote
favorite
begin{block}{|ccc|} is not working while using cellcolor
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
=
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & multicolumn{1}{c}{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & multicolumn{1}{c}{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

matrices cellcolor
add a comment |
up vote
2
down vote
favorite
begin{block}{|ccc|} is not working while using cellcolor
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
=
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & multicolumn{1}{c}{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & multicolumn{1}{c}{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

matrices cellcolor
You could just replace the=bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.
– marmot
Nov 30 at 5:22
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
begin{block}{|ccc|} is not working while using cellcolor
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
=
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & multicolumn{1}{c}{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & multicolumn{1}{c}{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

matrices cellcolor
begin{block}{|ccc|} is not working while using cellcolor
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
=
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & multicolumn{1}{c}{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & multicolumn{1}{c}{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

matrices cellcolor
matrices cellcolor
edited Nov 30 at 5:18
asked Nov 30 at 4:33
sandu
3,32242552
3,32242552
You could just replace the=bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.
– marmot
Nov 30 at 5:22
add a comment |
You could just replace the=bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.
– marmot
Nov 30 at 5:22
You could just replace the
= by begin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.– marmot
Nov 30 at 5:22
You could just replace the
= by begin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.– marmot
Nov 30 at 5:22
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
To answer the question: use makecell. And I also added an ad hoc method to center the = sign.
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
usepackage{makecell}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
begin{blockarray}{c}
begin{block}{c}
\
=\
\
end{block}
\
end{blockarray}
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & makecell{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & makecell{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
To answer the question: use makecell. And I also added an ad hoc method to center the = sign.
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
usepackage{makecell}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
begin{blockarray}{c}
begin{block}{c}
\
=\
\
end{block}
\
end{blockarray}
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & makecell{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & makecell{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

add a comment |
up vote
2
down vote
accepted
To answer the question: use makecell. And I also added an ad hoc method to center the = sign.
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
usepackage{makecell}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
begin{blockarray}{c}
begin{block}{c}
\
=\
\
end{block}
\
end{blockarray}
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & makecell{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & makecell{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
To answer the question: use makecell. And I also added an ad hoc method to center the = sign.
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
usepackage{makecell}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
begin{blockarray}{c}
begin{block}{c}
\
=\
\
end{block}
\
end{blockarray}
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & makecell{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & makecell{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

To answer the question: use makecell. And I also added an ad hoc method to center the = sign.
documentclass[10pt,dvipsnames,svgnames]{beamer}
setbeamertemplate{navigation symbols}{}
usepackage{amsmath,mathtools}
usepackage{colortbl}
usepackage{blkarray}
usepackage{makecell}
newcommandy{cellcolor{green!20}}
begin{document}
%
begin{frame}
%
begin{align*}
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & 2 & 3 \
1 & 2 & 3 \
1 & 2 & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
%
begin{blockarray}{c}
begin{block}{c}
\
=\
\
end{block}
\
end{blockarray}
%
begin{blockarray}{ccc}
begin{block}{|ccc|}
1 & makecell{cellcolor{blue!10}2} & 3 \
1 & 2 & 3 \
1 & makecell{y 2} & 3 \
end{block}
C_1 & C_2 & C_3 \
end{blockarray}
end{align*}
%
end{frame}
end{document}

answered Nov 30 at 5:35
marmot
81.4k491173
81.4k491173
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462513%2ferror-while-using-cellcolor%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You could just replace the
=bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}.– marmot
Nov 30 at 5:22