How to span the invoice table across whole page











up vote
1
down vote

favorite












I have the below invoice table but it does not fill the whole with of the page.
How is it possible to span the invoice table across whole page width and respecting the margin so more content could fit in the cell?



begin{invoice}{Euro}{0}
ProjectTitle{Example Project}%
Fee{Development gjgjgj bkgkub kgkugk jhgjgj jkhkjgjkb lhkhkjhjk khh} {1000.00} {1}
end{invoice}


enter image description here










share|improve this question


























    up vote
    1
    down vote

    favorite












    I have the below invoice table but it does not fill the whole with of the page.
    How is it possible to span the invoice table across whole page width and respecting the margin so more content could fit in the cell?



    begin{invoice}{Euro}{0}
    ProjectTitle{Example Project}%
    Fee{Development gjgjgj bkgkub kgkugk jhgjgj jkhkjgjkb lhkhkjhjk khh} {1000.00} {1}
    end{invoice}


    enter image description here










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have the below invoice table but it does not fill the whole with of the page.
      How is it possible to span the invoice table across whole page width and respecting the margin so more content could fit in the cell?



      begin{invoice}{Euro}{0}
      ProjectTitle{Example Project}%
      Fee{Development gjgjgj bkgkub kgkugk jhgjgj jkhkjgjkb lhkhkjhjk khh} {1000.00} {1}
      end{invoice}


      enter image description here










      share|improve this question













      I have the below invoice table but it does not fill the whole with of the page.
      How is it possible to span the invoice table across whole page width and respecting the margin so more content could fit in the cell?



      begin{invoice}{Euro}{0}
      ProjectTitle{Example Project}%
      Fee{Development gjgjgj bkgkub kgkugk jhgjgj jkhkjgjkb lhkhkjhjk khh} {1000.00} {1}
      end{invoice}


      enter image description here







      invoice






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 21 '16 at 5:37









      user977828

      1575




      1575






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Here is a very rough solution to the problem. Probably this can be seriously simplified using patching tools, hopefully someone will do.



          The problem with the invoice package is that it defines the width of the activity field as 5cm:



              begin{longtable}{p{5cm}lrrr}%


          and doesn't seem to give an option to change this. In the following code, I've added another argument to the invoice environment to adjust this width. You can find the new invoice.sty here (select the invoice.sty file), just save it with the same name in your working folder. Now, the invoice environment will take a third argument for the width:



          documentclass{article}
          usepackage{invoice}
          usepackage{lipsum}

          begin{document}
          lipsum[1]
          begin{invoice}{Euro}{0}{6}
          ProjectTitle{Example Project}%
          Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
          end{invoice}
          end{document}


          You will get:
          enter image description here
          You can adjust the width to fit the page.






          share|improve this answer





















          • invoice.sty -> "Restricted, sorry you don't have permission to load this page."
            – pds
            1 hour ago










          • Added the edit to invoice.sty in an answer below for future LaTeX'ers.
            – pds
            1 hour ago


















          up vote
          0
          down vote













          Further to @jak123's answer - you can edit the invoice.sty file to pass in a width argument.



          A typical location for installed packages via MikTex on Windows is at: ProgramsMiKTeX 2.9texlatexinvoiceinvoice.sty



          Before: (invoice.sty)



          %% Approx at line 228 %%

          newenvironment{my@invoice}[2]{%

          %%... various definitions ...

          begin{longtable}{p{5cm}lrrr}%


          After: (invoice.sty)



          %% Approx at line 228 %%

          newenvironment{my@invoice}[3]{%

          %%... various definitions ...

          begin{longtable}{p{#3cm}lrrr}%


          The #3 refers to the third argument's value in the invoice environment. It's value replaces the #3 parameter directly, as when you pass 10 as the 3rd argument, #3cm becomes 10cm.



          Usage: (myinvoice.tex)



          documentclass{article}
          usepackage{invoice}
          usepackage{lipsum}

          begin{document}
          lipsum[1]
          begin{invoice}{Euro}{0}{10}
          ProjectTitle{Example Project}%
          Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
          end{invoice}
          end{document}





          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%2f288672%2fhow-to-span-the-invoice-table-across-whole-page%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
            1
            down vote



            accepted










            Here is a very rough solution to the problem. Probably this can be seriously simplified using patching tools, hopefully someone will do.



            The problem with the invoice package is that it defines the width of the activity field as 5cm:



                begin{longtable}{p{5cm}lrrr}%


            and doesn't seem to give an option to change this. In the following code, I've added another argument to the invoice environment to adjust this width. You can find the new invoice.sty here (select the invoice.sty file), just save it with the same name in your working folder. Now, the invoice environment will take a third argument for the width:



            documentclass{article}
            usepackage{invoice}
            usepackage{lipsum}

            begin{document}
            lipsum[1]
            begin{invoice}{Euro}{0}{6}
            ProjectTitle{Example Project}%
            Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
            end{invoice}
            end{document}


            You will get:
            enter image description here
            You can adjust the width to fit the page.






            share|improve this answer





















            • invoice.sty -> "Restricted, sorry you don't have permission to load this page."
              – pds
              1 hour ago










            • Added the edit to invoice.sty in an answer below for future LaTeX'ers.
              – pds
              1 hour ago















            up vote
            1
            down vote



            accepted










            Here is a very rough solution to the problem. Probably this can be seriously simplified using patching tools, hopefully someone will do.



            The problem with the invoice package is that it defines the width of the activity field as 5cm:



                begin{longtable}{p{5cm}lrrr}%


            and doesn't seem to give an option to change this. In the following code, I've added another argument to the invoice environment to adjust this width. You can find the new invoice.sty here (select the invoice.sty file), just save it with the same name in your working folder. Now, the invoice environment will take a third argument for the width:



            documentclass{article}
            usepackage{invoice}
            usepackage{lipsum}

            begin{document}
            lipsum[1]
            begin{invoice}{Euro}{0}{6}
            ProjectTitle{Example Project}%
            Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
            end{invoice}
            end{document}


            You will get:
            enter image description here
            You can adjust the width to fit the page.






            share|improve this answer





















            • invoice.sty -> "Restricted, sorry you don't have permission to load this page."
              – pds
              1 hour ago










            • Added the edit to invoice.sty in an answer below for future LaTeX'ers.
              – pds
              1 hour ago













            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted






            Here is a very rough solution to the problem. Probably this can be seriously simplified using patching tools, hopefully someone will do.



            The problem with the invoice package is that it defines the width of the activity field as 5cm:



                begin{longtable}{p{5cm}lrrr}%


            and doesn't seem to give an option to change this. In the following code, I've added another argument to the invoice environment to adjust this width. You can find the new invoice.sty here (select the invoice.sty file), just save it with the same name in your working folder. Now, the invoice environment will take a third argument for the width:



            documentclass{article}
            usepackage{invoice}
            usepackage{lipsum}

            begin{document}
            lipsum[1]
            begin{invoice}{Euro}{0}{6}
            ProjectTitle{Example Project}%
            Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
            end{invoice}
            end{document}


            You will get:
            enter image description here
            You can adjust the width to fit the page.






            share|improve this answer












            Here is a very rough solution to the problem. Probably this can be seriously simplified using patching tools, hopefully someone will do.



            The problem with the invoice package is that it defines the width of the activity field as 5cm:



                begin{longtable}{p{5cm}lrrr}%


            and doesn't seem to give an option to change this. In the following code, I've added another argument to the invoice environment to adjust this width. You can find the new invoice.sty here (select the invoice.sty file), just save it with the same name in your working folder. Now, the invoice environment will take a third argument for the width:



            documentclass{article}
            usepackage{invoice}
            usepackage{lipsum}

            begin{document}
            lipsum[1]
            begin{invoice}{Euro}{0}{6}
            ProjectTitle{Example Project}%
            Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
            end{invoice}
            end{document}


            You will get:
            enter image description here
            You can adjust the width to fit the page.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 21 '16 at 7:12









            jak123

            2,27111233




            2,27111233












            • invoice.sty -> "Restricted, sorry you don't have permission to load this page."
              – pds
              1 hour ago










            • Added the edit to invoice.sty in an answer below for future LaTeX'ers.
              – pds
              1 hour ago


















            • invoice.sty -> "Restricted, sorry you don't have permission to load this page."
              – pds
              1 hour ago










            • Added the edit to invoice.sty in an answer below for future LaTeX'ers.
              – pds
              1 hour ago
















            invoice.sty -> "Restricted, sorry you don't have permission to load this page."
            – pds
            1 hour ago




            invoice.sty -> "Restricted, sorry you don't have permission to load this page."
            – pds
            1 hour ago












            Added the edit to invoice.sty in an answer below for future LaTeX'ers.
            – pds
            1 hour ago




            Added the edit to invoice.sty in an answer below for future LaTeX'ers.
            – pds
            1 hour ago










            up vote
            0
            down vote













            Further to @jak123's answer - you can edit the invoice.sty file to pass in a width argument.



            A typical location for installed packages via MikTex on Windows is at: ProgramsMiKTeX 2.9texlatexinvoiceinvoice.sty



            Before: (invoice.sty)



            %% Approx at line 228 %%

            newenvironment{my@invoice}[2]{%

            %%... various definitions ...

            begin{longtable}{p{5cm}lrrr}%


            After: (invoice.sty)



            %% Approx at line 228 %%

            newenvironment{my@invoice}[3]{%

            %%... various definitions ...

            begin{longtable}{p{#3cm}lrrr}%


            The #3 refers to the third argument's value in the invoice environment. It's value replaces the #3 parameter directly, as when you pass 10 as the 3rd argument, #3cm becomes 10cm.



            Usage: (myinvoice.tex)



            documentclass{article}
            usepackage{invoice}
            usepackage{lipsum}

            begin{document}
            lipsum[1]
            begin{invoice}{Euro}{0}{10}
            ProjectTitle{Example Project}%
            Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
            end{invoice}
            end{document}





            share|improve this answer

























              up vote
              0
              down vote













              Further to @jak123's answer - you can edit the invoice.sty file to pass in a width argument.



              A typical location for installed packages via MikTex on Windows is at: ProgramsMiKTeX 2.9texlatexinvoiceinvoice.sty



              Before: (invoice.sty)



              %% Approx at line 228 %%

              newenvironment{my@invoice}[2]{%

              %%... various definitions ...

              begin{longtable}{p{5cm}lrrr}%


              After: (invoice.sty)



              %% Approx at line 228 %%

              newenvironment{my@invoice}[3]{%

              %%... various definitions ...

              begin{longtable}{p{#3cm}lrrr}%


              The #3 refers to the third argument's value in the invoice environment. It's value replaces the #3 parameter directly, as when you pass 10 as the 3rd argument, #3cm becomes 10cm.



              Usage: (myinvoice.tex)



              documentclass{article}
              usepackage{invoice}
              usepackage{lipsum}

              begin{document}
              lipsum[1]
              begin{invoice}{Euro}{0}{10}
              ProjectTitle{Example Project}%
              Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
              end{invoice}
              end{document}





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                Further to @jak123's answer - you can edit the invoice.sty file to pass in a width argument.



                A typical location for installed packages via MikTex on Windows is at: ProgramsMiKTeX 2.9texlatexinvoiceinvoice.sty



                Before: (invoice.sty)



                %% Approx at line 228 %%

                newenvironment{my@invoice}[2]{%

                %%... various definitions ...

                begin{longtable}{p{5cm}lrrr}%


                After: (invoice.sty)



                %% Approx at line 228 %%

                newenvironment{my@invoice}[3]{%

                %%... various definitions ...

                begin{longtable}{p{#3cm}lrrr}%


                The #3 refers to the third argument's value in the invoice environment. It's value replaces the #3 parameter directly, as when you pass 10 as the 3rd argument, #3cm becomes 10cm.



                Usage: (myinvoice.tex)



                documentclass{article}
                usepackage{invoice}
                usepackage{lipsum}

                begin{document}
                lipsum[1]
                begin{invoice}{Euro}{0}{10}
                ProjectTitle{Example Project}%
                Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
                end{invoice}
                end{document}





                share|improve this answer












                Further to @jak123's answer - you can edit the invoice.sty file to pass in a width argument.



                A typical location for installed packages via MikTex on Windows is at: ProgramsMiKTeX 2.9texlatexinvoiceinvoice.sty



                Before: (invoice.sty)



                %% Approx at line 228 %%

                newenvironment{my@invoice}[2]{%

                %%... various definitions ...

                begin{longtable}{p{5cm}lrrr}%


                After: (invoice.sty)



                %% Approx at line 228 %%

                newenvironment{my@invoice}[3]{%

                %%... various definitions ...

                begin{longtable}{p{#3cm}lrrr}%


                The #3 refers to the third argument's value in the invoice environment. It's value replaces the #3 parameter directly, as when you pass 10 as the 3rd argument, #3cm becomes 10cm.



                Usage: (myinvoice.tex)



                documentclass{article}
                usepackage{invoice}
                usepackage{lipsum}

                begin{document}
                lipsum[1]
                begin{invoice}{Euro}{0}{10}
                ProjectTitle{Example Project}%
                Fee{Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,vestibulum ut, placerat ac, adipiscing vitae, felis} {1000.00} {1}
                end{invoice}
                end{document}






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                pds

                15114




                15114






























                    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%2f288672%2fhow-to-span-the-invoice-table-across-whole-page%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

                    Contact image not getting when fetch all contact list from iPhone by CNContact

                    count number of partitions of a set with n elements into k subsets

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks