From: Jan Heinen <JaHeinen@gmx.de>
To: ntg-context@ntg.nl
Subject: Center (horizontal + vertical) an image in \setframed
Date: Sat, 31 Dec 2011 15:33:00 +0100 [thread overview]
Message-ID: <4EFF1D1C.3090106@gmx.de> (raw)
Hello
I want to center (horizontal and vertical) an image in a frame.
1. What Do I have to add?
\setlayerframed [Kontaktdaten]
[
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
]
[strut=no,offset=overlay,frame=on]
{\externalfigure[cow][width=100mm,height=100mm]}%
2. This is a complete example. I used a second \setframed to
show the area in which the cow should be centered and middled:
\definelayer [Kontaktdaten]
[x=0mm, y=0mm,
width=\paperwidth, height=\paperheight]
\setupbackgrounds [paper]
[
background=Kontaktdaten,
state=start
]%
\starttext
\setlayerframed [Kontaktdaten]
[
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
]
[strut=no,offset=overlay,frame=on]
{\framed [width=120mm, height=120mm]{~}}%
\setlayerframed [Kontaktdaten]
[
width=120mm,
height=120mm,
hoffset=50mm,
voffset=50mm
]
[strut=no,offset=overlay,frame=on]
{\externalfigure[cow][width=100mm,height=100mm]}%
test
\page
\stoptext
I wish You a Happy New Year
Jannis
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2011-12-31 14:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-31 14:33 Jan Heinen [this message]
2011-12-31 14:44 ` luigi scarso
2011-12-31 17:48 ` Jan Heinen
2012-01-02 16:21 ` Pagereferences to more than one page Jan Heinen
2012-01-02 16:29 ` Hans Hagen
2012-01-02 16:30 ` luigi scarso
2012-01-02 18:28 ` luigi scarso
2012-01-01 9:23 ` Center (horizontal + vertical) an image in \setframed Wolfgang Schuster
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=4EFF1D1C.3090106@gmx.de \
--to=jaheinen@gmx.de \
--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).