From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101045 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TABLE: centering splitted TABLE Date: Thu, 21 Jun 2018 11:15:19 +0200 Message-ID: <5B2B6CA7.9060002@gmail.com> References: <5B29ED40.4020201@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4485991525117447756==" X-Trace: blaine.gmane.org 1529572610 30089 195.159.176.226 (21 Jun 2018 09:16:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2018 09:16:50 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 21 11:16:46 2018 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 1fVvhs-0007jL-DW for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jun 2018 11:16:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 130BD386F3; Thu, 21 Jun 2018 11:15:36 +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 k2frq3WGx0ZE; Thu, 21 Jun 2018 11:15:35 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F22C388CA; Thu, 21 Jun 2018 11:15:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E0C72388B2 for ; Thu, 21 Jun 2018 11:15:33 +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 lmmEcytYw1_r for ; Thu, 21 Jun 2018 11:15:33 +0200 (CEST) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (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 11CD1386A4 for ; Thu, 21 Jun 2018 11:15:23 +0200 (CEST) Original-Received: by mail-wm0-f43.google.com with SMTP id o13-v6so3877956wmf.4 for ; Thu, 21 Jun 2018 02:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=sNbE3e80a3C5PR9Ta6X1NyzmEM1iN+gAnzIvZYzlwaI=; b=lyy1dDX/7kITAXqIFLy0Fh7iFb+B4X6oDtH3fmqxSCq5vo1QY3W+Jh+TWgyd4+ZoQN n3xXwA9OAkkFKCfIW9kaqPh4WXDtHr0qcM1bJlEtb7UnhjkH7MIJ2HgD4tgQZ7krR41F /OwjeaywgYKC/IV1VUNP/IIRY1uZqBXRc1lInHdDf/GiyKkEojDFFr2YrnTF52CF6CkK SHnYcFGbr7tVNQR6U83hK/goIx6HZlBo3qj9GdHf6yCXfrBgnjCrjqDvkXAU3SRIwFd3 9CIM2XPPBsWSKSoF7SsFDsZEArfQh0W5zvANeBymicIoOqcRq3THSEEzC+DSDuKmKD/I ZDcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=sNbE3e80a3C5PR9Ta6X1NyzmEM1iN+gAnzIvZYzlwaI=; b=RSpDlgEfKn35VgcHQoNhd0HGTquetHXPuNPAEG4g4pNyECwDGbPNdcKXs8ofMFboRE AN2bBT3DjPmZ2t3H+kQYXTfkSe+T0L9U7HOvnK6ew80ZO0nvcjuvNKwOqBzH/pJw6qA9 JnaMgsQJSEW4IhSzjnJrj5h54TCLulHdtYVvO5tTvI9uOPjIG8/tImygpFxJzh/LSJq+ C2fs0Weha5TIyXz4lZV902RagiGA4An0Jjia1YlrsPm4x4cdzcsYJYkdTgGmNefJZj2Z hLMyRWxsu639bBVP7g3fpM4Fvqs5nj0Dg1mKrKj1w6s9Zv2ojoUvrCutncFbVN2xdBJV oVrw== X-Gm-Message-State: APt69E3z97R2yxhX1zxa4xHiaF5XVIgDOFuBYt0OxFweDZQM2ICHpral 38ve83solshYoaDXwooaP1aBdXlq X-Google-Smtp-Source: ADUXVKLObZHZ2SxyMLEzn/mjLlf1ZwXyIDUBKXdvVUI+B5zp4JlaXaxOYluTfAKQvhK3IRR/rL6JoA== X-Received: by 2002:a1c:988d:: with SMTP id a135-v6mr4710968wme.79.1529572522031; Thu, 21 Jun 2018 02:15:22 -0700 (PDT) Original-Received: from [192.168.1.12] (x590f4288.dyn.telefonica.de. [89.15.66.136]) by smtp.gmail.com with ESMTPSA id i6-v6sm3582729wrr.2.2018.06.21.02.15.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 02:15:21 -0700 (PDT) In-Reply-To: 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:101045 Archived-At: This is a multi-part message in MIME format. --===============4485991525117447756== Content-Type: multipart/alternative; boundary="------------010203010203040501030709" This is a multi-part message in MIME format. --------------010203010203040501030709 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Remove the alignment environment, floats are centered by default. Wolfgang > Procházka Lukáš Ing. > 9. Juni 2018 um 20:33 > Hello, > > I have two questions about TABLEs. Suppose having the following code: > > ---- > \setuplayout[page] > > %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% > > > \starttext > \startalignment[middle] > \dontleavehmode > \bTABLE[before=,after=,inbetween=] > \bTABLEbody > \dorecurse{10}{ > \bTR > \bTD aaa\eTD > \bTD bbb\eTD > \eTR > } > \eTABLEbody > \eTABLE > \crlf > \bTABLE[before=,after=,inbetween=] > \bTABLEbody > \bTR > \bTD AAA\eTD > \bTD BBB\eTD > \eTR > \eTABLEbody > \eTABLE > \stopalignment > % > \page > \startalignment[middle] > \dontleavehmode > \bTABLE[split=yes] > \bTABLEbody > \dorecurse{60}{ > \bTR > \bTD uuu\eTD > \bTD vvv\eTD > \eTR > } > \eTABLEbody > \eTABLE > \stopalignment > \stoptext > ---- > > - How to make the "uuu - vvv" table - which goes into several pages - > centered on each page, like "aaa - bbb" (non splitting) table is? > > - How to suppress the vertical space between the last row of "aaa - > bbb" table and the first row of the "AAA - BBB" table? > > (I'm trying to typeset some picture playing cards, so usual > typographic rules don't apply here...) > > Any help would be appreciated. > > Best regards, > > Lukas > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > Procházka Lukáš Ing. > 20. Juni 2018 um 07:43 > Hello, > > On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing. > wrote: > > > any reaction? > > E.g. > "splitted TABLE cannot be centered on pages - the alg is not > implemented, and won't be" or > "splitted TABLE cannot be centered on pages - the alg is not > implemented, but will be" or > "splitted TABLE cannot be centered on pages - use xtable instead with > [key=value]" or > "use \setupTABLE[something=here] - it will center splitted TABLE on > each page"? > > Best regards, > > Lukas > > > Wolfgang Schuster > 20. Juni 2018 um 07:59 > > > Place the table as float and disable the caption, e.g. > > \startplacetable[location={split,force,none}] > ... > \stopplacetable > > Wolfgang > Procházka Lukáš Ing. > 21. Juni 2018 um 11:10 > Hello, > > thanks, it works: > > ---- > \startalignment[middle] > \startplacetable[location={split,force,none}] > \bTABLE[split=repeat] > \bTABLEhead > \bTR\bTH A\eTH\bTH B\eTH\eTR > \eTABLEhead > \bTABLEbody > \dorecurse{60}{ > \bTR > \bTD uuu\eTD > \bTD vvv\eTD > \eTR > } > \eTABLEbody > \eTABLE > \stopplacetable > \stopalignment > ---- > > Best regards, > > Lukas > > > On Wed, 20 Jun 2018 07:59:28 +0200, Wolfgang Schuster > wrote: > > > --------------010203010203040501030709 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the alignment environment, floats are centered by default.

