From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93751 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Absolute position in table cell Date: Tue, 16 Feb 2016 17:40:31 +0100 Message-ID: <56C350FF.6030700@gmail.com> References: <56C19B2F.50701@gmail.com> <56C1A140.103@wxs.nl> <56C1A409.8050403@gmail.com> <56C1AC60.8060905@wxs.nl> <56C34C97.80401@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6021217581630469730==" X-Trace: ger.gmane.org 1455640888 28160 80.91.229.3 (16 Feb 2016 16:41:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 16:41:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 16 17:41:12 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVigV-0002QC-DV for gctc-ntg-context-518@m.gmane.org; Tue, 16 Feb 2016 17:41:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 354675DF; Tue, 16 Feb 2016 17:40:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5txlj5u6ZOCs; Tue, 16 Feb 2016 17:40:48 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D4B83714; Tue, 16 Feb 2016 17:40:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7E2B2495 for ; Tue, 16 Feb 2016 17:40:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FbqhYO7hPjVI for ; Tue, 16 Feb 2016 17:40:45 +0100 (CET) Original-Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8ABC840F for ; Tue, 16 Feb 2016 17:40:35 +0100 (CET) Original-Received: by mail-wm0-f52.google.com with SMTP id c200so171060742wme.0 for ; Tue, 16 Feb 2016 08:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=xl1x7aC/WarmxpksOUpH3T0OKlEXbVqlvAtPQ1NEXBc=; b=E0xCjgv1Y9DLWEBfs4jgdHlQ3uZvmXxJ4W5gQMxe4IY1eqy4K1Kj0uPSqTwIKMqAB9 xZ1757fRkFLlJMTk38RPjZYDZZRU1zT78BDnIMbLWYKm65F0U4xVPNU+VuHfNr2YjIQw UdZuZhDwNbihzoQy9aFqf/6HBGU/WWRwW8DijDpuCbJSgU37G1cjaBx0JFuIv2jWYE6+ uucLbjE/LwoJ0/ZQKa9Q/93cdV5v5uCQ79h++uG5rtvnGgWl6WancsN7gFbey/TNZz90 ZcnW7N+FYWWb9nkAd5ESvPvhjARh9M+A0y0/+8QYDstqU+jpmY6EF6DteE8GOcGQ5qCI 04PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=xl1x7aC/WarmxpksOUpH3T0OKlEXbVqlvAtPQ1NEXBc=; b=WxLF88Ko9X7f2Y9V4G4kDVzEl/CvLyN1B1ZQ7whGGvnz4kys9A7VzdREIdVYmxe5h0 XQFENukiU5tYMsHwOvd5+h98yr5Vbu+7ReDLgOo62BVvaSkYfPC40BnI7Rb1J8xmLw7K vtzLqEI3NYE4hmatePjpangm1eXHEGd3OhaExImq0XTUIi8HYAVSPGUx6xPgAv+z1Y96 EDtwrI4YvM9W86GTKV2KQxuNWd7cgz1wK6rvV1gzJJkTTAYOVT/lT+1nT+u2mSbWo4em UUfQ++WOIgPUmKQ0S4AZEUrvHi29Ih5e2oj+KLMcpvn32th7pT5KhKVnQYAgVR5F12Kh Rxcw== X-Gm-Message-State: AG10YOSiw/XoO0UvGo+gFzaG9t/pogVQwJje65xsOZTBuRwnr5HAAokDTxC9BBRqr84mEQ== X-Received: by 10.28.187.134 with SMTP id l128mr19557748wmf.61.1455640834967; Tue, 16 Feb 2016 08:40:34 -0800 (PST) Original-Received: from keima.localdomain (x2f2693e.dyn.telefonica.de. [2.242.105.62]) by smtp.gmail.com with ESMTPSA id i12sm21284535wmf.10.2016.02.16.08.40.34 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Feb 2016 08:40:34 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <56C34C97.80401@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93751 Archived-At: This is a multi-part message in MIME format. --===============6021217581630469730== Content-Type: multipart/alternative; boundary="------------050307040104010802030803" This is a multi-part message in MIME format. --------------050307040104010802030803 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Volker Mische > 16. Februar 2016 um 17:21 > > Thanks a lot that works. > > I've a follow up question. I'd like to wrap the `\setgvariable` in a a > paragraph like thing. I found out about annotations, which look like > what I've after. > > Though sadly I get an error message (! Undefined control sequence) when > I use annotations. It works when I hard-code a value within the > annotation, but it doesn't if I use the contents of the annotation. I'v= e > also tried it the `\placeannotationcontent` way, but there I get the > same error. Here's the full example: > > \starttext > > \definelayer [pagenumber][width=3D\overlaywidth,height=3D\overlayheight= ] > \defineoverlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenum= ber]}] > > \startsetups pagenumber > \setlayerframed > [pagenumber] > [preset=3Drightbottom] > {\getvariable{table}{p}} > \stopsetups > > \define[2]\PageWrapper{\setgvariable{table}{p}{#2}} > > \usemodule[annotation] > \defineannotation > [pn] > [alternative=3Dcommand, command=3D\PageWrapper] Use this defintion for your \startpn =E2=80=A6 \stoppn command: \define\startpn {\grabuntil{stoppn}{\setgvariable{table}{p}}} Wolfgang --------------050307040104010802030803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
16= .=20 Februar 2016 um 17:21

Thanks a lot that works.

I've a follow up=20 question. I'd like to wrap the `\setgvariable` in a a
paragraph like=20 thing. I found out about annotations, which look like
what I've=20 after.

Though sadly I get an error message (! Undefined control=20 sequence) when
I use annotations. It works when I hard-code a value=20 within the
annotation, but it doesn't if I use the contents of the=20 annotation. I've
also tried it the `\placeannotationcontent` way, but there I get the
same error. Here's the full example:

\starttex= t

\definelayer [pagenumber][width=3D\overlaywidth,height=3D\overlayheight]
\defineo= verlay[pagenumber][{\directsetup{pagenumber}\tightlayer[pagenumber]}]
=
\startsetups pagenumber
\setlayerframed
[pagenumber]
=20 [preset=3Drightbottom]
{\getvariable{table}{p}}
\stopsetups
\define[2]\PageWrapper{\setgvariable{table}{p}{#2}}

\usemodul= e[annotation]
\defineannotation
[pn]
[alternative=3Dcommand, command=3D\PageWrapper]
Use this defintion for your \startpn =E2=80=A6 \stoppn command:

\define\startpn
=C2=A0 {\grabuntil{stoppn}{\setgvariable{table}{p}}}

Wolfgang
--------------050307040104010802030803-- --===============6021217581630469730== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6021217581630469730==--