table data crosses the column

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












2















% Table generated by Excel2LaTeX from sheet 'Sheet1'
documentclassarticle
usepackagetabularx,booktabs
usepackagemultirow

begindocument

begintable[htbp]
centering
captionAdd caption
begintabular
hline
multirow2*textbfMobility Model
& multicolumn7ctextbfParameter \
cmidrule2-8& textbfBasic Description & textbfAdaptability for AANETs & textbfSupport to higher node mobility and Frequent topology updates & textbfSafety parameters & textbfMechanical and aerodynamic constraint & textbfDegree of Randomness & textbfApplications \
hline

endtabular%
labeltab:addlabel%
endtable%
enddocument









share|improve this question



















  • 1





    is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

    – Zarko
    Mar 10 at 9:05











  • usepackage[margin=25mm]geometry adding this has no effect.

    – monika
    Mar 10 at 9:09











  • please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

    – Zarko
    Mar 10 at 9:17















2















% Table generated by Excel2LaTeX from sheet 'Sheet1'
documentclassarticle
usepackagetabularx,booktabs
usepackagemultirow

begindocument

begintable[htbp]
centering
captionAdd caption
begintabular
hline
multirow2*textbfMobility Model
& multicolumn7ctextbfParameter \
cmidrule2-8& textbfBasic Description & textbfAdaptability for AANETs & textbfSupport to higher node mobility and Frequent topology updates & textbfSafety parameters & textbfMechanical and aerodynamic constraint & textbfDegree of Randomness & textbfApplications \
hline

endtabular%
labeltab:addlabel%
endtable%
enddocument









share|improve this question



















  • 1





    is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

    – Zarko
    Mar 10 at 9:05











  • usepackage[margin=25mm]geometry adding this has no effect.

    – monika
    Mar 10 at 9:09











  • please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

    – Zarko
    Mar 10 at 9:17













2












2








2








% Table generated by Excel2LaTeX from sheet 'Sheet1'
documentclassarticle
usepackagetabularx,booktabs
usepackagemultirow

begindocument

begintable[htbp]
centering
captionAdd caption
begintabular
hline
multirow2*textbfMobility Model
& multicolumn7ctextbfParameter \
cmidrule2-8& textbfBasic Description & textbfAdaptability for AANETs & textbfSupport to higher node mobility and Frequent topology updates & textbfSafety parameters & textbfMechanical and aerodynamic constraint & textbfDegree of Randomness & textbfApplications \
hline

endtabular%
labeltab:addlabel%
endtable%
enddocument









share|improve this question
















% Table generated by Excel2LaTeX from sheet 'Sheet1'
documentclassarticle
usepackagetabularx,booktabs
usepackagemultirow

begindocument

begintable[htbp]
centering
captionAdd caption
begintabular
hline
multirow2*textbfMobility Model
& multicolumn7ctextbfParameter \
cmidrule2-8& textbfBasic Description & textbfAdaptability for AANETs & textbfSupport to higher node mobility and Frequent topology updates & textbfSafety parameters & textbfMechanical and aerodynamic constraint & textbfDegree of Randomness & textbfApplications \
hline

endtabular%
labeltab:addlabel%
endtable%
enddocument






tables horizontal-alignment






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 10 at 8:58









CarLaTeX

34.4k552141




34.4k552141










asked Mar 10 at 8:57









monikamonika

415




415







  • 1





    is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

    – Zarko
    Mar 10 at 9:05











  • usepackage[margin=25mm]geometry adding this has no effect.

    – monika
    Mar 10 at 9:09











  • please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

    – Zarko
    Mar 10 at 9:17












  • 1





    is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

    – Zarko
    Mar 10 at 9:05











  • usepackage[margin=25mm]geometry adding this has no effect.

    – monika
    Mar 10 at 9:09











  • please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

    – Zarko
    Mar 10 at 9:17







1




1





is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

– Zarko
Mar 10 at 9:05





is an option to make wider text width? for example with adding usepackage[margin=25mm]geometry to your document preamble? also reducing font size, for example to footnotesize? also is an option to rotate table that it appears in landscape?

– Zarko
Mar 10 at 9:05













usepackage[margin=25mm]geometry adding this has no effect.

– monika
Mar 10 at 9:09





usepackage[margin=25mm]geometry adding this has no effect.

– monika
Mar 10 at 9:09













please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

