ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: john Culleton <John@wexfordpress.com>
To: ntg-context@ntg.nl
Subject: Re: Invoice Example
Date: Mon, 13 Jan 2014 19:13:48 -0500	[thread overview]
Message-ID: <20140113191348.6e902b95@localb.wexfordpress.net> (raw)
In-Reply-To: <963C6B1D-6DE7-4A98-8F18-56C629E6987F@fiee.net>

On Mon, 13 Jan 2014 13:49:39 +0600
Henning Hraban Ramm <texml@fiee.net> wrote:

> 
> Am 2014-01-02 um 21:07 schrieb
> hwitloc@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
___________________________________________________________________________________


      reply	other threads:[~2014-01-14  0:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-02 15:07 [***SPAM***] " hwitloc
2014-01-03 11:20 ` Henning Hraban Ramm
2014-01-13  7:49 ` Henning Hraban Ramm
2014-01-14  0:13   ` john Culleton [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140113191348.6e902b95@localb.wexfordpress.net \
    --to=john@wexfordpress.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).