ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: Absolute positioning of grafics in ConTeXt
Date: Wed, 05 Apr 2006 10:07:53 +0200	[thread overview]
Message-ID: <44337AD9.708@seznam.cz> (raw)
In-Reply-To: <200604041631.57170.jotfi@yahoo.de>

Johannes Fichtinger wrote:
> Hi all, 
> 
> I'm quite new to ConTeXt, but I've been working with LaTeX for several years
> now. Now I faced a problem which I'm not able to solve in LaTeX which
> probably can be solved in ConTeXt:
> 
> I need a possibility to set grafics in a book on exact, absolute positions.
> Now I found the way for background images, like in the attached example.
> But obviously, normal text is written above the background image. I need
> now a possibility like this but for foreground grafics.
> 
> So, how can I set the position of grafics absolutely in ConTeXt?
> 
> Thanks,
> Johannes.
> 
> My example:
> 
> --------------------------------------------------------------
> \enableregime           [il1]
> \mainlanguage           [de]
> \setuplayout            [grid=yes,marking=on,horoffset=2cm,veroffset=2cm]
> \definepapersize        [jo][width=14cm,height=18cm]
> \setuppapersize         [jo][a4]
> 
> \useexternalfigure[wr][dpm][type=png, width=5cm, height=4cm]
> \definelayer[wr-layer]
> \defineoverlay[wr-overlay][\composedlayer{wr-layer}]
> \setupbackgrounds[page][background={wr-overlay}]

\setupbackgrounds[page][background={foreground,wr-overlay}]

Cheers, Vit

> \starttext
> 
> \setlayer[wr-layer][x=-0.1cm,y=-0.1cm]{\externalfigure[wr]}
> Blablabla
> 
> \stoptext
> --------------------------------------------------------------
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 

-- 
=======================================================
Ing. Vít Zýka, Ph.D.                         TYPOkvítek

database publishing              databazove publikovani
data maintaining and typesetting in typographic quality
priprava dat a jejich sazba v typograficke kvalite

tel.: (+420) 777 198 189     www: http://typokvitek.com
=======================================================

      reply	other threads:[~2006-04-05  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-04 14:31 Johannes Fichtinger
2006-04-05  8:07 ` Vit Zyka [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=44337AD9.708@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).