Cannot rotate a table

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











up vote
3
down vote

favorite












I am trying to rotate a table to fit it in a page but can't seem to make an example work with sidewaystable or sideways. Here is a simple code that I found online and should supposedly work fine but does not work for me. The table and caption both appear in horizontal orientation, and the table is pushed further down the page and away from the caption. Thanks for any help.



documentclassarticle
usepackagerotating
begindocument
begintable*
centering
captionSome description%
labeltab:the_table%
beginsideways%
begintabular
hline
Text A & Text B & Test C \hline
Text A & Text B & Test C \hline
Text A & Text B & Test C \hline
endtabular
endsideways
endtable*
enddocument






share|improve this question
























    up vote
    3
    down vote

    favorite












    I am trying to rotate a table to fit it in a page but can't seem to make an example work with sidewaystable or sideways. Here is a simple code that I found online and should supposedly work fine but does not work for me. The table and caption both appear in horizontal orientation, and the table is pushed further down the page and away from the caption. Thanks for any help.



    documentclassarticle
    usepackagerotating
    begindocument
    begintable*
    centering
    captionSome description%
    labeltab:the_table%
    beginsideways%
    begintabular
    hline
    Text A & Text B & Test C \hline
    Text A & Text B & Test C \hline
    Text A & Text B & Test C \hline
    endtabular
    endsideways
    endtable*
    enddocument






    share|improve this question






















      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am trying to rotate a table to fit it in a page but can't seem to make an example work with sidewaystable or sideways. Here is a simple code that I found online and should supposedly work fine but does not work for me. The table and caption both appear in horizontal orientation, and the table is pushed further down the page and away from the caption. Thanks for any help.



      documentclassarticle
      usepackagerotating
      begindocument
      begintable*
      centering
      captionSome description%
      labeltab:the_table%
      beginsideways%
      begintabular
      hline
      Text A & Text B & Test C \hline
      Text A & Text B & Test C \hline
      Text A & Text B & Test C \hline
      endtabular
      endsideways
      endtable*
      enddocument






      share|improve this question












      I am trying to rotate a table to fit it in a page but can't seem to make an example work with sidewaystable or sideways. Here is a simple code that I found online and should supposedly work fine but does not work for me. The table and caption both appear in horizontal orientation, and the table is pushed further down the page and away from the caption. Thanks for any help.



      documentclassarticle
      usepackagerotating
      begindocument
      begintable*
      centering
      captionSome description%
      labeltab:the_table%
      beginsideways%
      begintabular
      hline
      Text A & Text B & Test C \hline
      Text A & Text B & Test C \hline
      Text A & Text B & Test C \hline
      endtabular
      endsideways
      endtable*
      enddocument








      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 2 at 19:44









      NavidT

      161




      161




















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          3
          down vote













          I cannot see it. However, here is a solution with hvfloat:



          documentclassarticle
          usepackagehvfloat
          begindocument

          hvFloat[%
          floatPos=!h,
          objectAngle=90,
          capPos=t,
          capVPos=t,
          ]table%
          begintabular
          hline
          Text A & Text B & Test C \hline
          Text A & Text B & Test C \hline
          Text A & Text B & Test C \hline
          endtabular%
          some descriptiontab:the_table

          enddocument


          enter image description here






          share|improve this answer



























            up vote
            3
            down vote













            Don't nest a sideways environment inside a table* environment. Depending on your typesetting objectives, you should either



            • use a single sidewaystable environment, which will rotate the entire contents of the environment, including the caption, or


            • use a rotatebox90... directive to rotate just the tabular environment. Use 90 for a counterclockwise turn or -90 for a clockwise turn.


            Note that a sidewaystable environment always occupies an entire page.



            Here's some sample code that illustrates both options.



            documentclassarticle
            usepackagerotating % for 'sidewaystable' env.
            begindocument

            %% First option: use a 'sidewaystable' env.
            beginsidewaystable
            centering
            captionSome description
            labeltab:the_table
            begintabular
            hline
            Text A & Text B & Test C \hline
            Text A & Text B & Test C \hline
            Text A & Text B & Test C \hline
            endtabular
            endsidewaystable

            %% Second option: use a 'rotatebox{90)...' directive
            begintable
            centering
            captionSome description
            labeltab:the_table
            rotatebox90%
            begintabular
            hline
            Text A & Text B & Test C \hline
            Text A & Text B & Test C \hline
            Text A & Text B & Test C \hline
            endtabular
            endtable

            enddocument





            share|improve this answer



























              up vote
              0
              down vote













              Turns out that dvi version doesn't show the rotated table but both alternatives (the version I posted and the one brought response) look fine when converted to pdf.






              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',
                convertImagesToLinks: false,
                noModals: false,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: null,
                bindNavPrevention: true,
                postfix: "",
                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%2f449033%2fcannot-rotate-a-table%23new-answer', 'question_page');

                );

                Post as a guest






























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                3
                down vote













                I cannot see it. However, here is a solution with hvfloat:



                documentclassarticle
                usepackagehvfloat
                begindocument

                hvFloat[%
                floatPos=!h,
                objectAngle=90,
                capPos=t,
                capVPos=t,
                ]table%
                begintabular
                hline
                Text A & Text B & Test C \hline
                Text A & Text B & Test C \hline
                Text A & Text B & Test C \hline
                endtabular%
                some descriptiontab:the_table

                enddocument


                enter image description here






                share|improve this answer
























                  up vote
                  3
                  down vote













                  I cannot see it. However, here is a solution with hvfloat:



                  documentclassarticle
                  usepackagehvfloat
                  begindocument

                  hvFloat[%
                  floatPos=!h,
                  objectAngle=90,
                  capPos=t,
                  capVPos=t,
                  ]table%
                  begintabular
                  hline
                  Text A & Text B & Test C \hline
                  Text A & Text B & Test C \hline
                  Text A & Text B & Test C \hline
                  endtabular%
                  some descriptiontab:the_table

                  enddocument


                  enter image description here






                  share|improve this answer






















                    up vote
                    3
                    down vote










                    up vote
                    3
                    down vote









                    I cannot see it. However, here is a solution with hvfloat:



                    documentclassarticle
                    usepackagehvfloat
                    begindocument

                    hvFloat[%
                    floatPos=!h,
                    objectAngle=90,
                    capPos=t,
                    capVPos=t,
                    ]table%
                    begintabular
                    hline
                    Text A & Text B & Test C \hline
                    Text A & Text B & Test C \hline
                    Text A & Text B & Test C \hline
                    endtabular%
                    some descriptiontab:the_table

                    enddocument


                    enter image description here






                    share|improve this answer












                    I cannot see it. However, here is a solution with hvfloat:



                    documentclassarticle
                    usepackagehvfloat
                    begindocument

                    hvFloat[%
                    floatPos=!h,
                    objectAngle=90,
                    capPos=t,
                    capVPos=t,
                    ]table%
                    begintabular
                    hline
                    Text A & Text B & Test C \hline
                    Text A & Text B & Test C \hline
                    Text A & Text B & Test C \hline
                    endtabular%
                    some descriptiontab:the_table

                    enddocument


                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Sep 2 at 19:54









                    Herbert

                    261k21395705




                    261k21395705




















                        up vote
                        3
                        down vote













                        Don't nest a sideways environment inside a table* environment. Depending on your typesetting objectives, you should either



                        • use a single sidewaystable environment, which will rotate the entire contents of the environment, including the caption, or


                        • use a rotatebox90... directive to rotate just the tabular environment. Use 90 for a counterclockwise turn or -90 for a clockwise turn.


                        Note that a sidewaystable environment always occupies an entire page.



                        Here's some sample code that illustrates both options.



                        documentclassarticle
                        usepackagerotating % for 'sidewaystable' env.
                        begindocument

                        %% First option: use a 'sidewaystable' env.
                        beginsidewaystable
                        centering
                        captionSome description
                        labeltab:the_table
                        begintabular
                        hline
                        Text A & Text B & Test C \hline
                        Text A & Text B & Test C \hline
                        Text A & Text B & Test C \hline
                        endtabular
                        endsidewaystable

                        %% Second option: use a 'rotatebox{90)...' directive
                        begintable
                        centering
                        captionSome description
                        labeltab:the_table
                        rotatebox90%
                        begintabular
                        hline
                        Text A & Text B & Test C \hline
                        Text A & Text B & Test C \hline
                        Text A & Text B & Test C \hline
                        endtabular
                        endtable

                        enddocument





                        share|improve this answer
























                          up vote
                          3
                          down vote













                          Don't nest a sideways environment inside a table* environment. Depending on your typesetting objectives, you should either



                          • use a single sidewaystable environment, which will rotate the entire contents of the environment, including the caption, or


                          • use a rotatebox90... directive to rotate just the tabular environment. Use 90 for a counterclockwise turn or -90 for a clockwise turn.


                          Note that a sidewaystable environment always occupies an entire page.



                          Here's some sample code that illustrates both options.



                          documentclassarticle
                          usepackagerotating % for 'sidewaystable' env.
                          begindocument

                          %% First option: use a 'sidewaystable' env.
                          beginsidewaystable
                          centering
                          captionSome description
                          labeltab:the_table
                          begintabular
                          hline
                          Text A & Text B & Test C \hline
                          Text A & Text B & Test C \hline
                          Text A & Text B & Test C \hline
                          endtabular
                          endsidewaystable

                          %% Second option: use a 'rotatebox{90)...' directive
                          begintable
                          centering
                          captionSome description
                          labeltab:the_table
                          rotatebox90%
                          begintabular
                          hline
                          Text A & Text B & Test C \hline
                          Text A & Text B & Test C \hline
                          Text A & Text B & Test C \hline
                          endtabular
                          endtable

                          enddocument





                          share|improve this answer






















                            up vote
                            3
                            down vote










                            up vote
                            3
                            down vote









                            Don't nest a sideways environment inside a table* environment. Depending on your typesetting objectives, you should either



                            • use a single sidewaystable environment, which will rotate the entire contents of the environment, including the caption, or


                            • use a rotatebox90... directive to rotate just the tabular environment. Use 90 for a counterclockwise turn or -90 for a clockwise turn.


                            Note that a sidewaystable environment always occupies an entire page.



                            Here's some sample code that illustrates both options.



                            documentclassarticle
                            usepackagerotating % for 'sidewaystable' env.
                            begindocument

                            %% First option: use a 'sidewaystable' env.
                            beginsidewaystable
                            centering
                            captionSome description
                            labeltab:the_table
                            begintabular
                            hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            endtabular
                            endsidewaystable

                            %% Second option: use a 'rotatebox{90)...' directive
                            begintable
                            centering
                            captionSome description
                            labeltab:the_table
                            rotatebox90%
                            begintabular
                            hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            endtabular
                            endtable

                            enddocument





                            share|improve this answer












                            Don't nest a sideways environment inside a table* environment. Depending on your typesetting objectives, you should either



                            • use a single sidewaystable environment, which will rotate the entire contents of the environment, including the caption, or


                            • use a rotatebox90... directive to rotate just the tabular environment. Use 90 for a counterclockwise turn or -90 for a clockwise turn.


                            Note that a sidewaystable environment always occupies an entire page.



                            Here's some sample code that illustrates both options.



                            documentclassarticle
                            usepackagerotating % for 'sidewaystable' env.
                            begindocument

                            %% First option: use a 'sidewaystable' env.
                            beginsidewaystable
                            centering
                            captionSome description
                            labeltab:the_table
                            begintabular
                            hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            endtabular
                            endsidewaystable

                            %% Second option: use a 'rotatebox{90)...' directive
                            begintable
                            centering
                            captionSome description
                            labeltab:the_table
                            rotatebox90%
                            begintabular
                            hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            Text A & Text B & Test C \hline
                            endtabular
                            endtable

                            enddocument






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 2 at 20:36









                            Mico

                            262k30354729




                            262k30354729




















                                up vote
                                0
                                down vote













                                Turns out that dvi version doesn't show the rotated table but both alternatives (the version I posted and the one brought response) look fine when converted to pdf.






                                share|improve this answer
























                                  up vote
                                  0
                                  down vote













                                  Turns out that dvi version doesn't show the rotated table but both alternatives (the version I posted and the one brought response) look fine when converted to pdf.






                                  share|improve this answer






















                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Turns out that dvi version doesn't show the rotated table but both alternatives (the version I posted and the one brought response) look fine when converted to pdf.






                                    share|improve this answer












                                    Turns out that dvi version doesn't show the rotated table but both alternatives (the version I posted and the one brought response) look fine when converted to pdf.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Sep 2 at 20:38









                                    NavidT

                                    161




                                    161



























                                         

                                        draft saved


                                        draft discarded















































                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function ()
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449033%2fcannot-rotate-a-table%23new-answer', 'question_page');

                                        );

                                        Post as a guest













































































                                        Comments

                                        Popular posts from this blog

                                        What does second last employer means? [closed]

                                        Installing NextGIS Connect into QGIS 3?

                                        One-line joke