ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Lost in letter module
@ 2016-02-09 11:01 Jan U. Hasecke
  0 siblings, 0 replies; only message in thread
From: Jan U. Hasecke @ 2016-02-09 11:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-09 11:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 11:01 Lost in letter module Jan U. Hasecke

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).