ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Splitting natural tables
Date: Wed, 30 Nov 2011 11:06:44 +0100	[thread overview]
Message-ID: <0BBE43E7-AFDB-4E3F-B01A-FDC6D209EE92@googlemail.com> (raw)
In-Reply-To: <001901ccaf45$1cec8a90$56c59fb0$@gmx.de>


Am 30.11.2011 um 10:47 schrieb Christian:

>>>>> Hello,
>>>>> 
>>>>> is it still not possible to split a table so that it covers one half
>>>>> page an then
>>>> another half page?
>>>>> 
>>>>> It is my understanding that splitting moves the table to the next
>>>>> page and
>>>> then splits it to the following if it gets too long for one entire page.
>>>>> Would a "manual split" be possible?
>>>>> 
>>>>> Examle (table is not split, but could be):
>>>>> 
>>>>> \starttext
>>>>> \dorecurse{2}{\input knuth }
>>>>> \startplacetable[title={My Table}]
>>>> 
>>>> \startplacetable[location=split,title={My table}] … \stopplacetable
>>> 
>>> Thank you Wolfgang!
>>> For some reason I thought the option split=yes would trigger
>>> splitting…
>> 
>> The “split=yes” option works only for table which aren’t aren't placed as float
>> because this mechanism has to know that it has to break the table into parts
>> but then you don’t need the split key for \bTABLE.
>> 
>>> Now in the sample document I get table 1a and table 1b.
>>> In my "real" document I get table 3.2 and table 3.3. Is there a way to
>>> influence this? (btw. captions are above the table, if that matters)
>> 
>> The location of the caption doesn’t matter. The number of the suffix for the
>> subtables can be changed but without a example I can’t tell why you get
>> different results in your example and in the real document.
> 
> My guess: It's because fo thecustom suffix. Example:
> 
> \setupcaption[table][location=top]
> \setupcaptions[minwidth=\textwidth,width=fit,align=center,headstyle={\ss \tfx},style={\ss \tfx \setupinterlinespace[line=1.4em]},suffix={:},distance=.5em]

Remove the setting for “suffix” because it hold the number for the subtable, the number itself can be changed with

  \setupfloatsplitting[conversion=…]

and a separator between the float number and the suffix can be added with

  \setupcaption[suffixseparator=…].

To add a stopper behind the suffix a different method is needed because although there is a “numberstopper” key for \setupcaption the symbol is added before the suffix, what you can do is to put he symbol in the label text with

  \setuplabeltext[table={Table ,:}]

but a extra key “suffixstopper” but we useful in this case.

@Hans: Can you make this change in strc-flt.mkvi?

\unexpanded\def\thecurrentfloatnumbersuffix
  {\doifsomething{\floatcaptionparameter\c!suffix}
     {\floatcaptionparameter\c!suffixseparator
%     \floatcaptionparameter\c!suffix}}
      \floatcaptionparameter\c!suffix
      \floatcaptionparameter\c!suffixstopper}}

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
___________________________________________________________________________________


  reply	other threads:[~2011-11-30 10:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30  1:13 Christian
2011-11-30  6:32 ` Wolfgang Schuster
2011-11-30  9:29   ` Christian
2011-11-30  9:35     ` Wolfgang Schuster
2011-11-30  9:47       ` Christian
2011-11-30 10:06         ` Wolfgang Schuster [this message]
2011-11-30 10:13           ` Christian
2011-11-30 10:27             ` Christian
2011-11-30 12:59           ` Hans Hagen
2011-11-30 17:15             ` Christian
2011-11-30 22:09               ` Wolfgang Schuster

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=0BBE43E7-AFDB-4E3F-B01A-FDC6D209EE92@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).