From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30423 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bastien DUMONT Newsgroups: gmane.text.pandoc Subject: Re: How can one or multiple markdown files be included in/converted to content for a .docx file Date: Fri, 8 Apr 2022 10:46:16 +0000 Message-ID: References: <97b450d0-c11e-4d83-8473-f0340e7b0cedn@googlegroups.com> 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="5721"; mail-complaints-to="usenet@ciao.gmane.io" To: 'LukasK' via pandoc-discuss Original-X-From: pandoc-discuss+bncBDCINCES2QJRB65EYCJAMGQEE7KWCKY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Apr 08 12:46:23 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f64.google.com ([209.85.128.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ncm8E-0001Mb-Jv for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 08 Apr 2022 12:46:22 +0200 Original-Received: by mail-wm1-f64.google.com with SMTP id t2-20020a7bc3c2000000b003528fe59cb9sf4192245wmj.5 for ; Fri, 08 Apr 2022 03:46:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649414782; cv=pass; d=google.com; s=arc-20160816; b=aWGETalWNN8oa8kIrvVGMKqaOZDYrS4Uv4Z78N3NqMgjO8kyQtm3SMhNCBPMeHKVBo UY6EP3Pu51NmGscFU7yABO0rCNL4qHFA2l4Hi9n4Jb4oCqXAGcmySc6ga8WLSd3XjscU VHeoYz8MCQ8Kk0KG/VBog5OkDpr/pzU/XN1XzCwIt4LjrUoVBOkSXxNA9OgP+OnWEedo CgfMQE3KYxESUNAI9RAOcsSWONsgcot9C8XuQNnQmOjMYQ0aPFnecZRWv4JEQvXPJoJZ SISpVw6VFfWUO7QP+LOmitbE/7A5cmb+gArzEtRI0pMWkdJsmL61rdlitlOVatCzzna2 jbgQ== 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:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:to:from:date:sender:dkim-signature; bh=n3PSbqkmKDLxcsg+76UE516w3ePWnU+TdxdiNrKN3wg=; b=UWgROLvld9QcH8TeTUt97ceZEFkr12qEgYCI+wxh+MayB1dbANauF7dMzAdwrRoU5l 0HHbLkuPFWXywuvhd3TAVzmtUFw7IlqFroeztPgFUy6fzuHkTz3vD9R92HsjCXo/AMnM VQkxtcmioo4Ts28x73TR4YAx9xikucsc3QosK8ImJ7VgCiB6wVS5AmfS8FCROufl35QA 5m2xrW4pt2R2FzJX1H5Mbj9nqSYNBQ071T7QwVAOWS2rXKkf9pIg11UE1gMCNwW0CdK6 QDP+LAGiQ9x4uZD4w16+eD4jYpJkRqGzqdll1ekgLpRWvusrEFWAjsV1kehEfv8vreFg cTWA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=FF62SvAU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=n3PSbqkmKDLxcsg+76UE516w3ePWnU+TdxdiNrKN3wg=; b=QYrtdqBeShtPKEGWljC2nCeWwevO04P8QQ6JQfV3VyE9gYqQqz7gQ03XkWx94vndTZ /cDU02v+5rTHSpidSL2tiYjXnkYhUwSssyMhTZ7r4ERG6TIYioBYo4+uZLYxenEUtGFL qiIpROiFyqjFDbdLY9kaEZa8dke8dcG39e/OWJij+b4BikdlzggmHenMJCUhPko58pRa c18Hk+vJXX2XfR8Rkw6+gZEHCxaWL/eaOnzXPIi17bDTEIemvEFO14RxphUkA/AAiv/P MELin+QguhicekNhgNk4DqeQGN7uSBfQqjHQbrryiPU3ukOvrGCbcqH4Q81CAZA54A4y H4kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=n3PSbqkmKDLxcsg+76UE516w3ePWnU+TdxdiNrKN3wg=; b=hjuMIYj9Ksn5lCgQ70XK1nUq00nmNmp1E8C3xbsxOb8kZTreBKdBROHdqu6u3tBASq VgkHnkyeUIJVXcNiqvlt01m1tHwG9/PrIpbLiEc770hR16Yu7Hlgnd59FmtaDJ9mebWM l+lN+oGQ/Bt7VBOJyQcSb2TX+HlA0j3lbvq+Bq0ntJvCtTsSUwGkNmklJmhCXJkEd50T PRKvDDj6zbsEIs1UznrwacLX+NnTGpZ41VhEM2ZonLqkjgfnwJysEW+NaAY8PMPUqFlG jI+PxoKwgJkBrYvdtTm3G2VtIgZ7qryEhMVA3AbEHjV4 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533pQdePuh4lkUrtQ/avxp8xeFYPBwqgs84IpC2W8xb9zpQhmbjH qdfQWS2dZsKxgErWBSuTJrk= X-Google-Smtp-Source: ABdhPJxC2KQ6P+iN3lqcmVOWrwG1mbtr+e90FRL4sa/Yi0hd/T9hUSCPkeqaF0+lj5DSBIR/WA/7XA== X-Received: by 2002:adf:ea10:0:b0:206:1c33:5038 with SMTP id q16-20020adfea10000000b002061c335038mr13684150wrm.357.1649414782079; Fri, 08 Apr 2022 03:46:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:2747:0:b0:381:80e8:be59 with SMTP id n68-20020a1c2747000000b0038180e8be59ls651224wmn.1.gmail; Fri, 08 Apr 2022 03:46:18 -0700 (PDT) X-Received: by 2002:a05:600c:1d1a:b0:38e:7683:6f38 with SMTP id l26-20020a05600c1d1a00b0038e76836f38mr15755884wms.87.1649414778275; Fri, 08 Apr 2022 03:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649414778; cv=none; d=google.com; s=arc-20160816; b=WFN+tpXeo72QCWLgcoVvgUEjxkYkbGDKd32b8nJzzcjM2TGvQA5Z2ia1KZZZkJeR+q 8zK2hqW+zuSSxbVsZN6DwT7KtnvnAGQt7kjkfZCPlEZHQeXABLYgUYOaXC8wYtea/P+Y X3uaihtMS59UpgZMe/WNnme/Mv8VmfKUhtktY/AihnAiN+cvNgTinml6i3ObsiiuRAKO 8zTpo6WSVWvXecaI5QQye4XVcg9Zr3ej2Hvj6GQjFFeZ0CbnciYorbjRPJmHlbTJTMK5 PGDoFbMwmXUBpXJ6aB7pDTSiz2P+TbDoATx5wNSuV6ZHnYQ7uwFBZvFmtmLaeLTmkTPH 14cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=eVH9hUcz4+5CTfUNty0mDZbuHthSKzmzBYUsfgmTh3g=; b=wNTI9gomB4BqkmexQWnq5yYtNkprExQMhOGvUNbzgn6i5V+yHKiBhiPN7wGRIrKeba CJjEeunaEFoDfvEvxV/+6JMTQh/pANo7/f5JiSpEQ5vHXRLYk0buwBFFx0PgoZajDTTm cKJTWnE56PYV4wwx5BY3UBgsfdQoMg2LVXQoLSKxRqs7ksdUpNNIuBR8xqXjrIw5ozZo P2hZIextAz1NIT0gC+Sikljlb9eV+wlt5oYNbMrAC5ai/uByBg7nXTO8n8tVzLJtgY3U aaYM2kqpbTMU3zMET7tgw1R7hP6rWfttmnhPxW6MGTXpGGHWSWfawV1NrX9siwE8EgOv 3vQg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=FF62SvAU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Original-Received: from mout01.posteo.de (mout01.posteo.de. [185.67.36.65]) by gmr-mx.google.com with ESMTPS id a9-20020adfe5c9000000b002079112400asi48934wrn.2.2022.04.08.03.46.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 03:46:18 -0700 (PDT) Received-SPF: pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) client-ip=185.67.36.65; Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DE60D240027 for ; Fri, 8 Apr 2022 12:46:17 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4KZZfx3BNdz6tmd for ; Fri, 8 Apr 2022 12:46:17 +0200 (CEST) Content-Disposition: inline In-Reply-To: <97b450d0-c11e-4d83-8473-f0340e7b0cedn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=FF62SvAU; spf=pass (google.com: domain of bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org designates 185.67.36.65 as permitted sender) smtp.mailfrom=bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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:30423 Archived-At: I guess that the filter =E2=80=9Cinclude-files.lua=E2=80=9D may be adapted = to your requirements: https://github.com/pandoc/lua-filters/tree/master/include-files You can write the template as a markdown file including references to the f= iles containing the changing content (after having converted them to pandoc= markdown if they are written in another wiki syntax). The main markdown fi= le can then be converted to DOCX and the layout be controlled by a referenc= e doc. Le Friday 08 April 2022 =C3=A0 03:13:37AM, 'LukasK' via pandoc-discuss a = =C3=A9crit : > we are using markdown wikis for our internal documentation, which works q= uite > well, we are also generating static .html pages from the wiki (using pand= oc) >=20 > We now want to create (or better fill) .docx Documents with our markdown > content. >=20 > E.g: >=20 > =E2=80=A2 We are having a .docx installation manual or release letter w= ith a fixed > template and fixed structure (1. toc, 2. introduction, 3. content A, = 4. > content B, 5. Remarks, ...) > =E2=80=A2 We are planning to write our content for chapter 3 + 4 in our= wiki and want > to automatically fill the existing .docx document with the content > (primary: text, lists, images) > =E2=80=A2 We want to keep the overall document structure (layout, tocs,= remarks, > etc.) >=20 >=20 >=20 > Any ideas or solutions on how to achieve the given use case? >=20 >=20 > =20 >=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= email > to [1]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [2]https://groups.google.com/d/m= sgid/ > pandoc-discuss/97b450d0-c11e-4d83-8473-f0340e7b0cedn%40googlegroups.com. >=20 > References: >=20 > [1] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [2] https://groups.google.com/d/msgid/pandoc-discuss/97b450d0-c11e-4d83-8= 473-f0340e7b0cedn%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter --=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/YlASeCJwgYOYj5qN%40localhost.