emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Cc: gour@atmarama.org, Christian Egli <christian.egli@novell.com>,
	tim.ocallaghan@gmail.com
Subject: Re: GTD & LaTeX export
Date: Mon, 10 Dec 2007 14:38:03 +0000	[thread overview]
Message-ID: <87fxyasjhw.fsf@bzg.ath.cx> (raw)
In-Reply-To: <3d6808890712100508x2162d684ua6c2c56ae59f7425@mail.gmail.com> (Tim O'Callaghan's message of "Mon, 10 Dec 2007 14:08:44 +0100")

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

"Tim O'Callaghan" <tim.ocallaghan@gmail.com> writes:

> On 09/12/2007, Gour <gour@atmarama.org> wrote:
>> Hi!
>>
>> I'm moving from my old Palm Pilot to Hipster PDA (most probably with
>> A7 format which is more convenient in Europe than 3x5" index cards),
>> but would like to 'sync' some of the notes from it to Org-mode
>> (especially computer-related tasks), but also to print from my
>> org-mode file back to A7 forms arranged as 8-up on A4 page.
>>
>> Is anybody doing something similar, i.e. printing from org-mode files
>> to 3x5"/A7/whatever paper?
>
> If you check the list, someone had a method of creating 8up
> pocket-mod type output from Latex->pdf manipulation.

I'm attaching the code from Christian Egli here again.  

I don't know if it is distributed somewhere : Christian, would you be
okay to distribute it?  If you don't have a web server at your disposal,
I can put the code somewhere on my org-mode page, or maybe Carsten can
put it on http://orgmode.org


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org2pocketMob.sh --]
[-- Type: text/x-sh, Size: 3047 bytes --]

# org2pocketMod - a small utility to generate pocketMod style printouts
# from org mode Copyright (C) 2007 Christian Egli
# 
# Version: 0.2
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

EMACS = /usr/local/bin/emacs-23.0.0 -batch -l ~/.emacs.el
LATEX = /usr/bin/latex

hipsterFiles =  weekCalendar.pdf \
		yearCalendar.pdf \
		monthCalendar3.pdf \
		monthCalendar2.pdf \
		monthCalendar1.pdf

pocketModFiles =  weekCalendar.pdf \
		  yearCalendar-rotated.pdf \
		  monthCalendar3-rotated.pdf \
		  monthCalendar2-rotated.pdf \
		  monthCalendar1-rotated.pdf 

all: pocketMod.pdf hipsterPDA.pdf

# Quick hack to massage the LaTeX produced by cal-tex
# quote '@', then increase font size of week calendars and 
# finaly increase font of diary entries in moth calendar

%.dvi: %.tex
	sed 	-e 's/\\verb|@|/\@/g' \
		-e 's/documentclass\[11pt\]/documentclass[12pt]/g' \
		-e 's/{\\tiny \\raggedright #3}/{\\small \\raggedright #3}/g' \
		< $< > /tmp/temp-org-file.$$$$; mv /tmp/temp-org-file.$$$$ $<
	$(LATEX) $^

%.pdf: %.dvi
	dvipdf $^

%-rotated.pdf: %.pdf
	cp $^ $@
	for n in 1 2 3; do \
		pdf90 --outfile tmp.pdf $@; mv tmp.pdf $@; \
	done

weekCalendar.tex: ~/.diary
	$(EMACS) -eval "(progn (calendar) (cal-tex-cursor-week-iso 4) (with-current-buffer cal-tex-buffer (write-file \"$@\")))"

monthCalendar1.tex: ~/.diary
	 $(EMACS) -eval "(progn (calendar) (cal-tex-cursor-month-landscape 1) (with-current-buffer cal-tex-buffer (write-file \"$@\")))"

monthCalendar2.tex: ~/.diary
	 $(EMACS) -eval "(progn (calendar) (calendar-forward-month 1) (cal-tex-cursor-month-landscape 1) (with-current-buffer cal-tex-buffer (write-file \"$@\")))"

monthCalendar3.tex: ~/.diary
	 $(EMACS) -eval "(progn (calendar) (calendar-forward-month 2) (cal-tex-cursor-month-landscape 1) (with-current-buffer cal-tex-buffer (write-file \"$@\")))"

yearCalendar.tex: ~/.diary
	 $(EMACS) -eval "(progn (calendar) (calendar-forward-month 2) (cal-tex-cursor-year-landscape 1) (with-current-buffer cal-tex-buffer (write-file \"$@\")))"

pocketMod.pdf: $(pocketModFiles)
	pdfjoin --outfile tmp.pdf $^
	pdfnup tmp.pdf --outfile $@ --nup 4x2 --frame true

hipsterPDA.pdf: $(hipsterFiles)
	pdfnup weekCalendar.pdf --outfile page1.pdf --nup 2x2 --frame true
	pdfjoin --outfile tmp.pdf monthCalendar[1-3]-rotated.pdf yearCalendar-rotated.pdf
	pdfnup tmp.pdf --outfile page2.pdf --nup 2x2 --frame true
	pdfjoin --outfile $@ page1.pdf page2.pdf

clean:
	rm -rf *.aux *.dvi *.tex *.log *.pdf

[-- Attachment #3: Type: text/plain, Size: 13 bytes --]


-- 
Bastien

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2007-12-10 13:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-09  9:42 GTD & LaTeX export Gour
2007-12-10 12:24 ` Pete Phillips
     [not found] ` <3d6808890712100508j78df858ak6643b31e710626b8@mail.gmail.com>
2007-12-10 13:08   ` Tim O'Callaghan
2007-12-10 14:38     ` Bastien [this message]
2007-12-10 16:08       ` francois
2007-12-10 18:11         ` Bastien
2007-12-10 23:43       ` Christian Egli
2007-12-11  0:01         ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxyasjhw.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=christian.egli@novell.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gour@atmarama.org \
    --cc=tim.ocallaghan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).