vertical alignment of a turned cell











up vote
1
down vote

favorite












I know using turn command and a sample code like this:



usepackage{rotating}

begin{turn}{90} Supervised Learning end{turn}}


we can rotate a text inside a cell, however, I couldn't find a way to vertically center this rotated text. Any suggestions is appreciated.



Here is the sample MWE:



begin{table}
centering
begin{tabular}{|>{centeringarraybackslash}m{0.5cm}|c|>{centeringarraybackslash}m{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
%multirow{2}{*}{{begin{turn}{90}Supervised Learningend{turn}}}
multirow{2}{*}{rotatebox[origin=c]{90}{Supervised Learning}}
end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}


enter image description here










share|improve this question
























  • Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
    – Zarko
    Aug 28 '16 at 18:57












  • my bad, it was called rotating
    – Amir
    Aug 28 '16 at 19:16






  • 1




    I have updated the question with a MWE
    – Amir
    Aug 28 '16 at 19:36






  • 2




    Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
    – Mico
    Aug 28 '16 at 19:47












  • My question was on how to vertically center a rotated text and my question is still that one.
    – Amir
    Aug 28 '16 at 19:56















up vote
1
down vote

favorite












I know using turn command and a sample code like this:



usepackage{rotating}

begin{turn}{90} Supervised Learning end{turn}}


we can rotate a text inside a cell, however, I couldn't find a way to vertically center this rotated text. Any suggestions is appreciated.



Here is the sample MWE:



begin{table}
centering
begin{tabular}{|>{centeringarraybackslash}m{0.5cm}|c|>{centeringarraybackslash}m{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
%multirow{2}{*}{{begin{turn}{90}Supervised Learningend{turn}}}
multirow{2}{*}{rotatebox[origin=c]{90}{Supervised Learning}}
end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}


enter image description here










share|improve this question
























  • Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
    – Zarko
    Aug 28 '16 at 18:57












  • my bad, it was called rotating
    – Amir
    Aug 28 '16 at 19:16






  • 1




    I have updated the question with a MWE
    – Amir
    Aug 28 '16 at 19:36






  • 2




    Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
    – Mico
    Aug 28 '16 at 19:47












  • My question was on how to vertically center a rotated text and my question is still that one.
    – Amir
    Aug 28 '16 at 19:56













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I know using turn command and a sample code like this:



usepackage{rotating}

begin{turn}{90} Supervised Learning end{turn}}


we can rotate a text inside a cell, however, I couldn't find a way to vertically center this rotated text. Any suggestions is appreciated.



Here is the sample MWE:



begin{table}
centering
begin{tabular}{|>{centeringarraybackslash}m{0.5cm}|c|>{centeringarraybackslash}m{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
%multirow{2}{*}{{begin{turn}{90}Supervised Learningend{turn}}}
multirow{2}{*}{rotatebox[origin=c]{90}{Supervised Learning}}
end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}


enter image description here










share|improve this question















I know using turn command and a sample code like this:



usepackage{rotating}

begin{turn}{90} Supervised Learning end{turn}}


we can rotate a text inside a cell, however, I couldn't find a way to vertically center this rotated text. Any suggestions is appreciated.



Here is the sample MWE:



