Invoice class: how to change currency












4















I just wondering if anyone familiar with the invoice class could show me how to change the currency from dollars into pounds. Below is the code needed-I wish to change the dollars in the table into pounds. Note that I got this file from this link. The invoice.cls file is needed to compile this document. I've had a look at this link but it doesn't really explain how to do this in other currencies.



documentclass{invoice}

def tab {hspace*{3ex}}

begin{document}

hfil{Hugebf Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bf Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bf Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}









share|improve this question

























  • @CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

    – John_dydx
    Jun 30 '15 at 17:29
















4















I just wondering if anyone familiar with the invoice class could show me how to change the currency from dollars into pounds. Below is the code needed-I wish to change the dollars in the table into pounds. Note that I got this file from this link. The invoice.cls file is needed to compile this document. I've had a look at this link but it doesn't really explain how to do this in other currencies.



documentclass{invoice}

def tab {hspace*{3ex}}

begin{document}

hfil{Hugebf Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bf Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bf Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}









share|improve this question

























  • @CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

    – John_dydx
    Jun 30 '15 at 17:29














4












4








4


1






I just wondering if anyone familiar with the invoice class could show me how to change the currency from dollars into pounds. Below is the code needed-I wish to change the dollars in the table into pounds. Note that I got this file from this link. The invoice.cls file is needed to compile this document. I've had a look at this link but it doesn't really explain how to do this in other currencies.



documentclass{invoice}

def tab {hspace*{3ex}}

begin{document}

hfil{Hugebf Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bf Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bf Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}









share|improve this question
















I just wondering if anyone familiar with the invoice class could show me how to change the currency from dollars into pounds. Below is the code needed-I wish to change the dollars in the table into pounds. Note that I got this file from this link. The invoice.cls file is needed to compile this document. I've had a look at this link but it doesn't really explain how to do this in other currencies.



documentclass{invoice}

def tab {hspace*{3ex}}

begin{document}

hfil{Hugebf Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bf Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bf Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}






symbols invoice






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 30 '15 at 17:34







John_dydx

















asked Jun 30 '15 at 17:19









John_dydxJohn_dydx

1981413




1981413













  • @CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

    – John_dydx
    Jun 30 '15 at 17:29



















  • @CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

    – John_dydx
    Jun 30 '15 at 17:29

















@CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

– John_dydx
Jun 30 '15 at 17:29





@CarlosViegas, thanks for that works like magic. i was initially trying the suggestion in the link provided but wasnt working. Cheers!

– John_dydx
Jun 30 '15 at 17:29










2 Answers
2






active

oldest

votes


















6














The use of dollar signs is hard-coded in the template as $. If you want a complete replacement of $ with £, you can add



renewcommand{$}{pounds}


to your preamble.



enter image description here



documentclass{invoice}

deftab{hspace*{3ex}}
renewcommand{$}{pounds}% $ -> £
begin{document}

hfil{Hugebfseries Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bfseries Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bfseries Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}





share|improve this answer
























  • Great, even easier than changing individual $ symbol.

    – John_dydx
    Jun 30 '15 at 17:31











  • @John Yes, it is. :)

    – Carlos Viegas
    Jun 30 '15 at 17:32



















4














You need to edit invoice.cls and look for $ and change it for whatever you want. Probably change to pounds. Take a look at lines 62, 69, 74, 80 and 107.






share|improve this answer



















  • 4





    Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

    – egreg
    Jun 30 '15 at 17:37











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',
autoActivateHeartbeat: false,
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%2f253012%2finvoice-class-how-to-change-currency%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









6














The use of dollar signs is hard-coded in the template as $. If you want a complete replacement of $ with £, you can add



renewcommand{$}{pounds}


to your preamble.



enter image description here



documentclass{invoice}

deftab{hspace*{3ex}}
renewcommand{$}{pounds}% $ -> £
begin{document}

hfil{Hugebfseries Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bfseries Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bfseries Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}





share|improve this answer
























  • Great, even easier than changing individual $ symbol.

    – John_dydx
    Jun 30 '15 at 17:31











  • @John Yes, it is. :)

    – Carlos Viegas
    Jun 30 '15 at 17:32
















6














The use of dollar signs is hard-coded in the template as $. If you want a complete replacement of $ with £, you can add



renewcommand{$}{pounds}


to your preamble.



enter image description here



documentclass{invoice}

deftab{hspace*{3ex}}
renewcommand{$}{pounds}% $ -> £
begin{document}

