emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Add agenda entries into diary to export weelky calendar
@ 2013-02-25 11:34 Torsten Wagner
  2013-02-26  0:56 ` SAKURAI Masashi
  2013-02-27 17:35 ` Eric S Fraga
  0 siblings, 2 replies; 8+ messages in thread
From: Torsten Wagner @ 2013-02-25 11:34 UTC (permalink / raw)
  To: Org Mode Mailing List

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

Hi,

still trying to get a printed calendar including all org-agendas, I noticed
that the calendar/diary built-in function in emacs allows export of
calendar views.
Guess that and some post-processing for the print-job is all I need.

However, I did not find a way how-to add org-agenda entries into the diary
resp. into the calendar export.
I know it works vice versa, seeing diary entries in org-agenda views.

Did someone manage to achieve this.

Alternatively, would it be of interest (and how difficult would it be) to
get org-agenda exports as daily/weekly/monthly calendar as PDF (via LaTeX)
or HTML? Guess to start this one would have to look into the new exporter
functions and create a list of all agenda entries feeding this into a
template. However, most of the functionality is already there via
calendar/diary and I wonder which way would be the best; using those
functions or create own.

Alternatives:
I read about calfw and org2hpda. However, I did not found a way to generate
a printable version of calfw (and I had trouble to set it up). For org2hpda
I still struggle with the installation and it seems to be broken at the
moment. Not sure.


All the best

Torsten

