From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84181 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: \startfloattext ... \stopfloattext Date: Mon, 9 Sep 2013 20:13:18 +0200 Message-ID: References: <522DDB7E.20602@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1536881838==" X-Trace: ger.gmane.org 1378750407 17760 80.91.229.3 (9 Sep 2013 18:13:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Sep 2013 18:13:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 09 20:13:31 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VJ5xm-0000Jo-7z for gctc-ntg-context-518@m.gmane.org; Mon, 09 Sep 2013 20:13:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 270F810193; Mon, 9 Sep 2013 20:11:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uHn75DXMCJUB; Mon, 9 Sep 2013 20:11:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A13AF101EB; Mon, 9 Sep 2013 20:11:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7423E101EB for ; Mon, 9 Sep 2013 20:11:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Gv1EAPQrqWXH for ; Mon, 9 Sep 2013 20:11:39 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id C379A10193 for ; Mon, 9 Sep 2013 20:11:39 +0200 (CEST) Original-Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r89IDIL8011108 for ; Mon, 9 Sep 2013 20:13:19 +0200 Original-Received: by mail-lb0-f180.google.com with SMTP id q8so5267880lbi.39 for ; Mon, 09 Sep 2013 11:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=Ogy1J0oP2/nMvKWegfbtfdqoFZIkiJ13lcfmbHluPXE=; b=FCplvY8Wvrwv9El98Mag6JdqbT1wRS046HuVhrCyG+tGIq3zK3d5/Vpt6nZh8NZSdE oUO3pCO8AuGyyX2xoy/FGTtcRXfC79Gr0bt0YmBVQK36TKmAcaFrrAQ2JaIJTdpllYJu 9vu50yqWsbTqZLk4+pPqUiRiB7ZJ5Yf0+I1rVgVe7XhDuwUwplFxF71hRlWHtyRKZ0SY wYGj6LQSIqqleu1HVUs2U54RUmWWFPIksjwsFKyVFkWuq3ENpNI6brhJSOakXyVnJC7/ h2PzkpRbFPWYddZCeIfSRYMM6ZPZoywUkUVOU6l8EfujTWKLgnqkvlCvZXvp2lzXx7ZJ FppA== X-Received: by 10.152.203.233 with SMTP id kt9mr2886531lac.29.1378750398362; Mon, 09 Sep 2013 11:13:18 -0700 (PDT) Original-Received: by 10.112.181.1 with HTTP; Mon, 9 Sep 2013 11:13:18 -0700 (PDT) In-Reply-To: <522DDB7E.20602@wxs.nl> X-Google-Sender-Auth: YMLQZcinV6N5gkhui8gFJBfmiEI X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Kn6dibc - c4a0f206a46e - 20130909 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84181 Archived-At: --===============1536881838== Content-Type: multipart/alternative; boundary=001a11345984ba7eb504e5f757aa --001a11345984ba7eb504e5f757aa Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, Hans that was exactly what I needed. Christian 2013/9/9 Hans Hagen > On 9/9/2013 2:38 PM, Christian Prim wrote: > >> What is the context way to place text near a table (or another float) in >> an enumeration-environment? >> >> I just want to have the text "just this...." right to the table. The >> second item "2)" should be below the table. >> >> In the (not so) MWE all is fine, but the table is not indented. >> >> When I use \placetable the text is indented, but the second item is >> placed near the table on the right. (I could insert a \blank[xycm] but I >> don't think it's the way to solve my problem.) >> >> Thanks for all comments >> >> Christian >> >> \starttext >> \startitemize[n,packed,**joinedup][stopper=3D)] >> \item Abh=E4ngigkeit der Beschleunigung von der Wagenmasse $m$: >> \blank >> $M=3D$ \hl[5] \unit{kg} >> \blank >> \starttabletext[left,high,**none]{}{ >> %\placetable[left,high,none]{}**{ >> \starttable[|l|l|] >> \HL >> \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR >> \HL >> \VL \qquad \VL \qquad \VL\AR >> \VL \VL \VL\AR >> \HL >> \VL \VL \VL\AR >> \VL \VL \VL\AR >> \HL >> \VL \VL \VL\AR >> \VL \VL \VL\AR >> \HL >> \stoptable} >> Just this text near the table! >> \stoptabletext >> \item second item ... >> \stoptext >> > > one of the solution is to use paired boxes: > > \starttext > > \definepairedbox > [mylegend] > [location=3D{right,top}] % width=3D10cm > > \startitemize[n,packed,**joinedup][stopper=3D)] > \startitem > some introduction text \blank and some more \blank > \startplacemylegend > \startcontent > \starttable[|l|l|] > \HL \VL foo \VL bar \VL \NR \HL > > \VL \VL \VL \AR \VL \VL \VL \AR \HL > \VL \VL \VL \AR \VL \VL \VL \AR \HL > \VL \VL \VL \AR \VL \VL \VL \AR \HL > \stoptable > \stopcontent > \startcaption > \input ward > \stopcaption > \stopplacemylegend > \stopitem > \startitem > and even more > \stopitem > \stopitemize > > \stoptext > > I patched the beta a bit so that for a horizontal variant the hsize is > calculated automatically. > > Hans > > ------------------------------**------------------------------**----- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ------------------------------**------------------------------**----- > ______________________________**______________________________** > _______________________ > 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 > ______________________________**______________________________** > _______________________ > --001a11345984ba7eb504e5f757aa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thanks, Hans

