Git Product home page Git Product logo

inv's Introduction

Invoice Generator and Troff Macros for Writing Letters

Copyright (c) 2024 Vadim Vygonets <[email protected]>

The invoice generator is a document preprocessor and a troff
macro package for invoices.  The inv preprocessor turns a list
of billed items into tbl source.  The −minv macro package
provides facilities for invoice headers and footers and date
manipulation in letters written using −ms and −mail macros.

The −mail troff macro package is an add‐on to −ms for writing
letters.  The macros provide facilities for formatting the
address block and using the limited space around it.

Example invoice source:

    .In 2024001 29.02.2024
    .Ad "Client GmbH"
    Geile Str. 0
    00000 Gutdorf
    .Ae
    .Tax 19
    .Charge 100 8 Hours Mindless keyboard bashing
    .Charge 50 2 Hours Playing with oscilloscopes

== Documentation

To build doc/manual.pdf and doc/using-mail.pdf run:

    make -C doc

== Quick start: invoice

    cp inc/conf-example.t inc/conf.t
    $EDITOR inc/conf.t
    mkdir dir
    cd dir
    cp ../inc/Makefile .
    cp ../examples/invoice.ms file.ms
    # or ../examples/letter.ms
    $EDITOR file.ms
    make file.pdf

Permanent setup:

    mkdir ~/.inv
    cp inc/inv inc/tmac.inv inc/tmac.ail ~/.inv
    cp inc/conf-example.t ~/.inv/conf.t
    $EDITOR ~/.inv/conf.t
    # in your shell startup file:
    export INVDIR=$HOME/.inv

== Quick start: -mail

The above will also work for letters.  If you don't plan to
generate invoices, use the simpler setup below.

    mkdir dir
    cd dir
    cp ../mail/Makefile ../mail/conf.t .
    $EDITOR conf.t
    cp ../examples/letter.ms file.ms
    $EDITOR file.ms
    make file.pdf

Permanent setup:

    mkdir ~/.ail
    cp inc/tmac.ail mail/conf.t ~/.ail
    $EDITOR ~/.ail/conf.t

== inc/Makefile and mail/Makefile

The default make target builds a .pdf for every .ms file in the
directory.  The clean target is intentionally commented out.

inv's People

Contributors

unixdj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.