From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95801 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: placelocalfootnotes breaks center alignment Date: Mon, 15 Aug 2016 12:27:25 +0200 Message-ID: <57B1990D.4090208@gmail.com> References: <93af955b-5fb4-9f95-fb36-a647c8e8a5b2@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2343979855156936671==" X-Trace: blaine.gmane.org 1471256884 28644 195.159.176.226 (15 Aug 2016 10:28:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2016 10:28:04 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 15 12:28:00 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZF7g-0007D0-Av for gctc-ntg-context-518@m.gmane.org; Mon, 15 Aug 2016 12:28:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 393B914DF7; Mon, 15 Aug 2016 12:27:46 +0200 (CEST) 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 A--GGbxKlHQG; Mon, 15 Aug 2016 12:27:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7F5BB14DF4; Mon, 15 Aug 2016 12:27:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1917B14DF1 for ; Mon, 15 Aug 2016 12:27:43 +0200 (CEST) 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 q1aVVY09Nh19 for ; Mon, 15 Aug 2016 12:27:42 +0200 (CEST) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (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 87A0C14DF0 for ; Mon, 15 Aug 2016 12:27:32 +0200 (CEST) Original-Received: by mail-wm0-f54.google.com with SMTP id q128so82516993wma.1 for ; Mon, 15 Aug 2016 03:27:32 -0700 (PDT) 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; bh=jQ0iT5e+ou6HxCHJJKd3MOCPtMx3jgXOrdKhqdEkJvY=; b=Ak88tlFlZMtV+D8hMwOa4gGk2mKWN9E559tVBJciVP+QhelK9MWFoGynnsydyWv0kA mQbkyEpzNmejI+Vd/dzYdOkyXl9iNg9Z1IRh9w0YLE3axFj2dSEj7iWwfiOMufgUvVji y+hCDRGEn11zHW9N7mcuxVgV56omTzyWyJyIbTh6557Ybr9x531rxJyBUFujYCn08C6g tL5u3K5hI/BFvLj+lpmDaDvJ7afi5euf7JZHtiqGjzZG4hWKmZBqNCTcyCGA7aKZErjv czKeZxLjJ+JC9DG2B/SYYVAdc9zMx1Z3xF4zzJlLaHwYXd0paHmDF0FKj4yE/8E/BGmj IKjA== 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; bh=jQ0iT5e+ou6HxCHJJKd3MOCPtMx3jgXOrdKhqdEkJvY=; b=T95j1yMfcj5RPD/zmIufUGGf/AZPUmjIBUAAPpcEHS3Xf0tDTmdaQj3+bjIuD8kTor W8D/nIIncFhLmZ8L/SCjcJRiPVnZUjgU1mmnD0RHIzSsORISjdFnV+in5IXaqmAwcAx+ DUVK6+Yj6+5KkxRtzhjh8WXRZfP3JiA9WJ2qeDTtU0BbM3iSa4g1TlIQpZ/sTo/kLyst qf/Kke/B5lIr6FoF+keQx/e2Yw4pXaSZ9/rQd9fy++8jOdAwhP98mL61u5OLmEc6HRwj u1V0nx9gPBogg6Zv4N5H4wuW8bqhu0Az6tLTo9F86lJQx9DgdSH6qFL8kRpR8nQEvzxk 8q/w== X-Gm-Message-State: AEkooutb36glxSkTEemalsJ2i5itL+6THAsV+DRTAP43ju4qATOdCqj8VyY7UVAYcd7ieQ== X-Received: by 10.28.37.71 with SMTP id l68mr15036410wml.50.1471256851925; Mon, 15 Aug 2016 03:27:31 -0700 (PDT) Original-Received: from keima.localdomain (x2f2aa54.dyn.telefonica.de. [2.242.170.84]) by smtp.gmail.com with ESMTPSA id a194sm15789967wmd.24.2016.08.15.03.27.30 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Aug 2016 03:27:31 -0700 (PDT) In-Reply-To: <93af955b-5fb4-9f95-fb36-a647c8e8a5b2@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:95801 Archived-At: This is a multi-part message in MIME format. --===============2343979855156936671== Content-Type: multipart/alternative; boundary="------------060105060508010208010808" This is a multi-part message in MIME format. --------------060105060508010208010808 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Henri Menke > 29. Juli 2016 um 12:48 > Dear list, > > sometimes, one wants to place footnotes in a table which then appear > right below the last row. Therefore ConTeXt ships the clever > `\start...\stoplocalfootnotes` mechanism. Unfortunately, putting > `\placelocalfootnotes` outside of the table breaks the centering of > the table itself. For illustration please see the example below. How > can I have my table centered while the footnotes are either > left-aligned with respect to the left border of the table or > left-aligned with respect to the page (whatever is easier)? > > Cheers, Henri > > --- > > \starttext > > \startplacetable > [title={some table}] > \startlocalfootnotes > \startTABLE > \NC Content\footnote{Footnote} \NC\NR > \stopTABLE > \placelocalfootnotes % commenting out unbreaks alignment > \stoplocalfootnotes > \stopplacetable > > \stoptext You can use the pairedbox mechanism to place the notes under the table. \definepairedbox [footnote] [width=\textwidth, align=middle] \starttext \startplacetable[title={some table}] \startlocalfootnotes \startplacepairedbox[footnote] \startcontent \startTABLE \NC Content\footnote{Footnote} \NC\NR \stopTABLE \stopcontent \startcaption \placelocalfootnotes \stopcaption \stopplacepairedbox \stoplocalfootnotes \stopplacetable \startplacetable[title={some table}] \startlocalfootnotes \placepairedbox[footnote] {\startTABLE \NC Content\footnote{Footnote} \NC\NR \stopTABLE} {\placelocalfootnotes} \stoplocalfootnotes \stopplacetable \stoptext Wolfgang --------------060105060508010208010808 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
29. Juli 2016 um 12:48
Dear list,

sometimes, one wants to place footnotes in a table which then appear right below the last row. Therefore ConTeXt ships the clever `\start...\stoplocalfootnotes` mechanism. Unfortunately, putting `\placelocalfootnotes` outside of the table breaks the centering of the table itself. For illustration please see the example below. How can I have my table centered while the footnotes are either left-aligned with respect to the left border of the table or left-aligned with respect to the page (whatever is easier)?

Cheers, Henri

---

\starttext

\startplacetable
[title={some table}]
\startlocalfootnotes
\startTABLE
\NC Content\footnote{Footnote} \NC\NR
\stopTABLE
\placelocalfootnotes % commenting out unbreaks alignment
\stoplocalfootnotes
\stopplacetable

\stoptext
You can use the pairedbox mechanism to place the notes under the table.

\definepairedbox
  [footnote]
  [width=\textwidth,
   align=middle]

\starttext

\startplacetable[title={some table}]
    \startlocalfootnotes
        \startplacepairedbox[footnote]
            \startcontent
                \startTABLE
                \NC Content\footnote{Footnote} \NC\NR
                \stopTABLE
            \stopcontent
            \startcaption
                \placelocalfootnotes
            \stopcaption
        \stopplacepairedbox
    \stoplocalfootnotes
\stopplacetable

\startplacetable[title={some table}]
    \startlocalfootnotes
        \placepairedbox[footnote]
            {\startTABLE
             \NC Content\footnote{Footnote} \NC\NR
             \stopTABLE}
            {\placelocalfootnotes}
    \stoplocalfootnotes
\stopplacetable

\stoptext

Wolfgang
--------------060105060508010208010808-- --===============2343979855156936671== 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= --===============2343979855156936671==--