ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Positioning of frames in a frame
@ 2013-05-16 11:13 "H. Özoguz"
  2013-05-16 21:15 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: "H. Özoguz" @ 2013-05-16 11:13 UTC (permalink / raw)
  To: ntg-context

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.
2. The left border of the inner frames do not match with the left border 
of the outer frame, but they should. Howto?

Thanks
Huseyin
___________________________________________________________________________________
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] 2+ messages in thread

* Re: [***SPAM***] Positioning of frames in a frame
  2013-05-16 11:13 [***SPAM***] Positioning of frames in a frame "H. Özoguz"
@ 2013-05-16 21:15 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2013-05-16 21:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-16 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 11:13 [***SPAM***] Positioning of frames in a frame "H. Özoguz"
2013-05-16 21:15 ` Wolfgang Schuster

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