From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28190 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "krulis....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Re: Docx / OpenDocument output based on template Date: Mon, 19 Apr 2021 00:06:34 -0700 (PDT) Message-ID: References: <55062ea0-a237-4835-860b-e4ca5290e5cdn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_214_43384150.1618815994987" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39507"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCJOHJEKUQNBB7GX6SBQMGQEG2LWH7I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Apr 19 09:06:39 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f55.google.com ([209.85.210.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lYNzS-000ABI-5A for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 19 Apr 2021 09:06:38 +0200 Original-Received: by mail-ot1-f55.google.com with SMTP id g21-20020a9d62150000b0290297dd7c9c1dsf3127545otj.6 for ; Mon, 19 Apr 2021 00:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=ZlLYzBp3J+VgSigQJcToxShY6gbZptzxtVPHGHCE520=; b=Be/hWzX22tk7Jupfiw5xwEEeVaVj95mhyHEgbwfxpyisM2lTD2/cnUduFXWlL+6igy ptjqxmMlajmi9om8CQv00zebesDn5MrMemUPV90TYY1/sELnk/DRq0EZIyVEODp3Jskw nc7UFhvdG248jW//6HYNM8SJ4jMF2CRTAKbtEDxhGA9Z60ZIV3WOnsPt/AhlgHmx5gwL SMZYh878E9szGsBLVw5w+PbwIcaXhk5TxaodY8zfKR2BOq8CJws5UDDUrpdVi4KuaGC5 39RAY+7gsNOtRriB8DLiL40DAp8DguFKs9b4WmnQg5okN2OCahasHY5ZagBhiIJxLUnY +OHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=ZlLYzBp3J+VgSigQJcToxShY6gbZptzxtVPHGHCE520=; b=hSHfAEDKZSVS9jbNBiSlTtAXTkOtpMseE2+4k+CkZquIdSg6AEI+zONDp67t+gIxpc 2uo1fy9ZqgRzpspF5GFx9JAvVkiUQVIK3kERAmTyb41OWEzKWN3/bYqMZHU79lyk79t7 3O4CzrGHcqvhi+YMqwPSxxXTofxIzjMZaZC/LzuKd5S3l0f2baVYASJIxJe6fjdShXg5 uZLMobt2CJUU+hdACWA/b357u+diMNNNYqhOq7gLhzr0HvcD6wJYDt6iKE+FEt8NG/Lk 7V1yFCIJmpMEpBiCp0F5mQkSpLXhiI91MFtn46zMeBzRjcEilRffXuhw8Us5o+RRfGzJ OE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=ZlLYzBp3J+VgSigQJcToxShY6gbZptzxtVPHGHCE520=; b=I1N6xqGBW6AyKrtR6DBcfC/p1mWyjzJKgxWa46LBcV1lgcGE61fljsFzW41VqvYFOI +jobs95ARJOAmchFhUHXJTzMvlhlNurv7nB2d2s257WlZesqmJ1wiAsjD32gA3MFPVPo KShZYNqO0iCndlKYIF5zBZ86kH1pMywKfhcZAaAhxqrbM4RkrlmpEhOwEozqWxFv5E+7 YwqBHllm1xKmyBQPrLsR/PrAkAQidHZhTJPzCcaILzshbNwOQuWU+iGN1XgRZ2EljI7j rO4N42YO5tMSyFzEP3qORFmtVq2qM65zJwY7MWt3h3cW2ECuVC4D7A/JXGrlpiTsnsmk j6HA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530Zx8ZH4JnWx4WT02v0BDkzaKNbivTk488pCxSyqkzE8J1D7A8Z GtIPmbl8XycV+kdtLki24J0= X-Google-Smtp-Source: ABdhPJyzLiwLmSOp91oucNOUo2TMA3MYCzdzzsaPe3BSZAVpS6WbPuIpAaZ+Hq1BxkyHhOtlDwqBCQ== X-Received: by 2002:a9d:6c52:: with SMTP id g18mr13149597otq.29.1618815997255; Mon, 19 Apr 2021 00:06:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:ab4a:: with SMTP id j10ls886921oon.3.gmail; Mon, 19 Apr 2021 00:06:35 -0700 (PDT) X-Received: by 2002:a4a:e512:: with SMTP id r18mr12393343oot.40.1618815995724; Mon, 19 Apr 2021 00:06:35 -0700 (PDT) In-Reply-To: <55062ea0-a237-4835-860b-e4ca5290e5cdn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: krulis.tomas.tk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:28190 Archived-At: ------=_Part_214_43384150.1618815994987 Content-Type: multipart/alternative; boundary="----=_Part_215_1378640572.1618815994987" ------=_Part_215_1378640572.1618815994987 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just a guess until someone more versed in pandoc reacts: If you are able to modify opendocument template to your liking, maybe the= =20 way you could do this would be to convert your source to .odt; then this=20 .odt convert to .docx. My guess is that this would be faster than doing=20 this with lua filter. I believe that in .odt export both files=20 (opendocument template and reference doc) are used to create final=20 document. I tested it someday but cant find the project ... Dne =C3=BAter=C3=BD 13. dubna 2021 v 5:56:57 UTC+2 u=C5=BEivatel Matt Jolly= napsal: > Hi All, > > I've been working on implementing a 'word processor' compatible output=20 > from the Markdown source that I'm using to build my existing LaTeX/PDF=20 > documents. > > At this stage I've managed to implement styles, margins, header and=20 > footer, etc by using a docx reference-doc, however I also need to impleme= nt=20 > some branding (etc) to create a Title Page and some additional (templated= )=20 > content / pages prior to the document body (or ToC) preferably with the= =20 > ability to pull from document metadata. > > Based on a look at the various writers and pandoc templates available it= =20 > doesn't seem like this is easily possible using docx in the same way as s= ay=20 > LaTeX, however there is a default.opendocument template; If my=20 > understanding is corrrect this works in conjunction with a .odt=20 > `--reference-doc` to produce output. Am I on the right track here, or doe= s=20 > odt output behave similarly to docx, only using the reference doc to info= rm=20 > the output? > > What would be the best way to implement something like this? Am I best of= f=20 > attempting to use docx and implementing a filter to get my additional=20 > content injected before the body, or is modifying the opendocument templa= te=20 > likely to be a better option? > > Thanks for the advice! > --=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/e283b54e-6c6d-421b-8047-87e1610a74d6n%40googlegroups.com. ------=_Part_215_1378640572.1618815994987 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just a guess until someone more versed in pandoc reacts:

