From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/14829 Path: news.gmane.org!not-for-mail From: BP Jonsson Newsgroups: gmane.text.pandoc Subject: Re: Automating markdown to odt with fields Date: Tue, 26 Apr 2016 12:07:19 +0200 Message-ID: References: <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/alternative; boundary=001a1141be305ca1db053160754f X-Trace: ger.gmane.org 1461665241 28342 80.91.229.3 (26 Apr 2016 10:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Apr 2016 10:07:21 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDIY76M674FRBV737S4AKGQE3PZTPFQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 26 12:07:20 2016 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ob0-f183.google.com ([209.85.214.183]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1auzto-0003j8-Gb for gtp-pandoc-discuss@m.gmane.org; Tue, 26 Apr 2016 12:07:20 +0200 Original-Received: by mail-ob0-f183.google.com with SMTP id n10sf1712668obb.0 for ; Tue, 26 Apr 2016 03:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:in-reply-to:references:date:message-id:subject :from: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=8JuW0+h3erWgJE5YR/0092+/2L7KdVK3xBqft0HPZ8I=; b=GYFH8tJu/5jia4XheUbHgcC5NOsufQwM7QM55OUd4SRu36DCXJ/lhgA8QglAZAzRiw miQWbdc1q2+k9QZ3DtZmHx7bRsy5H79TjdvS24VBz6G2T5C1hG+TenDWiY7p5UGpo5yj TQ2x/ZvyeheW0GAtnwhsYx5SbMusankUW6GAJpFEcdmUjm4y7vEj1XmX5R3cc3TWPLK+ 3RHdAOzkMDcishCFRx9XGDj4J0wZgWnthPSPRn1u3F8qTULBtxidWUp/a9uz2kVZ0Is4 xvhAa+IDfLU4JHl2DwkG/NvzsYvsvnrQ2f0XEK+7UHjZBKT7ykRp/MzEuXIzyChnxKQm f0vw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from: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=8JuW0+h3erWgJE5YR/0092+/2L7KdVK3xBqft0HPZ8I=; b=OTCvUu9Gjf1UpFw/xIWM9Re45J2LpWuXHd0ngsxFWVUKhQUQQLHMm1Z0MOG30I9S45 /WHUK1ppeJloOE97/2Tk5boR0d7HpzphLsTzMNMlJlHpdL1IyjukJ0Gvd0K8ur5w3E3Q pvsiLDc7Q22G3E74u/ANZE6sMuqba+Hxr0mXHMK23wuegttXCFnG6QsqiHFHqA1OVH5Q zPBrRTlGkw43W3cfDnw5RygICcgO8anf/jMB2X5GY0MTRheJ7MnTtAmIArtypr+KMv8M It8HxtntacXtJiADIEpTw8w7EXKzQUvFU7E3v8gervKHoc/6n4vmEU1ILtL+srnevcwV mkHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from: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=8JuW0+h3erWgJE5YR/0092+/2L7KdVK3xBqft0HPZ8I=; b=G7bN0kvpPVPetmlkxYHdEPf76gtVT0VfK6UgAR8kmU+0YgKwqE1HZA604Y1PIuUfBh +UuvYXbqhlwA2I4yjPUSyr2bcRF/dsPBJ+n40jwL2QTMJhCJvM7Rv5jniIqUTsluPcWs iOpMjjVdoSsq0PX8TktDM6FGXzk9YgBm+78HSmd7RlSXMALXGxR6lY/h94yRY5/5Oc2z +E7P228XuAI3qVq/dBn3tb4TOmnGTIxXn2TrbhuOFXO3/YZEXdLmuzJ3pkjVY+tV1/bN 4Op8nVTMhFk8h87itoSGtjpFPVOAUcetBn62A6HI5uZhviB8mZa8tgmd2U2NnjGdjnc8 kF2A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOPr4FXrIzrigX3HNWia5T3QlJURSr1mW6c1tWqvIOginDo+phKv/8kXIzGkJtCMX6SJwQ== X-Received: by 10.140.92.207 with SMTP id b73mr24390qge.10.1461665239774; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.95.87 with SMTP id h81ls2586512qge.28.gmail; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) X-Received: by 10.129.128.131 with SMTP id q125mr766164ywf.50.1461665239325; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) Original-Received: from mail-io0-x235.google.com (mail-io0-x235.google.com. [2607:f8b0:4001:c06::235]) by gmr-mx.google.com with ESMTPS id gm17si1493759igb.1.2016.04.26.03.07.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Apr 2016 03:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c06::235 as permitted sender) client-ip=2607:f8b0:4001:c06::235; Original-Received: by mail-io0-x235.google.com with SMTP id d62so10940417iof.2 for ; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) X-Received: by 10.107.167.69 with SMTP id q66mr2357091ioe.20.1461665239175; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) Original-Received: by 10.107.157.199 with HTTP; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) Original-Received: by 10.107.157.199 with HTTP; Tue, 26 Apr 2016 03:07:19 -0700 (PDT) In-Reply-To: <7608243e-3f15-48de-9230-00b78127246e-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com; spf=pass (google.com: domain of bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4001:c06::235 as permitted sender) smtp.mailfrom=bpjonsson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com 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:14829 Archived-At: --001a1141be305ca1db053160754f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm not sure I understand what you are trying to do, but note that pandoc only supports a subset of ODT features, which coincide with its own document model. I for one wouldn't mind an ODT writer which create stub styles based on classes on spans etc., but we don't have that now and if I understand correctly the ODT writer is currently unmaintained. In the past I experimented a bit with including textual pseudo-markup and postprocessing with OOo/LO macros/scripts, but it was a pain. /bpj Den 26 apr 2016 08:43 skrev "JDani Jim=C3=A9nez" : > I need to automate the generation of many documents and, hopeful, maintai= n > 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 shoul= d > 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 file= s > 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 an= d > 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 wi= th > pandoc? > > -- > 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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/7608243e-3f15-48de-9230-= 00b78127246e%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CAFC_yuQRGdTezOxv7HRn79TuKr0qhLgzxb%3DPfFywRSVJYd3nhw%40mail= .gmail.com. For more options, visit https://groups.google.com/d/optout. --001a1141be305ca1db053160754f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I'm not sure I understand what you are trying to do, but= note that pandoc only supports a subset of ODT features, which coincide wi= th its own document model. I for one wouldn't mind an ODT writer which = create stub styles based on classes on spans etc., but we don't have th= at now and if I understand correctly the ODT writer is currently unmaintain= ed. In the past I experimented a bit with including textual pseudo-markup a= nd postprocessing with OOo/LO macros/scripts, but it was a pain.

