ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: placelocalfootnotes breaks center alignment
Date: Mon, 15 Aug 2016 15:22:26 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.20.1608151521120.13317@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <57B1990D.4090208@gmail.com>

On Mon, 15 Aug 2016, Wolfgang Schuster wrote:

>>  Henri Menke <mailto:henrimenke@gmail.com>
>>  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]

Or, if you don't want to set the width to textwidth, simply wrap 
everything in a vbox (I use framedtext for convenience)

\starttext
\startplacetable[title={some table}]
   \startframedtext[width=fit,align=middle,frame=off]
   \startlocalfootnotes
         \startTABLE
           \NC Content\footnote{Footnote} \NC\NR
         \stopTABLE

         \placelocalfootnotes
   \stoplocalfootnotes
\stopframedtext
\stopplacetable
\stoptext

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

      parent reply	other threads:[~2016-08-15 19:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29 10:48 Henri Menke
2016-08-14 17:32 ` Henri Menke
2016-08-15 10:27 ` Wolfgang Schuster
2016-08-15 11:19   ` Jean-Pierre Delange
2016-08-15 11:29     ` Wolfgang Schuster
2016-08-15 13:05   ` French hyphenation issue in tablepaired boxes Jean-Pierre Delange
2016-08-15 19:22   ` Aditya Mahajan [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=alpine.LNX.2.20.1608151521120.13317@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).