On Tuesday, April 26, 2016 at 8:43:34 AM UTC+2, JDani Jiménez wrote:
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?


Do I understand your mentioning of LibreOffice/ODT correctly as *"I do not really need it -- all I want is the final PDF, and a change and version control for my source files"*?
 

--
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-/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/msgid/pandoc-discuss/9a664450-8fbb-4a6d-abd5-5a4c567b2e69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.