Centering inside sidewaysfigure with footnote

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 using sidewaysfigure environment to rotate my figures. However, they are not centered in the middle of the page. I can't use centering since I want that my footnote is "left aligned".



Here is a short example:



documentclass[a4paper,12pt]scrartcl
usepackage[ngerman]babel
usepackageamsthm
usepackagemathtools

usepackagerotating
usepackagefloat


begindocument
beginsidewaysfigure
captionFill
includegraphics[width=0.9paperwidth]example-image-c
footnotesize

A long footnote
labelfig:fill
endsidewaysfigure
enddocument


The output of my "real example" with the code mentioned in the comments:



enter image description here



The caption should be aligned in the same height as the footnote.







share|improve this question


























    up vote
    3
    down vote

    favorite












    I am using sidewaysfigure environment to rotate my figures. However, they are not centered in the middle of the page. I can't use centering since I want that my footnote is "left aligned".



    Here is a short example:



    documentclass[a4paper,12pt]scrartcl
    usepackage[ngerman]babel
    usepackageamsthm
    usepackagemathtools

    usepackagerotating
    usepackagefloat


    begindocument
    beginsidewaysfigure
    captionFill
    includegraphics[width=0.9paperwidth]example-image-c
    footnotesize

    A long footnote
    labelfig:fill
    endsidewaysfigure
    enddocument


    The output of my "real example" with the code mentioned in the comments:



    enter image description here



    The caption should be aligned in the same height as the footnote.







    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am using sidewaysfigure environment to rotate my figures. However, they are not centered in the middle of the page. I can't use centering since I want that my footnote is "left aligned".



      Here is a short example:



      documentclass[a4paper,12pt]scrartcl
      usepackage[ngerman]babel
      usepackageamsthm
      usepackagemathtools

      usepackagerotating
      usepackagefloat


      begindocument
      beginsidewaysfigure
      captionFill
      includegraphics[width=0.9paperwidth]example-image-c
      footnotesize

      A long footnote
      labelfig:fill
      endsidewaysfigure
      enddocument


      The output of my "real example" with the code mentioned in the comments:



      enter image description here



      The caption should be aligned in the same height as the footnote.







      share|improve this question














      I am using sidewaysfigure environment to rotate my figures. However, they are not centered in the middle of the page. I can't use centering since I want that my footnote is "left aligned".



      Here is a short example:



      documentclass[a4paper,12pt]scrartcl
      usepackage[ngerman]babel
      usepackageamsthm
      usepackagemathtools

      usepackagerotating
      usepackagefloat


      begindocument
      beginsidewaysfigure
      captionFill
      includegraphics[width=0.9paperwidth]example-image-c
      footnotesize

      A long footnote
      labelfig:fill
      endsidewaysfigure
      enddocument


      The output of my "real example" with the code mentioned in the comments:



      enter image description here



      The caption should be aligned in the same height as the footnote.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 18 at 14:27









      CarLaTeX

      25.5k442110




      25.5k442110










      asked Aug 18 at 9:20









      Vala

      895




      895




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          There are a number of ways to achieve centering, or to overcome centering. Centering is achieved by setting leftskip and rightskip to hfil (more of less). You can also center an image by adding hfil to the left (and par to the right), or hfill before and after. One can overcome centering using parboxlinewidth... or makebox[linewidth][l]....



          BTW, inserting hfil between subfigures has a nice effect too.



          You also might consider using afterpage and pdflscape instead of sidewaysfigure (It displays the page so that the image is right-side-up.)



          documentclass[a4paper,12pt]scrartcl
          usepackage[ngerman]babel
          usepackageamsthm
          usepackagemathtools

          usepackagerotating
          usepackagefloat
          usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
          usepackageshowframe

          begindocument
          beginsidewaysfigure
          captionFilllabelfig:fill
          hfilincludegraphics[width=0.8linewidth]example-image-c% center inamge only

          footnotesize A long footnote
          endsidewaysfigure

          beginsidewaysfigure
          centering
          captionFilllabelfig:fill
          includegraphics[width=0.8linewidth]example-image-c
          parboxlinewidthfootnotesize A long footnote% justify footnote
          endsidewaysfigure
          enddocument





          share|improve this answer





























            up vote
            4
            down vote













            Measure the image and use a suitably sized tabular:



            documentclass[a4paper,12pt]scrartcl
            usepackage[ngerman]babel
            usepackageamsthm
            usepackagemathtools
            usepackagerotating

            newsaveboximagebox

            begindocument

            beginsidewaysfigure
            centering
            captionFilllabelfig:fill

            sboximageboxincludegraphics[width=0.9paperwidth]example-image-c
            begintabular@pwdimagebox@
            useboximagebox \
            footnotesize A long footnote, long footnote, long footnote,
            long footnote, long footnote, long footnote, long footnote,
            long footnote, long footnote, long footnote, long footnote,
            long footnote, long footnote
            endtabular
            endsidewaysfigure

            enddocument


            enter image description here



            Note that the label refers to caption, so it's best placed near it.



            A different realization with the caption left aligned with respect to the image:



            documentclass[a4paper,12pt]scrartcl
            usepackage[ngerman]babel
            usepackageamsthm
            usepackagemathtools
            usepackagerotating
            usepackageragged2e
            usepackage[
            format=plain,
            justification=RaggedRight,
            singlelinecheck=false
            ]caption

            newsaveboximagebox

            begindocument
            beginsidewaysfigure
            centering

            sboximageboxincludegraphics[width=0.9paperwidth]example-image-c

            beginminipagewdimagebox
            captionFilllabelfig:fill

            useboximagebox

            footnotesize A long footnote, long footnote, long footnote,
            long footnote, long footnote, long footnote, long footnote,
            long footnote, long footnote, long footnote, long footnote,
            long footnote, long footnote

            endminipage
            endsidewaysfigure

            enddocument


            enter image description here






            share|improve this answer






















            • Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
              – Vala
              Aug 18 at 11:41










            • @Vala Added code for your setup.
              – egreg
              Aug 18 at 17:19










            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%2f446534%2fcentering-inside-sidewaysfigure-with-footnote%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            5
            down vote



            accepted










            There are a number of ways to achieve centering, or to overcome centering. Centering is achieved by setting leftskip and rightskip to hfil (more of less). You can also center an image by adding hfil to the left (and par to the right), or hfill before and after. One can overcome centering using parboxlinewidth... or makebox[linewidth][l]....



            BTW, inserting hfil between subfigures has a nice effect too.



            You also might consider using afterpage and pdflscape instead of sidewaysfigure (It displays the page so that the image is right-side-up.)



            documentclass[a4paper,12pt]scrartcl
            usepackage[ngerman]babel
            usepackageamsthm
            usepackagemathtools

            usepackagerotating
            usepackagefloat
            usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
            usepackageshowframe

            begindocument
            beginsidewaysfigure
            captionFilllabelfig:fill
            hfilincludegraphics[width=0.8linewidth]example-image-c% center inamge only

            footnotesize A long footnote
            endsidewaysfigure

            beginsidewaysfigure
            centering
            captionFilllabelfig:fill
            includegraphics[width=0.8linewidth]example-image-c
            parboxlinewidthfootnotesize A long footnote% justify footnote
            endsidewaysfigure
            enddocument





            share|improve this answer


























              up vote
              5
              down vote



              accepted










              There are a number of ways to achieve centering, or to overcome centering. Centering is achieved by setting leftskip and rightskip to hfil (more of less). You can also center an image by adding hfil to the left (and par to the right), or hfill before and after. One can overcome centering using parboxlinewidth... or makebox[linewidth][l]....



              BTW, inserting hfil between subfigures has a nice effect too.



              You also might consider using afterpage and pdflscape instead of sidewaysfigure (It displays the page so that the image is right-side-up.)



              documentclass[a4paper,12pt]scrartcl
              usepackage[ngerman]babel
              usepackageamsthm
              usepackagemathtools

              usepackagerotating
              usepackagefloat
              usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
              usepackageshowframe

              begindocument
              beginsidewaysfigure
              captionFilllabelfig:fill
              hfilincludegraphics[width=0.8linewidth]example-image-c% center inamge only

              footnotesize A long footnote
              endsidewaysfigure

              beginsidewaysfigure
              centering
              captionFilllabelfig:fill
              includegraphics[width=0.8linewidth]example-image-c
              parboxlinewidthfootnotesize A long footnote% justify footnote
              endsidewaysfigure
              enddocument





              share|improve this answer
























                up vote
                5
                down vote



                accepted







                up vote
                5
                down vote



                accepted






                There are a number of ways to achieve centering, or to overcome centering. Centering is achieved by setting leftskip and rightskip to hfil (more of less). You can also center an image by adding hfil to the left (and par to the right), or hfill before and after. One can overcome centering using parboxlinewidth... or makebox[linewidth][l]....



                BTW, inserting hfil between subfigures has a nice effect too.



                You also might consider using afterpage and pdflscape instead of sidewaysfigure (It displays the page so that the image is right-side-up.)



                documentclass[a4paper,12pt]scrartcl
                usepackage[ngerman]babel
                usepackageamsthm
                usepackagemathtools

                usepackagerotating
                usepackagefloat
                usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                usepackageshowframe

                begindocument
                beginsidewaysfigure
                captionFilllabelfig:fill
                hfilincludegraphics[width=0.8linewidth]example-image-c% center inamge only

                footnotesize A long footnote
                endsidewaysfigure

                beginsidewaysfigure
                centering
                captionFilllabelfig:fill
                includegraphics[width=0.8linewidth]example-image-c
                parboxlinewidthfootnotesize A long footnote% justify footnote
                endsidewaysfigure
                enddocument





                share|improve this answer














                There are a number of ways to achieve centering, or to overcome centering. Centering is achieved by setting leftskip and rightskip to hfil (more of less). You can also center an image by adding hfil to the left (and par to the right), or hfill before and after. One can overcome centering using parboxlinewidth... or makebox[linewidth][l]....



                BTW, inserting hfil between subfigures has a nice effect too.



                You also might consider using afterpage and pdflscape instead of sidewaysfigure (It displays the page so that the image is right-side-up.)



                documentclass[a4paper,12pt]scrartcl
                usepackage[ngerman]babel
                usepackageamsthm
                usepackagemathtools

                usepackagerotating
                usepackagefloat
                usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                usepackageshowframe

                begindocument
                beginsidewaysfigure
                captionFilllabelfig:fill
                hfilincludegraphics[width=0.8linewidth]example-image-c% center inamge only

                footnotesize A long footnote
                endsidewaysfigure

                beginsidewaysfigure
                centering
                captionFilllabelfig:fill
                includegraphics[width=0.8linewidth]example-image-c
                parboxlinewidthfootnotesize A long footnote% justify footnote
                endsidewaysfigure
                enddocument






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 18 at 15:06

























                answered Aug 18 at 14:53









                John Kormylo

                40.5k12363




                40.5k12363




















                    up vote
                    4
                    down vote













                    Measure the image and use a suitably sized tabular:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating

                    newsaveboximagebox

                    begindocument

                    beginsidewaysfigure
                    centering
                    captionFilllabelfig:fill

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c
                    begintabular@pwdimagebox@
                    useboximagebox \
                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote
                    endtabular
                    endsidewaysfigure

                    enddocument


                    enter image description here



                    Note that the label refers to caption, so it's best placed near it.



                    A different realization with the caption left aligned with respect to the image:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating
                    usepackageragged2e
                    usepackage[
                    format=plain,
                    justification=RaggedRight,
                    singlelinecheck=false
                    ]caption

                    newsaveboximagebox

                    begindocument
                    beginsidewaysfigure
                    centering

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c

                    beginminipagewdimagebox
                    captionFilllabelfig:fill

                    useboximagebox

                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote

                    endminipage
                    endsidewaysfigure

                    enddocument


                    enter image description here






                    share|improve this answer






















                    • Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                      – Vala
                      Aug 18 at 11:41










                    • @Vala Added code for your setup.
                      – egreg
                      Aug 18 at 17:19














                    up vote
                    4
                    down vote













                    Measure the image and use a suitably sized tabular:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating

                    newsaveboximagebox

                    begindocument

                    beginsidewaysfigure
                    centering
                    captionFilllabelfig:fill

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c
                    begintabular@pwdimagebox@
                    useboximagebox \
                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote
                    endtabular
                    endsidewaysfigure

                    enddocument


                    enter image description here



                    Note that the label refers to caption, so it's best placed near it.



                    A different realization with the caption left aligned with respect to the image:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating
                    usepackageragged2e
                    usepackage[
                    format=plain,
                    justification=RaggedRight,
                    singlelinecheck=false
                    ]caption

                    newsaveboximagebox

                    begindocument
                    beginsidewaysfigure
                    centering

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c

                    beginminipagewdimagebox
                    captionFilllabelfig:fill

                    useboximagebox

                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote

                    endminipage
                    endsidewaysfigure

                    enddocument


                    enter image description here






                    share|improve this answer






















                    • Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                      – Vala
                      Aug 18 at 11:41










                    • @Vala Added code for your setup.
                      – egreg
                      Aug 18 at 17:19












                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    Measure the image and use a suitably sized tabular:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating

                    newsaveboximagebox

                    begindocument

                    beginsidewaysfigure
                    centering
                    captionFilllabelfig:fill

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c
                    begintabular@pwdimagebox@
                    useboximagebox \
                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote
                    endtabular
                    endsidewaysfigure

                    enddocument


                    enter image description here



                    Note that the label refers to caption, so it's best placed near it.



                    A different realization with the caption left aligned with respect to the image:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating
                    usepackageragged2e
                    usepackage[
                    format=plain,
                    justification=RaggedRight,
                    singlelinecheck=false
                    ]caption

                    newsaveboximagebox

                    begindocument
                    beginsidewaysfigure
                    centering

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c

                    beginminipagewdimagebox
                    captionFilllabelfig:fill

                    useboximagebox

                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote

                    endminipage
                    endsidewaysfigure

                    enddocument


                    enter image description here






                    share|improve this answer














                    Measure the image and use a suitably sized tabular:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating

                    newsaveboximagebox

                    begindocument

                    beginsidewaysfigure
                    centering
                    captionFilllabelfig:fill

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c
                    begintabular@pwdimagebox@
                    useboximagebox \
                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote
                    endtabular
                    endsidewaysfigure

                    enddocument


                    enter image description here



                    Note that the label refers to caption, so it's best placed near it.



                    A different realization with the caption left aligned with respect to the image:



                    documentclass[a4paper,12pt]scrartcl
                    usepackage[ngerman]babel
                    usepackageamsthm
                    usepackagemathtools
                    usepackagerotating
                    usepackageragged2e
                    usepackage[
                    format=plain,
                    justification=RaggedRight,
                    singlelinecheck=false
                    ]caption

                    newsaveboximagebox

                    begindocument
                    beginsidewaysfigure
                    centering

                    sboximageboxincludegraphics[width=0.9paperwidth]example-image-c

                    beginminipagewdimagebox
                    captionFilllabelfig:fill

                    useboximagebox

                    footnotesize A long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote, long footnote, long footnote,
                    long footnote, long footnote

                    endminipage
                    endsidewaysfigure

                    enddocument


                    enter image description here







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Aug 18 at 17:16

























                    answered Aug 18 at 10:27









                    egreg

                    680k8318073051




                    680k8318073051











                    • Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                      – Vala
                      Aug 18 at 11:41










                    • @Vala Added code for your setup.
                      – egreg
                      Aug 18 at 17:19
















                    • Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                      – Vala
                      Aug 18 at 11:41










                    • @Vala Added code for your setup.
                      – egreg
                      Aug 18 at 17:19















                    Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                    – Vala
                    Aug 18 at 11:41




                    Thanks. This works partially. The caption is now too "left aligned". I'll add the output of my real example. My caption options are:usepackage[format=plain, justification=RaggedRight, singlelinecheck=false]caption
                    – Vala
                    Aug 18 at 11:41












                    @Vala Added code for your setup.
                    – egreg
                    Aug 18 at 17:19




                    @Vala Added code for your setup.
                    – egreg
                    Aug 18 at 17:19

















                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f446534%2fcentering-inside-sidewaysfigure-with-footnote%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