If you are = able to modify opendocument template to your liking, maybe the way you coul= d do this would be to convert your source to .odt; then this .odt convert t= o .docx. My guess is that this would be faster than doing this with lua fil= ter. I believe that in .odt export both files (opendocument template and re= ference doc) are used to create final document. I tested it someday but can= t find the project ...

Dne =C3=BAter=C3=BD 13. dubna 2021=C2=A0v=C2=A05:56:57= UTC+2 u=C5=BEivatel Matt Jolly napsal:
Hi All,

I've been working on implemen= ting a 'word processor' compatible output from the Markdown source = that I'm using to build my existing LaTeX/PDF documents.

At this= stage I've managed to implement styles, margins, header and footer, et= c by using a docx reference-doc, however I also need to implement some bran= ding (etc) to create a Title Page and some additional (templated) content /= pages prior to the document body (or ToC) preferably with the ability to p= ull from document metadata.

Based on a look at the various writers a= nd pandoc templates available it doesn't seem like this is easily possi= ble using docx in the same way as say LaTeX, however there is a default.ope= ndocument template; If my understanding is corrrect this works in conjuncti= on with a .odt `--reference-doc` to produce output. Am I on the right track= here, or does odt output behave similarly to docx, only using the referenc= e doc to inform the output?

What would be the best way to imple= ment something like this? Am I best off attempting to use docx and implemen= ting a filter to get my additional content injected before the body, or is = modifying the opendocument template likely to be a better option?

Thanks for the advice!

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/e283b54e-6c6d-421b-8047-87e1610a74d6n%40googlegroups.= com.
------=_Part_215_1378640572.1618815994987-- ------=_Part_214_43384150.1618815994987--