← Back to team overview

gtg team mailing list archive

[Bug 630404] Re: A q&d way to export to a pocketmod

 

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?

** Changed in: gtg
     Assignee: (unassigned) => Luca Invernizzi (invernizzi)

-- 
A q&d way to export to a pocketmod
https://bugs.launchpad.net/bugs/630404
You received this bug notification because you are a member of Gtg
contributors, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Confirmed

Bug description:
I really grew fond of the pocketmod printout of Thinking Rock and won't switch to gtg until it has a similar feature. So I hacked a quick and dirty way to create one for gtg 0.2.4

You need:
- export plugin
- pdflatex
- pdfjam
- pdftk
- files attached to this report

1. activate export plugin and place template_pocketmod.tex in /usr/share/gtg/GTG/plugins/export/export_templates/
2. export to a tex-file using the new export option
3. run pdflatex on your exported file
4. run pocketmod input.pdf output.pdf
5. print output.pdf

Restrictions:
- since I do have a lot of tasks I only print the tasknames, but not the task texts.
- you need to have enough tasks to create 8 or more pdf pages in step 3.
- it's designed for A4 format

This was written and tested on an up-to-date Ubuntu 10.04.

My hope is to get the discussion going for a proper export feature.





References