Wednesday, April 8, 2009

Genital Herpes Look Alikes

Until my early college years was still infected with virus WYSIWYG ("What you see is What You Get", which is more or less "what you see is the end result), ie using Office (particularly Microsoft Word ) to my documents. I was cured in those years when I met LaTeX. Today, when it comes to documents, always use LaTeX. In particular, I have a couple of years doing my "invoices" (fees receipts) in LaTeX.

One thing that always bothered me these "invoices" is that values are changing: some months I have to count days of work because she was absent for any reason. I crafted this for too long, and yesterday I decided that was enough. So I set to invStyx how to make it a little easier.

I solved with the help of two people who answered my plea for help on the mailing list linux@listas.inf.utfsm.cl (thank you very much Pablo Jiménez and Poo Germain) and a good time to search the site Tex Users tug.org Group. My final solution uses two LaTeX packages that previously did not know: the first is fltpoint for calculation in this way:

 \\ usepackage {fltpoint} \\ fpDecimalSign {.} \\ Newcommand {\\ invoiceunitvalue} {250} \\ newcommand { \\ invoicefactor} {0.80} \\ fpMul {\\ invoicevalue} {\\ invoiceunitvalue} {\\} 

invoicefactorunitx:


\\ usepackage {siunitx} \\ {fixdp sisetup, dp = 2} \\ num {\\}

invoicevalue
 As an example, below is the complete code of an invoice LaTeX: 




a sample invoice \\ documentclass [12pt] {article} \\ usepackage [latin1] {inputenc} \\ usepackage {times} \\ usepackage {fltpoint} \\ usepackage {siunitx} \\ fpDecimalSign {.} \\ newcommand {\\ invoiceperiod} {March 2009} \\ newcommand { \\ invoiceunitvalue} {500} \\ newcommand {\\ invoicefactor} {0.8} \\ fpMul {\\ invoicevalue} {\\ invoiceunitvalue} {\\ invoicefactor} \\ {fixdp sisetup, dp = 2} \\ begin {document} \\ pagestyle {empty} {\\ LARGE Invoice for Services Rendered Programming} \\ vskip 1cm \\ begin {tabular} {ll} {\\ bf} & Client Command Prompt, Inc. \\ \\ {\\ bf Date} & \\ today \\ \\ {\\ bf Invo

0 comments:

Post a Comment