– Zarko
Mar 10 at 9:17





please read all my comments carefully and complete. also comment to your previous question. use only one segment from it will not help you nor me to further help you. btw, if you use my answer on your previous question as basis for your, it would be nice first accept it ...

– Zarko
Mar 10 at 9:17










3 Answers
3






active

oldest

votes


















3














One of the issues you're encountering is that pdfLaTeX never hyphenates the first word of a paragraph. The contents of a cell in a p column form a paragraph, in the TeX-specific sense of the term.



The way to enable hyphenation of the first words in some of the cells -- "Adaptability" and "Mechanical" are prime candidates -- is to slip in a somewhat artificial-looking hspace0pt. In the code below, this is done by setting up new column type, called P, which is a p column that sets its contents ragged-right rather than fully justified, while still allowing hyphenation, even of the first word in the cell.



enter image description here



documentclassarticle
usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
usepackage[english]babel

usepackagearray,ragged2e
newcolumntypeP[1]>RaggedRightarraybackslashhspace0ptp#1

begindocument

begintable[htbp]
centering
captionAdd caption
labeltab:addlabel
begintabular
hline
textbfMobility Model
& multicolumn7textbfParameter \
cline2-8
& textbfBasic Description
& textbfAdaptability for AANETs
& textbfSupport to higher node mobility and Frequent topology updates
& textbfSafety parameters
& textbfMechanical and aerodynamic constraint
& textbfDegree of Randomness
& textbfApplications \
hline
endtabular
endtable
enddocument





