How to get the following table?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I want to make this table:
Whereas, I get this one:
Any suggestions for the code I wrote below?
begincenter
begintabular
& $A$ & NOT $A$ & SUM\ hline
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \ hline
& $P(A)$ & $P($NOT $A)$& $1$\ hline
endtabular
endcenter
tables
add a comment |Â
up vote
2
down vote
favorite
I want to make this table:
Whereas, I get this one:
Any suggestions for the code I wrote below?
begincenter
begintabular
& $A$ & NOT $A$ & SUM\ hline
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \ hline
& $P(A)$ & $P($NOT $A)$& $1$\ hline
endtabular
endcenter
tables
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I want to make this table:
Whereas, I get this one:
Any suggestions for the code I wrote below?
begincenter
begintabular
& $A$ & NOT $A$ & SUM\ hline
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \ hline
& $P(A)$ & $P($NOT $A)$& $1$\ hline
endtabular
endcenter
tables
I want to make this table:
Whereas, I get this one:
Any suggestions for the code I wrote below?
begincenter
begintabular
& $A$ & NOT $A$ & SUM\ hline
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \ hline
& $P(A)$ & $P($NOT $A)$& $1$\ hline
endtabular
endcenter
tables
edited Aug 30 at 0:10
asked Aug 30 at 0:04
Leyla Alkan
1206
1206
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08
add a comment |Â
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
5
down vote
accepted
With no additional packages (I am assuming that Comic Sans is not your dream):
documentclassarticle
begindocument
begincenter
begintabular
multicolumn1c& $A$ &multicolumn1c NOT $A$ &multicolumn1c SUM\
%hline
cline2-4
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \
%hline
cline2-4
& $P(A)$ & $P($NOT $A)$& $1$\
%hline
cline2-4
endtabular
endcenter
enddocument
add a comment |Â
up vote
3
down vote
This is easy with blkarray
:
documentclassarticle
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagemathtools, blkarray
begindocument
[ everymathdisplaystylesetlengthBAextrarowheight2pt
beginblockarraycccc
& A & textNOT A & textSUM \
BAhhline~---
beginblock
B & P(Atext ANDB) & P(textNOT Atext AND B) & P(B)\
textNOT B &P(Atext NOT B) &P(textNOT Atext AND NOT B) & P(textNOT B) \
BAhhline~
& P(A) & P(textNOT A)& 1\
BAhhline~---
endblock
endblockarray ]
enddocument
please usetext
for SUM.
â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
add a comment |Â
up vote
2
down vote
Use multicolumn
command to suppress vertical ruling of specific cells. If the table width is not as you want, try to modify the width provided in textwidth
documentclassarticle
usepackageamsmath
renewcommandarraystretch1.7
usepackageragged2e
usepackagetabularx
newcolumntypeC > arraybackslash Centering X
usepackagebooktabs
usepackagemakecell
begindocument
noindent
begintable*
centering
begintabularxtextwidth >hsize=0.7hsizeC
multicolumn1c & multicolumn1c$A$ & multicolumn1c$A^'$ & multicolumn1cSUM
\
Xcline2-40.2mm
$B$ & $P(A text AND B)$ & $P(textNOT A text AND B)$ & $P(B)$
\
$B^'$ & $P(A text AND NOT B)$ & $P(textNOT A text AND NOT B)$ & $P($NOT $B)$
\
Xcline2-40.2mm
& $P(A)$ & $P($NOT $A)$& $1$
\
Xcline2-40.2mm
endtabularx
endtable*
enddocument
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
With no additional packages (I am assuming that Comic Sans is not your dream):
documentclassarticle
begindocument
begincenter
begintabular
multicolumn1c& $A$ &multicolumn1c NOT $A$ &multicolumn1c SUM\
%hline
cline2-4
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \
%hline
cline2-4
& $P(A)$ & $P($NOT $A)$& $1$\
%hline
cline2-4
endtabular
endcenter
enddocument
add a comment |Â
up vote
5
down vote
accepted
With no additional packages (I am assuming that Comic Sans is not your dream):
documentclassarticle
begindocument
begincenter
begintabular
multicolumn1c& $A$ &multicolumn1c NOT $A$ &multicolumn1c SUM\
%hline
cline2-4
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \
%hline
cline2-4
& $P(A)$ & $P($NOT $A)$& $1$\
%hline
cline2-4
endtabular
endcenter
enddocument
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
With no additional packages (I am assuming that Comic Sans is not your dream):
documentclassarticle
begindocument
begincenter
begintabular
multicolumn1c& $A$ &multicolumn1c NOT $A$ &multicolumn1c SUM\
%hline
cline2-4
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \
%hline
cline2-4
& $P(A)$ & $P($NOT $A)$& $1$\
%hline
cline2-4
endtabular
endcenter
enddocument
With no additional packages (I am assuming that Comic Sans is not your dream):
documentclassarticle
begindocument
begincenter
begintabular
multicolumn1c& $A$ &multicolumn1c NOT $A$ &multicolumn1c SUM\
%hline
cline2-4
$B$ & $P(A$ AND$,B)$ & $P($NOT $A$ AND$,B)$ & $P(B)$\
NOT $B$ &$P(A,$NOT$,B)$ &$P($NOT $A,$AND NOT$,B)$ & $P($NOT $B)$ \
%hline
cline2-4
& $P(A)$ & $P($NOT $A)$& $1$\
%hline
cline2-4
endtabular
endcenter
enddocument
edited Aug 30 at 0:40
answered Aug 30 at 0:34
Przemysà Âaw Scherwentke
29.1k54393
29.1k54393
add a comment |Â
add a comment |Â
up vote
3
down vote
This is easy with blkarray
:
documentclassarticle
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagemathtools, blkarray
begindocument
[ everymathdisplaystylesetlengthBAextrarowheight2pt
beginblockarraycccc
& A & textNOT A & textSUM \
BAhhline~---
beginblock
B & P(Atext ANDB) & P(textNOT Atext AND B) & P(B)\
textNOT B &P(Atext NOT B) &P(textNOT Atext AND NOT B) & P(textNOT B) \
BAhhline~
& P(A) & P(textNOT A)& 1\
BAhhline~---
endblock
endblockarray ]
enddocument
please usetext
for SUM.
â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
add a comment |Â
up vote
3
down vote
This is easy with blkarray
:
documentclassarticle
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagemathtools, blkarray
begindocument
[ everymathdisplaystylesetlengthBAextrarowheight2pt
beginblockarraycccc
& A & textNOT A & textSUM \
BAhhline~---
beginblock
B & P(Atext ANDB) & P(textNOT Atext AND B) & P(B)\
textNOT B &P(Atext NOT B) &P(textNOT Atext AND NOT B) & P(textNOT B) \
BAhhline~
& P(A) & P(textNOT A)& 1\
BAhhline~---
endblock
endblockarray ]
enddocument
please usetext
for SUM.
â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
add a comment |Â
up vote
3
down vote
up vote
3
down vote
This is easy with blkarray
:
documentclassarticle
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagemathtools, blkarray
begindocument
[ everymathdisplaystylesetlengthBAextrarowheight2pt
beginblockarraycccc
& A & textNOT A & textSUM \
BAhhline~---
beginblock
B & P(Atext ANDB) & P(textNOT Atext AND B) & P(B)\
textNOT B &P(Atext NOT B) &P(textNOT Atext AND NOT B) & P(textNOT B) \
BAhhline~
& P(A) & P(textNOT A)& 1\
BAhhline~---
endblock
endblockarray ]
enddocument
This is easy with blkarray
:
documentclassarticle
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackagemathtools, blkarray
begindocument
[ everymathdisplaystylesetlengthBAextrarowheight2pt
beginblockarraycccc
& A & textNOT A & textSUM \
BAhhline~---
beginblock
B & P(Atext ANDB) & P(textNOT Atext AND B) & P(B)\
textNOT B &P(Atext NOT B) &P(textNOT Atext AND NOT B) & P(textNOT B) \
BAhhline~
& P(A) & P(textNOT A)& 1\
BAhhline~---
endblock
endblockarray ]
enddocument
edited Aug 30 at 9:07
answered Aug 30 at 0:27
Bernard
156k763189
156k763189
please usetext
for SUM.
â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
add a comment |Â
please usetext
for SUM.
â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
please use
text
for SUM.â corvus_192
Aug 30 at 8:43
please use
text
for SUM.â corvus_192
Aug 30 at 8:43
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
@corvus_192: Oh! yes, I forgot this cell. It's fixed. Thanks for pointing it!
â Bernard
Aug 30 at 9:08
add a comment |Â
up vote
2
down vote
Use multicolumn
command to suppress vertical ruling of specific cells. If the table width is not as you want, try to modify the width provided in textwidth
documentclassarticle
usepackageamsmath
renewcommandarraystretch1.7
usepackageragged2e
usepackagetabularx
newcolumntypeC > arraybackslash Centering X
usepackagebooktabs
usepackagemakecell
begindocument
noindent
begintable*
centering
begintabularxtextwidth >hsize=0.7hsizeC
multicolumn1c & multicolumn1c$A$ & multicolumn1c$A^'$ & multicolumn1cSUM
\
Xcline2-40.2mm
$B$ & $P(A text AND B)$ & $P(textNOT A text AND B)$ & $P(B)$
\
$B^'$ & $P(A text AND NOT B)$ & $P(textNOT A text AND NOT B)$ & $P($NOT $B)$
\
Xcline2-40.2mm
& $P(A)$ & $P($NOT $A)$& $1$
\
Xcline2-40.2mm
endtabularx
endtable*
enddocument
add a comment |Â
up vote
2
down vote
Use multicolumn
command to suppress vertical ruling of specific cells. If the table width is not as you want, try to modify the width provided in textwidth
documentclassarticle
usepackageamsmath
renewcommandarraystretch1.7
usepackageragged2e
usepackagetabularx
newcolumntypeC > arraybackslash Centering X
usepackagebooktabs
usepackagemakecell
begindocument
noindent
begintable*
centering
begintabularxtextwidth >hsize=0.7hsizeC
multicolumn1c & multicolumn1c$A$ & multicolumn1c$A^'$ & multicolumn1cSUM
\
Xcline2-40.2mm
$B$ & $P(A text AND B)$ & $P(textNOT A text AND B)$ & $P(B)$
\
$B^'$ & $P(A text AND NOT B)$ & $P(textNOT A text AND NOT B)$ & $P($NOT $B)$
\
Xcline2-40.2mm
& $P(A)$ & $P($NOT $A)$& $1$
\
Xcline2-40.2mm
endtabularx
endtable*
enddocument
add a comment |Â
up vote
2
down vote
up vote
2
down vote
Use multicolumn
command to suppress vertical ruling of specific cells. If the table width is not as you want, try to modify the width provided in textwidth
documentclassarticle
usepackageamsmath
renewcommandarraystretch1.7
usepackageragged2e
usepackagetabularx
newcolumntypeC > arraybackslash Centering X
usepackagebooktabs
usepackagemakecell
begindocument
noindent
begintable*
centering
begintabularxtextwidth >hsize=0.7hsizeC
multicolumn1c & multicolumn1c$A$ & multicolumn1c$A^'$ & multicolumn1cSUM
\
Xcline2-40.2mm
$B$ & $P(A text AND B)$ & $P(textNOT A text AND B)$ & $P(B)$
\
$B^'$ & $P(A text AND NOT B)$ & $P(textNOT A text AND NOT B)$ & $P($NOT $B)$
\
Xcline2-40.2mm
& $P(A)$ & $P($NOT $A)$& $1$
\
Xcline2-40.2mm
endtabularx
endtable*
enddocument
Use multicolumn
command to suppress vertical ruling of specific cells. If the table width is not as you want, try to modify the width provided in textwidth
documentclassarticle
usepackageamsmath
renewcommandarraystretch1.7
usepackageragged2e
usepackagetabularx
newcolumntypeC > arraybackslash Centering X
usepackagebooktabs
usepackagemakecell
begindocument
noindent
begintable*
centering
begintabularxtextwidth >hsize=0.7hsizeC
multicolumn1c & multicolumn1c$A$ & multicolumn1c$A^'$ & multicolumn1cSUM
\
Xcline2-40.2mm
$B$ & $P(A text AND B)$ & $P(textNOT A text AND B)$ & $P(B)$
\
$B^'$ & $P(A text AND NOT B)$ & $P(textNOT A text AND NOT B)$ & $P($NOT $B)$
\
Xcline2-40.2mm
& $P(A)$ & $P($NOT $A)$& $1$
\
Xcline2-40.2mm
endtabularx
endtable*
enddocument
edited Aug 30 at 1:00
answered Aug 30 at 0:54
Al-Motasem Aldaoudeyeh
1,155211
1,155211
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f448422%2fhow-to-get-the-following-table%23new-answer', 'question_page');
);
Post as a guest
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
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
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
Welcome to TeX.SE! Can the text font not be the same?
â manooooh
Aug 30 at 1:08