Error while using cellcolor
up vote
1
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
1
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
Is it possible to move = sign one row above...
– sandu
2 hours ago
You could just replace the=
bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.
– marmot
2 hours ago
Yes, it works...
– sandu
2 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
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 2 hours ago
asked 3 hours ago
sandu
3,27842552
3,27842552
Is it possible to move = sign one row above...
– sandu
2 hours ago
You could just replace the=
bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.
– marmot
2 hours ago
Yes, it works...
– sandu
2 hours ago
add a comment |
Is it possible to move = sign one row above...
– sandu
2 hours ago
You could just replace the=
bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.
– marmot
2 hours ago
Yes, it works...
– sandu
2 hours ago
Is it possible to move = sign one row above...
– sandu
2 hours ago
Is it possible to move = sign one row above...
– sandu
2 hours ago
You could just replace the
=
by begin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.– marmot
2 hours ago
You could just replace the
=
by begin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.– marmot
2 hours ago
Yes, it works...
– sandu
2 hours ago
Yes, it works...
– sandu
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
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
1
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
1
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
1
down vote
accepted
up vote
1
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 1 hour ago
marmot
79.4k488166
79.4k488166
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
Is it possible to move = sign one row above...
– sandu
2 hours ago
You could just replace the
=
bybegin{blockarray}{c} begin{block}{c} \ =\ \ end{block} \ end{blockarray}
.– marmot
2 hours ago
Yes, it works...
– sandu
2 hours ago