Wolfgang
9. Juni 2018 um 20:33
Hello,

I have two questions about TABLEs. Suppose having the following code:

----
\setuplayout[page]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\starttext
  \startalignment[middle]
    \dontleavehmode
    \bTABLE[before=,after=,inbetween=]
      \bTABLEbody
        \dorecurse{10}{
          \bTR
            \bTD aaa\eTD
            \bTD bbb\eTD
          \eTR
        }
      \eTABLEbody
    \eTABLE
    \crlf
    \bTABLE[before=,after=,inbetween=]
      \bTABLEbody
        \bTR
          \bTD AAA\eTD
          \bTD BBB\eTD
        \eTR
      \eTABLEbody
    \eTABLE
  \stopalignment
  %
  \page
  \startalignment[middle]
    \dontleavehmode
    \bTABLE[split=yes]
      \bTABLEbody
        \dorecurse{60}{
          \bTR
            \bTD uuu\eTD
            \bTD vvv\eTD
          \eTR
        }
      \eTABLEbody
    \eTABLE
  \stopalignment
\stoptext
----

- How to make the "uuu - vvv" table - which goes into several pages - centered on each page, like "aaa - bbb" (non splitting) table is?

- How to suppress the vertical space between the last row of "aaa - bbb" table and the first row of the "AAA - BBB" table?

(I'm trying to typeset some picture playing cards, so usual typographic rules don't apply here...)

Any help would be appreciated.

Best regards,

Lukas


___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
20. Juni 2018 um 07:43
Hello,

On Sat, 09 Jun 2018 20:33:30 +0200, Procházka Lukáš Ing. <LPr@pontex.cz> wrote:


any reaction?

E.g.
"splitted TABLE cannot be centered on pages - the alg is not implemented, and won't be" or
"splitted TABLE cannot be centered on pages - the alg is not implemented, but will be" or
"splitted TABLE cannot be centered on pages - use xtable instead with [key=value]" or
"use \setupTABLE[something=here] - it will center splitted TABLE on each page"?

Best regards,

Lukas


20. Juni 2018 um 07:59


Place the table as float and disable the caption, e.g.

\startplacetable[location={split,force,none}]
...
\stopplacetable

Wolfgang
21. Juni 2018 um 11:10
Hello,

thanks, it works:

----
  \startalignment[middle]
    \startplacetable[location={split,force,none}]
      \bTABLE[split=repeat]
        \bTABLEhead
          \bTR\bTH A\eTH\bTH B\eTH\eTR
        \eTABLEhead
        \bTABLEbody
          \dorecurse{60}{
            \bTR
              \bTD uuu\eTD
              \bTD vvv\eTD
            \eTR
          }
        \eTABLEbody
      \eTABLE
    \stopplacetable
  \stopalignment
----

Best regards,

Lukas


On Wed, 20 Jun 2018 07:59:28 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:




--------------010203010203040501030709-- --===============4485991525117447756== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4485991525117447756==--