begin{table}
centering
begin{tabular}{|>{centeringarraybackslash}m{0.5cm}|c|>{centeringarraybackslash}m{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
%multirow{2}{*}{{begin{turn}{90}Supervised Learningend{turn}}}
multirow{2}{*}{rotatebox[origin=c]{90}{Supervised Learning}}
end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}


enter image description here







tables rotating






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 28 '16 at 19:35

























asked Aug 28 '16 at 18:31









Amir

19119




19119












  • Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
    – Zarko
    Aug 28 '16 at 18:57












  • my bad, it was called rotating
    – Amir
    Aug 28 '16 at 19:16






  • 1




    I have updated the question with a MWE
    – Amir
    Aug 28 '16 at 19:36






  • 2




    Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
    – Mico
    Aug 28 '16 at 19:47












  • My question was on how to vertically center a rotated text and my question is still that one.
    – Amir
    Aug 28 '16 at 19:56


















  • Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
    – Zarko
    Aug 28 '16 at 18:57












  • my bad, it was called rotating
    – Amir
    Aug 28 '16 at 19:16






  • 1




    I have updated the question with a MWE
    – Amir
    Aug 28 '16 at 19:36






  • 2




    Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
    – Mico
    Aug 28 '16 at 19:47












  • My question was on how to vertically center a rotated text and my question is still that one.
    – Amir
    Aug 28 '16 at 19:56
















Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
– Zarko
Aug 28 '16 at 18:57






Maybe some here know this package ... however, to other will help a MWE (small complete document, which we can compile), which will show your problem.
– Zarko
Aug 28 '16 at 18:57














my bad, it was called rotating
– Amir
Aug 28 '16 at 19:16




my bad, it was called rotating
– Amir
Aug 28 '16 at 19:16




1




1




I have updated the question with a MWE
– Amir
Aug 28 '16 at 19:36




I have updated the question with a MWE
– Amir
Aug 28 '16 at 19:36




2




2




Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
– Mico
Aug 28 '16 at 19:47






Your subject and objective of your updated question is radically different from what you asked originally. Instead of editing an existing question and changing its content dramatically, you should consider leaving the original query unchanged and posting a second, new query to address the new subject material. If nothing else, this approach would avoid rendering the answer that was addressed the initial version of your query meaningless and inapplicable.
– Mico
Aug 28 '16 at 19:47














My question was on how to vertically center a rotated text and my question is still that one.
– Amir
Aug 28 '16 at 19:56




My question was on how to vertically center a rotated text and my question is still that one.
– Amir
Aug 28 '16 at 19:56










1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










since your question seems to be unstable system ... i'm afraid that my answer will miss your point as it was Mico answer (which finish with deletion) :-( )



anyway, for exercise:




  • your rotated text is taller than rest of table, so it can not bo properly centered

  • easier way to rotate cell content is use rothead macro from makecell package (for which you need to define cell height)

  • vertically centering in multirow cell needs some manual tweaking


with this (and expand the table) I obtain the following result:



enter image description here



MWE:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{Supervised Learning}
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}[1.5ex]{rothead{Supervised Learning}}
& & 1 \ cline{2-3}
& & 2 \ cline{2-3}
& & 3 \ cline{2-3}
& & 4 \ cline{2-3}
& & 5 \ cline{2-3}
& & 6 \ cline{2-3}
& & 7 \ cline{2-3}
& & 8 \ hline end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}
end{document}


Addendum:
Font size of text in rothead is determined by headfont macro. Default value is footnotesize. It can be changed by



renewcommandtheadfont{normalsize}


(or whatever size, font family and shape you like). Considering above change of font size, the relvant part of MWE become:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}
renewcommandtheadfont{normalsize}% <-- added

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{theadfont Supervised Learning}% <-- changed
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}{rothead{Supervised Learning}}% <-- changed
% further is the same as in above MWE


and table will looks as follows:



enter image description here






share|improve this answer























  • Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
    – Amir
    Aug 28 '16 at 20:51










  • and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
    – Amir
    Aug 28 '16 at 20:56






  • 1




    all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
    – Zarko
    Aug 28 '16 at 21:06












  • Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
    – Amir
    Aug 29 '16 at 13:00






  • 1




    Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
    – Zarko
    Aug 29 '16 at 13:52











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',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f326897%2fvertical-alignment-of-a-turned-cell%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










since your question seems to be unstable system ... i'm afraid that my answer will miss your point as it was Mico answer (which finish with deletion) :-( )



anyway, for exercise:




  • your rotated text is taller than rest of table, so it can not bo properly centered

  • easier way to rotate cell content is use rothead macro from makecell package (for which you need to define cell height)

  • vertically centering in multirow cell needs some manual tweaking


with this (and expand the table) I obtain the following result:



enter image description here



MWE:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{Supervised Learning}
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}[1.5ex]{rothead{Supervised Learning}}
& & 1 \ cline{2-3}
& & 2 \ cline{2-3}
& & 3 \ cline{2-3}
& & 4 \ cline{2-3}
& & 5 \ cline{2-3}
& & 6 \ cline{2-3}
& & 7 \ cline{2-3}
& & 8 \ hline end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}
end{document}


Addendum:
Font size of text in rothead is determined by headfont macro. Default value is footnotesize. It can be changed by



renewcommandtheadfont{normalsize}


(or whatever size, font family and shape you like). Considering above change of font size, the relvant part of MWE become:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}
renewcommandtheadfont{normalsize}% <-- added

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{theadfont Supervised Learning}% <-- changed
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}{rothead{Supervised Learning}}% <-- changed
% further is the same as in above MWE


and table will looks as follows:



enter image description here






share|improve this answer























  • Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
    – Amir
    Aug 28 '16 at 20:51










  • and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
    – Amir
    Aug 28 '16 at 20:56






  • 1




    all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
    – Zarko
    Aug 28 '16 at 21:06












  • Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
    – Amir
    Aug 29 '16 at 13:00






  • 1




    Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
    – Zarko
    Aug 29 '16 at 13:52















up vote
5
down vote



accepted










since your question seems to be unstable system ... i'm afraid that my answer will miss your point as it was Mico answer (which finish with deletion) :-( )



anyway, for exercise:




  • your rotated text is taller than rest of table, so it can not bo properly centered

  • easier way to rotate cell content is use rothead macro from makecell package (for which you need to define cell height)

  • vertically centering in multirow cell needs some manual tweaking


with this (and expand the table) I obtain the following result:



enter image description here



MWE:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{Supervised Learning}
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}[1.5ex]{rothead{Supervised Learning}}
& & 1 \ cline{2-3}
& & 2 \ cline{2-3}
& & 3 \ cline{2-3}
& & 4 \ cline{2-3}
& & 5 \ cline{2-3}
& & 6 \ cline{2-3}
& & 7 \ cline{2-3}
& & 8 \ hline end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}
end{document}


Addendum:
Font size of text in rothead is determined by headfont macro. Default value is footnotesize. It can be changed by



renewcommandtheadfont{normalsize}


(or whatever size, font family and shape you like). Considering above change of font size, the relvant part of MWE become:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}
renewcommandtheadfont{normalsize}% <-- added

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{theadfont Supervised Learning}% <-- changed
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}{rothead{Supervised Learning}}% <-- changed
% further is the same as in above MWE


and table will looks as follows:



enter image description here






share|improve this answer























  • Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
    – Amir
    Aug 28 '16 at 20:51










  • and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
    – Amir
    Aug 28 '16 at 20:56






  • 1




    all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
    – Zarko
    Aug 28 '16 at 21:06












  • Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
    – Amir
    Aug 29 '16 at 13:00






  • 1




    Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
    – Zarko
    Aug 29 '16 at 13:52













up vote
5
down vote



accepted







up vote
5
down vote



accepted






since your question seems to be unstable system ... i'm afraid that my answer will miss your point as it was Mico answer (which finish with deletion) :-( )



anyway, for exercise:




  • your rotated text is taller than rest of table, so it can not bo properly centered

  • easier way to rotate cell content is use rothead macro from makecell package (for which you need to define cell height)

  • vertically centering in multirow cell needs some manual tweaking


with this (and expand the table) I obtain the following result:



enter image description here



MWE:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{Supervised Learning}
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}[1.5ex]{rothead{Supervised Learning}}
& & 1 \ cline{2-3}
& & 2 \ cline{2-3}
& & 3 \ cline{2-3}
& & 4 \ cline{2-3}
& & 5 \ cline{2-3}
& & 6 \ cline{2-3}
& & 7 \ cline{2-3}
& & 8 \ hline end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}
end{document}


Addendum:
Font size of text in rothead is determined by headfont macro. Default value is footnotesize. It can be changed by



renewcommandtheadfont{normalsize}


(or whatever size, font family and shape you like). Considering above change of font size, the relvant part of MWE become:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}
renewcommandtheadfont{normalsize}% <-- added

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{theadfont Supervised Learning}% <-- changed
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}{rothead{Supervised Learning}}% <-- changed
% further is the same as in above MWE


and table will looks as follows:



enter image description here






share|improve this answer














since your question seems to be unstable system ... i'm afraid that my answer will miss your point as it was Mico answer (which finish with deletion) :-( )



anyway, for exercise:




  • your rotated text is taller than rest of table, so it can not bo properly centered

  • easier way to rotate cell content is use rothead macro from makecell package (for which you need to define cell height)

  • vertically centering in multirow cell needs some manual tweaking


with this (and expand the table) I obtain the following result:



enter image description here



MWE:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{Supervised Learning}
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}[1.5ex]{rothead{Supervised Learning}}
& & 1 \ cline{2-3}
& & 2 \ cline{2-3}
& & 3 \ cline{2-3}
& & 4 \ cline{2-3}
& & 5 \ cline{2-3}
& & 6 \ cline{2-3}
& & 7 \ cline{2-3}
& & 8 \ hline end{tabular}
caption{A Classification}
label{tab:Machine_Learning_models}
end{table}
end{document}


Addendum:
Font size of text in rothead is determined by headfont macro. Default value is footnotesize. It can be changed by



renewcommandtheadfont{normalsize}


(or whatever size, font family and shape you like). Considering above change of font size, the relvant part of MWE become:



documentclass{article}
usepackage{rotating}
usepackage{array,makecell,multirow}
renewcommandtheadfont{normalsize}% <-- added

begin{document}
begin{table}[htb]
centering
settowidthrotheadsize{theadfont Supervised Learning}% <-- changed
begin{tabular}{| l | c |
>{centeringarraybackslash}p{8cm}|}
hline
multicolumn{2}{|c|}{Classification} & References \ hline
multirow{8}{*}{rothead{Supervised Learning}}% <-- changed
% further is the same as in above MWE


and table will looks as follows:



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited 8 mins ago

























answered Aug 28 '16 at 20:42









Zarko

119k865155




119k865155












  • Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
    – Amir
    Aug 28 '16 at 20:51










  • and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
    – Amir
    Aug 28 '16 at 20:56






  • 1




    all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
    – Zarko
    Aug 28 '16 at 21:06












  • Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
    – Amir
    Aug 29 '16 at 13:00






  • 1




    Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
    – Zarko
    Aug 29 '16 at 13:52


















  • Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
    – Amir
    Aug 28 '16 at 20:51










  • and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
    – Amir
    Aug 28 '16 at 20:56






  • 1




    all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
    – Zarko
    Aug 28 '16 at 21:06












  • Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
    – Amir
    Aug 29 '16 at 13:00






  • 1




    Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
    – Zarko
    Aug 29 '16 at 13:52
















Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
– Amir
Aug 28 '16 at 20:51




Thanks for suggesting makecell package. Could you ellaborate more on the settowidthrotheadsize{Supervised Learning} and that [1.5ex] in the command.
– Amir
Aug 28 '16 at 20:51












and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
– Amir
Aug 28 '16 at 20:56




and the other thing is that it seems to reduce the text size tho I have plenty of space to have it the normal size. Should I manually increase it ?
– Amir
Aug 28 '16 at 20:56




1




1




all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
– Zarko
Aug 28 '16 at 21:06






all is explained in answer ...settowidthrotheadsize{Supervised Learning} determine the length of text, which rotated should fit into cell. i.e. determine cell height. [1.ex] in multirow is manual adjustment of vertical position of cell content. sorry, i do not understand the second comment. which size is reduced? if you like to have table width equal to text width (i guessing) than the best way to achieve this is use of tabularx instead of table where instead p{...} you use X column type.
– Zarko
Aug 28 '16 at 21:06














Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
– Amir
Aug 29 '16 at 13:00




Thanks @Zarko. My 2nd question was about the text of the {Supervised Learning} is now being reduced in font size despite having enough of space in the column. The vertical alignment is OK now after manually setting [1.ex]
– Amir
Aug 29 '16 at 13:00




1




1




Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
– Zarko
Aug 29 '16 at 13:52




Indeed, the fonts for vertical text is smaller. It is defined by theadfont which default size is footnotesize. to increase it you need to add renewcommandtheadfont{normalsize}( or whatever size, font family and shape you like). I will edit my answer.
– Zarko
Aug 29 '16 at 13:52


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f326897%2fvertical-alignment-of-a-turned-cell%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt