Cropping white margins in document preview

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 working on a document using the book class, with the default font size of 10pt and default margins.



documentclass[oneside]book
usepackageblindtext

begindocument
blindtext
enddocument


I usually use Overleaf, or MiKTeX when the connection is shaky. Now, the "style" that I'm using is indeed the style that I want my final document to be in.



However, in the meantime, since I am on a 15" screen, I could really do away with those large white margins and have a better preview.



Just setting very thin margins with geometry is not what I'm looking for. I only want to crop the margins in the PDF preview, without changing the way the text looks.



The preview package with option setlengthPreviewBorder5pt is very close to what I'm aiming for, but only "in principle" since it always outputs a single page, which is not what I want.



I can try to explain it better if what I've said so far makes little sense, so do let me know.










share|improve this question

























    up vote
    3
    down vote

    favorite












    I am working on a document using the book class, with the default font size of 10pt and default margins.



    documentclass[oneside]book
    usepackageblindtext

    begindocument
    blindtext
    enddocument


    I usually use Overleaf, or MiKTeX when the connection is shaky. Now, the "style" that I'm using is indeed the style that I want my final document to be in.



    However, in the meantime, since I am on a 15" screen, I could really do away with those large white margins and have a better preview.



    Just setting very thin margins with geometry is not what I'm looking for. I only want to crop the margins in the PDF preview, without changing the way the text looks.



    The preview package with option setlengthPreviewBorder5pt is very close to what I'm aiming for, but only "in principle" since it always outputs a single page, which is not what I want.



    I can try to explain it better if what I've said so far makes little sense, so do let me know.










    share|improve this question























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I am working on a document using the book class, with the default font size of 10pt and default margins.



      documentclass[oneside]book
      usepackageblindtext

      begindocument
      blindtext
      enddocument


      I usually use Overleaf, or MiKTeX when the connection is shaky. Now, the "style" that I'm using is indeed the style that I want my final document to be in.



      However, in the meantime, since I am on a 15" screen, I could really do away with those large white margins and have a better preview.



      Just setting very thin margins with geometry is not what I'm looking for. I only want to crop the margins in the PDF preview, without changing the way the text looks.



      The preview package with option setlengthPreviewBorder5pt is very close to what I'm aiming for, but only "in principle" since it always outputs a single page, which is not what I want.



      I can try to explain it better if what I've said so far makes little sense, so do let me know.










      share|improve this question













      I am working on a document using the book class, with the default font size of 10pt and default margins.



      documentclass[oneside]book
      usepackageblindtext

      begindocument
      blindtext
      enddocument


      I usually use Overleaf, or MiKTeX when the connection is shaky. Now, the "style" that I'm using is indeed the style that I want my final document to be in.



      However, in the meantime, since I am on a 15" screen, I could really do away with those large white margins and have a better preview.



      Just setting very thin margins with geometry is not what I'm looking for. I only want to crop the margins in the PDF preview, without changing the way the text looks.



      The preview package with option setlengthPreviewBorder5pt is very close to what I'm aiming for, but only "in principle" since it always outputs a single page, which is not what I want.



      I can try to explain it better if what I've said so far makes little sense, so do let me know.







      margins






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 8 at 21:37









      prt13463

      1287




      1287




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          You can use the current width/height in the geometry options:



          documentclassbook
          usepackage[textwidth=textwidth,textheight=textheight,
          paperwidth=dimexprtextwidth+1cm,
          paperheight=dimexprtextheight+1cm]geometry
          begindocument

          thetextwidth quad thetextheight

          enddocument





          share|improve this answer




















          • This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
            – prt13463
            Dec 8 at 22:05


















          up vote
          0
          down vote













          The package geometry provides option to set text height, text width and margins. For example:



          usepackage[total=6.5in,8.75in,
          top=1mm, left=1mm,right=1mm, bottom=1mm]geometry


          This sets textwidth=6.5in and textheight=8.75in and margins to 1mm. One can adjust the margin to required amount keeping the text area constant. The page size will be adjusted accordingly.






          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: 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%2f463871%2fcropping-white-margins-in-document-preview%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            6
            down vote



            accepted










            You can use the current width/height in the geometry options:



            documentclassbook
            usepackage[textwidth=textwidth,textheight=textheight,
            paperwidth=dimexprtextwidth+1cm,
            paperheight=dimexprtextheight+1cm]geometry
            begindocument

            thetextwidth quad thetextheight

            enddocument





            share|improve this answer




















            • This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
              – prt13463
              Dec 8 at 22:05















            up vote
            6
            down vote



            accepted










            You can use the current width/height in the geometry options:



            documentclassbook
            usepackage[textwidth=textwidth,textheight=textheight,
            paperwidth=dimexprtextwidth+1cm,
            paperheight=dimexprtextheight+1cm]geometry
            begindocument

            thetextwidth quad thetextheight

            enddocument





            share|improve this answer




















            • This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
              – prt13463
              Dec 8 at 22:05













            up vote
            6
            down vote



            accepted







            up vote
            6
            down vote



            accepted






            You can use the current width/height in the geometry options:



            documentclassbook
            usepackage[textwidth=textwidth,textheight=textheight,
            paperwidth=dimexprtextwidth+1cm,
            paperheight=dimexprtextheight+1cm]geometry
            begindocument

            thetextwidth quad thetextheight

            enddocument





            share|improve this answer












            You can use the current width/height in the geometry options:



            documentclassbook
            usepackage[textwidth=textwidth,textheight=textheight,
            paperwidth=dimexprtextwidth+1cm,
            paperheight=dimexprtextheight+1cm]geometry
            begindocument

            thetextwidth quad thetextheight

            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 8 at 21:59









            Ulrike Fischer

            185k7289666




            185k7289666











            • This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
              – prt13463
              Dec 8 at 22:05

















            • This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
              – prt13463
              Dec 8 at 22:05
















            This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
            – prt13463
            Dec 8 at 22:05





            This is precisely what I was looking for. I have further reduced paperwidth and increased paperheight to +2.5cm so that headings and page numbers are also shown. Thank you.
            – prt13463
            Dec 8 at 22:05











            up vote
            0
            down vote













            The package geometry provides option to set text height, text width and margins. For example:



            usepackage[total=6.5in,8.75in,
            top=1mm, left=1mm,right=1mm, bottom=1mm]geometry


            This sets textwidth=6.5in and textheight=8.75in and margins to 1mm. One can adjust the margin to required amount keeping the text area constant. The page size will be adjusted accordingly.






            share|improve this answer
























              up vote
              0
              down vote













              The package geometry provides option to set text height, text width and margins. For example:



              usepackage[total=6.5in,8.75in,
              top=1mm, left=1mm,right=1mm, bottom=1mm]geometry


              This sets textwidth=6.5in and textheight=8.75in and margins to 1mm. One can adjust the margin to required amount keeping the text area constant. The page size will be adjusted accordingly.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                The package geometry provides option to set text height, text width and margins. For example:



                usepackage[total=6.5in,8.75in,
                top=1mm, left=1mm,right=1mm, bottom=1mm]geometry


                This sets textwidth=6.5in and textheight=8.75in and margins to 1mm. One can adjust the margin to required amount keeping the text area constant. The page size will be adjusted accordingly.






                share|improve this answer












                The package geometry provides option to set text height, text width and margins. For example:



                usepackage[total=6.5in,8.75in,
                top=1mm, left=1mm,right=1mm, bottom=1mm]geometry


                This sets textwidth=6.5in and textheight=8.75in and margins to 1mm. One can adjust the margin to required amount keeping the text area constant. The page size will be adjusted accordingly.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 8 at 21:53









                nidhin

                3,324927




                3,324927



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463871%2fcropping-white-margins-in-document-preview%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

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)