How to put math symbol rotated with 90 degree in table cell?
documentclass{article}
usepackage{tabularx,multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{7}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & & textbf{y} & & textbf{z} && x\
multirow{3}{*}{bfseries ROW} & textbf{p} & 6 &$>$& 4 &$<$& 5 &$<$&6\
& textbf{q} & 5 &$<$& 16 &$>$& 5 &=& 5\
& textbf{r} & 2 &$<$& 4 &$>$& -7 &$<$& 2\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantColumn}
end{table}
end{document}
I want to do this type of comparison for row wise also. How can I put the symbol (90 degree shifted needed). >
changed to v
and <
change to ^
.
I need to something like this.
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
tables symbols
add a comment |
documentclass{article}
usepackage{tabularx,multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{7}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & & textbf{y} & & textbf{z} && x\
multirow{3}{*}{bfseries ROW} & textbf{p} & 6 &$>$& 4 &$<$& 5 &$<$&6\
& textbf{q} & 5 &$<$& 16 &$>$& 5 &=& 5\
& textbf{r} & 2 &$<$& 4 &$>$& -7 &$<$& 2\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantColumn}
end{table}
end{document}
I want to do this type of comparison for row wise also. How can I put the symbol (90 degree shifted needed). >
changed to v
and <
change to ^
.
I need to something like this.
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
tables symbols
add a comment |
documentclass{article}
usepackage{tabularx,multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{7}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & & textbf{y} & & textbf{z} && x\
multirow{3}{*}{bfseries ROW} & textbf{p} & 6 &$>$& 4 &$<$& 5 &$<$&6\
& textbf{q} & 5 &$<$& 16 &$>$& 5 &=& 5\
& textbf{r} & 2 &$<$& 4 &$>$& -7 &$<$& 2\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantColumn}
end{table}
end{document}
I want to do this type of comparison for row wise also. How can I put the symbol (90 degree shifted needed). >
changed to v
and <
change to ^
.
I need to something like this.
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
tables symbols
documentclass{article}
usepackage{tabularx,multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{7}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & & textbf{y} & & textbf{z} && x\
multirow{3}{*}{bfseries ROW} & textbf{p} & 6 &$>$& 4 &$<$& 5 &$<$&6\
& textbf{q} & 5 &$<$& 16 &$>$& 5 &=& 5\
& textbf{r} & 2 &$<$& 4 &$>$& -7 &$<$& 2\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantColumn}
end{table}
end{document}
I want to do this type of comparison for row wise also. How can I put the symbol (90 degree shifted needed). >
changed to v
and <
change to ^
.
I need to something like this.
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
tables symbols
tables symbols
asked 8 hours ago
alhelalalhelal
1,035219
1,035219
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
rotatebox
from graphicx
can do it for you. Here I only add one "^
" and one "v
". To make the symbol accurately centered, you may need option origin=c
, as suggested by @leandriis in his comment.
documentclass{article}
usepackage{booktabs}
usepackage{multirow}
usepackage{graphicx}
newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
newcommandupsym{rotatebox[origin=c]{90}{$>$}}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&downsym&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&upsym&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
As you might have noticed, the rotated symbols are not vertically centered (especially thedownsym
). To overcome this you might want to add the optionorigin=c
as innewcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
add a comment |
Here is a different approach using the symbols vee
and wedge
:
documentclass{article}
usepackage{multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
& & multicolumn{3}{c}{bfseries COLUMN}\
& & textbf{x} & textbf{y} & textbf{z}\
multirow{7}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&$vee$&$wedge$&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
Please note, that I have changed multirow{4}
to multirow{7}
in order to vertically center ROW
. You might also want to keep in mind that the z column is wider than the x and y column. This is because the fcolumn header is wider than the combined width of the three columns. If you want to get rid of this, you might be interested in Table column widths disproportionate due to multicolumn cell being too long
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f483487%2fhow-to-put-math-symbol-rotated-with-90-degree-in-table-cell%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
rotatebox
from graphicx
can do it for you. Here I only add one "^
" and one "v
". To make the symbol accurately centered, you may need option origin=c
, as suggested by @leandriis in his comment.
documentclass{article}
usepackage{booktabs}
usepackage{multirow}
usepackage{graphicx}
newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
newcommandupsym{rotatebox[origin=c]{90}{$>$}}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&downsym&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&upsym&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
As you might have noticed, the rotated symbols are not vertically centered (especially thedownsym
). To overcome this you might want to add the optionorigin=c
as innewcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
add a comment |
rotatebox
from graphicx
can do it for you. Here I only add one "^
" and one "v
". To make the symbol accurately centered, you may need option origin=c
, as suggested by @leandriis in his comment.
documentclass{article}
usepackage{booktabs}
usepackage{multirow}
usepackage{graphicx}
newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
newcommandupsym{rotatebox[origin=c]{90}{$>$}}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&downsym&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&upsym&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
As you might have noticed, the rotated symbols are not vertically centered (especially thedownsym
). To overcome this you might want to add the optionorigin=c
as innewcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
add a comment |
rotatebox
from graphicx
can do it for you. Here I only add one "^
" and one "v
". To make the symbol accurately centered, you may need option origin=c
, as suggested by @leandriis in his comment.
documentclass{article}
usepackage{booktabs}
usepackage{multirow}
usepackage{graphicx}
newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
newcommandupsym{rotatebox[origin=c]{90}{$>$}}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&downsym&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&upsym&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
rotatebox
from graphicx
can do it for you. Here I only add one "^
" and one "v
". To make the symbol accurately centered, you may need option origin=c
, as suggested by @leandriis in his comment.
documentclass{article}
usepackage{booktabs}
usepackage{multirow}
usepackage{graphicx}
newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
newcommandupsym{rotatebox[origin=c]{90}{$>$}}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
multicolumn{2}{c}{} & multicolumn{3}{c}{bfseries COLUMN}\
multicolumn{2}{c}{} & textbf{x} & textbf{y} & textbf{z}\
multirow{4}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&&&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&downsym&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&upsym&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
edited 6 hours ago
answered 8 hours ago
JouleVJouleV
11.1k22560
11.1k22560
As you might have noticed, the rotated symbols are not vertically centered (especially thedownsym
). To overcome this you might want to add the optionorigin=c
as innewcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
add a comment |
As you might have noticed, the rotated symbols are not vertically centered (especially thedownsym
). To overcome this you might want to add the optionorigin=c
as innewcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
As you might have noticed, the rotated symbols are not vertically centered (especially the
downsym
). To overcome this you might want to add the option origin=c
as in newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
As you might have noticed, the rotated symbols are not vertically centered (especially the
downsym
). To overcome this you might want to add the option origin=c
as in newcommanddownsym{rotatebox[origin=c]{90}{$<$}}
– leandriis
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
@leandriis Thanks for pointing that out! I did not even observe it. I edited my answer.
– JouleV
6 hours ago
add a comment |
Here is a different approach using the symbols vee
and wedge
:
documentclass{article}
usepackage{multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
& & multicolumn{3}{c}{bfseries COLUMN}\
& & textbf{x} & textbf{y} & textbf{z}\
multirow{7}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&$vee$&$wedge$&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
Please note, that I have changed multirow{4}
to multirow{7}
in order to vertically center ROW
. You might also want to keep in mind that the z column is wider than the x and y column. This is because the fcolumn header is wider than the combined width of the three columns. If you want to get rid of this, you might be interested in Table column widths disproportionate due to multicolumn cell being too long
add a comment |
Here is a different approach using the symbols vee
and wedge
:
documentclass{article}
usepackage{multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
& & multicolumn{3}{c}{bfseries COLUMN}\
& & textbf{x} & textbf{y} & textbf{z}\
multirow{7}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&$vee$&$wedge$&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
Please note, that I have changed multirow{4}
to multirow{7}
in order to vertically center ROW
. You might also want to keep in mind that the z column is wider than the x and y column. This is because the fcolumn header is wider than the combined width of the three columns. If you want to get rid of this, you might be interested in Table column widths disproportionate due to multicolumn cell being too long
add a comment |
Here is a different approach using the symbols vee
and wedge
:
documentclass{article}
usepackage{multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
& & multicolumn{3}{c}{bfseries COLUMN}\
& & textbf{x} & textbf{y} & textbf{z}\
multirow{7}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&$vee$&$wedge$&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
Please note, that I have changed multirow{4}
to multirow{7}
in order to vertically center ROW
. You might also want to keep in mind that the z column is wider than the x and y column. This is because the fcolumn header is wider than the combined width of the three columns. If you want to get rid of this, you might be interested in Table column widths disproportionate due to multicolumn cell being too long
Here is a different approach using the symbols vee
and wedge
:
documentclass{article}
usepackage{multirow,booktabs}
begin{document}
begin{table}[h]
centering
begin{tabular}{@{}ccccc@{}}
toprule
& & multicolumn{3}{c}{bfseries COLUMN}\
& & textbf{x} & textbf{y} & textbf{z}\
multirow{7}{*}{bfseries ROW} & textbf{p} & 6 & 4 & 5\
&&$vee$&$wedge$&\%here the symbo
& textbf{q} & 5 & 16 & 5\
&&&&\%here the symbo
& textbf{r} & 2 & 4 & -7\
&&&&\%here the symbol
& textbf{p} & 6 & 4 & 5\
bottomrule
end{tabular}
caption{Strategies}
label{tab:dominantRow}
end{table}
end{document}
Please note, that I have changed multirow{4}
to multirow{7}
in order to vertically center ROW
. You might also want to keep in mind that the z column is wider than the x and y column. This is because the fcolumn header is wider than the combined width of the three columns. If you want to get rid of this, you might be interested in Table column widths disproportionate due to multicolumn cell being too long
answered 6 hours ago
leandriisleandriis
11.2k1732
11.2k1732
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.
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%2f483487%2fhow-to-put-math-symbol-rotated-with-90-degree-in-table-cell%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