[-- Attachment #2: Type: text/html, Size: 1573 bytes --]

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-25 11:34 Add agenda entries into diary to export weelky calendar Torsten Wagner
@ 2013-02-26  0:56 ` SAKURAI Masashi
  2013-02-26 14:28   ` Torsten Wagner
  2013-02-27 13:04   ` Torsten Wagner
  2013-02-27 17:35 ` Eric S Fraga
  1 sibling, 2 replies; 8+ messages in thread
From: SAKURAI Masashi @ 2013-02-26  0:56 UTC (permalink / raw)
  To: torsten.wagner; +Cc: emacs-orgmode

Hi,

> Alternatives:
> I read about calfw and org2hpda. However, I did not found a way to generate a printable version of
> calfw (and I had trouble to set it up). For org2hpda I still struggle with the installation and it
> seems to be broken at the moment. Not sure.

I'm an author of calfw. I would help you about calfw.

After displaying your calfw buffer, you can get a HTML buffer 
with M-x htmlfontify-buffer.


Regards,
--
SAKURAI, Masashi (family, given)
m.sakurai@kiwanami.net

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-26  0:56 ` SAKURAI Masashi
@ 2013-02-26 14:28   ` Torsten Wagner
  2013-02-27 13:04   ` Torsten Wagner
  1 sibling, 0 replies; 8+ messages in thread
From: Torsten Wagner @ 2013-02-26 14:28 UTC (permalink / raw)
  To: SAKURAI Masashi; +Cc: dengste@eml.cc, Org Mode Mailing List

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

Hi Sakurai san,
CC: Hi David,

thanks a lot for the offer, I would need to check what was the specific
problem. Indeed I would love to use calfw if it can produce a printable
version.
Did you think about a PDF export via LaTeX?
I would be glad to help with this.

Actually, my idea was to get a print-out calendar of the past last week,
the current week and the next 2-3 weeks on a single double sided page. I
would print and fold this every week once, carry it around in my
money-wallet doing good old paper-pen organisation and transfer all the
handwritten stuff into org-mode as soon as I am sitting in front of my PC.

Furthermore, I would like to scan and file those printouts for archiving
purpose.

Finally, you might like to get in contact with the author of
org-caldav David Engster (I was so free to CC him this mail). Since he
should have a pretty good idea of caldav on emacs, it might be possible to
use calfw as caldav-client. This would allow to subscribe to calendars for
public holiday or of co-workers which do not use emacs. If I understood
calfw internal structure right, it would "just" require a calfw-caldav.el
extension.
I can see a lot of great synergetical effects for both projects and would
be glad if this stipulates both of you to think of e.g. certain hooks to
let both projects work seamlessly together.
E.g. calfw could be the frontend for a merge function of org-caldav showing
conflicting appointments.


Thanks a lot for the great projects.
ども ありがと ございます.

Torsten




On 26 February 2013 01:56, SAKURAI Masashi <m.sakurai@kiwanami.net> wrote:

> Hi,
>
> > Alternatives:
> > I read about calfw and org2hpda. However, I did not found a way to
> generate a printable version of
> > calfw (and I had trouble to set it up). For org2hpda I still struggle
> with the installation and it
> > seems to be broken at the moment. Not sure.
>
> I'm an author of calfw. I would help you about calfw.
>
> After displaying your calfw buffer, you can get a HTML buffer
> with M-x htmlfontify-buffer.
>
>
> Regards,
> --
> SAKURAI, Masashi (family, given)
> m.sakurai@kiwanami.net
>

[-- Attachment #2: Type: text/html, Size: 2962 bytes --]

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-26  0:56 ` SAKURAI Masashi
  2013-02-26 14:28   ` Torsten Wagner
@ 2013-02-27 13:04   ` Torsten Wagner
  2013-02-28 22:31     ` SAKURAI Masashi
  1 sibling, 1 reply; 8+ messages in thread
From: Torsten Wagner @ 2013-02-27 13:04 UTC (permalink / raw)
  To: SAKURAI Masashi; +Cc: Org Mode Mailing List


[-- Attachment #1.1: Type: text/plain, Size: 1746 bytes --]

Hi Sakurai san,

I gave calfw a new try yesterday. It works well now and I really like it!
I tried to do, as you suggested, a export via htmlfontify-buffer.
It seems like it has problems with the cell alignment for those cells which
contain an appointment.
Please see the attached picture (I can send you the html file in a private
mail if you are interested to see the html code).
Could be the trouble of a non-monospace font, As far as I know Japanese
fonts are monospace?

The generic htmlfontify-buffer might be a bit to simple. E.g. as you can
see in the image, I use a dark colour scheme in emacs. This is also used in
the export, making it difficult to print.
How about a real export function in calfw? Similar to what the
calendar/diary offers.
I could help to work on a LaTeX template using graphical elements e.g. by
using TikZ [1].
There are SVG-based generators and solutions written in python as well.
However, I have no idea how move the data of calfw into a template or into
such a script.
My elisp knowledge is almost non existing.

All the best

Torsten

[1] http://www.texample.net/tikz/examples/feature/calendar-library/









On 26 February 2013 01:56, SAKURAI Masashi <m.sakurai@kiwanami.net> wrote:

> Hi,
>
> > Alternatives:
> > I read about calfw and org2hpda. However, I did not found a way to
> generate a printable version of
> > calfw (and I had trouble to set it up). For org2hpda I still struggle
> with the installation and it
> > seems to be broken at the moment. Not sure.
>
> I'm an author of calfw. I would help you about calfw.
>
> After displaying your calfw buffer, you can get a HTML buffer
> with M-x htmlfontify-buffer.
>
>
> Regards,
> --
> SAKURAI, Masashi (family, given)
> m.sakurai@kiwanami.net
>

[-- Attachment #1.2: Type: text/html, Size: 2728 bytes --]

[-- Attachment #2: calfw-export.png --]
[-- Type: image/png, Size: 22782 bytes --]

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-25 11:34 Add agenda entries into diary to export weelky calendar Torsten Wagner
  2013-02-26  0:56 ` SAKURAI Masashi
@ 2013-02-27 17:35 ` Eric S Fraga
  2013-02-27 22:26   ` Torsten Wagner
  1 sibling, 1 reply; 8+ messages in thread
From: Eric S Fraga @ 2013-02-27 17:35 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: Org Mode Mailing List

Torsten Wagner <torsten.wagner@gmail.com> writes:

[...]

> I read about calfw and org2hpda. However, I did not found a way to generate
> a printable version of calfw (and I had trouble to set it up). For org2hpda
> I still struggle with the installation and it seems to be broken at the
> moment. Not sure.

You could print the calendar produced by calfw by

C-u M-x ps-print-buffer-with-faces RET

from the *cfw-calendar* buffer.  This command (because of the C-u) will
prompt for a file to place the postscript into.  You can print without
faces (i.e. no colour) with ps-print-buffer.  You can then convert PS to
PDF if so desired.

You may wish to set ps-print-landscape to t.

HTH,
eric

-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1285-g6cc600

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-27 17:35 ` Eric S Fraga
@ 2013-02-27 22:26   ` Torsten Wagner
  2013-02-28 19:48     ` Eric S Fraga
  0 siblings, 1 reply; 8+ messages in thread
From: Torsten Wagner @ 2013-02-27 22:26 UTC (permalink / raw)
  To: Torsten Wagner, Org Mode Mailing List

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

Hi Eric,
thanks for the tip. I tried this already. Its printing but has some
drawbacks. E.g. I use high resolution monitors in vertical (pivot) mode and
a tiling window manager. calfw scales to the current buffer size and this
is unfortunately not really compatible with printing. In summary this
solution might have to many ways to go wrong.

However, I noticed a much more interesting way. calfw buffer look almost
like org-tables. And voila saving the buffer as org-file and a minimum of
modifications allows me to export the calendar with both the html and pdf
exporter. I just try to tell org-mode/latex/html to keep the height of the
rows constant and independent of the content of the cell. Guess if I get
this right, everything could be done in a little piece of elisp.
Alternatively, Sakurai san may like to create an official
cfw:export-view-to-org could be part of calfw-org. This would also allow
people to archive calendar views in org-mode files.

Lets see how this is going.

Thanks again

Torsten



On 27 February 2013 18:35, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> Torsten Wagner <torsten.wagner@gmail.com> writes:
>
> [...]
>
> > I read about calfw and org2hpda. However, I did not found a way to
> generate
> > a printable version of calfw (and I had trouble to set it up). For
> org2hpda
> > I still struggle with the installation and it seems to be broken at the
> > moment. Not sure.
>
> You could print the calendar produced by calfw by
>
> C-u M-x ps-print-buffer-with-faces RET
>
> from the *cfw-calendar* buffer.  This command (because of the C-u) will
> prompt for a file to place the postscript into.  You can print without
> faces (i.e. no colour) with ps-print-buffer.  You can then convert PS to
> PDF if so desired.
>
> You may wish to set ps-print-landscape to t.
>
> HTH,
> eric
>
> --
> : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
> : in Emacs 24.3.50.1 and Org release_7.9.3f-1285-g6cc600
>
>

[-- Attachment #2: Type: text/html, Size: 2630 bytes --]

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-27 22:26   ` Torsten Wagner
@ 2013-02-28 19:48     ` Eric S Fraga
  0 siblings, 0 replies; 8+ messages in thread
From: Eric S Fraga @ 2013-02-28 19:48 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: Org Mode Mailing List

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi Eric,
> thanks for the tip. I tried this already. Its printing but has some
> drawbacks. E.g. I use high resolution monitors in vertical (pivot) mode and
> a tiling window manager. calfw scales to the current buffer size and this
> is unfortunately not really compatible with printing. In summary this
> solution might have to many ways to go wrong.

Yes, calfw's output is dependent on window size which is sometimes
annoying.  It would be nice to be able to override this.

> However, I noticed a much more interesting way. calfw buffer look almost
> like org-tables. And voila saving the buffer as org-file and a minimum of

Interesting!  Never thought of doing that.  It does sound like a
possible route.  Best of luck!
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1313-g7d4812

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

* Re: Add agenda entries into diary to export weelky calendar
  2013-02-27 13:04   ` Torsten Wagner
@ 2013-02-28 22:31     ` SAKURAI Masashi
  0 siblings, 0 replies; 8+ messages in thread
From: SAKURAI Masashi @ 2013-02-28 22:31 UTC (permalink / raw)
  To: torsten.wagner; +Cc: emacs-orgmode

Hi Torsten,

> I gave calfw a new try yesterday. It works well now and I really like it!
> I tried to do, as you suggested, a export via htmlfontify-buffer. 
> It seems like it has problems with the cell alignment for those cells which contain an
> appointment.
> Please see the attached picture (I can send you the html file in a private mail if you are
> interested to see the html code).
> Could be the trouble of a non-monospace font, As far as I know Japanese fonts are monospace?

Calfw assumes that the calfw buffer uses the monospace font.
If you usually use proportional fonts in emacs, you can change the buffer font
with cfw:calendar-mode-hook.

Ref: Re: [O] Calendar-like view of the org-agenda
http://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00882.html


> The generic htmlfontify-buffer might be a bit to simple. E.g. as you can see in the image, I use a
> dark colour scheme in emacs. This is also used in the export, making it difficult to print. 
> How about a real export function in calfw? Similar to what the calendar/diary offers.
> I could help to work on a LaTeX template using graphical elements e.g. by using TikZ [1]. 
> There are SVG-based generators and solutions written in python as well.
> However, I have no idea how move the data of calfw into a template or into such a script.
> My elisp knowledge is almost non existing.

Calfw has extension point for the many view styles, however I think it
is not easy to implement. Anyway, I will consider the function
cfw:export-view-to-org which is mentioned by the another message.


Regards,
--
SAKURAI, Masashi (family, given)
m.sakurai@kiwanami.net

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

end of thread, other threads:[~2013-02-28 22:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 11:34 Add agenda entries into diary to export weelky calendar Torsten Wagner
2013-02-26  0:56 ` SAKURAI Masashi
2013-02-26 14:28   ` Torsten Wagner
2013-02-27 13:04   ` Torsten Wagner
2013-02-28 22:31     ` SAKURAI Masashi
2013-02-27 17:35 ` Eric S Fraga
2013-02-27 22:26   ` Torsten Wagner
2013-02-28 19:48     ` Eric S Fraga

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