[Orgmode] Re: PocketMod for org-mode
Hi Carsten Carsten Dominik carsten.dominik at gmail.com writes: Hi Christian, do you have a link to the updated version of your Makefile? Cannot find one in the tread... 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. Christian ___ 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
[Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] 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 # 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 \[EMAIL PROTECTED]))) monthCalendar1.tex: ~/diary $(EMACS) -eval (progn (calendar) (cal-tex-cursor-month-landscape 1) (with-current-buffer cal-tex-buffer (write-file \[EMAIL PROTECTED]))) 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 \[EMAIL PROTECTED]))) 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 \[EMAIL PROTECTED]))) 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 \[EMAIL PROTECTED]))) 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 ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: 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. Works fine -- great stuff! -- Bastien ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
On Oct 17, 2007, at 1:58 PM, Christian Egli wrote: Hi Bastien bzg at altern.org writes: Christian Egli christian.egli at novell.com writes: 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. Hey, that's great! I didn't heard about pocketMod before. Thanks :-) Can you send a PDF example of the output? I'll try to set up a page on the emacswiki tonight where I can upload the code and a couple of PDF examples. Hi Christian, do you have a link to the updated version of your Makefile? Cannot find one in the tread... - Carsten ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Leo [EMAIL PROTECTED] writes: Then I guess being able to export the agenda to LaTeX makes sense. Can you describe what would be the expected LaTeX output for you? Anything like the following would be really really nice: http://shopping.franklincovey.com/shopping/catalog/category.jsp?displaychildren=trueid=cat1640002crc=cat960026sc=0709_main_oct_ppc=0709_main_oct_ppproduct=PlanningPagesbyStartDate Well :) Thanks for these example, but what I really need is some suggestions about the expected content of the LaTeX output itself. Should we use `cal-tex.el'-like output (very nice but very specific, and not flexible)? Should we just use a straightforward verbatim display? Should we use sections for agenda with multiple views? I'd start with a simple verbatim output first. -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
Bastien bzg at altern.org writes: Leo sdl.web at gmail.com writes: Then I guess being able to export the agenda to LaTeX makes sense. Can you describe what would be the expected LaTeX output for you? Anything like the following would be really really nice: http://shopping.franklincovey.com/shopping/catalog/category.jsp?displaychildren=trueid=cat1640002crc=cat960026sc=0709_main_oct_ppc=0709_main_oct_ppproduct=PlanningPagesbyStartDate Well :) Haha, maybe for xmas :-). Thanks for these example, but what I really need is some suggestions about the expected content of the LaTeX output itself. Should we use `cal-tex.el'-like output (very nice but very specific, and not flexible)? Should we just use a straightforward verbatim display? Should we use sections for agenda with multiple views? A straightforward verbatim dump of the agenda view is fine for me. In fact I was just going to use the ps output in my Makefile. Christian ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: Should we use `cal-tex.el'-like output (very nice but very specific, and not flexible)? Should we just use a straightforward verbatim display? Should we use sections for agenda with multiple views? A straightforward verbatim dump of the agenda view is fine for me. In fact I was just going to use the ps output in my Makefile. Try this patch against Org 5.12c: diff -u /home/guerry/elisp/testing/org/org.el /home/guerry/elisp/testing/bzg/org.el --- /home/guerry/elisp/testing/org/org.el 2007-10-12 20:32:10.0 +0100 +++ /home/guerry/elisp/testing/bzg/org.el 2007-10-18 13:17:18.0 +0100 @@ -17885,7 +17885,8 @@ (error Cannot write agenda to file %s file)) (cond ((string-match \\.html?\\' file) (require 'htmlize)) - ((string-match \\.ps\\' file) (require 'ps-print))) + ((string-match \\.ps\\' file) (require 'ps-print)) + ((string-match \\.tex\\' file) (require 'org-export-latex))) (org-let (if nosettings nil org-agenda-exporter-settings) '(save-excursion (save-window-excursion @@ -17903,6 +17904,23 @@ (write-file file) (kill-buffer (current-buffer)) (message HTML written to %s file)) + ((string-match \\.tex\\' file) + (let ((buffer-file-name file)) + (set-buffer (org-export-as-latex nil nil nil *Org LaTeX export*))) + (goto-char (point-min)) + (save-excursion + (when (re-search-forward ^[a-zA-Z0-9] nil t) + (replace-match begin{verbatim}\n\\ t nil)) + (while (re-search-forward + \\([a-z]+\\){\\([^}]+\\)}\\(?:{\\([^}]+\\)}\\)? nil t) + (unless (string-match begin\\|end (match-string 1)) + (replace-match (or (match-string 3) (match-string 2)) t t + (while (re-search-forward \\[# nil t) + (replace-match [# t t)) + (when (search-forward \\end{document} nil t) + (replace-match end{verbatim}\n\\ t nil)) + (write-file file) + (message LaTeX written to %s file)) ((string-match \\.ps\\' file) (ps-print-buffer-with-faces file) (message Postscript written to %s file)) Diff finished. Thu Oct 18 13:18:45 2007 This is just a temporary workaround, but it might be enough in most cases. It performs a few checks on the LaTeX output so that links and priorities are correctly displayed in the verbatim environment. -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
On 2007-10-17 03:03 +0100, Dan Griswold wrote: Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. This probably should be reported to emacs-devel. -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/ ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Thanks adding (setq cal-tex-diary t) to my .emacs fixed it. Ian. This looks very useful. The only problem on my system is that no diary entries are printed. I have checked the location of the diary file. I suspect that I need to tweak the emacs command line options. For anyone using Debian/Ubuntu pdf90 is part of the pdfjam package. Ian. ,[ C-h v cal-tex-diary RET ] | cal-tex-diary is a variable defined in `cal-tex.el'. | Its value is nil ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Leo [EMAIL PROTECTED] writes: On 2007-10-17 03:03 +0100, Dan Griswold wrote: Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. This probably should be reported to emacs-devel. Please do! There are @ nearly everywhere on Org tasks, because of links to emails. -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
On 2007-10-17 11:09 +0100, Ian Barton wrote: This looks very useful. The only problem on my system is that no diary entries are printed. I have checked the location of the diary file. I suspect that I need to tweak the emacs command line options. For anyone using Debian/Ubuntu pdf90 is part of the pdfjam package. Ian. ,[ C-h v cal-tex-diary RET ] | cal-tex-diary is a variable defined in `cal-tex.el'. | Its value is nil | | Documentation: | Non-nil means diary entries are printed in LaTeX calendars that support it. | At present, this only affects the monthly, filofax, and iso-week | calendars (i.e. not the yearly, plain weekly, or daily calendars). | Setting this to nil may speed up calendar generation. | | You can customize this variable. | | [back] ` -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/ ___ 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
[Orgmode] Re: PocketMod for org-mode
Leo [EMAIL PROTECTED] writes: On 2007-10-17 03:03 +0100, Dan Griswold wrote: Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. This probably should be reported to emacs-devel. Thanks, Leo. I'll try that. Dan -- -- Dan Griswold Rochester, NY -- ___ 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
[Orgmode] Re: PocketMod for org-mode
Hi Bastien bzg at altern.org writes: Christian Egli christian.egli at novell.com writes: 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. Hey, that's great! I didn't heard about pocketMod before. Thanks :-) Can you send a PDF example of the output? I'll try to set up a page on the emacswiki tonight where I can upload the code and a couple of PDF examples. I tried your Makefile but could not get any output (yet). I think it's mainly because I don't have any of pdfnup/pdfjoin/pdf90 - where does it come from? On what system? You need to install pdfjam. Most distros have it. Otherwise get it from http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam. Maybe a bit more of explanation on how to use this Makefile would also be useful. You basically just type make :-). This will produce two pdfs: pocketMod.pdf and hipsterPDA.pdf. pocketMod.pdf can be folded and cut according to the instructions on pocketmod.com. In my experience it is much to small to be usefull. More tweaking (e.g. with the fonts is needed). hipsterPDA.pdf gives you two pages that you can cut in four sheets each. This will give you eight sheets of size A6 (105mm x 148mm), which can then be clipped together in the style of the hipster pda (http://en.wikipedia.org/wiki/Hipster_PDA). HTH Christian ___ 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
[Orgmode] Re: PocketMod for org-mode
Dan Griswold dgriswol at rochester.rr.com writes: Because I've been trying something similar (but not as advanced), I'm intrigued by the possibilities of your approach. Sadly, I can't run your Makefile. I get an error[1]. Am I missing something? I need more details to analyse the problem. About font size, I've found that for what we're trying to do, it helps to replace \tiny with \small globally. I'll see what I can do without actually patching the code in cal-tex.el. Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. I've run into that problem also and avoided it by rewriting the one diary entry that caused the problem :-). Yes, this problem should be reported on emacs-devel. There is even some code in cal-tex that seems to deal with this problem, but it is commented out for whatever reason. Christian ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Leo == Leo [EMAIL PROTECTED] writes: On 2007-10-17 03:03 +0100, Dan Griswold wrote: Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. Leo This probably should be reported to emacs-devel. As an interim measure, if you patch the Makefile as follows: Change: %.dvi: %.tex $(LATEX) $^ to %.dvi: %.tex sed 's/\\verb|@|/\@/g' $ /tmp/temp-org-file.; mv /tmp/temp-org-file. $ $(LATEX) $^ On the basis that any '@'s get changed to \verb|@|, it just escapes them. Clearly only a temporary measure! Pete ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: You need to install pdfjam. Most distros have it. Otherwise get it from http://www2.warwick.ac.uk/fac/sci/statistics/staff/academic/firth/software/pdfjam. Thanks, installed. You basically just type make :-). This will produce two pdfs: pocketMod.pdf and hipsterPDA.pdf. I can't get this to work because of the issues I mentionned above in my reply to Ian Barton. Here I reproduce them: , | - get rid of the misplaced \verb|@| | | = this should asked to emacs-devel | | - get rid of the links by using their description only | | = maybe there could be a special raw-text agenda view for this, | since I cannot see an easy way to do this from the Makefile. | (Same if you want to use \url or \href for links.) | | - use a smaller normal font for tasks, since it doesn't fit sometimes | (see my other PDF example...) | | = sadly, I guess we need to tailor cal-tex internals for that... ` For now I only can do this: http://www.cognition.ens.fr/~guerry/u/weekCalendar.pdf And I need to fix the .tex files manually because they won't compile otherwise. Hopefully we can find some workaround! Thanks again, -- Bastien ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
pete phillips [EMAIL PROTECTED] writes: On the basis that any '@'s get changed to \verb|@|, it just escapes them. Clearly only a temporary measure! Works nice here. http://www.cognition.ens.fr/~guerry/u/hipsterPDA.pdf http://www.cognition.ens.fr/~guerry/u/pocketMod.pdf Except for the size of the item and the link problem. I guess we can play a bit with cal-tex.el for this. Thanks, -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
Bastien bzg at altern.org writes: Christian Egli christian.egli at novell.com writes: You basically just type make . This will produce two pdfs: pocketMod.pdf and hipsterPDA.pdf. I can't get this to work because of the issues I mentionned above Here I reproduce them: , | - get rid of the misplaced \verb|@| Does Pete's patch help? | - get rid of the links by using their description only This I don't understand. How do you get your deadlines to show up in your calendar? | - use a smaller normal font for tasks, since it doesn't fit sometimes | (see my other PDF example...) | | = sadly, I guess we need to tailor cal-tex internals for that... I looked at cal-tex.el some more and it looks like it could use some love :-). The font sizes for the ISO-style weekly calendar for example is hard coded to 11pt and the diary entries are hardcoded to be shown with \large\bf. Christian ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: , | - get rid of the misplaced \verb|@| Does Pete's patch help? Yes it does, no problem anymore. | - get rid of the links by using their description only This I don't understand. How do you get your deadlines to show up in your calendar? %%(org-diary :scheduled :timestamp :deadline) in my ~/.diary file. I looked at cal-tex.el some more and it looks like it could use some love :-). The font sizes for the ISO-style weekly calendar for example is hard coded to 11pt and the diary entries are hardcoded to be shown with \large\bf. Love for sell in orgmode list :) -- Bastien ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Richard G Riley [EMAIL PROTECTED] writes: %%(org-diary :scheduled :timestamp :deadline) in my ~/.diary file. FYI : Putting that in my .diary file caused me to get an empty agenda. Can you explain to me how that line works? And Is the supposed to be there? I guess this should somehow appear in (info (org)Weekly/Daily agenda) See the docstring of `org-diary': (org-diary rest args) Return diary information from org-files. This function can be used in a sexp diary entry in the Emacs calendar. It accesses org files and extracts information from those files to be listed in the diary. The function accepts arguments specifying what items should be listed. The following arguments are allowed: :timestampList the headlines of items containing a date stamp or date range matching the selected date. Deadlines will also be listed, on the expiration day. :sexp List entries resulting from diary-like sexps. :deadline List any deadlines past due, or due within `org-deadline-warning-days'. The listing occurs only in the diary for *today*, not at any other date. If an entry is marked DONE, it is no longer listed. :scheduledList all items which are scheduled for the given date. The diary for *today* also contains items which were scheduled earlier and are not yet marked DONE. :todo List all TODO items from the org-file. This may be a long list - so this is not turned on by default. Like deadlines, these entries only show up in the diary for *today*, not at any other date. The call in the diary file should look like this: %%(org-diary) ~/path/to/some/orgfile.org Use a separate line for each org file to check. Or, if you omit the file name, all files listed in `org-agenda-files' will be checked automatically: %%(org-diary) If you don't give any arguments (as in the example above), the default arguments (:deadline :scheduled :timestamp :sexp) are used. So the example above may also be written as %%(org-diary :deadline :timestamp :sexp :scheduled) The function expects the lisp variables `entry' and `date' to be provided by the caller, because this is how the calendar works. Don't use this function from a program - use `org-agenda-get-day-entries' instead. -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: Dan Griswold dgriswol at rochester.rr.com writes: Because I've been trying something similar (but not as advanced), I'm intrigued by the possibilities of your approach. Sadly, I can't run your Makefile. I get an error[1]. Am I missing something? I need more details to analyse the problem. Sure. Here's the error message again: , | Wrong type argument: char-or-string-p, nil | make: *** [weekCalendar.tex] Error 255 ` The error appears when it gets to the first rule to use an emacs batch command. I'm using Emacs 22.1.1, Debian, bash. I'm not sure what else to tell you. -- -- Dan Griswold Rochester, NY -- ___ 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
[Orgmode] Re: PocketMod for org-mode
Bastien [EMAIL PROTECTED] writes: Christian Egli [EMAIL PROTECTED] writes: , | - get rid of the misplaced \verb|@| Does Pete's patch help? Yes it does, no problem anymore. | - get rid of the links by using their description only This I don't understand. How do you get your deadlines to show up in your calendar? %%(org-diary :scheduled :timestamp :deadline) in my ~/.diary file. Ah, now I understand. That is also the reason why your calendar looks so crowded. So far I've only used it to show the entries from my diary file. My idea was to replace the year calendar with some export of the agenda view, maybe of the next 14 days. So you'd have an overview of your appointments (and only your appointments) for the next 4 weeks and the next 3 months and finally an overview of all the tasks for the next 14 days. Now what would be really nice is if I could export the agenda view to latex. I couldn't find any code in org-export-latex.el to do that. Am I missing something, Bastien? I looked at cal-tex.el some more and it looks like it could use some love :-). The font sizes for the ISO-style weekly calendar for example is hard coded to 11pt and the diary entries are hardcoded to be shown with \large\bf. Love for sell in orgmode list :) Well, while it would be worthwile to do some enhancements to cal-tex.el (some TODOs are mentioned in the Commentary section), there is an easier way to massage the produced LaTeX code. As mentioned on the emacswiki (http://www.emacswiki.org/cgi-bin/emacs-en/CalendarPrinting) you can add a hook to cal-tex-hook which can quote the @ or change the fonts for example. In essence this is the same as Pete's sed hack in the Makefile, just a tad more integrated in Emacs. If this really makes such a great difference in terms of a batch job I don't know. Christian ___ 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
Re: [Orgmode] Re: PocketMod for org-mode
Christian Egli [EMAIL PROTECTED] writes: Now what would be really nice is if I could export the agenda view to latex. I couldn't find any code in org-export-latex.el to do that. Am I missing something, Bastien? No you're not. For now you can use `org-write-agenda' (C-x C-w) to export the agenda view to HTML or postscript, depending on the extension you're using. The postscript output is obtained with `ps-print-buffer-with-faces', which might not be always very readable. Then I guess being able to export the agenda to LaTeX makes sense. Can you describe what would be the expected LaTeX output for you? Thanks, NB: I tried to add the .tex format to `org-write-agenda' by using the verbatim content of the agenda buffer, but I'm not satisfied with this. Was just a quick hack anyway. -- Bastien ___ 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
[Orgmode] Re: PocketMod for org-mode
On 2007-10-18 02:47 +0100, Bastien wrote: Christian Egli [EMAIL PROTECTED] writes: Now what would be really nice is if I could export the agenda view to latex. I couldn't find any code in org-export-latex.el to do that. Am I missing something, Bastien? No you're not. For now you can use `org-write-agenda' (C-x C-w) to export the agenda view to HTML or postscript, depending on the extension you're using. The postscript output is obtained with `ps-print-buffer-with-faces', which might not be always very readable. Then I guess being able to export the agenda to LaTeX makes sense. Can you describe what would be the expected LaTeX output for you? Anything like the following would be really really nice: http://shopping.franklincovey.com/shopping/catalog/category.jsp?displaychildren=trueid=cat1640002crc=cat960026sc=0709_main_oct_ppc=0709_main_oct_ppproduct=PlanningPagesbyStartDate Thanks, NB: I tried to add the .tex format to `org-write-agenda' by using the verbatim content of the agenda buffer, but I'm not satisfied with this. Was just a quick hack anyway. -- .: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :. Use the most powerful email client -- http://gnus.org/ ___ 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
[Orgmode] Re: PocketMod for org-mode
Christian, Because I've been trying something similar (but not as advanced), I'm intrigued by the possibilities of your approach. Sadly, I can't run your Makefile. I get an error[1]. Am I missing something? About font size, I've found that for what we're trying to do, it helps to replace \tiny with \small globally. Also, a little gotcha I've found, which may catch some of us org-mode GTD-ers: cal-tex.el does not check for the @ symbol when inputting from the diary, and thus does not escape it, leading to latex-errors on processing. Footnotes: [1] Wrong type argument: char-or-string-p, nil make: *** [weekCalendar.tex] Error 255 -- -- Dan Griswold Rochester, NY -- ___ 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