that was exactly what I ne= eded.

Christian


2013/9/9 Hans Hagen <pragma@wxs.nl&= gt;
On 9= /9/2013 2:38 PM, Christian Prim wrote:
What is the context way to place text near a table (or another float) in an enumeration-environment?

I just want to have the text "just this...." right to the table. = The
second item "2)" should be below the table.

In the (not so) MWE all is fine, but the table is not indented.

When I use \placetable the text is indented, but the second item is
placed near the table on the right. (I could insert a \blank[xycm] but I don't think it's the way to solve my problem.)

Thanks for all comments

Christian

\starttext
\startitemize[n,packed,joinedup][stopper=3D)]
\item Abh=E4ngigkeit der Beschleunigung von der Wagenmasse $m$:
\blank
$M=3D$ \hl[5] \unit{kg}
\blank
\starttabletext[left,high,none]{}{
%\placetable[left,high,none]{}{
\starttable[|l|l|]
\HL
\VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR
\HL
\VL \qquad \VL \qquad \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\VL \VL \VL\AR
\VL \VL \VL\AR
\HL
\stoptable}
Just this text near the table!
\stoptabletext
\item second item ...
\stoptext

one of the solution is to use paired boxes:

\starttext

\definepairedbox
=A0 [mylegend]
=A0 [location=3D{right,top}] % width=3D10cm

\startitemize[n,packed,joinedup][stopper=3D)]
=A0 =A0 \startitem
=A0 =A0 =A0 =A0 some introduction text \blank and some more \blank
=A0 =A0 =A0 =A0 \startplacemylegend
=A0 =A0 =A0 =A0 =A0 =A0 \startcontent
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \starttable[|l|l|]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \HL \VL foo =A0 =A0 \VL bar \VL \NR= \HL

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \VL \VL \VL \AR \VL \VL \VL \AR \HL=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \VL \VL \VL \AR \VL \VL \VL \AR \HL=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \VL \VL \VL \AR \VL \VL \VL \AR \HL=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \stoptable
=A0 =A0 =A0 =A0 =A0 =A0 \stopcontent
=A0 =A0 =A0 =A0 =A0 =A0 \startcaption
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \input ward
=A0 =A0 =A0 =A0 =A0 =A0 \stopcaption
=A0 =A0 =A0 =A0 \stopplacemylegend
=A0 =A0 \stopitem
=A0 =A0 \startitem
=A0 =A0 =A0 =A0 and even more
=A0 =A0 \stopitem
\stopitemize

\stoptext

I patched the beta a bit so that for a horizontal variant the hsize is calc= ulated automatically.

Hans

-------------------------------------------------------------= ----
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 Hans Hagen | PRAGMA ADE
=A0 =A0 =A0 =A0 =A0 =A0 =A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherl= ands
=A0 =A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0| ww= w.pragma-pod.nl
-------------------------------------------------------------= ----
_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________

--001a11345984ba7eb504e5f757aa-- --===============1536881838== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1536881838==--