emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to create a one page weekly schedule
@ 2011-01-21 10:17 Detlef Steuer
  2011-01-27 14:54 ` Matt Lundin
  2011-02-11 15:07 ` Bastien
  0 siblings, 2 replies; 3+ messages in thread
From: Detlef Steuer @ 2011-01-21 10:17 UTC (permalink / raw)
  To: emacs-orgmode

Dear org-ers,

I would like to get a "normal" weekly landscape schedule out of my
agenda.

There is nothing special in my org files, just appointments of kind

* lecture a 
  SCHEDULED: <2011-01-21 Fr 16:00-17:00 +7d>
* lecture b
  SCHEDULED: <2011-01-17 Mo 09:00-10:30 +7d>
* sport 
  SCHEDULED: <2011-01-20 Do 19:00-21:00 +7d>
 

etc pp.

Now I _really_ would like to see or export to something like:

* Schedule for  17.1. - 21.1.2011 
|       | Mo             | Tu  | We    | Th | Fr        |
|   8-9 |                |     |       |    |           |
|  9-10 | 9:00 lecture b |     |       |    |           |
| 10-11 | -- 10:30       |     |       |    |           |
|   ... | ..and so on    | ... | ....  | .. | ..        |
| 16-17 |                |     |       |    | lecture a |
| 17-18 |                |     |       |    |           |
| 19-20 |                |     | sport |    |           |
| 20-21 |                |     | sport |    |           |


Is that already possible? Has anyone implemented such a scheme?
Any ideas how to achieve such a look, may be using external tools?

In my opinion I could more easily _see_ open or filled spots in my
schedule than in standard agenda views with their vertical structure.

Thx for any hints

Detlef 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to create a one page weekly schedule
  2011-01-21 10:17 how to create a one page weekly schedule Detlef Steuer
@ 2011-01-27 14:54 ` Matt Lundin
  2011-02-11 15:07 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Matt Lundin @ 2011-01-27 14:54 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

Detlef Steuer <detlef.steuer@gmx.de> writes:

> Dear org-ers,
>
> I would like to get a "normal" weekly landscape schedule out of my
> agenda.

> Now I _really_ would like to see or export to something like:
>
> * Schedule for  17.1. - 21.1.2011 
> |       | Mo             | Tu  | We    | Th | Fr        |
> |   8-9 |                |     |       |    |           |
> |  9-10 | 9:00 lecture b |     |       |    |           |
> | 10-11 | -- 10:30       |     |       |    |           |
> |   ... | ..and so on    | ... | ....  | .. | ..        |
> | 16-17 |                |     |       |    | lecture a |
> | 17-18 |                |     |       |    |           |
> | 19-20 |                |     | sport |    |           |
> | 20-21 |                |     | sport |    |           |
>
>
> Is that already possible? Has anyone implemented such a scheme?
> Any ideas how to achieve such a look, may be using external tools?
>

Not that I know of. The closest I've come is the calendar's monthly
LaTeX export. (t m in the calendar buffer)

To see only appointments, I put the following line in my diary file:

--8<---------------cut here---------------start------------->8---
&%%(org-diary :timestamp :sexp)
--8<---------------cut here---------------end--------------->8---

I also advise the function org-diary so as to bind a custom
org-agenda-prefix-format (suitable for the calendar export):

--8<---------------cut here---------------start------------->8---
(defadvice org-diary (around my-org-diary activate)
  (let ((org-agenda-prefix-format "%t %s "))
    ad-do-it))
--8<---------------cut here---------------end--------------->8---

I imagine one could create a babel function that finds the relevant
entries and then inserts them at the appropriate places in a table. For
instance, this snippet will return a list of strings (with helpful text
properties) of all appointments within the next seven days:

--8<---------------cut here---------------start------------->8---
(let ((day 0)
      (items nil)
      dates date)
  (while (< day 7)
    (add-to-list 'dates (calendar-current-date day) t)
    (setq day (1+ day)))
  (org-prepare-agenda-buffers org-agenda-files)
  (while (setq date (pop dates))
    (mapc (lambda (file)
            (setq items 
                  (append items
                          (org-agenda-get-day-entries file date :timestamp :sexp))))
          org-agenda-files))
  items)
--8<---------------cut here---------------end--------------->8---

One could expand this expression to sort the items and place them in a
table within an org buffer.

Best,
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to create a one page weekly schedule
  2011-01-21 10:17 how to create a one page weekly schedule Detlef Steuer
  2011-01-27 14:54 ` Matt Lundin
@ 2011-02-11 15:07 ` Bastien
  1 sibling, 0 replies; 3+ messages in thread
From: Bastien @ 2011-02-11 15:07 UTC (permalink / raw)
  To: Detlef Steuer; +Cc: emacs-orgmode

Hi Detlef,

Detlef Steuer <detlef.steuer@gmx.de> writes:

> Now I _really_ would like to see or export to something like:
>
> * Schedule for  17.1. - 21.1.2011 
> |       | Mo             | Tu  | We    | Th | Fr        |
> |   8-9 |                |     |       |    |           |
> |  9-10 | 9:00 lecture b |     |       |    |           |
> | 10-11 | -- 10:30       |     |       |    |           |
> |   ... | ..and so on    | ... | ....  | .. | ..        |
> | 16-17 |                |     |       |    | lecture a |
> | 17-18 |                |     |       |    |           |
> | 19-20 |                |     | sport |    |           |
> | 20-21 |                |     | sport |    |           |
>
>
> Is that already possible? Has anyone implemented such a scheme?
> Any ideas how to achieve such a look, may be using external tools?

That'd be quite an amount of work and I won't undertake it myself.

Maybe have a look at contrib/scripts/org2hpda -- it creates great
printed calendars.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-11 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-21 10:17 how to create a one page weekly schedule Detlef Steuer
2011-01-27 14:54 ` Matt Lundin
2011-02-11 15:07 ` Bastien

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).