emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Egli <christian.egli@novell.com>
To: emacs-orgmode@gnu.org
Subject: PocketMod for org-mode
Date: Wed, 17 Oct 2007 01:19:28 +0200	[thread overview]
Message-ID: <87zlyiprzz.fsf@novell.com> (raw)

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


Hi all

With my increased use of org-mode I have also started using M-x
calendar and the diary. For a while I've been wanting to have a
printed version of my calendar for offline use. Also I quite like the
idea of the pocketMod. Now the calendar mode itself can generate some
quite fancy latex printouts that include your diary entries. So over
the weekend I tried to generate a calendar similar to the pocketMod
from the calendars you can create from within Emacs. The attached
script generates a pocketMod style pdf which contains the next four
weeks, the next three months and the current year on one page. It also
generates a hipsterPDA style printout which contains the same
calendars to be used in hipsterPDA style.

I guess the script is meant as a starting point. You could possibly
add an export of your most important TODOs or possibly other
stuff. 

One thing that I'm not quite happy with is that the printouts are very
small and you almost need a magnifying glass to read them. Maybe some
experiments with the fonts and font sizes are in order. Also for some
reason the batch jobs do not seem to use the settings from ~/.emacs
(despite the -l ~/.emacs option). I need this to set the preamble in
the generated latex (e.g. for stuff like  (setq cal-tex-preamble-extra
"\\usepackage[utf8]{inputenc}")).

So enjoy your printouts and send me feedback and enhancements :-)

Christian


[-- Attachment #2: Makefile to generate a pocketMod --]
[-- Type: application/octet-stream, Size: 1659 bytes --]

EMACS = emacs -batch -l ~/.emacs
LATEX = latex

pdfFiles =  weekCalendar.pdf yearCalendar.pdf monthCalendar3.pdf monthCalendar2.pdf monthCalendar1.pdf

all: pocketMod.pdf hipsterPDA.pdf

%.dvi: %.tex
	$(LATEX) $^

%.pdf: %.dvi
	dvipdf $^

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: /home/egli/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: $(pdfFiles)
	for pdf in month*.pdf year*.pdf; do \
		for n in 1 2 3; do \
			pdf90 --outfile tmp.pdf $$pdf; mv tmp.pdf $$pdf; \
		done; \
	done
	pdfjoin --outfile tmp.pdf $^
	pdfnup tmp.pdf --outfile $@ --nup 4x2 --frame true

hipsterPDA.pdf: $(pdfFiles)
	pdfnup weekCalendar.pdf --outfile page1.pdf --nup 2x2 --frame true
	pdfjoin --outfile tmp.pdf monthCalendar*.pdf yearCalendar.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: 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-10-16 23:19 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 23:19 Christian Egli [this message]
2007-10-17  1:08 ` PocketMod for org-mode Bastien
2007-10-17 11:58   ` Christian Egli
2007-10-17 13:08     ` Bastien
2007-10-17 12:51       ` Christian Egli
2007-10-17 14:00         ` Bastien
     [not found]           ` <q4odex6f0i.fsf@home.net>
2007-10-17 15:00             ` Bastien
2007-10-17 20:59           ` Christian Egli
2007-10-18  1:47             ` Bastien
2007-10-18  1:37               ` Leo
2007-10-18 10:05                 ` Bastien
2007-10-18  9:51                   ` Christian Egli
2007-10-18 12:21                     ` Bastien
2007-10-25  5:48     ` Carsten Dominik
2007-10-25 12:46       ` Christian Egli
2007-10-25 20:29         ` Christian Egli
2007-10-26  1:56           ` Bastien
2007-10-17  2:03 ` Dan Griswold
2007-10-17  9:42   ` Leo
2007-10-17 10:56     ` Dan Griswold
2007-10-17 11:47     ` Bastien
2007-10-17 12:14     ` pete phillips
2007-10-17 13:36       ` Bastien
2007-10-17 12:02   ` Christian Egli
2007-10-17 20:15     ` Dan Griswold
2007-10-17 10:09 ` Ian Barton
2007-10-17 10:25   ` Leo
2007-10-17 10:45     ` Ian Barton
2007-10-17 10:36   ` [OT] pdfjam [Was: PocketMod for org-mode] Stefan Kamphausen
2007-10-17 11:46   ` PocketMod for org-mode 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=87zlyiprzz.fsf@novell.com \
    --to=christian.egli@novell.com \
    --cc=emacs-orgmode@gnu.org \
    /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).