ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: Re: address labels
Date: Sun, 11 Jan 2004 12:55:06 +0100	[thread overview]
Message-ID: <4001399A.9060003@boede.nl> (raw)
In-Reply-To: <001a01c3d82e$f0e8f500$ca30fb3e@com>

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

Hi Robert,

while composing my solution to your question Hans was of course faster 
and gives immediately multiple approaches.
You might want to have a look at my solution because it is basically 
intended to print addres-labels.
Because of restriction of the meilinglist the picture is not included, 
but you can simply replace the picture in the
logo definition ...

Success!
Kind regards Willi

R. Ermers wrote:

>Hi contexers,
>
>I am trying to make context do what I want. What I needed this weekend, are
>address labels, which I want to fill with my own logo (not the addresse's).
>
>Making one label is no problem, but I rather would like to have context make
>and typeset a large number of them on a sheet, to be precise: 9x3 (sizes:
>7mm x 32mm).
>
>Does anyone have a clue how this can be done?
>
>Kind regards,
>
>Robert Ermers
>  
>

[-- Attachment #2: logos.tex --]
[-- Type: text/plain, Size: 1474 bytes --]

% Etiketten for address labels format 45 by 100mm
% Context file
% filename: logos.tex
% Willi Egger
% january 2004

\setupoutput[pdftex]

\mainlanguage[nl]
\language[nl]
\setuppagenumber[state=stop]
\setupcolors[state=start]
\usetypescript[modern][texnansi]
\setupbodyfont[modern,ss,12pt]

\definepapersize[Etiket][height=42.3mm,width=105mm]
\setuppapersize [Etiket][A4,portrait]
\setuppaper
    [topspace=0mm,
    backspace=0mm,
    dx=2mm,
    dy=0mm,
    nx=2,
    ny=7,
    margin=0,
    width=210mm,
    height=297mm]
\setuplayout
    [topspace=4mm,
    backspace=8mm,
    margin=0mm,
    width=96mm,
    height=34mm,
    header=0mm,
    footer=0mm]
\setuparranging[XY]

\definelayer[Etiket][width=\textwidth, height=\textheight]
\setupframedtexts[frame=off,width=\textwidth]

\def\Logo%
    {\externalfigure[wooden_coptic][height=\textheight]}

%\input adreslist         %Contains the addresses as given below:

% \startbuffer[Adr1]
%    \framedtext{%
%    \startlines
%    Mr. Robert Ermers \\
%    \CONTEXT-technician\\
%    Whereeverstreet 5\\
%    7000 \TEX land
%    \stoplines}
% \stopbuffer

\def\Addresses{10}

\showframe

\starttext
\dorecurse{\Addresses}{%
    \setlayer
       [Etiket]
       [preset=leftbottom,location={right,top},y=-3mm,x=-3mm]
       {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]}
    \setlayer
      [Etiket]
      [preset=lefttop,location={right,bottom}]
      {\switchtobodyfont[5pt]\Logo}
    \placelayer[Etiket]}
\stoptext

  parent reply	other threads:[~2004-01-11 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09 17:23 footnotes are lost!! endnotes don't work ? (URGENT) Steffen Wolfrum
2004-01-09 18:16 ` Hans Hagen
2004-01-10 17:18   ` Footnotes Without Text Marks? John McChesney-Young
2004-01-11  0:45     ` Adam Lindsay
2004-01-11  1:58       ` John McChesney-Young
2004-01-11  8:50         ` Peter Münster
2004-01-12 15:47           ` John McChesney-Young
2004-01-11 10:37     ` address labels R. Ermers
2004-01-11 11:20       ` Hans Hagen
2004-01-11 11:55       ` Willi Egger [this message]
2004-01-11 14:11         ` R. Ermers
2004-01-13 13:40     ` Footnotes Without Text Marks? Hans Hagen
2004-01-13 21:30       ` John McChesney-Young
2004-01-14  9:35         ` Hans Hagen

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=4001399A.9060003@boede.nl \
    --to=w.egger@boede.nl \
    --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).