ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jan U. Hasecke" <juh+ntg-context@mailbox.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Lost in letter module
Date: Tue, 9 Feb 2016 12:01:51 +0100	[thread overview]
Message-ID: <56B9C71F.5030607@mailbox.org> (raw)

Hi all,

I am completely lost in the letter module.

I started with the tutorial "Correspondence with ConTEXt Version:
2010.08.27" but reference line does not show up at all.

So I read a little further:
http://wiki.contextgarden.net/Letter
And the PDFs that are linked under "Further information"

But I fear that I am now completely lost as some commands seems to be
old or deprecated or whatever, but they simply does not work. And there
are references to new commands in the text.

What I am trying to get is a letter with first and second page style,
where on the first page I need a special foot with accounting infos etc.

Including a background file (uncommented in the mwe) works fine.

I need a references line for customer id, invoice id and date just above
the subject.

I don't understand the setupletterlayer command as you can see in the
mwe where I use a negative value for x to push it to the right position.
I have no idea how x and y are working and what position is for.

The same is true for \setupletterframe.


I am using: Version beta-0.89.0 (TeX Live 2016/dev

Here is my mwe:

\mainlanguage[de]
\usemodule[letter]
\useletterstyle{dinb}
\setupletteroptions
  [%backgroundimage=/home/juh/Bilder/Diverses/Hintergrund.png,
   language=german]

\defineletterelement[layer][reference][rechnung]
                    {Kundennummer: \correspondenceparameter{kd} \|
Rechnungnummer: \correspondenceparameter{id}}

\setupletterlayer[reference]
                 [ alternative=rechnung,
                   style=\tfx\sans,y=10pt,
                   x=-63mm,
                   y=100mm,
                   position=topleft]

\setupletterframe[reference][align=left]

\setupletter
  [toname={Mustermann GmbH\\Peter Mustermann},
  toaddress={Haubenweg 3\\12345 Musterstadt},
  signature={Jan Ulrich Hasecke},
  date=\currentdate,
  kd={077},
  id={2016002}]

\starttext
\startletter
  [opening={Sehr geehrte Damen und Herren},
    closing={Mit freundlichen Grüßen},
  subject={Imagebroschüre Mustermann GmbH}]

Hiermit berechne ich Ihnen 100 € für Leistungen.

\stopletter
\stoptext
___________________________________________________________________________________
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:[~2016-02-09 11:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=56B9C71F.5030607@mailbox.org \
    --to=juh+ntg-context@mailbox.org \
    --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).