hfil{Hugebfseries Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bfseries Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bfseries Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}





share|improve this answer
























  • Great, even easier than changing individual $ symbol.

    – John_dydx
    Jun 30 '15 at 17:31











  • @John Yes, it is. :)

    – Carlos Viegas
    Jun 30 '15 at 17:32














6












6








6







The use of dollar signs is hard-coded in the template as $. If you want a complete replacement of $ with £, you can add



renewcommand{$}{pounds}


to your preamble.



enter image description here



documentclass{invoice}

deftab{hspace*{3ex}}
renewcommand{$}{pounds}% $ -> £
begin{document}

hfil{Hugebfseries Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bfseries Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bfseries Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}





share|improve this answer













The use of dollar signs is hard-coded in the template as $. If you want a complete replacement of $ with £, you can add



renewcommand{$}{pounds}


to your preamble.



enter image description here



documentclass{invoice}

deftab{hspace*{3ex}}
renewcommand{$}{pounds}% $ -> £
begin{document}

hfil{Hugebfseries Initech Inc.}hfil
bigskipbreak % Whitespace
hrule % Horizontal line

123 Broadway hfill (000) 111-1111 \
City, State 12345 hfill john@smith.com
\ \
{bfseries Invoice To:} \
tab James Smith \ % Invoice recipient
tab Generic Corporation \ % Recipient's company

{bfseries Date:} \
tab today \

begin{invoiceTable}

feetype{Consulting Services}

hourrow{October 3, 2012}{8}{12}
hourrow{October 4, 2012}{6.5}{12}
hourrow{October 5, 2012}{5.25}{12}
hourrow{October 10, 2012}{9.75}{20}
hourrow{October 11, 2012}{5}{12.51}

feetype{Accounting Services} % Fee category description

hourrow{October 10, 2012}{2}{80}
hourrow{October 11, 2012}{1}{80}

feetype{Hosting Expenses}

feerow{Web Hosting: October, 2012}{60}

end{invoiceTable}
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 30 '15 at 17:28









WernerWerner

448k709911697




448k709911697













  • Great, even easier than changing individual $ symbol.

    – John_dydx
    Jun 30 '15 at 17:31











  • @John Yes, it is. :)

    – Carlos Viegas
    Jun 30 '15 at 17:32



















  • Great, even easier than changing individual $ symbol.

    – John_dydx
    Jun 30 '15 at 17:31











  • @John Yes, it is. :)

    – Carlos Viegas
    Jun 30 '15 at 17:32

















Great, even easier than changing individual $ symbol.

– John_dydx
Jun 30 '15 at 17:31





Great, even easier than changing individual $ symbol.

– John_dydx
Jun 30 '15 at 17:31













@John Yes, it is. :)

– Carlos Viegas
Jun 30 '15 at 17:32





@John Yes, it is. :)

– Carlos Viegas
Jun 30 '15 at 17:32











4














You need to edit invoice.cls and look for $ and change it for whatever you want. Probably change to pounds. Take a look at lines 62, 69, 74, 80 and 107.






share|improve this answer



















  • 4





    Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

    – egreg
    Jun 30 '15 at 17:37
















4














You need to edit invoice.cls and look for $ and change it for whatever you want. Probably change to pounds. Take a look at lines 62, 69, 74, 80 and 107.






share|improve this answer



















  • 4





    Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

    – egreg
    Jun 30 '15 at 17:37














4












4








4







You need to edit invoice.cls and look for $ and change it for whatever you want. Probably change to pounds. Take a look at lines 62, 69, 74, 80 and 107.






share|improve this answer













You need to edit invoice.cls and look for $ and change it for whatever you want. Probably change to pounds. Take a look at lines 62, 69, 74, 80 and 107.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 30 '15 at 17:29









Carlos ViegasCarlos Viegas

751415




751415








  • 4





    Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

    – egreg
    Jun 30 '15 at 17:37














  • 4





    Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

    – egreg
    Jun 30 '15 at 17:37








4




4





Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

– egreg
Jun 30 '15 at 17:37





Better yet, the explicit $ should become something like invoice@currency, with the addition newcommand{setinvoicecurrency}[1]{definvoice@currency{#1}} and setinvoicecurrency{$} to end the class, so users can add setinvoicecurrency{pounds} (or whatever symbol) in their documents, to change the default.

– egreg
Jun 30 '15 at 17:37


















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f253012%2finvoice-class-how-to-change-currency%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

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents