How to turn a table by 90° and split variables in two or more linesLaTeX table header with split horizontal...

Is pointing finger in meeting consider bad?

Purpose of cylindrical attachments on Power Transmission towers

Background for black and white chart

usage of mir gefallen

Past vs. present tense when referring to a fictional character

My parents claim they cannot pay for my college education; what are my options?

What did the 8086 (and 8088) do upon encountering an illegal instruction?

Should I worry about having my credit pulled multiple times while car shopping?

Any gotchas in buying second-hand sanitary ware?

Should I move out from my current apartment before the contract ends to save more money?

What does this circuit symbol mean?

DBCC SHRINKFILE on the distribution database

Idiom for 'person who gets violent when drunk"

What's the reason for the decade jump in the recent X-Men trilogy?

Are athletes' college degrees discounted by employers and graduate school admissions?

Why not make one big cpu core?

Was the Lonely Mountain, where Smaug lived, a volcano?

Am I allowed to determine tenets of my contract as a warlock?

Placement of positioning lights on A320 winglets

Am I being scammed by a sugar daddy?

Can artificial satellite positions affect tides?

Someone who is granted access to information but not expected to read it

Parallelized for loop in Bash

What does the "titan" monster tag mean?



How to turn a table by 90° and split variables in two or more lines


LaTeX table header with split horizontal linesHow does one split a column title into two lines?Split a long table into two pagesSplit table in 2 or more pages using table* and tabularxHow to make table split in two pagessplit a table cell in two lines and columnsDashed lines indicating more rows in a tableFancy table: Remove cells and split lines within cellsSplit a big table on two pagestwo or more footnotes in a table













1















I want to create the following table:



begin{table}
centering
begin{tabular}
{l c c c}
toprule
Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
midrule
e & 7 & 8 & 9 & 7 & 8 & 9\
d & 7 & 8 & 9 & 7 & 8 & 9\
f & 7 & 8 & 9 & 7 & 8 & 9\
bottomrule
end{tabular}
caption{Availability of indicators for different country groups}
label{tab:regions}
end{table}


Since the first line is very long, it doesn't fit on my page. Is there a way to
1) turn the table by 90° and put it on a separate page
2) split the variables (Europe and Central Asia etc.) into two (or three) lines to reduce it in width










share|improve this question







New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

    – leandriis
    8 hours ago
















1















I want to create the following table:



begin{table}
centering
begin{tabular}
{l c c c}
toprule
Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
midrule
e & 7 & 8 & 9 & 7 & 8 & 9\
d & 7 & 8 & 9 & 7 & 8 & 9\
f & 7 & 8 & 9 & 7 & 8 & 9\
bottomrule
end{tabular}
caption{Availability of indicators for different country groups}
label{tab:regions}
end{table}


Since the first line is very long, it doesn't fit on my page. Is there a way to
1) turn the table by 90° and put it on a separate page
2) split the variables (Europe and Central Asia etc.) into two (or three) lines to reduce it in width










share|improve this question







New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

    – leandriis
    8 hours ago














1












1








1


0






I want to create the following table:



begin{table}
centering
begin{tabular}
{l c c c}
toprule
Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
midrule
e & 7 & 8 & 9 & 7 & 8 & 9\
d & 7 & 8 & 9 & 7 & 8 & 9\
f & 7 & 8 & 9 & 7 & 8 & 9\
bottomrule
end{tabular}
caption{Availability of indicators for different country groups}
label{tab:regions}
end{table}


Since the first line is very long, it doesn't fit on my page. Is there a way to
1) turn the table by 90° and put it on a separate page
2) split the variables (Europe and Central Asia etc.) into two (or three) lines to reduce it in width










share|improve this question







New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to create the following table:



begin{table}
centering
begin{tabular}
{l c c c}
toprule
Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
midrule
e & 7 & 8 & 9 & 7 & 8 & 9\
d & 7 & 8 & 9 & 7 & 8 & 9\
f & 7 & 8 & 9 & 7 & 8 & 9\
bottomrule
end{tabular}
caption{Availability of indicators for different country groups}
label{tab:regions}
end{table}


Since the first line is very long, it doesn't fit on my page. Is there a way to
1) turn the table by 90° and put it on a separate page
2) split the variables (Europe and Central Asia etc.) into two (or three) lines to reduce it in width







tables






share|improve this question







New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









DiramelDiramel

111




111




New contributor



Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




Diramel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










  • 1





    Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

    – leandriis
    8 hours ago














  • 1





    Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

    – leandriis
    8 hours ago








1




1





Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

