From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28146 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Jolly Newsgroups: gmane.text.pandoc Subject: Docx / OpenDocument output based on template Date: Mon, 12 Apr 2021 20:56:57 -0700 (PDT) Message-ID: <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_5570_1019531873.1618286217346" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16432"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCAZJFHEQQARBCVN2SBQMGQEFCUJKBI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 13 05:57:01 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lWAAe-0004AA-Jo for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 13 Apr 2021 05:57:00 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id u25sf285410ots.10 for ; Mon, 12 Apr 2021 20:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=AQh3YJDLdCKXOcZebk13QSble3xRIwajbQJR0/RNV/o=; b=gt5ffGZ3j19TlAraYixGjE9nOcUN3uFcvUOZApZMApdb8s+krZJ1hakfdoNLvExObP YIBbB+lq2trOPf9ez+qK+RYKsUGRPzDkxKabakVBzZbTSaR87vVjpztiw7EhBfLck5ci N7EDYDiEge6g6VgsWOh21z6AtyX6Tb54nc/l1EAz2Ft2NGv9UTyB7Cv6ZYxrsSKYYg8x qR8It/3RpeXie/uEutrJN9+SPZTW0qCcrIDTBGeKSzvLV7XFac0MNrS8+cWKAFioYcc9 zz6NEHSmdnVtKCtcHZPlz4RP+/3fVGibAaOSsdzp5X7pFdLDkwCkt8d+pgSe9ShxkakU zqgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=footclan-ninja.20150623.gappssmtp.com; s=20150623; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=AQh3YJDLdCKXOcZebk13QSble3xRIwajbQJR0/RNV/o=; b=1EVQMEjGu1iD0+10gwWgL7UCv4Pk5Ql0P31ILMfRQb2LMkPY4x+OzIE9eeFha9LuM5 vwp4NGO3IJX9iH86l4ILH/Mok1ij1HizQbtoFyND41PCbQv5vCKUyN/lb8wVDUNWVBu/ w5bSjpC5b6ef2nlbEbYhrKX0v0izciNW2JZ0Wu/DEqREYgRj6EdBuzz4DJ4mv5kQWd6P qoSxPYGesIqASnj3h2PCiXTgVmrjvj7r5fFWkOJ0KUldGY5Jgn5mZRkgr7MaaEMvrPGU o2WPttZgo8xqEvZDHHXGysu2IWSz1ZZ2JPsmH3JD5llmSm+17OA0fLTaPw9Tj35cyGtG 5aTw== 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: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=AQh3YJDLdCKXOcZebk13QSble3xRIwajbQJR0/RNV/o=; b=W4F6hbhMLJPC3s4lumb6U4t20vtZvPIMoZW2Gv+m/0jZIUjLx7PhcqQL+ukkdcv5rA dkFTxM8UY2TyA8HwT+iVGZ1RfuWVFYvmOvFmbmPlImB5AV/aXmZi0QCO5c5toHNpMxBG 2flmPN1BZywuP1zvhBJUeDtFhnVfg5nZ8SRsASfwPj7xW1j1xGCRBWtQHtmy42xCC1H5 szBmEPxjznCT4Ay9Erf3dvv302V4YkIiEnVoDexEWbY0t+b140ChZaSk/xeT6xb5rzHW bUYx7z4/tXH2WSy9r3+rFmCZ/8xJcy1SYWJz3mglBCAvntpMLKnSf0XvzncTsKuin4ak wZ/g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530txg0aC5LZBLWufutiySP7MfuaMDHXy13yT1xFpVpiTZUo+ZN9 Qu/qmMNfvT0U43skjPHME0I= X-Google-Smtp-Source: ABdhPJx6genumsLhktvGteqFZuUkhlH/t3F5pqXnBk0Wp72iHbg8HqxbjiUU/6FwR77U6C4Vqp5AOA== X-Received: by 2002:a9d:754d:: with SMTP id b13mr15542955otl.106.1618286219650; Mon, 12 Apr 2021 20:56:59 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:13d0:: with SMTP id d16ls4091601oiw.10.gmail; Mon, 12 Apr 2021 20:56:58 -0700 (PDT) X-Received: by 2002:aca:2315:: with SMTP id e21mr1916171oie.164.1618286217944; Mon, 12 Apr 2021 20:56:57 -0700 (PDT) X-Original-Sender: kangie-S+5N7tjWkgv8X0x+8FA6VA@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:28146 Archived-At: ------=_Part_5570_1019531873.1618286217346 Content-Type: multipart/alternative; boundary="----=_Part_5571_586506842.1618286217346" ------=_Part_5571_586506842.1618286217346 Content-Type: text/plain; charset="UTF-8" Hi All, I've been working on implementing 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, etc by using a docx reference-doc, however I also need to implement some branding (etc) to create a Title Page and some additional (templated) content / pages prior to the document body (or ToC) preferably with the ability to pull from document metadata. Based on a look at the various writers and pandoc templates available it doesn't seem like this is easily possible using docx in the same way as say LaTeX, however there is a default.opendocument template; If my understanding is corrrect this works in conjunction 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 reference doc to inform the output? What would be the best way to implement something like this? Am I best off attempting to use docx and implementing 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 "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email 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/55062ea0-a237-4835-860b-e4ca5290e5cdn%40googlegroups.com. ------=_Part_5571_586506842.1618286217346 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi All,

I've been working on implementing a 'word processor' compati= ble output from the Markdown source that I'm using to build my existing LaT= eX/PDF documents.

At this stage I've managed to implement styles, ma= rgins, header and footer, etc by using a docx reference-doc, however I also= need to implement some branding (etc) to create a Title Page and some addi= tional (templated) content / pages prior to the document body (or ToC) pref= erably with the ability to pull from document metadata.

Based on a l= ook at the various writers and pandoc templates available it doesn't seem l= ike this is easily possible using docx in the same way as say LaTeX, howeve= r there is a default.opendocument template; If my understanding is corrrect= this works in conjunction 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 reference doc to inform the output?

What would = be the best way to implement something like this? Am I best off attempting = to use docx and implementing 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/55062ea0-a237-4835-860b-e4ca5290e5cdn%40googlegroups.= com.
------=_Part_5571_586506842.1618286217346-- ------=_Part_5570_1019531873.1618286217346--