From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: Re: PocketMod for org-mode Date: Thu, 25 Oct 2007 22:29:22 +0200 Message-ID: <87ir4v6iql.fsf@novell.com> References: <87zlyiprzz.fsf@novell.com> <87tzoqfszn.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Il9Kn-0000iC-3S for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 16:29:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Il9Km-0000i0-Ga for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 16:29:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Il9Km-0000hw-5D for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 16:29:40 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Il9Kl-0008KD-NQ for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 16:29:40 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Il9Kd-0007a8-UQ for emacs-orgmode@gnu.org; Thu, 25 Oct 2007 20:29:32 +0000 Received: from 77-56-53-21.dclient.hispeed.ch ([77.56.53.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2007 20:29:31 +0000 Received: from christian.egli by 77-56-53-21.dclient.hispeed.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Oct 2007 20:29:31 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Christian Egli 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 --=-=-= Content-Disposition: inline; filename=Makefile Content-Description: Updated version of org2pocketMod Makefile # 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 . 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--