/bpj

Den 26 apr 2016 08:43 skrev "JDani Jim=C3= =A9nez" <jdjp83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org&g= t;:
I need to automa= te the generation of many documents and, hopeful, maintain change and versi= on 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:

=C2=A01. Generate an odt template with these fields defined. This is my fir= st problem... I know variables in LibreOffice Writter, but not a field as i= t.

=C2=A02. 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.

=C2=A03. Generate final .odt file rendering each markdown into its field. H= ere is when I don't know exactly how to go on. pandoc could be an optio= n, but I don't know, even reading the docs, if I can render markdown fi= les into and odt template.

=C2=A04. Finally, if the odt is generated, converting to pdf is quite strai= ghtforward using "libreoffice --headless", for example.

This is only my best approach, but it's not working 100%, so I'm lo= oking for other ways to get same results or solving these issues. Does anyo= ne have worked in a solution like this or do you know if this is possible w= ith pandoc?

--
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 pa= ndoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/ms= gid/pandoc-discuss/7608243e-3f15-48de-9230-00b78127246e%40googlegroups.com<= /a>.
For more options, visit
https://groups.google.com/d/optout.

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAFC_yuQRGdTezOxv7HRn79TuKr0qhLgzxb%3DP= fFywRSVJYd3nhw%40mail.gmail.com.
For more options, visit http= s://groups.google.com/d/optout.
--001a1141be305ca1db053160754f--