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}
invoice
add a comment |
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}
invoice
add a comment |
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}
invoice
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}
invoice
invoice
asked Jan 21 '16 at 5:37
user977828
1575
1575
add a comment |
add a comment |
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:
You can adjust the width to fit the page.
invoice.sty -> "Restricted, sorry you don't have permission to load this page."
– pds
1 hour ago
Added the edit toinvoice.sty
in an answer below for future LaTeX'ers.
– pds
1 hour ago
add a comment |
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}
add a comment |
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:
You can adjust the width to fit the page.
invoice.sty -> "Restricted, sorry you don't have permission to load this page."
– pds
1 hour ago
Added the edit toinvoice.sty
in an answer below for future LaTeX'ers.
– pds
1 hour ago
add a comment |
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:
You can adjust the width to fit the page.
invoice.sty -> "Restricted, sorry you don't have permission to load this page."
– pds
1 hour ago
Added the edit toinvoice.sty
in an answer below for future LaTeX'ers.
– pds
1 hour ago
add a comment |
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:
You can adjust the width to fit the page.
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:
You can adjust the width to fit the page.
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 toinvoice.sty
in an answer below for future LaTeX'ers.
– pds
1 hour ago
add a comment |
invoice.sty -> "Restricted, sorry you don't have permission to load this page."
– pds
1 hour ago
Added the edit toinvoice.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
add a comment |
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}
add a comment |
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}
add a comment |
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}
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}
answered 1 hour ago
pds
15114
15114
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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