share|improve this answer






























    3














    Here are two (three) more possible solutions. In all of them I have used the tabularx package to make the tables as wide as the textwidth. I have also replaced the cmidrule comand by cline as booktabs' rules don't cooperate well with vertical lines. For an alternative, see the third example.



    In the first one, I have used abbreviations for the column headers that are explained below the table:



    enter image description here



    documentclassarticle
    usepackagetabularx
    usepackagemultirow

    begindocument

    begintable[htbp]
    centering
    captionAdd caption
    begintabularxtextwidthX
    cline1-8
    textbfMobility Model & multicolumn7textbfParameter \
    cline2-8
    & textbfBD & textbfAA & textbfSF & textbfSP & textbfMC & textbfDR & textbfAP \
    cline1-8
    multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
    endtabularx%
    labeltab:addlabel%
    endtable%
    enddocument



    In the second example, I have used sidewaystable from the rotating package in order to rotate the table:



    enter image description here



    documentclassarticle
    usepackagetabularx
    usepackagemultirow
    usepackagerotating
    usepackageragged2e
    newcolumntypeR>RaggedRightletnewline\arraybackslashhspace0ptX

    begindocument

    beginsidewaystable[htbp]
    centering
    captionAdd caption
    begintabularxtextwidth
    hline
    textbfMobility Model & multicolumn7textbfParameter \
    cline2-8
    & textbfBasic Description
    & textbfAdaptability for AANETs
    & textbfSupport to higher node mobility and Frequent topology updates
    & textbfSafety parameters
    & textbfMechanical and aerodynamic constraint
    & textbfDegree of Randomness & textbfApplications \
    hline

    endtabularx%
    labeltab:addlabel%
    endsidewaystable%
    enddocument



    In this last example I have removed all vertical lines and replaced the horizontal lines by the rules from booktabs. I have also removed the bold from the column headers as it might distract:



    enter image description here



    documentclassarticle
    usepackagetabularx
    usepackagemultirow
    usepackagebooktabs

    begindocument

    begintable[htbp]
    centering
    captionAdd caption
    begintabularxtextwidthp1.5cmXXXXXXX
    toprule
    Mobility Model & multicolumn7cParameter \
    cmidrule2-8
    & BD & AA & SF & SP & MC & DR & AP \
    bottomrule
    multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
    endtabularx%
    labeltab:addlabel%
    endtable%
    enddocument





    share|improve this answer






























      3














      (adding this answer separately from the first, as the solution method is quite different)



      Your table doesn't seem to be set up to fully span the available width of the text block. If this were my table, I would switch to a tabularx environment (with overall width set to textwidth) and drop the unnecessary bold-facing of the contents of the header cells. The seven data columns employ a column type called C, which is simply a modified, centered version of the X column type. A feature is that it's straightforward to allow for varying column widths; the only constraint is that the 7 C arguments must sum to 7, which is the number of columns of this type. A principal formatting goal that guided the width choices was to have no more than four rows in any header cell.



      enter image description here



      documentclassarticle
      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
      usepackage[english]babel
      usepackagetabularx,ragged2e,booktabs
      newcolumntypeL>RaggedRightarraybackslashhspace0ptX
      newcolumntypeC[1]>Centeringarraybackslashhspace0pthsize=#1hsizeX
      usepackage[skip=0.333baselineskip]caption % optional

      newcommandmytab[1]smash%
      begintabular[t]@l@ #1 endtabular

      begindocument

      begintable[htbp]
      setlengthtabcolsep3pt % default value: 6pt
      captionAdd caption
      labeltab:addlabel
      small
      begintabularxtextwidth@ L
      C0.8C1C1.5C0.8C1C0.9C1 @ % 7 args sum to 7
      toprule
      mytabMobility\Model & multicolumn7c@Parameters \
      cmidrule(l)2-8
      & Basic Description
      & Adaptability for AANETs
      & Support for higher node mobility and frequent topology updates
      & Safety parameters
      & Mechanical and aero-dynamic constraint
      & Degree of randomness
      & Applications \
      midrule
      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
      bottomrule
      endtabularx
      endtable

      enddocument





      share|improve this answer

























      • will you please share the latex code for this

        – monika
        Mar 10 at 10:28











      • @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

        – Mico
        Mar 10 at 10:40











      • thanks alot sir , is it possible to convert this into a long table

        – monika
        Mar 10 at 10:47






      • 1





        @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

        – Mico
        Mar 10 at 10:55











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



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478691%2ftable-data-crosses-the-column%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









      3














      One of the issues you're encountering is that pdfLaTeX never hyphenates the first word of a paragraph. The contents of a cell in a p column form a paragraph, in the TeX-specific sense of the term.



      The way to enable hyphenation of the first words in some of the cells -- "Adaptability" and "Mechanical" are prime candidates -- is to slip in a somewhat artificial-looking hspace0pt. In the code below, this is done by setting up new column type, called P, which is a p column that sets its contents ragged-right rather than fully justified, while still allowing hyphenation, even of the first word in the cell.



      enter image description here



      documentclassarticle
      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
      usepackage[english]babel

      usepackagearray,ragged2e
      newcolumntypeP[1]>RaggedRightarraybackslashhspace0ptp#1

      begindocument

      begintable[htbp]
      centering
      captionAdd caption
      labeltab:addlabel
      begintabular
      hline
      textbfMobility Model
      & multicolumn7textbfParameter \
      cline2-8
      & textbfBasic Description
      & textbfAdaptability for AANETs
      & textbfSupport to higher node mobility and Frequent topology updates
      & textbfSafety parameters
      & textbfMechanical and aerodynamic constraint
      & textbfDegree of Randomness
      & textbfApplications \
      hline
      endtabular
      endtable
      enddocument





      share|improve this answer



























        3














        One of the issues you're encountering is that pdfLaTeX never hyphenates the first word of a paragraph. The contents of a cell in a p column form a paragraph, in the TeX-specific sense of the term.



        The way to enable hyphenation of the first words in some of the cells -- "Adaptability" and "Mechanical" are prime candidates -- is to slip in a somewhat artificial-looking hspace0pt. In the code below, this is done by setting up new column type, called P, which is a p column that sets its contents ragged-right rather than fully justified, while still allowing hyphenation, even of the first word in the cell.



        enter image description here



        documentclassarticle
        usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
        usepackage[english]babel

        usepackagearray,ragged2e
        newcolumntypeP[1]>RaggedRightarraybackslashhspace0ptp#1

        begindocument

        begintable[htbp]
        centering
        captionAdd caption
        labeltab:addlabel
        begintabular
        hline
        textbfMobility Model
        & multicolumn7textbfParameter \
        cline2-8
        & textbfBasic Description
        & textbfAdaptability for AANETs
        & textbfSupport to higher node mobility and Frequent topology updates
        & textbfSafety parameters
        & textbfMechanical and aerodynamic constraint
        & textbfDegree of Randomness
        & textbfApplications \
        hline
        endtabular
        endtable
        enddocument





        share|improve this answer

























          3












          3








          3







          One of the issues you're encountering is that pdfLaTeX never hyphenates the first word of a paragraph. The contents of a cell in a p column form a paragraph, in the TeX-specific sense of the term.



          The way to enable hyphenation of the first words in some of the cells -- "Adaptability" and "Mechanical" are prime candidates -- is to slip in a somewhat artificial-looking hspace0pt. In the code below, this is done by setting up new column type, called P, which is a p column that sets its contents ragged-right rather than fully justified, while still allowing hyphenation, even of the first word in the cell.



          enter image description here



          documentclassarticle
          usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
          usepackage[english]babel

          usepackagearray,ragged2e
          newcolumntypeP[1]>RaggedRightarraybackslashhspace0ptp#1

          begindocument

          begintable[htbp]
          centering
          captionAdd caption
          labeltab:addlabel
          begintabular
          hline
          textbfMobility Model
          & multicolumn7textbfParameter \
          cline2-8
          & textbfBasic Description
          & textbfAdaptability for AANETs
          & textbfSupport to higher node mobility and Frequent topology updates
          & textbfSafety parameters
          & textbfMechanical and aerodynamic constraint
          & textbfDegree of Randomness
          & textbfApplications \
          hline
          endtabular
          endtable
          enddocument





          share|improve this answer













          One of the issues you're encountering is that pdfLaTeX never hyphenates the first word of a paragraph. The contents of a cell in a p column form a paragraph, in the TeX-specific sense of the term.



          The way to enable hyphenation of the first words in some of the cells -- "Adaptability" and "Mechanical" are prime candidates -- is to slip in a somewhat artificial-looking hspace0pt. In the code below, this is done by setting up new column type, called P, which is a p column that sets its contents ragged-right rather than fully justified, while still allowing hyphenation, even of the first word in the cell.



          enter image description here



          documentclassarticle
          usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
          usepackage[english]babel

          usepackagearray,ragged2e
          newcolumntypeP[1]>RaggedRightarraybackslashhspace0ptp#1

          begindocument

          begintable[htbp]
          centering
          captionAdd caption
          labeltab:addlabel
          begintabular
          hline
          textbfMobility Model
          & multicolumn7textbfParameter \
          cline2-8
          & textbfBasic Description
          & textbfAdaptability for AANETs
          & textbfSupport to higher node mobility and Frequent topology updates
          & textbfSafety parameters
          & textbfMechanical and aerodynamic constraint
          & textbfDegree of Randomness
          & textbfApplications \
          hline
          endtabular
          endtable
          enddocument






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 10 at 9:46









          MicoMico

          286k32390779




          286k32390779





















              3














              Here are two (three) more possible solutions. In all of them I have used the tabularx package to make the tables as wide as the textwidth. I have also replaced the cmidrule comand by cline as booktabs' rules don't cooperate well with vertical lines. For an alternative, see the third example.



              In the first one, I have used abbreviations for the column headers that are explained below the table:



              enter image description here



              documentclassarticle
              usepackagetabularx
              usepackagemultirow

              begindocument

              begintable[htbp]
              centering
              captionAdd caption
              begintabularxtextwidthX
              cline1-8
              textbfMobility Model & multicolumn7textbfParameter \
              cline2-8
              & textbfBD & textbfAA & textbfSF & textbfSP & textbfMC & textbfDR & textbfAP \
              cline1-8
              multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
              endtabularx%
              labeltab:addlabel%
              endtable%
              enddocument



              In the second example, I have used sidewaystable from the rotating package in order to rotate the table:



              enter image description here



              documentclassarticle
              usepackagetabularx
              usepackagemultirow
              usepackagerotating
              usepackageragged2e
              newcolumntypeR>RaggedRightletnewline\arraybackslashhspace0ptX

              begindocument

              beginsidewaystable[htbp]
              centering
              captionAdd caption
              begintabularxtextwidth
              hline
              textbfMobility Model & multicolumn7textbfParameter \
              cline2-8
              & textbfBasic Description
              & textbfAdaptability for AANETs
              & textbfSupport to higher node mobility and Frequent topology updates
              & textbfSafety parameters
              & textbfMechanical and aerodynamic constraint
              & textbfDegree of Randomness & textbfApplications \
              hline

              endtabularx%
              labeltab:addlabel%
              endsidewaystable%
              enddocument



              In this last example I have removed all vertical lines and replaced the horizontal lines by the rules from booktabs. I have also removed the bold from the column headers as it might distract:



              enter image description here



              documentclassarticle
              usepackagetabularx
              usepackagemultirow
              usepackagebooktabs

              begindocument

              begintable[htbp]
              centering
              captionAdd caption
              begintabularxtextwidthp1.5cmXXXXXXX
              toprule
              Mobility Model & multicolumn7cParameter \
              cmidrule2-8
              & BD & AA & SF & SP & MC & DR & AP \
              bottomrule
              multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
              endtabularx%
              labeltab:addlabel%
              endtable%
              enddocument





              share|improve this answer



























                3














                Here are two (three) more possible solutions. In all of them I have used the tabularx package to make the tables as wide as the textwidth. I have also replaced the cmidrule comand by cline as booktabs' rules don't cooperate well with vertical lines. For an alternative, see the third example.



                In the first one, I have used abbreviations for the column headers that are explained below the table:



                enter image description here



                documentclassarticle
                usepackagetabularx
                usepackagemultirow

                begindocument

                begintable[htbp]
                centering
                captionAdd caption
                begintabularxtextwidthX
                cline1-8
                textbfMobility Model & multicolumn7textbfParameter \
                cline2-8
                & textbfBD & textbfAA & textbfSF & textbfSP & textbfMC & textbfDR & textbfAP \
                cline1-8
                multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                endtabularx%
                labeltab:addlabel%
                endtable%
                enddocument



                In the second example, I have used sidewaystable from the rotating package in order to rotate the table:



                enter image description here



                documentclassarticle
                usepackagetabularx
                usepackagemultirow
                usepackagerotating
                usepackageragged2e
                newcolumntypeR>RaggedRightletnewline\arraybackslashhspace0ptX

                begindocument

                beginsidewaystable[htbp]
                centering
                captionAdd caption
                begintabularxtextwidth
                hline
                textbfMobility Model & multicolumn7textbfParameter \
                cline2-8
                & textbfBasic Description
                & textbfAdaptability for AANETs
                & textbfSupport to higher node mobility and Frequent topology updates
                & textbfSafety parameters
                & textbfMechanical and aerodynamic constraint
                & textbfDegree of Randomness & textbfApplications \
                hline

                endtabularx%
                labeltab:addlabel%
                endsidewaystable%
                enddocument



                In this last example I have removed all vertical lines and replaced the horizontal lines by the rules from booktabs. I have also removed the bold from the column headers as it might distract:



                enter image description here



                documentclassarticle
                usepackagetabularx
                usepackagemultirow
                usepackagebooktabs

                begindocument

                begintable[htbp]
                centering
                captionAdd caption
                begintabularxtextwidthp1.5cmXXXXXXX
                toprule
                Mobility Model & multicolumn7cParameter \
                cmidrule2-8
                & BD & AA & SF & SP & MC & DR & AP \
                bottomrule
                multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                endtabularx%
                labeltab:addlabel%
                endtable%
                enddocument





                share|improve this answer

























                  3












                  3








                  3







                  Here are two (three) more possible solutions. In all of them I have used the tabularx package to make the tables as wide as the textwidth. I have also replaced the cmidrule comand by cline as booktabs' rules don't cooperate well with vertical lines. For an alternative, see the third example.



                  In the first one, I have used abbreviations for the column headers that are explained below the table:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow

                  begindocument

                  begintable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidthX
                  cline1-8
                  textbfMobility Model & multicolumn7textbfParameter \
                  cline2-8
                  & textbfBD & textbfAA & textbfSF & textbfSP & textbfMC & textbfDR & textbfAP \
                  cline1-8
                  multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                  endtabularx%
                  labeltab:addlabel%
                  endtable%
                  enddocument



                  In the second example, I have used sidewaystable from the rotating package in order to rotate the table:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow
                  usepackagerotating
                  usepackageragged2e
                  newcolumntypeR>RaggedRightletnewline\arraybackslashhspace0ptX

                  begindocument

                  beginsidewaystable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidth
                  hline
                  textbfMobility Model & multicolumn7textbfParameter \
                  cline2-8
                  & textbfBasic Description
                  & textbfAdaptability for AANETs
                  & textbfSupport to higher node mobility and Frequent topology updates
                  & textbfSafety parameters
                  & textbfMechanical and aerodynamic constraint
                  & textbfDegree of Randomness & textbfApplications \
                  hline

                  endtabularx%
                  labeltab:addlabel%
                  endsidewaystable%
                  enddocument



                  In this last example I have removed all vertical lines and replaced the horizontal lines by the rules from booktabs. I have also removed the bold from the column headers as it might distract:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow
                  usepackagebooktabs

                  begindocument

                  begintable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidthp1.5cmXXXXXXX
                  toprule
                  Mobility Model & multicolumn7cParameter \
                  cmidrule2-8
                  & BD & AA & SF & SP & MC & DR & AP \
                  bottomrule
                  multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                  endtabularx%
                  labeltab:addlabel%
                  endtable%
                  enddocument





                  share|improve this answer













                  Here are two (three) more possible solutions. In all of them I have used the tabularx package to make the tables as wide as the textwidth. I have also replaced the cmidrule comand by cline as booktabs' rules don't cooperate well with vertical lines. For an alternative, see the third example.



                  In the first one, I have used abbreviations for the column headers that are explained below the table:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow

                  begindocument

                  begintable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidthX
                  cline1-8
                  textbfMobility Model & multicolumn7textbfParameter \
                  cline2-8
                  & textbfBD & textbfAA & textbfSF & textbfSP & textbfMC & textbfDR & textbfAP \
                  cline1-8
                  multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                  endtabularx%
                  labeltab:addlabel%
                  endtable%
                  enddocument



                  In the second example, I have used sidewaystable from the rotating package in order to rotate the table:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow
                  usepackagerotating
                  usepackageragged2e
                  newcolumntypeR>RaggedRightletnewline\arraybackslashhspace0ptX

                  begindocument

                  beginsidewaystable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidth
                  hline
                  textbfMobility Model & multicolumn7textbfParameter \
                  cline2-8
                  & textbfBasic Description
                  & textbfAdaptability for AANETs
                  & textbfSupport to higher node mobility and Frequent topology updates
                  & textbfSafety parameters
                  & textbfMechanical and aerodynamic constraint
                  & textbfDegree of Randomness & textbfApplications \
                  hline

                  endtabularx%
                  labeltab:addlabel%
                  endsidewaystable%
                  enddocument



                  In this last example I have removed all vertical lines and replaced the horizontal lines by the rules from booktabs. I have also removed the bold from the column headers as it might distract:



                  enter image description here



                  documentclassarticle
                  usepackagetabularx
                  usepackagemultirow
                  usepackagebooktabs

                  begindocument

                  begintable[htbp]
                  centering
                  captionAdd caption
                  begintabularxtextwidthp1.5cmXXXXXXX
                  toprule
                  Mobility Model & multicolumn7cParameter \
                  cmidrule2-8
                  & BD & AA & SF & SP & MC & DR & AP \
                  bottomrule
                  multicolumn8ptextwidthsmall BD: Basic Description, AA: Adaptability for AANETs, SF: Support to higher node mobility and Frequent topology updates, SP: Safety parameters, MC: Mechanical and aerodynamic constraint, DR: Degree of Randomness, AP: Applications
                  endtabularx%
                  labeltab:addlabel%
                  endtable%
                  enddocument






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 10 at 10:07









                  leandriisleandriis

                  11.2k1733




                  11.2k1733





















                      3














                      (adding this answer separately from the first, as the solution method is quite different)



                      Your table doesn't seem to be set up to fully span the available width of the text block. If this were my table, I would switch to a tabularx environment (with overall width set to textwidth) and drop the unnecessary bold-facing of the contents of the header cells. The seven data columns employ a column type called C, which is simply a modified, centered version of the X column type. A feature is that it's straightforward to allow for varying column widths; the only constraint is that the 7 C arguments must sum to 7, which is the number of columns of this type. A principal formatting goal that guided the width choices was to have no more than four rows in any header cell.



                      enter image description here



                      documentclassarticle
                      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
                      usepackage[english]babel
                      usepackagetabularx,ragged2e,booktabs
                      newcolumntypeL>RaggedRightarraybackslashhspace0ptX
                      newcolumntypeC[1]>Centeringarraybackslashhspace0pthsize=#1hsizeX
                      usepackage[skip=0.333baselineskip]caption % optional

                      newcommandmytab[1]smash%
                      begintabular[t]@l@ #1 endtabular

                      begindocument

                      begintable[htbp]
                      setlengthtabcolsep3pt % default value: 6pt
                      captionAdd caption
                      labeltab:addlabel
                      small
                      begintabularxtextwidth@ L
                      C0.8C1C1.5C0.8C1C0.9C1 @ % 7 args sum to 7
                      toprule
                      mytabMobility\Model & multicolumn7c@Parameters \
                      cmidrule(l)2-8
                      & Basic Description
                      & Adaptability for AANETs
                      & Support for higher node mobility and frequent topology updates
                      & Safety parameters
                      & Mechanical and aero-dynamic constraint
                      & Degree of randomness
                      & Applications \
                      midrule
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      bottomrule
                      endtabularx
                      endtable

                      enddocument





                      share|improve this answer

























                      • will you please share the latex code for this

                        – monika
                        Mar 10 at 10:28











                      • @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                        – Mico
                        Mar 10 at 10:40











                      • thanks alot sir , is it possible to convert this into a long table

                        – monika
                        Mar 10 at 10:47






                      • 1





                        @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                        – Mico
                        Mar 10 at 10:55















                      3














                      (adding this answer separately from the first, as the solution method is quite different)



                      Your table doesn't seem to be set up to fully span the available width of the text block. If this were my table, I would switch to a tabularx environment (with overall width set to textwidth) and drop the unnecessary bold-facing of the contents of the header cells. The seven data columns employ a column type called C, which is simply a modified, centered version of the X column type. A feature is that it's straightforward to allow for varying column widths; the only constraint is that the 7 C arguments must sum to 7, which is the number of columns of this type. A principal formatting goal that guided the width choices was to have no more than four rows in any header cell.



                      enter image description here



                      documentclassarticle
                      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
                      usepackage[english]babel
                      usepackagetabularx,ragged2e,booktabs
                      newcolumntypeL>RaggedRightarraybackslashhspace0ptX
                      newcolumntypeC[1]>Centeringarraybackslashhspace0pthsize=#1hsizeX
                      usepackage[skip=0.333baselineskip]caption % optional

                      newcommandmytab[1]smash%
                      begintabular[t]@l@ #1 endtabular

                      begindocument

                      begintable[htbp]
                      setlengthtabcolsep3pt % default value: 6pt
                      captionAdd caption
                      labeltab:addlabel
                      small
                      begintabularxtextwidth@ L
                      C0.8C1C1.5C0.8C1C0.9C1 @ % 7 args sum to 7
                      toprule
                      mytabMobility\Model & multicolumn7c@Parameters \
                      cmidrule(l)2-8
                      & Basic Description
                      & Adaptability for AANETs
                      & Support for higher node mobility and frequent topology updates
                      & Safety parameters
                      & Mechanical and aero-dynamic constraint
                      & Degree of randomness
                      & Applications \
                      midrule
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      bottomrule
                      endtabularx
                      endtable

                      enddocument





                      share|improve this answer

























                      • will you please share the latex code for this

                        – monika
                        Mar 10 at 10:28











                      • @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                        – Mico
                        Mar 10 at 10:40











                      • thanks alot sir , is it possible to convert this into a long table

                        – monika
                        Mar 10 at 10:47






                      • 1





                        @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                        – Mico
                        Mar 10 at 10:55













                      3












                      3








                      3







                      (adding this answer separately from the first, as the solution method is quite different)



                      Your table doesn't seem to be set up to fully span the available width of the text block. If this were my table, I would switch to a tabularx environment (with overall width set to textwidth) and drop the unnecessary bold-facing of the contents of the header cells. The seven data columns employ a column type called C, which is simply a modified, centered version of the X column type. A feature is that it's straightforward to allow for varying column widths; the only constraint is that the 7 C arguments must sum to 7, which is the number of columns of this type. A principal formatting goal that guided the width choices was to have no more than four rows in any header cell.



                      enter image description here



                      documentclassarticle
                      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
                      usepackage[english]babel
                      usepackagetabularx,ragged2e,booktabs
                      newcolumntypeL>RaggedRightarraybackslashhspace0ptX
                      newcolumntypeC[1]>Centeringarraybackslashhspace0pthsize=#1hsizeX
                      usepackage[skip=0.333baselineskip]caption % optional

                      newcommandmytab[1]smash%
                      begintabular[t]@l@ #1 endtabular

                      begindocument

                      begintable[htbp]
                      setlengthtabcolsep3pt % default value: 6pt
                      captionAdd caption
                      labeltab:addlabel
                      small
                      begintabularxtextwidth@ L
                      C0.8C1C1.5C0.8C1C0.9C1 @ % 7 args sum to 7
                      toprule
                      mytabMobility\Model & multicolumn7c@Parameters \
                      cmidrule(l)2-8
                      & Basic Description
                      & Adaptability for AANETs
                      & Support for higher node mobility and frequent topology updates
                      & Safety parameters
                      & Mechanical and aero-dynamic constraint
                      & Degree of randomness
                      & Applications \
                      midrule
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      bottomrule
                      endtabularx
                      endtable

                      enddocument





                      share|improve this answer















                      (adding this answer separately from the first, as the solution method is quite different)



                      Your table doesn't seem to be set up to fully span the available width of the text block. If this were my table, I would switch to a tabularx environment (with overall width set to textwidth) and drop the unnecessary bold-facing of the contents of the header cells. The seven data columns employ a column type called C, which is simply a modified, centered version of the X column type. A feature is that it's straightforward to allow for varying column widths; the only constraint is that the 7 C arguments must sum to 7, which is the number of columns of this type. A principal formatting goal that guided the width choices was to have no more than four rows in any header cell.



                      enter image description here



                      documentclassarticle
                      usepackage[letterpaper,margin=1in]geometry % set suitable page parameters
                      usepackage[english]babel
                      usepackagetabularx,ragged2e,booktabs
                      newcolumntypeL>RaggedRightarraybackslashhspace0ptX
                      newcolumntypeC[1]>Centeringarraybackslashhspace0pthsize=#1hsizeX
                      usepackage[skip=0.333baselineskip]caption % optional

                      newcommandmytab[1]smash%
                      begintabular[t]@l@ #1 endtabular

                      begindocument

                      begintable[htbp]
                      setlengthtabcolsep3pt % default value: 6pt
                      captionAdd caption
                      labeltab:addlabel
                      small
                      begintabularxtextwidth@ L
                      C0.8C1C1.5C0.8C1C0.9C1 @ % 7 args sum to 7
                      toprule
                      mytabMobility\Model & multicolumn7c@Parameters \
                      cmidrule(l)2-8
                      & Basic Description
                      & Adaptability for AANETs
                      & Support for higher node mobility and frequent topology updates
                      & Safety parameters
                      & Mechanical and aero-dynamic constraint
                      & Degree of randomness
                      & Applications \
                      midrule
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      blabla & blabla & blabla & blabla & blabla & blabla & blabla & blabla \
                      bottomrule
                      endtabularx
                      endtable

                      enddocument






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Mar 10 at 10:41

























                      answered Mar 10 at 10:10









                      MicoMico

                      286k32390779




                      286k32390779












                      • will you please share the latex code for this

                        – monika
                        Mar 10 at 10:28











                      • @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                        – Mico
                        Mar 10 at 10:40











                      • thanks alot sir , is it possible to convert this into a long table

                        – monika
                        Mar 10 at 10:47






                      • 1





                        @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                        – Mico
                        Mar 10 at 10:55

















                      • will you please share the latex code for this

                        – monika
                        Mar 10 at 10:28











                      • @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                        – Mico
                        Mar 10 at 10:40











                      • thanks alot sir , is it possible to convert this into a long table

                        – monika
                        Mar 10 at 10:47






                      • 1





                        @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                        – Mico
                        Mar 10 at 10:55
















                      will you please share the latex code for this

                      – monika
                      Mar 10 at 10:28





                      will you please share the latex code for this

                      – monika
                      Mar 10 at 10:28













                      @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                      – Mico
                      Mar 10 at 10:40





                      @monika - Sorry for this gaffe. I've added the code, and also provided a few more comments on how to employ the C column type.

                      – Mico
                      Mar 10 at 10:40













                      thanks alot sir , is it possible to convert this into a long table

                      – monika
                      Mar 10 at 10:47





                      thanks alot sir , is it possible to convert this into a long table

                      – monika
                      Mar 10 at 10:47




                      1




                      1





                      @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                      – Mico
                      Mar 10 at 10:55





                      @monika - That's a separate, new question, which was in no way hinted at in your posting. Please post new queries to ask new questions.

                      – Mico
                      Mar 10 at 10:55

















                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478691%2ftable-data-crosses-the-column%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

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?