From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: [***SPAM***] Positioning of frames in a frame
Date: Thu, 16 May 2013 23:15:25 +0200 [thread overview]
Message-ID: <5D30E5BD-EB32-476C-BB30-C66D2F84ACE0@gmail.com> (raw)
In-Reply-To: <5194BF3E.4060008@mmnetz.de>
Am 16.05.2013 um 13:13 schrieb "H. Özoguz" <h.oezoguz@mmnetz.de>:
> Hello together,
>
> designing a card-game I use an overlay as background an a frame, with three parts, realized as three frames in the outer frame (which is simply the border of the card).
> See my try:
>
> \starttext
> \framed[width=4.55cm, height=7.4cm, frame=on,
> background=eslami]{%
> \framed[width=4.55cm, height=2cm]{Begriff}
> \framed[width=4.55cm, height=3cm]{Verbotener Begriff 1}
> \framed[width=4.55cm, height=2.4cm]{Erklärung}
> }
> \stoptext
>
> Two questions:
> 1. How can I control the distance between the inner frames? It should be: 0cm, so no distance.
You can set \setupinterlinespace[off] at the begin of the frame or you use a table (you can also use xtables) for the entries.
> 2. The left border of the inner frames do not match with the left border of the outer frame, but they should. Howto?
You need “offset=overlay” for the outer frame.
\starttext
\startframed[frame=off,width=fit,offset=overlay,align=middle,background=eslami]%
\offinterlineskip
\framed[width=4.55cm,height=2cm]{Begriff}\\
\framed[width=4.55cm,height=3cm]{Verbotener Begriff 1}\\
\framed[width=4.55cm,height=2.4cm]{Erklärung}
\stopframed
\blank[2*line]
\startframed[frame=off,width=fit,offset=overlay,align=middle,background=eslami]%
\bTABLE[width=4.55cm,align={middle,lohi}]
\bTR\bTD[height=2cm] Begriff \eTD\eTR
\bTR\bTD[height=3cm] Verbotener Begriff 1 \eTD\eTR
\bTR\bTD[height=2.4cm] Erklärung \eTD\eTR
\eTABLE
\stopframed
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2013-05-16 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 11:13 "H. Özoguz"
2013-05-16 21:15 ` Wolfgang Schuster [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=5D30E5BD-EB32-476C-BB30-C66D2F84ACE0@gmail.com \
--to=schuster.wolfgang@gmail.com \
--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).