Re: [NTG-context] Invoice Example

2014-01-13 Thread john Culleton
On Mon, 13 Jan 2014 13:49:39 +0600
Henning Hraban Ramm te...@fiee.net wrote:

 
 Am 2014-01-02 um 21:07 schrieb
 hwit...@gmail.com:
 
__

There are horses for courses. I write invoices
using plain pdftex. Not much code required, I just
change the data fields for each new iteration. I
also use the antique TeXsis tables for structure.
Here is an example:
--
 \input TXSruled.tex
\def\today{\ifcase\month\or
January\or February\or March\or April\or
May\or June\or July\or August\or 
September \or October\or November\or December\fi
\space\number\day, \number\year}

\nopagenumbers
\parindent=0pt
\parskip=0pt
\font\bigss=cmss17 at 25pt
\centerline{\bigss INVOICE}
\noncenteredtables
\vskip .25in
\hrule height 1.5pt 
\bigskip
\line{\hfill Date: \today}
\vskip .25in
\line{\ruledtable
VENDOR \cr
John Culleton \hfill\crnorule
2401 Haight Avenue\hfill\crnorule
Eldersburg, MD 21784 \hfill\endruledtable
\hfill
\ruledtable
CUSTOMER\cr
Independent Contract Services\hfill\crnorule
Landmark Community Newspapers\hfill\crnorule
Carroll County Times\hfill\crnorule
P.O. Box 346\hfill\crnorule
Westminster, MD 21158\hfill\endruledtable
}
\centeredtables
\bigskip
\ruledtable
Item\dbl Desc|Date |Amount \cr
  1 \dbl \para{Column}| Dec 10 2013|\$40.00*  \cr
  2 \dbl \para{Column}| Dec 24 2013|\$40.00  \cr
\dbl \multispan2 \hfil TOTAL: |
\$80.00\endruledtable \def\uline#1{\vrule height
0pt depth .75pt width #1 in}


\centerline{\bf DIRECT DEPOSIT HAS BEEN REQUESTED}
{\baselineskip=25pt
\vskip 30pt

Signed:\uline{2}
\vskip 30pt

Approved:\uline{2} \hfill Approved Date:\uline{1.5}\break} 
%%Begin addressing code for reverse side.
\vfil\eject\null
\vskip -.5in
\moveleft .75truein
\vbox{{\bf John Culleton}\par
2401 Haight Ave\par
Eldersburg MD 21784\par
}
\vskip 30pt
\moveright 3truein
\vbox{\obeylines
Independent Contract Services
Landmark Community Newspapers
Carroll County Times
P.O. Box 346
Westminster, MD 21158
}\vfill
\bye
--
 I print the first page, flip the
 paper, print the address info, and fold the
 paper into threes. Glue the edge, affix a stamp
 and mail.

Run the above code and look at the results. 

-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: Create Book Covers with Scribus
available at
http://www.booklocker.com/books/4055.html
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Invoice Example

2014-01-12 Thread Henning Hraban Ramm

Am 2014-01-02 um 21:07 schrieb hwit...@gmail.com:

 
 I copied the three files required for the invoice example on the wiki garden.
 
  invoice.tex,  invoicefunctions.tex, adn invoicesetup.tex
 
 $ context  invoice.tex
 
 The above compiles without error, but the resulting pdf doesn't give me what 
 I would expect.  There is a 
 
  Regression in latest release of iT E X  
 
 In the main body of the document, which I don't think should be there.
 
 My setup: mtx-context | current version: 2013.09.03 16:23
 
 Is the source out of date with the context version I am using or am I missing 
 something?

Hi anonymous,

I finally came to checking that code - it was still written for an old version 
of Wolfgang’s letter module.
Now it’s updated to work with the latest. Feel free to fix remaining errors 
yourself.
http://wiki.contextgarden.net/Invoice

To adapt it for your own purposes you’ll need to learn to use the letter module 
(or bug Wolfgang to help you ;-)


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___