– leandriis
8 hours ago





Could you please make your example code compilable by adding the documentclass as well as the relevant packages? Also, you use 7 columns, but only define 4.

– leandriis
8 hours ago










3 Answers
3






active

oldest

votes


















4














How about this layout? No landscape required, I only turned the column heads:



documentclass{article}
usepackage[utf8]{inputenc}
usepackage{graphicx, rotating}
usepackage{multirow,bigstrut, makecell, booktabs}
usepackage{setspace}
usepackage{amsmath}
renewcommand{arraystretch}{1.5}
renewcommand{cellset}{renewcommand{arraystretch}{1.25}}
newcommand{myrotcell}[2][2.9cm]{rotcell{rlap{setstretch{0.8}parbox[b]{#1}{smallraggedright#2}}}}
usepackage{geometry}

begin{document}

begin{table}
centering
setlength{rotheadsize}{1cm}
renewcommand{cellrotangle}{45}
setlength{cmidrulewidth}{0.08em }
begin{tabular}{*{7}{l}}
cmidrule(lr{-2em}){1-7}
addlinespace[5.5ex]
makecell{Advanced\[-1ex] Economies} & myrotcell{Europe and\ Central Asia} &myrotcell{East Asia and\ the Pacific} & hspace*{-1em} myrotcell{South Asia}& myrotcell{Middle East~and North Africa} & myrotcell{Sub-Saharian Africa} & myrotcell{Latin America and\ the Caribbean} \[-1ex]
cmidrule[0.05em](lr{-2em}){1-7}
e & 7 & 8 & 9 & 7 & 8 & 9\
d & 7 & 8 & 9 & 7 & 8 & 9\
f & 7 & 8 & 9 & 7 & 8 & 9\
cmidrule(lr{-2em}){1-7}
end{tabular}
caption{Availability of indicators for different country groups}
label{tab:regions}
end{table}

end{document}


enter image description here






share|improve this answer































    3














    You can get a landscape oriented page by using the landscape environment from the pdflscape package. In order to introduce automatic linebreaks in the column headers, I have used the tabularx package.



    documentclass{article}
    usepackage{booktabs}
    usepackage{tabularx}
    usepackage{ragged2e}
    usepackage{pdflscape}
    begin{document}
    begin{landscape}
    begin{table}
    centering
    begin{tabularx}{linewidth}
    {*{7}{>{Centering}X}}
    toprule
    Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
    midrule
    e & 7 & 8 & 9 & 7 & 8 & 9\
    d & 7 & 8 & 9 & 7 & 8 & 9\
    f & 7 & 8 & 9 & 7 & 8 & 9\
    bottomrule
    end{tabularx}
    caption{Availability of indicators for different country groups}
    label{tab:regions}
    end{table}
    end{landscape}
    end{document}


    enter image description here



    Alternatively, you could also leave the table in portrait orientation and replace the long column headers by abbreviations as shown in the following example:



    documentclass{article}
    usepackage{booktabs}
    begin{document}
    begin{table}
    centering
    begin{tabular}
    {lcccccc}
    toprule
    Advanced Economies & ECA & EAP & SA & MENA & SSA & LAC \
    midrule
    e & 7 & 8 & 9 & 7 & 8 & 9\
    d & 7 & 8 & 9 & 7 & 8 & 9\
    f & 7 & 8 & 9 & 7 & 8 & 9\
    midrule
    multicolumn{7}{p{10.25cm}}{ECA~= Europe and Central Asia, EAP~= East Asia and the Pacific, SA~= South Asia MENA~= Middle East and North Africa, SSA~= Sub-Saharan Africa, LAC~=Latin America and the Caribbean}\
    end{tabular}
    caption{Availability of indicators for different country groups}
    label{tab:regions}
    end{table}
    end{document}


    enter image description here






    share|improve this answer
























    • The second option is even better. Thank you!

      – Diramel
      7 hours ago



















    1














    documentclass[a4paper]{article}

    usepackage{microtype}

    usepackage{tabularx}
    usepackage{booktabs}
    usepackage{varwidth}

    usepackage{graphicx}

    newsaveboxmytempbox

    newcolumntype{Y}{%
    >{centering
    begin{varwidth}[t]{hsize}%
    narrowragged
    hyphenpenalty=50
    exhyphenpenalty=50
    doublehyphendemerits=50
    arraybackslash
    hspace{0pt}%
    }X<{end{varwidth}}%
    }%

    newcolumntype{Z}{%
    >{raggedright
    begin{varwidth}[t]{hsize}%
    narrowragged
    hyphenpenalty=50
    exhyphenpenalty=50
    doublehyphendemerits=50
    arraybackslash
    hspace{0pt}%
    }X<{end{varwidth}}%
    }%

    %hyphenation{...}%

    begin{document}

    noindent Text Text Text Text Text Text Text Text Text Text Text
    Text Text Text Text Text Text Text Text Text Text Text

    savebox{mytempbox}{%
    begin{tabularx}{textwidth}{l*{6}{c}}
    toprule
    multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
    multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
    multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
    multicolumn{1}{Y}{South Asiastrut}&
    multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
    multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
    multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
    midrule
    e & 7 & 8 & 9 & 7 & 8 & 9\
    d & 7 & 8 & 9 & 7 & 8 & 9\
    f & 7 & 8 & 9 & 7 & 8 & 9\
    bottomrule
    end{tabularx}%
    }%

    begin{table}%
    centering
    begin{minipage}{wdmytempbox}%
    usebox{mytempbox}%
    caption{Availability of indicators for different country groups}%
    label{tab:regions1}%
    end{minipage}%
    end{table}

    savebox{mytempbox}{%
    begin{tabularx}{.45textheight}{l*{6}{c}}
    toprule
    multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
    multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
    multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
    multicolumn{1}{Y}{South Asiastrut}&
    multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
    multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
    multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
    midrule
    e & 7 & 8 & 9 & 7 & 8 & 9\
    d & 7 & 8 & 9 & 7 & 8 & 9\
    f & 7 & 8 & 9 & 7 & 8 & 9\
    bottomrule
    end{tabularx}%
    }%

    begin{table}%
    rotatebox[origin=C]{270}{%
    centering
    begin{minipage}{wdmytempbox}%
    usebox{mytempbox}%
    caption{Availability of indicators for different country groups}%
    label{tab:regions2}%
    end{minipage}%
    }%
    hfill
    rotatebox[origin=C]{90}{%
    centering
    begin{minipage}{wdmytempbox}%
    usebox{mytempbox}%
    caption{Availability of indicators for different country groups}%
    label{tab:regions3}%
    end{minipage}%
    }%
    end{table}

    end{document}


    enter image description here






    share|improve this answer


























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


      }
      });






      Diramel is a new contributor. Be nice, and check out our Code of Conduct.










      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f495518%2fhow-to-turn-a-table-by-90-and-split-variables-in-two-or-more-lines%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      How about this layout? No landscape required, I only turned the column heads:



      documentclass{article}
      usepackage[utf8]{inputenc}
      usepackage{graphicx, rotating}
      usepackage{multirow,bigstrut, makecell, booktabs}
      usepackage{setspace}
      usepackage{amsmath}
      renewcommand{arraystretch}{1.5}
      renewcommand{cellset}{renewcommand{arraystretch}{1.25}}
      newcommand{myrotcell}[2][2.9cm]{rotcell{rlap{setstretch{0.8}parbox[b]{#1}{smallraggedright#2}}}}
      usepackage{geometry}

      begin{document}

      begin{table}
      centering
      setlength{rotheadsize}{1cm}
      renewcommand{cellrotangle}{45}
      setlength{cmidrulewidth}{0.08em }
      begin{tabular}{*{7}{l}}
      cmidrule(lr{-2em}){1-7}
      addlinespace[5.5ex]
      makecell{Advanced\[-1ex] Economies} & myrotcell{Europe and\ Central Asia} &myrotcell{East Asia and\ the Pacific} & hspace*{-1em} myrotcell{South Asia}& myrotcell{Middle East~and North Africa} & myrotcell{Sub-Saharian Africa} & myrotcell{Latin America and\ the Caribbean} \[-1ex]
      cmidrule[0.05em](lr{-2em}){1-7}
      e & 7 & 8 & 9 & 7 & 8 & 9\
      d & 7 & 8 & 9 & 7 & 8 & 9\
      f & 7 & 8 & 9 & 7 & 8 & 9\
      cmidrule(lr{-2em}){1-7}
      end{tabular}
      caption{Availability of indicators for different country groups}
      label{tab:regions}
      end{table}

      end{document}


      enter image description here






      share|improve this answer




























        4














        How about this layout? No landscape required, I only turned the column heads:



        documentclass{article}
        usepackage[utf8]{inputenc}
        usepackage{graphicx, rotating}
        usepackage{multirow,bigstrut, makecell, booktabs}
        usepackage{setspace}
        usepackage{amsmath}
        renewcommand{arraystretch}{1.5}
        renewcommand{cellset}{renewcommand{arraystretch}{1.25}}
        newcommand{myrotcell}[2][2.9cm]{rotcell{rlap{setstretch{0.8}parbox[b]{#1}{smallraggedright#2}}}}
        usepackage{geometry}

        begin{document}

        begin{table}
        centering
        setlength{rotheadsize}{1cm}
        renewcommand{cellrotangle}{45}
        setlength{cmidrulewidth}{0.08em }
        begin{tabular}{*{7}{l}}
        cmidrule(lr{-2em}){1-7}
        addlinespace[5.5ex]
        makecell{Advanced\[-1ex] Economies} & myrotcell{Europe and\ Central Asia} &myrotcell{East Asia and\ the Pacific} & hspace*{-1em} myrotcell{South Asia}& myrotcell{Middle East~and North Africa} & myrotcell{Sub-Saharian Africa} & myrotcell{Latin America and\ the Caribbean} \[-1ex]
        cmidrule[0.05em](lr{-2em}){1-7}
        e & 7 & 8 & 9 & 7 & 8 & 9\
        d & 7 & 8 & 9 & 7 & 8 & 9\
        f & 7 & 8 & 9 & 7 & 8 & 9\
        cmidrule(lr{-2em}){1-7}
        end{tabular}
        caption{Availability of indicators for different country groups}
        label{tab:regions}
        end{table}

        end{document}


        enter image description here






        share|improve this answer


























          4












          4








          4







          How about this layout? No landscape required, I only turned the column heads:



          documentclass{article}
          usepackage[utf8]{inputenc}
          usepackage{graphicx, rotating}
          usepackage{multirow,bigstrut, makecell, booktabs}
          usepackage{setspace}
          usepackage{amsmath}
          renewcommand{arraystretch}{1.5}
          renewcommand{cellset}{renewcommand{arraystretch}{1.25}}
          newcommand{myrotcell}[2][2.9cm]{rotcell{rlap{setstretch{0.8}parbox[b]{#1}{smallraggedright#2}}}}
          usepackage{geometry}

          begin{document}

          begin{table}
          centering
          setlength{rotheadsize}{1cm}
          renewcommand{cellrotangle}{45}
          setlength{cmidrulewidth}{0.08em }
          begin{tabular}{*{7}{l}}
          cmidrule(lr{-2em}){1-7}
          addlinespace[5.5ex]
          makecell{Advanced\[-1ex] Economies} & myrotcell{Europe and\ Central Asia} &myrotcell{East Asia and\ the Pacific} & hspace*{-1em} myrotcell{South Asia}& myrotcell{Middle East~and North Africa} & myrotcell{Sub-Saharian Africa} & myrotcell{Latin America and\ the Caribbean} \[-1ex]
          cmidrule[0.05em](lr{-2em}){1-7}
          e & 7 & 8 & 9 & 7 & 8 & 9\
          d & 7 & 8 & 9 & 7 & 8 & 9\
          f & 7 & 8 & 9 & 7 & 8 & 9\
          cmidrule(lr{-2em}){1-7}
          end{tabular}
          caption{Availability of indicators for different country groups}
          label{tab:regions}
          end{table}

          end{document}


          enter image description here






          share|improve this answer













          How about this layout? No landscape required, I only turned the column heads:



          documentclass{article}
          usepackage[utf8]{inputenc}
          usepackage{graphicx, rotating}
          usepackage{multirow,bigstrut, makecell, booktabs}
          usepackage{setspace}
          usepackage{amsmath}
          renewcommand{arraystretch}{1.5}
          renewcommand{cellset}{renewcommand{arraystretch}{1.25}}
          newcommand{myrotcell}[2][2.9cm]{rotcell{rlap{setstretch{0.8}parbox[b]{#1}{smallraggedright#2}}}}
          usepackage{geometry}

          begin{document}

          begin{table}
          centering
          setlength{rotheadsize}{1cm}
          renewcommand{cellrotangle}{45}
          setlength{cmidrulewidth}{0.08em }
          begin{tabular}{*{7}{l}}
          cmidrule(lr{-2em}){1-7}
          addlinespace[5.5ex]
          makecell{Advanced\[-1ex] Economies} & myrotcell{Europe and\ Central Asia} &myrotcell{East Asia and\ the Pacific} & hspace*{-1em} myrotcell{South Asia}& myrotcell{Middle East~and North Africa} & myrotcell{Sub-Saharian Africa} & myrotcell{Latin America and\ the Caribbean} \[-1ex]
          cmidrule[0.05em](lr{-2em}){1-7}
          e & 7 & 8 & 9 & 7 & 8 & 9\
          d & 7 & 8 & 9 & 7 & 8 & 9\
          f & 7 & 8 & 9 & 7 & 8 & 9\
          cmidrule(lr{-2em}){1-7}
          end{tabular}
          caption{Availability of indicators for different country groups}
          label{tab:regions}
          end{table}

          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 6 hours ago









          BernardBernard

          182k781213




          182k781213























              3














              You can get a landscape oriented page by using the landscape environment from the pdflscape package. In order to introduce automatic linebreaks in the column headers, I have used the tabularx package.



              documentclass{article}
              usepackage{booktabs}
              usepackage{tabularx}
              usepackage{ragged2e}
              usepackage{pdflscape}
              begin{document}
              begin{landscape}
              begin{table}
              centering
              begin{tabularx}{linewidth}
              {*{7}{>{Centering}X}}
              toprule
              Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{landscape}
              end{document}


              enter image description here



              Alternatively, you could also leave the table in portrait orientation and replace the long column headers by abbreviations as shown in the following example:



              documentclass{article}
              usepackage{booktabs}
              begin{document}
              begin{table}
              centering
              begin{tabular}
              {lcccccc}
              toprule
              Advanced Economies & ECA & EAP & SA & MENA & SSA & LAC \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              midrule
              multicolumn{7}{p{10.25cm}}{ECA~= Europe and Central Asia, EAP~= East Asia and the Pacific, SA~= South Asia MENA~= Middle East and North Africa, SSA~= Sub-Saharan Africa, LAC~=Latin America and the Caribbean}\
              end{tabular}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{document}


              enter image description here






              share|improve this answer
























              • The second option is even better. Thank you!

                – Diramel
                7 hours ago
















              3














              You can get a landscape oriented page by using the landscape environment from the pdflscape package. In order to introduce automatic linebreaks in the column headers, I have used the tabularx package.



              documentclass{article}
              usepackage{booktabs}
              usepackage{tabularx}
              usepackage{ragged2e}
              usepackage{pdflscape}
              begin{document}
              begin{landscape}
              begin{table}
              centering
              begin{tabularx}{linewidth}
              {*{7}{>{Centering}X}}
              toprule
              Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{landscape}
              end{document}


              enter image description here



              Alternatively, you could also leave the table in portrait orientation and replace the long column headers by abbreviations as shown in the following example:



              documentclass{article}
              usepackage{booktabs}
              begin{document}
              begin{table}
              centering
              begin{tabular}
              {lcccccc}
              toprule
              Advanced Economies & ECA & EAP & SA & MENA & SSA & LAC \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              midrule
              multicolumn{7}{p{10.25cm}}{ECA~= Europe and Central Asia, EAP~= East Asia and the Pacific, SA~= South Asia MENA~= Middle East and North Africa, SSA~= Sub-Saharan Africa, LAC~=Latin America and the Caribbean}\
              end{tabular}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{document}


              enter image description here






              share|improve this answer
























              • The second option is even better. Thank you!

                – Diramel
                7 hours ago














              3












              3








              3







              You can get a landscape oriented page by using the landscape environment from the pdflscape package. In order to introduce automatic linebreaks in the column headers, I have used the tabularx package.



              documentclass{article}
              usepackage{booktabs}
              usepackage{tabularx}
              usepackage{ragged2e}
              usepackage{pdflscape}
              begin{document}
              begin{landscape}
              begin{table}
              centering
              begin{tabularx}{linewidth}
              {*{7}{>{Centering}X}}
              toprule
              Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{landscape}
              end{document}


              enter image description here



              Alternatively, you could also leave the table in portrait orientation and replace the long column headers by abbreviations as shown in the following example:



              documentclass{article}
              usepackage{booktabs}
              begin{document}
              begin{table}
              centering
              begin{tabular}
              {lcccccc}
              toprule
              Advanced Economies & ECA & EAP & SA & MENA & SSA & LAC \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              midrule
              multicolumn{7}{p{10.25cm}}{ECA~= Europe and Central Asia, EAP~= East Asia and the Pacific, SA~= South Asia MENA~= Middle East and North Africa, SSA~= Sub-Saharan Africa, LAC~=Latin America and the Caribbean}\
              end{tabular}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{document}


              enter image description here






              share|improve this answer













              You can get a landscape oriented page by using the landscape environment from the pdflscape package. In order to introduce automatic linebreaks in the column headers, I have used the tabularx package.



              documentclass{article}
              usepackage{booktabs}
              usepackage{tabularx}
              usepackage{ragged2e}
              usepackage{pdflscape}
              begin{document}
              begin{landscape}
              begin{table}
              centering
              begin{tabularx}{linewidth}
              {*{7}{>{Centering}X}}
              toprule
              Advanced Economies & Europe and Central Asia & East Asia and the Pacific & South Asia & Middle East and North Africa & Sub-Saharan Africa & Latin America and the Caribbean \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{landscape}
              end{document}


              enter image description here



              Alternatively, you could also leave the table in portrait orientation and replace the long column headers by abbreviations as shown in the following example:



              documentclass{article}
              usepackage{booktabs}
              begin{document}
              begin{table}
              centering
              begin{tabular}
              {lcccccc}
              toprule
              Advanced Economies & ECA & EAP & SA & MENA & SSA & LAC \
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              midrule
              multicolumn{7}{p{10.25cm}}{ECA~= Europe and Central Asia, EAP~= East Asia and the Pacific, SA~= South Asia MENA~= Middle East and North Africa, SSA~= Sub-Saharan Africa, LAC~=Latin America and the Caribbean}\
              end{tabular}
              caption{Availability of indicators for different country groups}
              label{tab:regions}
              end{table}
              end{document}


              enter image description here







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 7 hours ago









              leandriisleandriis

              14k11135




              14k11135













              • The second option is even better. Thank you!

                – Diramel
                7 hours ago



















              • The second option is even better. Thank you!

                – Diramel
                7 hours ago

















              The second option is even better. Thank you!

              – Diramel
              7 hours ago





              The second option is even better. Thank you!

              – Diramel
              7 hours ago











              1














              documentclass[a4paper]{article}

              usepackage{microtype}

              usepackage{tabularx}
              usepackage{booktabs}
              usepackage{varwidth}

              usepackage{graphicx}

              newsaveboxmytempbox

              newcolumntype{Y}{%
              >{centering
              begin{varwidth}[t]{hsize}%
              narrowragged
              hyphenpenalty=50
              exhyphenpenalty=50
              doublehyphendemerits=50
              arraybackslash
              hspace{0pt}%
              }X<{end{varwidth}}%
              }%

              newcolumntype{Z}{%
              >{raggedright
              begin{varwidth}[t]{hsize}%
              narrowragged
              hyphenpenalty=50
              exhyphenpenalty=50
              doublehyphendemerits=50
              arraybackslash
              hspace{0pt}%
              }X<{end{varwidth}}%
              }%

              %hyphenation{...}%

              begin{document}

              noindent Text Text Text Text Text Text Text Text Text Text Text
              Text Text Text Text Text Text Text Text Text Text Text

              savebox{mytempbox}{%
              begin{tabularx}{textwidth}{l*{6}{c}}
              toprule
              multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
              multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
              multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
              multicolumn{1}{Y}{South Asiastrut}&
              multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
              multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
              multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}%
              }%

              begin{table}%
              centering
              begin{minipage}{wdmytempbox}%
              usebox{mytempbox}%
              caption{Availability of indicators for different country groups}%
              label{tab:regions1}%
              end{minipage}%
              end{table}

              savebox{mytempbox}{%
              begin{tabularx}{.45textheight}{l*{6}{c}}
              toprule
              multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
              multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
              multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
              multicolumn{1}{Y}{South Asiastrut}&
              multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
              multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
              multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
              midrule
              e & 7 & 8 & 9 & 7 & 8 & 9\
              d & 7 & 8 & 9 & 7 & 8 & 9\
              f & 7 & 8 & 9 & 7 & 8 & 9\
              bottomrule
              end{tabularx}%
              }%

              begin{table}%
              rotatebox[origin=C]{270}{%
              centering
              begin{minipage}{wdmytempbox}%
              usebox{mytempbox}%
              caption{Availability of indicators for different country groups}%
              label{tab:regions2}%
              end{minipage}%
              }%
              hfill
              rotatebox[origin=C]{90}{%
              centering
              begin{minipage}{wdmytempbox}%
              usebox{mytempbox}%
              caption{Availability of indicators for different country groups}%
              label{tab:regions3}%
              end{minipage}%
              }%
              end{table}

              end{document}


              enter image description here






              share|improve this answer






























                1














                documentclass[a4paper]{article}

                usepackage{microtype}

                usepackage{tabularx}
                usepackage{booktabs}
                usepackage{varwidth}

                usepackage{graphicx}

                newsaveboxmytempbox

                newcolumntype{Y}{%
                >{centering
                begin{varwidth}[t]{hsize}%
                narrowragged
                hyphenpenalty=50
                exhyphenpenalty=50
                doublehyphendemerits=50
                arraybackslash
                hspace{0pt}%
                }X<{end{varwidth}}%
                }%

                newcolumntype{Z}{%
                >{raggedright
                begin{varwidth}[t]{hsize}%
                narrowragged
                hyphenpenalty=50
                exhyphenpenalty=50
                doublehyphendemerits=50
                arraybackslash
                hspace{0pt}%
                }X<{end{varwidth}}%
                }%

                %hyphenation{...}%

                begin{document}

                noindent Text Text Text Text Text Text Text Text Text Text Text
                Text Text Text Text Text Text Text Text Text Text Text

                savebox{mytempbox}{%
                begin{tabularx}{textwidth}{l*{6}{c}}
                toprule
                multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                multicolumn{1}{Y}{South Asiastrut}&
                multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                midrule
                e & 7 & 8 & 9 & 7 & 8 & 9\
                d & 7 & 8 & 9 & 7 & 8 & 9\
                f & 7 & 8 & 9 & 7 & 8 & 9\
                bottomrule
                end{tabularx}%
                }%

                begin{table}%
                centering
                begin{minipage}{wdmytempbox}%
                usebox{mytempbox}%
                caption{Availability of indicators for different country groups}%
                label{tab:regions1}%
                end{minipage}%
                end{table}

                savebox{mytempbox}{%
                begin{tabularx}{.45textheight}{l*{6}{c}}
                toprule
                multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                multicolumn{1}{Y}{South Asiastrut}&
                multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                midrule
                e & 7 & 8 & 9 & 7 & 8 & 9\
                d & 7 & 8 & 9 & 7 & 8 & 9\
                f & 7 & 8 & 9 & 7 & 8 & 9\
                bottomrule
                end{tabularx}%
                }%

                begin{table}%
                rotatebox[origin=C]{270}{%
                centering
                begin{minipage}{wdmytempbox}%
                usebox{mytempbox}%
                caption{Availability of indicators for different country groups}%
                label{tab:regions2}%
                end{minipage}%
                }%
                hfill
                rotatebox[origin=C]{90}{%
                centering
                begin{minipage}{wdmytempbox}%
                usebox{mytempbox}%
                caption{Availability of indicators for different country groups}%
                label{tab:regions3}%
                end{minipage}%
                }%
                end{table}

                end{document}


                enter image description here






                share|improve this answer




























                  1












                  1








                  1







                  documentclass[a4paper]{article}

                  usepackage{microtype}

                  usepackage{tabularx}
                  usepackage{booktabs}
                  usepackage{varwidth}

                  usepackage{graphicx}

                  newsaveboxmytempbox

                  newcolumntype{Y}{%
                  >{centering
                  begin{varwidth}[t]{hsize}%
                  narrowragged
                  hyphenpenalty=50
                  exhyphenpenalty=50
                  doublehyphendemerits=50
                  arraybackslash
                  hspace{0pt}%
                  }X<{end{varwidth}}%
                  }%

                  newcolumntype{Z}{%
                  >{raggedright
                  begin{varwidth}[t]{hsize}%
                  narrowragged
                  hyphenpenalty=50
                  exhyphenpenalty=50
                  doublehyphendemerits=50
                  arraybackslash
                  hspace{0pt}%
                  }X<{end{varwidth}}%
                  }%

                  %hyphenation{...}%

                  begin{document}

                  noindent Text Text Text Text Text Text Text Text Text Text Text
                  Text Text Text Text Text Text Text Text Text Text Text

                  savebox{mytempbox}{%
                  begin{tabularx}{textwidth}{l*{6}{c}}
                  toprule
                  multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                  multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                  multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                  multicolumn{1}{Y}{South Asiastrut}&
                  multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                  multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                  multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                  midrule
                  e & 7 & 8 & 9 & 7 & 8 & 9\
                  d & 7 & 8 & 9 & 7 & 8 & 9\
                  f & 7 & 8 & 9 & 7 & 8 & 9\
                  bottomrule
                  end{tabularx}%
                  }%

                  begin{table}%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions1}%
                  end{minipage}%
                  end{table}

                  savebox{mytempbox}{%
                  begin{tabularx}{.45textheight}{l*{6}{c}}
                  toprule
                  multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                  multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                  multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                  multicolumn{1}{Y}{South Asiastrut}&
                  multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                  multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                  multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                  midrule
                  e & 7 & 8 & 9 & 7 & 8 & 9\
                  d & 7 & 8 & 9 & 7 & 8 & 9\
                  f & 7 & 8 & 9 & 7 & 8 & 9\
                  bottomrule
                  end{tabularx}%
                  }%

                  begin{table}%
                  rotatebox[origin=C]{270}{%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions2}%
                  end{minipage}%
                  }%
                  hfill
                  rotatebox[origin=C]{90}{%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions3}%
                  end{minipage}%
                  }%
                  end{table}

                  end{document}


                  enter image description here






                  share|improve this answer















                  documentclass[a4paper]{article}

                  usepackage{microtype}

                  usepackage{tabularx}
                  usepackage{booktabs}
                  usepackage{varwidth}

                  usepackage{graphicx}

                  newsaveboxmytempbox

                  newcolumntype{Y}{%
                  >{centering
                  begin{varwidth}[t]{hsize}%
                  narrowragged
                  hyphenpenalty=50
                  exhyphenpenalty=50
                  doublehyphendemerits=50
                  arraybackslash
                  hspace{0pt}%
                  }X<{end{varwidth}}%
                  }%

                  newcolumntype{Z}{%
                  >{raggedright
                  begin{varwidth}[t]{hsize}%
                  narrowragged
                  hyphenpenalty=50
                  exhyphenpenalty=50
                  doublehyphendemerits=50
                  arraybackslash
                  hspace{0pt}%
                  }X<{end{varwidth}}%
                  }%

                  %hyphenation{...}%

                  begin{document}

                  noindent Text Text Text Text Text Text Text Text Text Text Text
                  Text Text Text Text Text Text Text Text Text Text Text

                  savebox{mytempbox}{%
                  begin{tabularx}{textwidth}{l*{6}{c}}
                  toprule
                  multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                  multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                  multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                  multicolumn{1}{Y}{South Asiastrut}&
                  multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                  multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                  multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                  midrule
                  e & 7 & 8 & 9 & 7 & 8 & 9\
                  d & 7 & 8 & 9 & 7 & 8 & 9\
                  f & 7 & 8 & 9 & 7 & 8 & 9\
                  bottomrule
                  end{tabularx}%
                  }%

                  begin{table}%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions1}%
                  end{minipage}%
                  end{table}

                  savebox{mytempbox}{%
                  begin{tabularx}{.45textheight}{l*{6}{c}}
                  toprule
                  multicolumn{1}{Z}{Ad-vanced Econ-o-miesstrut}&
                  multicolumn{1}{Y}{Eu-rope and Cen-tral Asiastrut}&
                  multicolumn{1}{Y}{East Asia and the Pa-cif-icstrut}&
                  multicolumn{1}{Y}{South Asiastrut}&
                  multicolumn{1}{Y}{Mid-dle East and North Af-ri-castrut}&
                  multicolumn{1}{Y}{Sub-Sa-ha-ran Af-ri-castrut}&
                  multicolumn{1}{Y}{Latin Amer-ica and the Car-ib-beanstrut}\
                  midrule
                  e & 7 & 8 & 9 & 7 & 8 & 9\
                  d & 7 & 8 & 9 & 7 & 8 & 9\
                  f & 7 & 8 & 9 & 7 & 8 & 9\
                  bottomrule
                  end{tabularx}%
                  }%

                  begin{table}%
                  rotatebox[origin=C]{270}{%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions2}%
                  end{minipage}%
                  }%
                  hfill
                  rotatebox[origin=C]{90}{%
                  centering
                  begin{minipage}{wdmytempbox}%
                  usebox{mytempbox}%
                  caption{Availability of indicators for different country groups}%
                  label{tab:regions3}%
                  end{minipage}%
                  }%
                  end{table}

                  end{document}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 3 hours ago

























                  answered 3 hours ago









                  Ulrich DiezUlrich Diez

                  6,312622




                  6,312622






















                      Diramel is a new contributor. Be nice, and check out our Code of Conduct.










                      draft saved

                      draft discarded


















                      Diramel is a new contributor. Be nice, and check out our Code of Conduct.













                      Diramel is a new contributor. Be nice, and check out our Code of Conduct.












                      Diramel is a new contributor. Be nice, and check out our Code of Conduct.
















                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f495518%2fhow-to-turn-a-table-by-90-and-split-variables-in-two-or-more-lines%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

                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...