From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31360 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Pandoc filter for booklet printing. Date: Mon, 12 Sep 2022 07:54:04 +0000 Message-ID: <629e16fab4b64073b508739f5f645a32@unibe.ch> References: <87o7vocs0j.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="556"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBB66L7OMAMGQELPUKHNY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 12 09:55:43 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f59.google.com ([209.85.208.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oXeIB-000AZS-CO for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 12 Sep 2022 09:55:43 +0200 Original-Received: by mail-ed1-f59.google.com with SMTP id s17-20020a056402521100b004511c8d59e3sf5124416edd.11 for ; Mon, 12 Sep 2022 00:55:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1662969343; cv=pass; d=google.com; s=arc-20160816; b=Wg6z80gOW9qlmhl1JfY9zjWA5Pc44hnCBvzxG6TpBqxDmAinB08uPXO6cLL2VG6S4P DXfxV9qJOtHmc9pBhJ+3mSi82TSlQN1A6MXnAjYvYJ9MuLaVDPLgdvYVVvzZcsOZszKv 4Y77gUlDO1zJkozt8QGOKjAiSbpn+pCo9340nRjtNb3Etr3zhrRQ/A7PDtgqW+iH7Ad2 FAsPTsC0e/7+85om5G++qRIZ35wwT1teIroGuxNAl9bHW1d/IThBUZneDkaZNL/4KTLU t2NVLSRLZHnWrrwJEyE3uYOITXcdQrF43hLFR39LIvQm/sUMVo2+V1qxsPKJfhWs8rGb Suwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=4Ze2I1AjJ/y2SIkfIiBsSqrbl7S7uR3DudHYAyLVLNM=; b=Nhiko9M4z5X79tJ/BNDYyT9YhI+k+EJdQVW6aBWPHDPX7pKjDv7OydOsARHsLk5r38 zrT4ucGjogxENKZ9XZALaGLRJmdpNC4nyjxvOmi996FRb3KvGqAsubPbO3wPV/zMAiuc DGfAM++weAVR+Rn/TrHiqgOhSDO0PMzx7W0mX6ezIruiaed17QSUFG6C8V26Tx+lutDg JOIlnRIGnIX6+UwaO3MXJZoP2tQXh6I/TklvS3f7VkU8hboldEYs1XjUNfbdLusF2GfT kb0OQVxVwVH50x+xK1jzbXOZfNVQbPOfVkKp/I5nGFzUxHkFu3Z66JDYwSopmMu+AOsB Awqg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=qnCxAOYW; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:from:to:cc:subject:date; bh=4Ze2I1AjJ/y2SIkfIiBsSqrbl7S7uR3DudHYAyLVLNM=; b=IKRPHI088U9Qk6d+hNzxN07sWSmgEAF6Ts/G28u23NNyScYzsQtepsccZvJncbPXUl s8k6P4kqGWJwxA+YnQtZOWWvcjohRHlbpYVJpsukY3+1/9dR9Nupu05hghRsuIi1Dgto b3vXUfFBP4FvcX5WFVwsKk2HM1Sqzv5Omq+rR6xzenmoLtCTKSKllRkbCUVHEVM7zvCj d8xTwVJE3vYMzIEJEEBKecRmQrtc90Dt6ou460agGuJDWx7ZqV6y57n0OUI+ILVUPoOd JmMp6BIViGs2Uho/FjTezmho1W X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:x-gm-message-state:sender:from:to:cc:subject:date; bh=4Ze2I1AjJ/y2SIkfIiBsSqrbl7S7uR3DudHYAyLVLNM=; b=QMtCSNFOpPGX9+s9H/CQe2x9E8sGJDnm5GkhL2YzToY56NulhApTfG9IT5MaMxbqmu PYGrIkETFdER3QDPT6O02hEjURka2yuxtQzR8TuyO9SHxruaMt627ogaS4BNv0p8K7Do jTE5cqp8qJSfz0c0LUrevy7XJlRJQXc+h+8oNqwfg16A72eqUM2g4C81mfJ5DY1oN9Sq oa+6fDODgqSepY7Mb+YepMRwIB08I2O3gWN4f7sVUTYOEP6md1E+qO10IGE Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo30l0eyZv0TF1Ym7YAlXejUkeKBBH0TWp7dzWzzchQfh8N9JqVe EGDEcCCK1eyzjzkw9FZanLY= X-Google-Smtp-Source: AA6agR42F6EzBvgyZOLKlU0GuNAN2o/oEcsojOfJ7ptMTk1jL2z8tVeCdwMUZvDF8u+0ex/0nD4gFA== X-Received: by 2002:a17:907:1c87:b0:741:8199:a59d with SMTP id nb7-20020a1709071c8700b007418199a59dmr17583014ejc.736.1662969342906; Mon, 12 Sep 2022 00:55:42 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6402:440b:b0:43d:b3c4:cd21 with SMTP id y11-20020a056402440b00b0043db3c4cd21ls790093eda.2.-pod-prod-gmail; Mon, 12 Sep 2022 00:55:38 -0700 (PDT) X-Received: by 2002:a05:6402:2709:b0:451:d665:e787 with SMTP id y9-20020a056402270900b00451d665e787mr2682025edd.317.1662969338796; Mon, 12 Sep 2022 00:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662969338; cv=none; d=google.com; s=arc-20160816; b=VT58RaS4DlhkrJ4MjhE44pfXyBkng5G7ZJwYHX8bZw9CKLpPTdliQVCjSlZWgbMGX5 b2Jl6OgmhdfXAW+aO9lz8nfFRyVzCz4IowwsVE5mViyqtrpQRP2J0TrKVNTmlvzpT8wn Grkgw9L/2eQiLV/DWGOow4RqlF9HvQ3wGBduWIN105zy+e2Wzwsq5BDX+5zRzO79hlFC OptI7HZYUuS7oY8SMIXRqvBtSIsexAQIH3KneG85NROpoDDWvNIxbh/xOVGtgylx9Ea0 I7sWK12u8DDUmGU4jppIoopV72tR9hV4bpSrcUzrVvzvY6sZqCgm3n0zIUbqRqxXu+7j hwBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=fAel5raDrSVEWKvcEap80cpn7dYuUwgMm31kewUhwV4=; b=EhbrzHyqaW9Z2YbR4YjeKPvOkazMGBcqORxaX6AyWYWHtCbrnfJI10cN3xUy+T8Bi6 MyHdT8z0KBr2VvpRJxSi0NCy9XsCEzAj3m/Qn5dB+7mb6rXhF5BjGYgk2ObqEKJMK5uI UI290cnDW8vmTQs/wD4cXJEyGv9xS2JEXgnJvNf3rzoBCXQ6W4MFEKI/OjAkdQrhSjPn sNpKv8XssbdHUXXfCmL0fDmIibNmMcxs7yqvttLxH7JN86IrJHwB4FqckXeHY+3IYEk1 j5ImE+P2057m45cUUszTbEp9Yp7B9vuqgqoVvDLT0c4TBFUJ8UY2r1GhDNiT0J+91shR utHw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=qnCxAOYW; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb2.unibe.ch (mailhub-lb2.unibe.ch. [130.92.0.83]) by gmr-mx.google.com with ESMTPS id w21-20020a170907271500b0073d9d812170si229459ejk.1.2022.09.12.00.55.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 00:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) client-ip=130.92.0.83; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb2.unibe.ch (Postfix) with ESMTPS id 014AE5001BE for ; Mon, 12 Sep 2022 09:54:04 +0200 (CEST) Original-Received: from aai-mail-01.campus.unibe.ch (130.92.13.40) by AAI-EDGE-03.campus.unibe.ch (130.92.13.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.12; Mon, 12 Sep 2022 09:53:59 +0200 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-01.campus.unibe.ch (130.92.13.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.12; Mon, 12 Sep 2022 09:54:04 +0200 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.012; Mon, 12 Sep 2022 09:54:04 +0200 Thread-Topic: Pandoc filter for booklet printing. Thread-Index: AQHYw7LiLTJD2Wfaqk2ssG1bJ4r4Tq3XKqsAgARFdAA= In-Reply-To: <87o7vocs0j.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=qnCxAOYW; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.83 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31360 Archived-At: > -----Urspr=C3=BCngliche Nachricht----- > Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Albert Krewinkel > Gesendet: Freitag, 9. September 2022 18:33 > An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Betreff: Re: Pandoc filter for booklet printing. >=20 >=20 > Daniel Wilcox writes: >=20 > > I'm using pandoc to produce booklets. It's two sided 2up style > > printing that ends up having 4 "pages" per physical page. Generally > > in print these are called "signatures" You fold them and end up with = neat > little booklets. > > Anyhow, It's imperative when arranging these pages for print that the > > total number of pages be a multiple of 4 so the imposition software > (pdfjam) can > > arrange the pages for easy folding and stapling. Anyhow I've come t= o ask > if > > anyone has some direction for me.I'm pretty sure I need to write a > > pandoc lua filter so the filter can add pages in a specific location > > (near the end) if the total number of pages isn't a multiple of 4, but > > at any rate has anyone done this before? I haven't been able to find = any > information regarding this. >=20 > Pages are not part of pandoc's document model, so this will require a > different approach. You could ask about this in a LaTeX forum, e.g., > . If they know of a solution, then we can > help make it work in pandoc. >=20 In addition to what Albert has written, you might be interested in what Con= TeXt offers here. E.g.: https://wiki.contextgarden.net/Imposition Best, Denis --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/629e16fab4b64073b508739f5f645a32%40unibe.ch.