all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christian Egli <christian.egli@novell.com>
To: emacs-orgmode@gnu.org
Subject: Re: PocketMod for org-mode
Date: Thu, 25 Oct 2007 22:29:22 +0200	[thread overview]
Message-ID: <87ir4v6iql.fsf@novell.com> (raw)
In-Reply-To: loom.20071025T124153-650@post.gmane.org

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


Christian Egli <christian.egli@novell.com> writes:

> I haven't sent out a updated version. I have some updates sitting on my hard
> drive at home. On top of that I'd like to get some nice LaTeX export of the
> agenda included in the printout. I sent a proposal for the LaTeX to Bastien and
> hope that he'll manage to integrate it in org-latex.el.
>
> I'll send out an updated version of the Makefile tonight.

Attached is an updated version of org2pocketMod. As before you need to
have the pdfjam tools installed. Also you might want to add (setq
cal-tex-diary t) to your .emacs, so diary entries actually show up in
your printout.

The Makefile now does some changes on the LaTeX produced by
cal-tex. This will quote @, and change some of the font sizes. 

Christian


[-- Attachment #2: Updated version of org2pocketMod Makefile --]
[-- Type: text/plain, Size: 2973 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 = emacs -batch -l ~/.emacs
LATEX = 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

%.dvi: %.tex
	# 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
	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: 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-25 20:29 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16 23:19 PocketMod for org-mode Christian Egli
2007-10-17  1:08 ` 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 [this message]
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

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

  git send-email \
    --in-reply-to=87ir4v6iql.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.