From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14826 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?JDani_Jim=C3=A9nez?= Newsgroups: gmane.text.pandoc Subject: Automating markdown to odt with fields Date: Mon, 25 Apr 2016 23:43:34 -0700 (PDT) Message-ID: <7608243e-3f15-48de-9230-00b78127246e@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3459_828619715.1461653014051" X-Trace: ger.gmane.org 1461653020 30834 80.91.229.3 (26 Apr 2016 06:43:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 06:43:40 +0000 (UTC) To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDL6Z34U5MNRBFU47S4AKGQELFLIL3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 26 08:43:39 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ob0-f184.google.com ([209.85.214.184]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1auwif-0007on-4y for gtp-pandoc-discuss@m.gmane.org; Tue, 26 Apr 2016 08:43:37 +0200 Original-Received: by mail-ob0-f184.google.com with SMTP id bg3sf1097607obb.1 for ; Mon, 25 Apr 2016 23:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender: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=UobUgVbRilGvB8z+N9CyPmVGWmVPFlihnTIkN0M3XUA=; b=r99vXYNB5WKP4RUVDXkKaa6foDDwh48eP0k7RHkQJYbIeN9C3r9ddrucNjIpGZ4Eth gP4OuP9KDdJXQX+EHojMtywn5JI91j1ryzzxLYCTC8tOyHaJVXQivLXszpBfTHhpoju9 JX0PQorEpiIMotKS+Wi39g3SU32JOpNlj+E8aanfR7AFvd1G0ZHpnLrvbzVSdNstahaC ZSLMj7uiHcQTWal7jyoC/UdAEc3VgN2WUaSIev7gNyaEH5W0jUiMmOKvypX4tf18LMzb G8LMsl97HJsTet2A3GurwshThXs7sgXAt4TmkHg6FqYDbDW4BHxdDSRpfwxOFjyEKJ6a 5vPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=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=UobUgVbRilGvB8z+N9CyPmVGWmVPFlihnTIkN0M3XUA=; b=E1DUNwkjiDFqfI0wtmufm2JvJ3vri7+cbCSDpCKCKtejmD9Fktp3xOHMHqN9P6IzRO z3mtP14cEOgZMbTTpoGMJFXTzhMC275u7GRzjZ4Pj7UXGO+LfeeFBgXNk0EMAh8hUafo YhqfyjshfFmnsuESkyKm4WCMoNPmFTVUnecfLVulhI8cQT94ygg7fxS/N3o1dKMfpKKm uVf7/xXLOAkPKWaD1bTnmnrAP6hp7Ql0lZgBlGmh7mQU+SnBkD9SxsEYnu01i4V0UlQk 4rGGqwTUOYmyQ8hXGaaUJiu/lAU6/9uYNJwXF+Sg0+LDOgT/gUQ8IfhwQapRyIOWhDi+ rKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; 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=UobUgVbRilGvB8z+N9CyPmVGWmVPFlihnTIkN0M3XUA=; b=Du7ovWmHDjbFwjKtlH8kmtDdPqtY0+4sXGW7clHB/mR2PK9UzQ0TbhdRjhrZMXtPha VGOWo59/T2mAi4S2yMZPzvMv9sSzmTp2Lk1GjW/fMphuVAs2L18uPQlL05o3xGVLtt6s /PBpFObzri+pHolo6tyGhVu9mpoqMTdR7hDsc1scs9QGN/Q45MW7IitB9wO6S8z/skKa CSMC6X6bWnlRoBqhU4TPYG+8be0iywR7Egj0nkaNJu1hH4AhoVHoJUoMYwyR0jAZ2E88 X69WaSuy9JW+A68XqUXMbCPsVWr3xGiKUQlWkaHCoJTE3ofKU8HrmTYj63nfqciFOjyV hAuA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FUvvKjn9lFoTXnIoyJf6JdQSJCxXvTc9M++5c6MwEhbfvFvSydT/YqaVbyRqjCbaw== X-Received: by 10.157.13.119 with SMTP id 110mr4687oti.17.1461653016432; Mon, 25 Apr 2016 23:43:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.157.44.38 with SMTP id f35ls597195otb.58.gmail; Mon, 25 Apr 2016 23:43:34 -0700 (PDT) X-Received: by 10.157.34.118 with SMTP id o109mr4886ota.8.1461653014540; Mon, 25 Apr 2016 23:43:34 -0700 (PDT) X-Original-Sender: jdjp83-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-Spam-Checked-In-Group: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:14826 Archived-At: ------=_Part_3459_828619715.1461653014051 Content-Type: text/plain; charset=UTF-8 I need to automate the generation of many documents and, hopeful, maintain change and version control. The main idea is to desing a template with as many fields as I need. These fields are aimed to be filled in with: formated text item lists different paragraphs images tables... I mean, not only text. And, finally, after this gaps are filled, it should be exported to odt or pdf. My best approach is this: 1. Generate an odt template with these fields defined. This is my first problem... I know variables in LibreOffice Writter, but not a field as it. 2. Write as many markdown documents as fields in my template with the custom text and structure (not format... this is stored in the template). The point here is to keep the version and changes control over these files storing them in a git server. 3. Generate final .odt file rendering each markdown into its field. Here is when I don't know exactly how to go on. pandoc could be an option, but I don't know, even reading the docs, if I can render markdown files into and odt template. 4. Finally, if the odt is generated, converting to pdf is quite straightforward using "libreoffice --headless", for example. This is only my best approach, but it's not working 100%, so I'm looking for other ways to get same results or solving these issues. Does anyone have worked in a solution like this or do you know if this is possible with pandoc?