From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: [Accepted] Make the number of printed weeks configureable Date: Tue, 31 Aug 2010 08:24:50 +0200 (CEST) Message-ID: <20100831062450.546146DDD2D@u016822.science.uva.nl> References: <87iq2s9mg5.fsf@saadawi.sbszh.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=56021 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqKH8-0002WY-Sl for emacs-orgmode@gnu.org; Tue, 31 Aug 2010 02:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqKH7-000391-5n for emacs-orgmode@gnu.org; Tue, 31 Aug 2010 02:24:54 -0400 Received: from u016822.science.uva.nl ([146.50.39.34]:55863) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqKH6-00038p-Tj for emacs-orgmode@gnu.org; Tue, 31 Aug 2010 02:24:53 -0400 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 Patch 248 (http://patchwork.newartisans.com/patch/248/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C87iq2s9mg5.fsf%40saadawi.sbszh.ch%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] Make the number of printed weeks configureable > Date: Mon, 30 Aug 2010 19:58:34 -0000 > From: Christian Egli > X-Patchwork-Id: 248 > Message-Id: <87iq2s9mg5.fsf@saadawi.sbszh.ch> > To: emacs-orgmode@gnu.org > > This is useful for the hipster PDA where you might want to print more > weeks than just four. > > --- > contrib/scripts/org2hpda | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/contrib/scripts/org2hpda b/contrib/scripts/org2hpda > index 1957aa9..6b308f3 100755 > --- a/contrib/scripts/org2hpda > +++ b/contrib/scripts/org2hpda > @@ -44,6 +44,11 @@ EMACS = emacs -batch -l ~/.emacs > LATEX = latex > DIARY = $($(EMACS) -eval "diary-file") > > +# Number of weeks to be printed. Should be a multiple of 4, because 4 > +# of them are merged on one page. Can be set when invoking the script > +# as follows: make NUMBER_OF_WEEKS=8 -f org2hpda > +NUMBER_OF_WEEKS = 4 > + > 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 > @@ -73,7 +78,7 @@ all: pocketMod.pdf hipsterPDA.pdf > done > > weekCalendar.tex: $(DIARY) > - $(EMACS) -eval "(progn (calendar) (cal-tex-cursor-week-iso 4) (with-current-buffer cal-tex-buffer (write-file \"$@\")))" > + $(EMACS) -eval "(progn (calendar) (cal-tex-cursor-week-iso $(NUMBER_OF_WEEKS)) (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 \"$@\")))" >