From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114605 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Xml - Lua - context Date: Mon, 28 Mar 2022 17:21:53 +0100 Message-ID: References: <87033765-8B2C-4B8C-8CFC-C898CC90269A@uni-bonn.de> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2677389459235646443==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13808"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Reviczky , "Thomas A. Schmitz" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 28 18:22:43 2022 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 1nYs8h-0003LY-18 for gctc-ntg-context-518@m.gmane-mx.org; Mon, 28 Mar 2022 18:22:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CCB662A35C0; Mon, 28 Mar 2022 18:22:10 +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 VYRSDvB34gYc; Mon, 28 Mar 2022 18:22:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CD4212A35CD; Mon, 28 Mar 2022 18:22:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 418652A35CC for ; Mon, 28 Mar 2022 18:22:08 +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 BND4_Ig_-zc6 for ; Mon, 28 Mar 2022 18:22:07 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.46; helo=mail-ed1-f46.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 142102A35C0 for ; Mon, 28 Mar 2022 18:22:06 +0200 (CEST) Original-Received: by mail-ed1-f46.google.com with SMTP id g22so6455421edz.2 for ; Mon, 28 Mar 2022 09:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zkiHRBXOjVkeol0nIzyV+c//ZUe0RWozK6GgSrc8YQA=; b=Pknt0MtDVWb8zLPHEND5FdCBAAMaYNFa2u+fRnQvnNOaQJ+c126wFAGssn+2AysbEC hNaaffCfz08aZ9lkQhV4ER5Jvfpc2jwgAE4jY3dw7G5mSYoA4Zj5tNsMkmwY8d122vpM GF9x0yf9QJpIl/ISUwC4JDiJzIiWc7FPvXsFedoHODmodsXuN8FENUR7yrRz/nr7CMLe cFXptiSA4wM9xH2woV16fXzpYZOKxlHbD1Sb55fL37/E4V2bynH6bFAxijvfAvRFPjAv YxLPYB3r9FS/BPlkJRNaPiNqsRklyZZlWQRUEWolzvMhm39utChUIzJPjDYyS0gxgLQs sthg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zkiHRBXOjVkeol0nIzyV+c//ZUe0RWozK6GgSrc8YQA=; b=LWKAA+NtFLUKR+solw+eSJJzcaW0H6+LlAIcIHeGJL4teyE2uHCbC4pmGAKtY3/6Qq INjbHIOoN/pXCmD6FWbtE7eKtI3JRILn9jENYGpwQRXBFZ+O6o4kBgtTfqqcAlI/pJpZ AL4fsF7lbLEfLQmbzA4Vr3pJ8E68GHy7toQxRbyUtwzM7DzcFgFiH0lPGN3u/WbmZjFf MA2Ho9kVP75a/0DnPMH/j0LmEf7agiZY211Vlw25U2TOVIMvr5SBtS8nS8de88+2Hwed wDxUtrCiR1JAFiEqrIHlT/kSvyCE+ksz1kI5enUMuOR+DVaPCEJCeLs910tbCyHEXk0w MIjw== X-Gm-Message-State: AOAM531F9tmBhiTK3tRvqxACBanaTwmf+eINJXnGbjnocrFRkeWUKxcv Kgi0zBWV+atvifZb9/ftVm2zXMkhSo0tGW/Xf1ZhIJRkhywjjQ== X-Google-Smtp-Source: ABdhPJxoHvWCfZH+Rd4jocndnY97NxH1ztC5tjHdam7k733Lu7AXquXptYssoKOreOfM7bnbnDiPTIB1zp/v6LNBUQw= X-Received: by 2002:aa7:ca5a:0:b0:419:a7fb:23d with SMTP id j26-20020aa7ca5a000000b00419a7fb023dmr17592720edt.244.1648484525442; Mon, 28 Mar 2022 09:22:05 -0700 (PDT) In-Reply-To: <87033765-8B2C-4B8C-8CFC-C898CC90269A@uni-bonn.de> 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:114605 Archived-At: --===============2677389459235646443== Content-Type: multipart/alternative; boundary="0000000000008e8c1b05db49b600" --0000000000008e8c1b05db49b600 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Thomas, Not sure whether it helps or not, but in regards to combinations and Lua I have had some challenges as well, but Hans' and Wolfgangs' solution with externalfigures works fine for me now: https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html Adam On Mon, Mar 28, 2022 at 2:42 PM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote: > And here comes question 2, a very basic one: on A4 landscape pages, I wan= t > to place two images next to each other (like the spread pages of a book). > What would be the preferred way of the really competent users to do this, > again keeping in mind that I want to loop over page numbers in a pdf file > and thus am coding in Lua. So far, I have tried or thought about: > > 1. Embedded xtable > > This is what I=E2=80=99m using now, an xtable of two columns for every A4= page. It > works, but I wonder if it=E2=80=99s a good method. > > 2. combinations > > This appeared to be the most natural approach (because it=E2=80=99s what > combinations are for), but I ran into expansion problems, added a few > =E2=80=9Cfunction () end=E2=80=9D in my code, but couldn=E2=80=99t make i= t compile. Combinations, > combined with framed and externalfigure, are difficult to write in Lua - = or > am I too stupid to find the winning combination (sorry for the puns). > > 3. columns > > Again, this would seen like a natural approach, having every A4 page set > up as two columns, but maybe that=E2=80=99s overkill? > > I=E2=80=99d be curious to know what you think! > > All best > > Thomas > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --0000000000008e8c1b05db49b600 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Thomas,

Not sure whether = it helps or not, but in regards to combinations and Lua I have had some cha= llenges as well, but Hans' and Wolfgangs' solution with externalfig= ures works fine for me now:


Adam

On Mon, Mar 28, 2022 at 2:42 PM Thomas A. Schmitz via ntg-context &= lt;ntg-context@ntg.nl> wrote:<= br>
And here comes q= uestion 2, a very basic one: on A4 landscape pages, I want to place two ima= ges next to each other (like the spread pages of a book). What would be the= preferred way of the really competent users to do this, again keeping in m= ind that I want to loop over page numbers in a pdf file and thus am coding = in Lua. So far, I have tried or thought about:

1. Embedded xtable

This is what I=E2=80=99m using now, an xtable of two columns for every A4 p= age. It works, but I wonder if it=E2=80=99s a good method.

2. combinations

This appeared to be the most natural approach (because it=E2=80=99s what co= mbinations are for), but I ran into expansion problems, added a few =E2=80= =9Cfunction () end=E2=80=9D in my code, but couldn=E2=80=99t make it compil= e. Combinations, combined with framed and externalfigure, are difficult to = write in Lua - or am I too stupid to find the winning combination (sorry fo= r the puns).

3. columns

Again, this would seen like a natural approach, having every A4 page set up= as two columns, but maybe that=E2=80=99s overkill?

I=E2=80=99d be curious to know what you think!

All best

Thomas
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000008e8c1b05db49b600-- --===============2677389459235646443== 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== --===============2677389459235646443==--