GTG

Comment 4 for bug 630404

Revision history for this message
Luca Invernizzi (invernizzi) wrote :

Hi Jan. I'm a gtg developer and the creator of the export plugin.
I've tried your template, and it works just great! It would be good for people who prefer the pen and paper.

So, to make it quick to create a pocketmod we would need:
 - a way to run scripts on the file generated with the template. I'm thinking we could have, in the same directory of template_example a file script_example. If it exists, GTG automatically runs ./scripts example file_generated_from_the_template output_file. Any eventual parameter for the script should be passed in the template (but I don't think it will be necessary).
 This is quite easy to do.
- A way to decide if the task text should be inserted in the template or not. A possible quick way would be to have two different templates, since the template file would need to be changed anyway. Easy too.
- Padding in the template to make the output file at least 8 pages long. The quickest way that comes to my mind is generate the pdflatex file, get the length of the file (something like pdfinfo brochure.pdf |grep 'Pages'|sed 's/Pages:\s*\([0-9]*\)/\1/' ), and insert enough /newpage to have it long enough.

What do you think?