From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106746 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Geert Dobbels Newsgroups: gmane.comp.tex.context Subject: Re: splitted xtable with repeating headers and placetable Date: Sun, 5 Apr 2020 00:30:02 +0200 Message-ID: References: <8b37c81e-36c0-c30b-4fef-b79787f7cee5@gmail.com> <0b9ebf47-61f9-e8ce-3b99-21f164cfe23c@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2385492779288225573==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="69278"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 To: mailing list for ConTeXt users , wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 05 00:34:32 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKrN1-000HvR-SZ for gctc-ntg-context-518@m.gmane-mx.org; Sun, 05 Apr 2020 00:34:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 73EB7183063; Sun, 5 Apr 2020 00:30:07 +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 7CC6SEpv6Gi7; Sun, 5 Apr 2020 00:30:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5901B18308C; Sun, 5 Apr 2020 00:30:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21291183077 for ; Sun, 5 Apr 2020 00:30:05 +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 51t_JUHSWrHa for ; Sun, 5 Apr 2020 00:30:04 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.41; helo=mail-wm1-f41.google.com; envelope-from=dobbels.geert@googlemail.com; receiver= Original-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 76E86183063 for ; Sun, 5 Apr 2020 00:30:04 +0200 (CEST) Original-Received: by mail-wm1-f41.google.com with SMTP id t128so10930038wma.0 for ; Sat, 04 Apr 2020 15:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=rtoZrvmQ8b1k3DvngruhhmrV0M41RE+pGxYqRxS+Dpw=; b=Dyrl5rxVwTwYPoGr9gSmyjcYPbrTD5INhq/tdsY+3L79M0zbGloOd8it96b+fD1yWR zNi7nI4SF9aLHg0Yg1lnyWSuqCKlnBerXeAgxJCuOfiEOgpHjnVwod526vQAPfHgK1wV +58URiFEoLTX+9/JsHn+2PmFj3Erta0whTVSpNsMA/eIBCHSu+f8jjqukrD5sNrgRNWc 0xFG9Kmb7UHxESguTqK7Gv1/H18fvlfAQPoRkpmfaiKHyaaiQ9NMTQgzqWxjw6IqsWiV VCiQKjjTooKAmI4D2gbvU1lBw2zSObOZ9Y4eM+TWtBMLEVW5i/zSuxE7wSmi2Z2rSAH5 bi3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=rtoZrvmQ8b1k3DvngruhhmrV0M41RE+pGxYqRxS+Dpw=; b=pHKtj1nA49Fm2pZ73chKw9J0+ZuR10UOFJyVuwuz9OXprs1F/c0OY5zhOTboscDipR VStNVwUhU9hyQj0LDjk5hH77v0pBtLqxR7LCDM9OxLfCEKgUEuT9+4Cb5mmUAEb5FiNp qpg9QdQwnZanXKY8JqHf4XKP+Ed+zXfg2ADTyMkQWCEX5OrvVng2lDQc7T95YmfV7qDk goEb4elPaclul3ZGB4NldMReeFzT17vHMTAHR31j/m/p6emBPPSeZAuH9VSeGNkJmYUc nPX089peam3TbEyYvMojoPHREoP9OlxALb3YbnKv3daNdGeGK29d1irrphlZcbrsH/Q+ P2pg== X-Gm-Message-State: AGi0PuY5GNCiUSwzEyU1gDD0yoyzebgTppxHBQwa6tkG3VXeLMvOvMT7 DUqahzoMpeYULjif1X3/TC0= X-Google-Smtp-Source: APiQypLclpOE9rZrXtY4/JOJS55icSERW66PnDGBkKsv1UFY/b4biW6u4pPpAigPBl2Q4SZ+SH+93g== X-Received: by 2002:a05:600c:2611:: with SMTP id h17mr15801469wma.183.1586039403957; Sat, 04 Apr 2020 15:30:03 -0700 (PDT) Original-Received: from [192.168.1.49] (186.red-80-39-46.staticip.rima-tde.net. [80.39.46.186]) by smtp.googlemail.com with ESMTPSA id a82sm17153881wmh.0.2020.04.04.15.30.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Apr 2020 15:30:03 -0700 (PDT) X-Google-Original-From: Geert Dobbels In-Reply-To: <0b9ebf47-61f9-e8ce-3b99-21f164cfe23c@gmail.com> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:106746 Archived-At: This is a multi-part message in MIME format. --===============2385492779288225573== Content-Type: multipart/alternative; boundary="------------9A54A06400B59E53F57B074B" Content-Language: en-US This is a multi-part message in MIME format. --------------9A54A06400B59E53F57B074B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Wolfgang, Below is what I think is the bare minimum to explain this question (sorry for not doing it right from the beginning...) As I said, with the code as it is below, the header is not repeated after the first page, but the table is in the right place. Replacing "split=yes" by "split=repeat" makes the header repeat correctly but puts the beginning of the table on the next page, leaving the first page nearly completely blank. In both cases, the "header=repeat" setting has no influence at all on the behaviour and can be omitted without changing the results. As I read in some other posts, sometimes putting the table in a float can help, so I tried this (by removing the 3 "%" in the code below), but there seems to be a conflict with the figure in the page header, and it stops with an error message. However, replacing the figure in the page header by a normal text suddenly solves the problem: putting "split" in the setupfloat and "header=repeat" in the setupxtable gives me a table with repeated headers that starts exactly where I want it to start. Apparently in this case, the "headers=repeat" is necessary. Unfortunately, I need a company logo up in the page header, which is what causes the error for which I have no explanation. btw: I am using context standalone version: 2020.01.30 14:13 ===================================================== \setuppapersize[A4, landscape] \setuplayout[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm] \setupcaptions[location=none] \setupbackgrounds[header][text][background={Logos}, state=repeat] \defineoverlay [Logos][{ \framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none]{ \framed[width=0.280\textwidth,height=3cm,align=right,] {\placefigure[force][]{none}{\externalfigure[somepic.png][height=1.9cm]} } \framed[width=0.430\textwidth,height=3cm,align=middle] {sometext in the middle} \framed[width=0.270\textwidth, height=3cm, align=middle]{sometext on the right} } }] %\setupfloat[table][default={force,split}] \setupxtable[ option=stretch,split=repeat,header=repeat,align=middle] \setupxtable[head][background=color,backgroundcolor=gray,foregroundcolor=red] \starttext Some lines of text. This text must come just before the table, but only on the first page of the table \def\onerow{ \startxrow \startxcell first \stopxcell \startxcell second \stopxcell \startxcell third \stopxcell \startxcell fourth \stopxcell \startxcell fifth \stopxcell \startxcell sixth \stopxcell \stopxrow} %\startplacetable \startxtable \startxtablehead[head] \onerow \stopxtablehead \startxtablebody \dorecurse{40}{\onerow} \stopxtablebody \stopxtable %\stopplacetable \stoptext --------------9A54A06400B59E53F57B074B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Wolfgang,

Below is what I think is the bare minimum to explain this question (sorry for not doing it right from the beginning...)

As I said, with the code as it is below, the header is not repeated after the first page, but the table is in the right place.

Replacing "split=yes" by "split=repeat" makes the header repeat correctly but puts the beginning of the table on the next page, leaving the first page nearly completely blank.

In both cases, the "header=repeat" setting has no influence at all on the behaviour and can be omitted without changing the results.

As I read in some other posts, sometimes putting the table in a float can help, so I tried this (by removing the 3 "%" in the code below), but there seems to be a conflict with the figure in the page header, and it stops with an error message.

However, replacing the figure in the page header by a normal text suddenly solves the problem: putting "split" in the setupfloat and "header=repeat" in the setupxtable gives me a table with repeated headers that starts exactly where I want it to start. Apparently in this case, the "headers=repeat" is necessary. Unfortunately, I need a company logo up in the page header, which is what causes the error for which I have no explanation.

btw: I am using context standalone version: 2020.01.30 14:13

=====================================================

\setuppapersize[A4, landscape]

\setuplayout[location=middle, width=27.5cm, height=18cm, backspace=1cm,header=4cm]

\setupcaptions[location=none]

\setupbackgrounds[header][text][background={Logos}, state=repeat]

\defineoverlay

[Logos][{

\framed[width=\textwidth, height=3cm, align=right, strut=no, offset=none]{

\framed[width=0.280\textwidth,height=3cm,align=right,]

{\placefigure[force][]{none}{\externalfigure[somepic.png][height=1.9cm]} }

\framed[width=0.430\textwidth,height=3cm,align=middle] {sometext in the middle}

\framed[width=0.270\textwidth, height=3cm, align=middle]{sometext on the right}

}

}]

%\setupfloat[table][default={force,split}]

\setupxtable[ option=stretch,split=repeat,header=repeat,align=middle]

\setupxtable[head][background=color,backgroundcolor=gray,foregroundcolor=red]

\starttext

Some lines of text. This text must come just before the table, but only on the first page of the table

\def\onerow{

\startxrow

\startxcell first \stopxcell

\startxcell second \stopxcell

\startxcell third \stopxcell

\startxcell fourth \stopxcell

\startxcell fifth \stopxcell

\startxcell sixth \stopxcell

\stopxrow}

%\startplacetable

\startxtable

\startxtablehead[head]

\onerow

\stopxtablehead

\startxtablebody

\dorecurse{40}{\onerow}

\stopxtablebody

\stopxtable

%\stopplacetable

\stoptext

--------------9A54A06400B59E53F57B074B-- --===============2385492779288225573== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============2385492779288225573==--