Re: [O] Org Mode Calendar UID Mismatch.

2011-05-19 Thread Niels Giesen
Ghanashyam  writes:


[...]

> 
> 
> 
> I check the ics file and I can perfectly see that the UIDs were
> replicated.(exactly same). Also all my events were scheduled but there
> is one parameter which said, SCHEDULED or unSCHEDULED, you export
> events. 

Ok. I assume this is `org-icalendar-use-scheduled'. I did not know of it.

> Its not about being exported or missing in export. The problem is the
> ics file has all the entries but multiple entries have the same UID
> which is my issue.

Could you please provide a minimal example of an org file + provide info
on your system setup (os, emacs version, org version, relevant
org-icalendar-* vars) so that we might be able to reproduce this?

Regards,
Niels



Re: [O] special characters for HTML

2011-05-19 Thread Ben Finney
William Henney  writes:

> Why don't you just write the umlauts directly: ü
>
> Either use the facilities of your OS, or use one of the German input
> methods of Emacs. For the latter, see the docs for "C-\". For the
> former, it all depends on your OS and your keyboard.

Exactly. We're in the third millennium of the calendar, folks; we have
Unicode. The way to get a character into a text document is to put it in
literally.

-- 
 \“It is undesirable to believe a proposition when there is no |
  `\   ground whatever for supposing it true.” —Bertrand Russell, _The |
_o__)   Value of Scepticism_, 1928 |
Ben Finney




Re: [O] org-contacts and birthdays without year

2011-05-19 Thread Le Wang
On Thu, May 19, 2011 at 1:46 PM, Le Wang  wrote:
> You mean `org-contacts-matcher'?  How does org-make-tags-matcher work?
>  After googling and looking during some cursory investigation, it's
> still not clear to me how to match EMAIL or BIRTHDAY.

Found the tags and properties matcher section in manual:
http://orgmode.org/manual/Matching-tags-and-properties.html

What I needed was: (setq org-contacts-matcher
"EMAIL<>\"\"|BIRTHDAY<>\"\"|PHONE<>\"\"")


-- 
Le



Re: [O] Org Mode Calendar UID Mismatch.

2011-05-19 Thread Ghanashyam
On Fri, May 20, 2011 at 12:50 AM, Niels Giesen wrote:

> Greg Troxel  writes:
>
> > Ghanashyam  writes:
> >
> >> I have had a problem with the org mode calendar export with emacs.
> >> It looks like org mode uses some uid generation exe which
> >> generates non unique UIDs. I am not sure why this is to. Even when I
> >> set the UID format to include the date format. Because of this, the ics
> >> file import into google calendar or a thunderbird import fails to import
> all
> >> tasks that were reported as Scheduled in the org mode document.
> >>
> >> Anyone with similar experiences.? I put this up on stack overflow but
> >> there was no response.
> >
> > I'm haing the inverse problem, but I hadn't tracked it down enough to
> > post.   I find that after importing into Apple iCal (mac 10.6), and
> > doing another import, I end up with two events.
>
> @Greg:
>
> Org-mode UIDs are ignored if they are for entries with diary sexps, as
> calendar.el creates its own ids for them. This may be the cause for
> double entries when you export your org file & import the ical file
> multiple times and you use diary sexps.
>
> A while ago I submitted some patches, one to calendar.el and one to
> org-icalendar.el, that - besides adding export of diary-float sexps -
> fixed this (i.e. org-icalendar puts a UID text-property on the entry,
> picked up by calendar.el when creating the ical entries).
>
> The patches to calendar.el were applied, but I believe the one to
> org-icalendar.el should still be applied. However, I believe Bastien has
> had little time lately, or maybe he's forgotten or overseen that those
> patches to Emacs have already been applied. I put Bastien in the CC of
> this mail, just as a reminder.
>
> See
> http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00668.html if
> you want to try out the UID patch to org-icalendar.el. Note that you
> also need a recent development Emacs (from bazaar, later than april 27th
> 2011) to have the other patches applied as well.
>
> @Ghanashyam:
>
> Above story aside, no entry should be without UID, and I think a
> non-unique UID is highly improbable. Did you
> check inside the ical file to see whether the entries you talk about
> were eported at all? If I create a simple test file, e.g.
>
> #+begin_src org
> * test
>  SCHEDULED: <2011-05-19 Thu 11:00>
> #+end_src
>
> ... and call C-c C-e i this entry does not get exported, but this entry
> would:
>
> #+begin_src org
> * test2
>  <2011-05-19 Thu 12:00>
> #+end_src
>
> i.e., SCHEDULED entries aren't exported, while others are, but this does
> not seem to have anything to do with UIDs.
>
> Regards,
> Niels.
>
>
> I check the ics file and I can perfectly see that the UIDs were
replicated.(exactly same). Also all my events were scheduled but there is
one parameter which said, SCHEDULED or unSCHEDULED, you export events.

Its not about being exported or missing in export. The problem is the ics
file has all the entries but multiple entries have the same UID which is my
issue.

--
regards
Shyam


>
> --
> http://pft.github.com/
>


Re: [O] special characters for HTML

2011-05-19 Thread William Henney
Hi Michael

On Thursday, May 19, 2011, michael holzer  wrote:
> so i have to ask here:
> i want to write german umlauts in files that are exported to html.

Why don't you just write the umlauts directly: ü

Either use the facilities of your OS, or use one of the German input
methods of Emacs. For the latter, see the docs for "C-\". For the
former, it all depends on your OS and your keyboard.

Cheers

Will



-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia



[O] Automatic ID insertion on entry creation

2011-05-19 Thread Ivan Vilata i Balaguer
Hi all, I'm toying with MobileOrg and I see it prefers agenda entries
having an ID property.  That's ok with me, but since I'm keeping my
agenda files under version control, I don't like that they are modified
a long time after they are created, when pushing entries to MobileOrg.

So I've tried that entries in agenda files be created right away with an
ID property.  Since I didn't find an option for that, I tried to use
=%(org-id-get)= in my task template, which didn't work either.  Then I
came across this thread[1] and wrote the following function:

#+BEGIN_SRC emacs-lisp
(defun ivb/org-id-insert-maybe ()
  "Insert an ID property into the current entry and return it.
This is only done if the file has the local variable `auto-insert-id'
set to `t'.  This function is intended for `org-insert-heading-hook'
and `org-capture-after-finalize-hook'."
  (if (member (cons 'auto-insert-id t) file-local-variables-alist)
  (org-id-get-create)))
#+END_SRC

It works right for inserted headings, but it's quite unreliable when
capturing: when capturing to a file with =auto-insert-id= set to =t=,
=file-local-variables-alist= is sometimes nil (esp. when capturing from
outside the file) and sometimes it has the right variables (when
capturing from the same file, but not always).  I got the values by
debugging the function.

Any suggestions to fix the function (or getting the same result by other
means)?  I'm using Emacs 23.3 and Org 7.5, both from Debian unstable.

Thanks a lot,

[1] http://www.mail-archive.com/emacs-orgmode@gnu.org/msg16143.html
-- 
Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/




Re: [O] [agenda] skip non-habit SCHEDULED

2011-05-19 Thread Michael Brand
Hi Matt

On Thu, May 19, 2011 at 22:47, Matt Lundin  wrote:
> Michael Brand  writes:
>> - org-agenda-skip-function: not available for type agenda AFAIK
>
> Good news: the skip function does apply to agenda views.

Thank you for pointing this out and for the example that does exactly
what I asked for. I thought that org-agenda-skip-function is not
available for the type agenda from checking the doc. Could the doc be
changed by adding @code {agenda} like this?:


diff --git a/doc/org.texi b/doc/org.texi
index aa34cd3..6b469cc 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -14376,12 +14376,12 @@ other block) with @code{org-narrow-to-block}.
 @vindex org-agenda-skip-function
 @vindex org-agenda-skip-function-global
 Org provides a special hook that can be used to narrow down the selection
-made by these agenda views: @code{todo}, @code{alltodo}, @code{tags},
-@code{tags-todo}, @code{tags-tree}.  You may specify a function that is used
-at each match to verify if the match should indeed be part of the agenda
-view, and if not, how much should be skipped.  You can specify a global
-condition that will be applied to all agenda views, this condition would be
-stored in the variable @code{org-agenda-skip-function-global}.  More
+made by these agenda views: @code{agenda}, @code{todo}, @code{alltodo},
+@code{tags}, @code{tags-todo}, @code{tags-tree}. You may specify a function
+that is used at each match to verify if the match should indeed be part of
+the agenda view, and if not, how much should be skipped. You can specify a
+global condition that will be applied to all agenda views, this condition
+would be stored in the variable @code{org-agenda-skip-function-global}. More
 commonly, such a definition is applied only to specific custom searches,
 using @code{org-agenda-skip-function}.



Michael



Re: [O] [agenda] skip non-habit SCHEDULED

2011-05-19 Thread Matt Lundin
Michael Brand  writes:

> How is it possible to skip SCHEDULED items that don't have the
> property STYLE=habit in the day-agenda of a custom agenda view?
>
> What I checked so far:
> - ((org-agenda-entry-types '(:scheduled))):
>   does not distinguish between habits and non-habits
> - "match" from (key desc type match settings files):
>   not available for "type" agenda AFAIK
> - org-agenda-skip-function: not available for type agenda AFAIK

Good news: the skip function does apply to agenda views. It provides a
means to do simple filtering in the agenda, which does not use the match
syntax of org-tags-view.

> - day-agenda block for :scheduled _habits_ only
>   (skip of non-habits not solved yet)

Here's a sample implementation (in a single custom agenda command):

--8<---cut here---start->8---
(org-add-agenda-custom-command
 '("x" "Agenda (habits only)" agenda ""
   ((org-agenda-entry-types '(:scheduled))
(org-agenda-skip-function 
 '(org-agenda-skip-entry-if 'notregexp ":STYLE:.*habit")
--8<---cut here---end--->8---

Best,
Matt



[O] [agenda] skip non-habit SCHEDULED

2011-05-19 Thread Michael Brand
Hi all

How is it possible to skip SCHEDULED items that don't have the
property STYLE=habit in the day-agenda of a custom agenda view?

What I checked so far:
- ((org-agenda-entry-types '(:scheduled))):
  does not distinguish between habits and non-habits
- "match" from (key desc type match settings files):
  not available for "type" agenda AFAIK
- org-agenda-skip-function: not available for type agenda AFAIK

What I try to achieve with this are two overview custom agenda views:
the 1st like a calendar view with
- day-agenda block for :timestamp and :sexp
- day-agenda block for :deadline
- day-agenda block for :scheduled _habits_ only
  (skip of non-habits not solved yet)
a 2nd like a todo view for everything else that "never" expires with
- day-agenda block for :scheduled _non-habits_ only
  (skip habits with "((org-habit-show-habits nil))")
- tags-todo block for all TODO without any date
  (org-agenda-skip-entry-if 'timestamp)

Michael



Re: [O] special characters for HTML

2011-05-19 Thread Bernt Hansen
michael holzer  writes:

> hello,
>
> i guess there's a simple way to do this, but i couldn't figure it out,
> so i have to ask here:
> i want to write german umlauts in files that are exported to html. i
> know that you can write for example \auml, but when i'm using this in a
> word (e.g. l\aumlstig) this fails. if i put a space behind \auml i get
> the umlaut, but obviously i don't want the space there...
> so how is this supposed to be done?

Put {} after the \auml if it's embbed in a word - like this:

i want to write german umlauts in files that are exported to html. i
know that you can write for example \auml, but when i'm using this in a
word (e.g. l\auml{}stig) this fails. if i put a space behind \auml i get
the umlaut, but obviously i don't want the space there...

-Bernt

>
> thanks for any help,
> michael



Re: [O] Org Mode Calendar UID Mismatch.

2011-05-19 Thread Niels Giesen
Greg Troxel  writes:

> Ghanashyam  writes:
>
>> I have had a problem with the org mode calendar export with emacs.
>> It looks like org mode uses some uid generation exe which
>> generates non unique UIDs. I am not sure why this is to. Even when I
>> set the UID format to include the date format. Because of this, the ics
>> file import into google calendar or a thunderbird import fails to import all
>> tasks that were reported as Scheduled in the org mode document.
>>
>> Anyone with similar experiences.? I put this up on stack overflow but
>> there was no response.
>
> I'm haing the inverse problem, but I hadn't tracked it down enough to
> post.   I find that after importing into Apple iCal (mac 10.6), and
> doing another import, I end up with two events.

@Greg: 

Org-mode UIDs are ignored if they are for entries with diary sexps, as
calendar.el creates its own ids for them. This may be the cause for
double entries when you export your org file & import the ical file
multiple times and you use diary sexps. 

A while ago I submitted some patches, one to calendar.el and one to
org-icalendar.el, that - besides adding export of diary-float sexps -
fixed this (i.e. org-icalendar puts a UID text-property on the entry,
picked up by calendar.el when creating the ical entries).

The patches to calendar.el were applied, but I believe the one to
org-icalendar.el should still be applied. However, I believe Bastien has
had little time lately, or maybe he's forgotten or overseen that those
patches to Emacs have already been applied. I put Bastien in the CC of
this mail, just as a reminder.

See
http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00668.html if
you want to try out the UID patch to org-icalendar.el. Note that you
also need a recent development Emacs (from bazaar, later than april 27th
2011) to have the other patches applied as well.

@Ghanashyam:

Above story aside, no entry should be without UID, and I think a
non-unique UID is highly improbable. Did you
check inside the ical file to see whether the entries you talk about
were eported at all? If I create a simple test file, e.g.

#+begin_src org
* test
  SCHEDULED: <2011-05-19 Thu 11:00>
#+end_src

... and call C-c C-e i this entry does not get exported, but this entry would:

#+begin_src org
* test2
  <2011-05-19 Thu 12:00>
#+end_src

i.e., SCHEDULED entries aren't exported, while others are, but this does
not seem to have anything to do with UIDs.

Regards,
Niels.



-- 
http://pft.github.com/



Re: [O] special characters for HTML

2011-05-19 Thread Michael Gauland
michael holzer  gmx.at> writes:

> ...when i'm using this in a word (e.g. l\aumlstig) this fails. if i put a 
> space
> behind \auml i get the umlaut, but obviously i don't want the space there...
> so how is this supposed to be done?

Use an empty set of braces to mark the end of the special character:

l\auml{}stig

--Mike





Re: [O] [bug] Symbol's function definition is void: when-let

2011-05-19 Thread Bernd Weiss
Am 19.05.2011 13:06, schrieb Eric Schulte:
> Oh!
> 
> My fault, `when-let' is defined locally on my Emacs, but apparently is
> not an official Emacs function, careless committing on my part.
> 
> I've just pushed up a fix.

Thanks for fixing that! Everything works fine now!

Bernd





Re: [O] [bug] Symbol's function definition is void: when-let

2011-05-19 Thread Eric Schulte
Oh!

My fault, `when-let' is defined locally on my Emacs, but apparently is
not an official Emacs function, careless committing on my part.

I've just pushed up a fix.

Thanks -- Eric

Nick Dokos  writes:

> Bernd Weiss  wrote:
>
>> export to LaTeX/PDF. It stops with "Symbol's function definition is
>> void: when-let", i.e.
>> 
>> Fontifying  org-src-fontification:emacs-lisp-mode...
>> (regexps...)
>> Symbol's function definition is void: when-let
>> 
>
> Yup: Eric S.'s commit (tip when I pulled a few minutes ago) uses when-let,
> which is not defined in my emacs either. It's either a typo or an Eric S.
> special.
>
> Nick
>
> ,
> | commit 72c154e38e526b5f8bb5f200fb31bc6fec145ba6
> | Author: Eric Schulte 
> | Date:   Thu May 19 07:37:33 2011 -0600
> | 
> | expand noweb refs when ":noweb yes" during export
> | 
> | * lisp/ob-exp.el (org-babel-exp-do-export): Use `org-babel-exp-code'
> |   to generate code block output.
> |   (org-babel-exp-code): Re-create the code block body for exporting
> |   source code.
> | 
> | diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
> | index d700f6d..ce04f13 100644
> | --- a/lisp/ob-exp.el
> | +++ b/lisp/ob-exp.el
> | @@ -238,9 +238,17 @@ The function respects the value of the :exports header 
> argument."
> |  (clean () (unless (eq type 'inline) (org-babel-remove-result info
> |  (case (intern (or (cdr (assoc :exports (nth 2 info))) "code"))
> |('none (silently) (clean) "")
> | -  ('code (silently) (clean) nil)
> | +  ('code (silently) (clean) (org-babel-exp-code info))
> |('results (org-babel-exp-results info type nil hash) "")
> | -  ('both (org-babel-exp-results info type nil hash) nil
> | +  ('both (org-babel-exp-results info type nil hash)
> | +(org-babel-exp-code info)
> | +
> | +(defun org-babel-exp-code (info)
> | +  "Return the original code block formatted for export."
> | +  (org-fill-template "#+BEGIN_SRC %lang%flags\n%body\n#+END_SRC\n"
> | +`(("lang"  . ,(nth 0 info))
> | +  ("flags" . ,(when-let (f (nth 3 info)) (concat " " f)))
> | +  ("body"  . ,(nth 1 info)
> |  
> |  (defun org-babel-exp-results (info type &optional silent hash)
> |"Evaluate and return the results of the current code block for export.
> `
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] [bug] Symbol's function definition is void: when-let

2011-05-19 Thread Nick Dokos
Bernd Weiss  wrote:

> export to LaTeX/PDF. It stops with "Symbol's function definition is
> void: when-let", i.e.
> 
> Fontifying  org-src-fontification:emacs-lisp-mode...
> (regexps...)
> Symbol's function definition is void: when-let
> 

Yup: Eric S.'s commit (tip when I pulled a few minutes ago) uses when-let,
which is not defined in my emacs either. It's either a typo or an Eric S.
special.

Nick

,
| commit 72c154e38e526b5f8bb5f200fb31bc6fec145ba6
| Author: Eric Schulte 
| Date:   Thu May 19 07:37:33 2011 -0600
| 
| expand noweb refs when ":noweb yes" during export
| 
| * lisp/ob-exp.el (org-babel-exp-do-export): Use `org-babel-exp-code'
|   to generate code block output.
|   (org-babel-exp-code): Re-create the code block body for exporting
|   source code.
| 
| diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
| index d700f6d..ce04f13 100644
| --- a/lisp/ob-exp.el
| +++ b/lisp/ob-exp.el
| @@ -238,9 +238,17 @@ The function respects the value of the :exports header 
argument."
|(clean () (unless (eq type 'inline) (org-babel-remove-result info
|  (case (intern (or (cdr (assoc :exports (nth 2 info))) "code"))
|('none (silently) (clean) "")
| -  ('code (silently) (clean) nil)
| +  ('code (silently) (clean) (org-babel-exp-code info))
|('results (org-babel-exp-results info type nil hash) "")
| -  ('both (org-babel-exp-results info type nil hash) nil
| +  ('both (org-babel-exp-results info type nil hash)
| +  (org-babel-exp-code info)
| +
| +(defun org-babel-exp-code (info)
| +  "Return the original code block formatted for export."
| +  (org-fill-template "#+BEGIN_SRC %lang%flags\n%body\n#+END_SRC\n"
| +  `(("lang"  . ,(nth 0 info))
| +("flags" . ,(when-let (f (nth 3 info)) (concat " " f)))
| +("body"  . ,(nth 1 info)
|  
|  (defun org-babel-exp-results (info type &optional silent hash)
|"Evaluate and return the results of the current code block for export.
`



[O] [bug] Symbol's function definition is void: when-let

2011-05-19 Thread Bernd Weiss
Hi all,

after updating to the most recent version of org-mode, I cannot longer
export to LaTeX/PDF. It stops with "Symbol's function definition is
void: when-let", i.e.

Fontifying  org-src-fontification:emacs-lisp-mode...
(regexps...)
Symbol's function definition is void: when-let

Everything works as expected when I go back in time (e.g. three
commits), using Git's checkout HEAD^^^ . My current HEAD refers to
commit 72c154e38e526b5f8bb5f200fb31bc6fec145ba6

Please find below the output of M-x org-submit-bug-report and backtrace
(which I shortend a bit).

Thanks for your help,

Bernd



Emacs  : GNU Emacs 23.3.1 (i386-mingw-nt6.1.7600)
 of 2011-03-10 on 3249CTO
Package: Org-mode version 7.5 (release_7.5.285.g72c1)

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-listings t
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-agenda-custom-commands '(("c" "conferences" ((tags "CONFERENCE"))
((org-tags-match-list-sublevels nil))
   ((org-columns-default-format "%DATE %LOCATION")))
  )
 org-agenda-files
'("e:/projects/org/article/p_UnemploymentIntentionChild.org"
"e:/projects/org/lehre/2011springterm.org"
"e:/projects/org/projects/prDAAD-ipd-ma-divorce.org"
"e:/projects/org/projects/prDAAD-ma-simulation.org"

"e:/projects/publicat/book/b2012meta-analyse/doc/b2010meta-analyse.org"
"e:/projects/org/projects/prDFG-Scheidung.org"
"e:/projects/org/article/ar2010dyad.org"
"e:/projects/org/article/ar2010dr.org"
"e:/projects/org/privat.org" "e:/projects/org/work.org")
 org-src-fontify-natively t
 org-babel-load-languages '((emacs-lisp . t) (R . t) (python . t) (latex
. t) (dot . t) (sh . t))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("python" . "py")
("emacs-lisp" . "el"))
 org-edit-src-content-indentation 0
 org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-latex-packages-alist '(("" "color") ("" "listings"))
 org-default-notes-file "e:/projects/org//notes.org"
 org-directory "e:/projects/org/"
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-classes '(("per-file-class"
 "\\documentclass{article}\n   
[NO-DEFAULT-PACKAGES]\n
[EXTRA]"
 ("\\section{%s}" . "\\section*{%s}") 
("\\subsection{%s}" .
"\\subsection*{%s}")
 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" .
"\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" .
"\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}" 
("\\part{%s}" .
"\\part*{%s}")
 ("\\chapter{%s}" . "\\chapter*{%s}") 
("\\section{%s}" .
"\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}" ("\\part{%s}" 
. "\\part*{%s}")
 ("\\chapter{%s}" . "\\chapter*{%s}") 
("\\section{%s}" .
"\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("beamer" "\\documentclass{beamer}" 
org-beamer-sectioning))
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(org-mode-reftex-setup
 (lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote
org-show-block-all) (quote append) (quote local)))
 (lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote
org-babel-show-result-all) (quote append)
   

Re: [O] No Expansion of noweb references when exporting

2011-05-19 Thread Eric Schulte
Hi Mark,

Thanks for pointing this out.  After checking the manual [1] for the
noweb header argument I realized you were right, we're not currently
living up to the described behavior.

I've just pushed up a patch which correctly implements the ":noweb yes"
expansion on export behavior.

Best -- Eric

Mark Cox  writes:

> Hi,
>
> Is it possible for the output of the expansion of a code block to
> appear in the exported document?
>
> Consider the example:
>
> #+TITLE: No expansion of noweb references when exporting
>
> * Example
> :PROPERTIES:
> :tangle: illustration.hpp
> :END:
> #+srcname: boiler-plate-code-generator()
> #+begin_src emacs-lisp :results output :exports none :tangle no
> (dolist (type '("int8_t" "uint8_t" "float" "double"))
>   (princ (format "template <> %s boiler_plate_code<%s>();\n" type type)))
> #+end_src
> #+begin_src c++ :noweb yes
> <>
> #+end_src
>
> When I export this to HTML using C-c C-e b, the text
> <> is present. What I would like to see
> is the output that is generated when tangling.
>
> Thanks
> Mark
>


Footnotes: 
[1]  http://orgmode.org/manual/noweb.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Eric Schulte
Chris Barber  writes:

> This is a great idea!
> I think I may well end up using this.
> Would it still be possible to do calculations within the heading?

Calculation on properties of headings should be possible with org-collector
http://orgmode.org/worg/org-contrib/org-collector.html

> 
> Eg once I have filled in all my headings and properties, how could I
> make the value of the last property for each heading equal to the
> average of the previous 3 columns?
>

I'm not sure if your above case would work out of the box, but the
current implementation should be a start.

Best -- Eric

>
> On Thu, May 19, 2011 at 6:53 PM, Michael Brand
> wrote:
>
>> Hi Chris
>>
>> This _is_ fantastic, Org can do it with column view:
>> http://orgmode.org/manual/Column-view.html#Column-view
>>
>> Michael
>>
>> On Thu, May 19, 2011 at 08:21, Chris Barber  wrote:
>> > Hi, I am planning to record some ideas in org-mode, and I would love to
>> be
>> > able to set it out as follows:
>> > * Ideas
>> > ** | Idea | A property | A property |
>> > *** Regular outlined notes
>> > Some notes
>> > *** More sub notes
>> > ** | Idea 2 | Property | Property |
>> > Is there any way for me to do this? Essentially it would function like a
>> > table until you tab down into it.
>> > I think this would be FANTASTIC!
>>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



[O] TODO is red in MobileOrg - the problem in org-mobile.el

2011-05-19 Thread Евгений Болденков
I had some problem with the way MobileOrg display TODO states. But it
evidently the problem is not in MobileOrg, but in org-mobile.el.
There are several TODO states defined in my org files. This is done by including
this line to org file:
#+SEQ_TODO: TODO(t) MAYBE(m) WAITING(w) APPT(a) | DONE(d) CANCELLED(c)
DEFERRED(f)
The tags from the first part needs some actions and should be
displayed in red while
the tags from the second doesn't assume any actions and should be displayed in
green.
In MobileOrg "CANCELLED" and "DEFERRED" where green but "DONE" was red. Another
thing - in MobileOrg the list of the possible TODO states contained
two DONE items,
all other items were listed only once.
Having examined the index.org file, which was generated for MobileOrg,
I saw two lines:
#+TODO: TODO DONE
#+TODO: MAYBE WAITING APPT | DONE CANCELLED DEFERRED
So, that was a problem. The first line contains default TODO types,
which are defined in
org-todo-keywords (org.el). The second line contains my custom TODO
types. This is a problem of defailt org-mode settings.
org-mobile.el (in function org-mobile-create-index-file) write default
TODO types in first line. Then it excludes default types from my custom list and
writes the rest to the second line.
As default, the value of org-todo keywords is ((sequence "TODO" "DONE")). So,
org-mobile.el have no way to determine which of these to types need some action
and which doesn't need. This information could be obtained from my custom string
"+SEQ_TODO", but org-mobile-create-index-file ignores it. It would be better to
write all the custom TODO types in the first line. In the second line should be
default values except for the same as custom. The modification of org-mobile.el
is needed.
I could suggest another solution without org-mobile.el modification. I
simply set
the value of org-todo-keywords to nil in my ~/.emacs. Now I have only
one record in
index.org:
#+TODO: TODO MAYBE WAITING APPT | DONE CANCELLED DEFERRED
This have solved my problem and now "DONE" is displayed in green in MobileOrg.
Org-mode 7.3, MobileOrg Android 0.5.5.



[O] Org-indent mode - is it possible to change auto-fill column based on indentation level?

2011-05-19 Thread Leo Alekseyev
I like using org-indent, however, when I'm on e.g. the third level of
an outline, this means that the effective line starts 7 characters
away from the left buffer edge.  Most often, I have two buffers side
by side on a laptop, and they are 77 columns wide.  I set fill-column
to 77 in order to not waste space.  Now, if I'm on the third level of
the outline, auto-fill will only kick in on the 84th column or
thereabout.

Are there any hacks to dynamically adjust the fill-column value
depending on the outline level?  (Solutions like "get a bigger screen"
or "live with narrower default fill" are valid, but less desirable :)
)

--Leo



Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Michael Brand
On Thu, May 19, 2011 at 13:24, Chris Barber  wrote:
> Would it still be possible to do calculations within the heading?
> Eg once I have filled in all my headings and properties, how could I make
> the value of the last property for each heading equal to the average of the
> previous 3 columns?

Yes, Org column view is equipped to do all kinds of aggregations like
to calculate the average/sum/min/max/... of the _lower_ level columns,
see "{summary-type}" in:
http://orgmode.org/manual/Column-attributes.html#Column-attributes

To get an idea of the power of column view I would also recommend
Carsten's talk at 00:18:23
http://www.youtube.com/watch?v=oJTwQvgfgMM#t=18m23s
and Russell's talk at about 00:54:00
http://video.google.com/videoplay?docid=-2572085463585491742

Michael



Re: [O] Thinkbook

2011-05-19 Thread Eden Cardim
> "Carsten" == Carsten Dominik  writes:

Carsten> Thinkbook App for the iPad.  I *really* think these
Carsten> guys need to put in an acknowledgement for Org-mode. :/

Carsten> http://www.148apps.com/reviews/thinkbook/
Carsten> http://www.thinkbookapp.com/

They probably won't be able to keep up with the community contributions
though.

-- 
Eden Cardim
Software Engineer
http://blog.edencardim.com
+55 73 9986-3963




[O] special characters for HTML

2011-05-19 Thread michael holzer
hello,

i guess there's a simple way to do this, but i couldn't figure it out,
so i have to ask here:
i want to write german umlauts in files that are exported to html. i
know that you can write for example \auml, but when i'm using this in a
word (e.g. l\aumlstig) this fails. if i put a space behind \auml i get
the umlaut, but obviously i don't want the space there...
so how is this supposed to be done?

thanks for any help,
michael



Re: [O] Thinkbook

2011-05-19 Thread Giovanni Ridolfi
-- Gio 19/5/11, Carsten Dominik  ha scritto:
> Data: Giovedì 19 maggio 2011, 12:12
> Thinkbook App for the iPad.  I
> *really* think these
> guys need to put in an acknowledgement for Org-mode.
> :/
> 
> http://www.148apps.com/reviews/thinkbook/
> http://www.thinkbookapp.com/

We could ask to comment if they 
have been _inspired_ by Org mode or Org Mobile.

Or in their blog
 http://www.bitolithic.com/thank-you

Or in their site
https://thinkbook.tenderapp.com/discussions
or 
https://thinkbook.tenderapp.com/discussions/questions

Or /via/ twitter
http://twitter.com/#!/bitolithichelp

Or the three things together!

Giovanni



[O] [PATCH] customize latex table export

2011-05-19 Thread Christophe Rhodes
Hi,

To produce documents in something approaching my organization's house
style, I need to be able to style the headers of tables.  It's nice that
orgtbl has the functionality for this, but the call to orgtbl-to-latex
has a hard-coded list of parameters with no possibility for extension.
With the attached patch, I am able to put e.g.

#+BIND: org-export-latex-tables-orgtbl-extra-parameters (:hfmt 
"\\multicolumn{1}{c}{\\bf\\color{white}\\cellcolor{blue}%s}")

in the header of my document, and tables throughout the document all
pick up this style.

I daresay that this is not the optimal way of doing things; while this
solves my immediate problem there is likely to be a more general way of
doing things.

>From 68160f0c7c54309e76d882f871ad01a019e9acab Mon Sep 17 00:00:00 2001
From: Christophe Rhodes 
Date: Thu, 19 May 2011 13:20:43 +0100
Subject: [PATCH 2/2] allow customization of table headers in latex export

* lisp/org-latex.el (org-export-latex-tables-orgtbl-extra-parameters): New
variable.
(org-export-latex-tables): Use it in call to orgtbl-to-latex.
---
 lisp/org-latex.el |   14 ++
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 516ee12..243cf84 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -325,6 +325,11 @@ When nil, grouping causes only separation lines between groups."
   :group 'org-export-latex
   :type 'boolean)
 
+(defcustom org-export-latex-tables-orgtbl-extra-parameters nil
+  "Extra parameters to pass to orgtbl-to-latex."
+  :group 'org-export-latex
+  :type 'plist)
+
 (defcustom org-export-latex-low-levels 'itemize
   "How to convert sections below the current level of sectioning.
 This is specified by the `org-export-headline-levels' option or the
@@ -1929,15 +1934,16 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
 align))
 (orgtbl-to-latex
  lines
- `(:tstart nil :tend nil
-   :hlend ,(if longtblp
-   (format "
+			 (append org-export-latex-tables-orgtbl-extra-parameters
+ `(:tstart nil :tend nil
+	   :hlend ,(if longtblp
+		   (format "
 \\hline
 \\endhead
 \\hline\\multicolumn{%d}{r}{Continued on next page}\\
 \\endfoot
 \\endlastfoot" (length org-table-last-alignment))
- nil)))
+		 nil
 (if (not longtblp) (format "\n\\end{%s}" tabular-env))
 (if longtblp "\n" (if org-export-latex-tables-centered
   "\n\\end{center}\n" "\n"))
-- 
1.7.2.5


Best,

Christophe


Re: [O] Options for HTML & PDF export

2011-05-19 Thread Christophe Rhodes
 writes:

> On 5/18/11 4:19 PM, "Nick Dokos"  wrote:
>>What is the problem with PNG exactly? I've never had any problems
>>incorporating them into a PDF. It is a bitmap format, so it will not
>>suffer extreme changes in magnification without some ugliness of course,
>>but other than that I don't know of any problems.
>
> That is exactly the problem =).  It does include itself into the document,
> it just doesn't look very nice.  Since these are data-based graphics
> coming from R, their lines should be nice & crisp, but they end up looking
> pretty fuzzy.

For what it's worth, I've been experimenting with the tikzDevice R
graphics device.  I have in the preamble of my current document

#+srcname: orgrsetup
#+begin_src R :session *R* :exports none :results none
  library(tikzDevice)
  org.device <- function(name, ext) {
file <- sprintf("%s.%s", name, ext)
switch(ext,
   "png"=png(file, width=480, height=384),
   "tikz"=tikz(file, width=5, height=4))
  }
  org.raw <- function(name, ext) {
file <- sprintf("%s.%s", name, ext)
switch(ext,
   "png"=sprintf("[[file:%s]]", file),
   "tikz"=sprintf("#+LaTeX: \\input{%s}", file))
  }
#+end_src

and then I use

#+begin_src R :session *R* :exports results :results value raw :var 
name="filename" :var ext=(csr-org-export-babel-graphics-extension)
  org.device(name, ext)
  # draw the picture here
  dev.off()
  org.raw(name,ext)
#+end_src

where csr-org-export-babel-graphics-extension returns "tikz" if the
backend is latex, and png otherwise.  This (with a bit more work on the
R side) gives me scalable graphics with fonts matching the PDF
document's fonts going through LaTeX, and acceptable-quality HTML.
(Which is something I've been looking for for the last six years, so I'm
quite pleased at the moment :-)

I hope this helps to provide some ideas.

Cheers,

Christophe




[O] [PATCH] References header in org-exp-bibtex

2011-05-19 Thread Christophe Rhodes
Hi,

I might be missing something, but while in LaTeX export org-exp-bibtex
produces a References header, in HTML export there's nothing -- which
looks a bit odd, particularly in documents with footnotes.  Attached is
a patch which simply includes an appropriate header.

>From 804e8f45357a3e877e10af8680023f64ab4690b2 Mon Sep 17 00:00:00 2001
From: Christophe Rhodes 
Date: Thu, 19 May 2011 13:17:15 +0100
Subject: [PATCH 1/2] provide "References" header in html export using org-exp-bibtex

* contrib/lisp/org-exp-bibtex.el (org-export-bibtex-preprocess): include
hard-coded "References" in #+BEGIN_HTML block
---
 contrib/lisp/org-exp-bibtex.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-exp-bibtex.el b/contrib/lisp/org-exp-bibtex.el
index 63f71ef..d48f0ee 100644
--- a/contrib/lisp/org-exp-bibtex.el
+++ b/contrib/lisp/org-exp-bibtex.el
@@ -107,7 +107,7 @@
 	  (goto-char (point-min))
 	  (while (re-search-forward "" nil t)
 		(replace-match "" t t))
-	  (concat "\n#+BEGIN_HTML\n\n" (buffer-string) "\n\n#+END_HTML\n"
+	  (concat "\n#+BEGIN_HTML\n\nReferences\n" (buffer-string) "\n\n#+END_HTML\n"
 	 ((eq org-export-current-backend 'latex) ;; Latex export
 	  (concat "\n#+LATEX: \\bibliographystyle{" style "}"
 		  "\n#+LATEX: \\bibliography{" file "}\n"))) t t)))
-- 
1.7.2.5


Cheers,

Christophe


[O] Thinkbook

2011-05-19 Thread Carsten Dominik
Thinkbook App for the iPad.  I *really* think these
guys need to put in an acknowledgement for Org-mode. :/

http://www.148apps.com/reviews/thinkbook/
http://www.thinkbookapp.com/

- Carsten



Re: [O] Org Mode Calendar UID Mismatch.

2011-05-19 Thread Greg Troxel

Ghanashyam  writes:

> I have had a problem with the org mode calendar export with emacs.
> It looks like org mode uses some uid generation exe which
> generates non unique UIDs. I am not sure why this is to. Even when I
> set the UID format to include the date format. Because of this, the ics
> file import into google calendar or a thunderbird import fails to import all
> tasks that were reported as Scheduled in the org mode document.
>
> Anyone with similar experiences.? I put this up on stack overflow but
> there was no response.

I'm haing the inverse problem, but I hadn't tracked it down enough to
post.   I find that after importing into Apple iCal (mac 10.6), and
doing another import, I end up with two events.




pgpBre3IncDeh.pgp
Description: PGP signature


Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Chris Barber
This is a great idea!
I think I may well end up using this.
Would it still be possible to do calculations within the heading?
Eg once I have filled in all my headings and properties, how could I make
the value of the last property for each heading equal to the average of the
previous 3 columns?

On Thu, May 19, 2011 at 6:53 PM, Michael Brand
wrote:

> Hi Chris
>
> This _is_ fantastic, Org can do it with column view:
> http://orgmode.org/manual/Column-view.html#Column-view
>
> Michael
>
> On Thu, May 19, 2011 at 08:21, Chris Barber  wrote:
> > Hi, I am planning to record some ideas in org-mode, and I would love to
> be
> > able to set it out as follows:
> > * Ideas
> > ** | Idea | A property | A property |
> > *** Regular outlined notes
> > Some notes
> > *** More sub notes
> > ** | Idea 2 | Property | Property |
> > Is there any way for me to do this? Essentially it would function like a
> > table until you tab down into it.
> > I think this would be FANTASTIC!
>


Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Chris Barber
Thanks for the suggestion. I will definitely consider that.
What do you mean by:
'For one thing, you won't be able to do advanced searching for tag/property
combinations, gather those properties into a column view or dynamic block
(for that you want regular Org properties). Nor easily access them from a
spreadsheet or source code elsewhere in the document (for that you want a
named table).'
Cheers

On Thu, May 19, 2011 at 5:20 PM, Christian Moe wrote:

> On 5/19/11 8:21 AM, Chris Barber wrote:
>
>> Hi, I am planning to record some ideas in org-mode, and I would love
>> to be able to set it out as follows:
>>
>> * Ideas
>> ** | Idea | A property | A property |
>> *** Regular outlined notes
>> Some notes
>> *** More sub notes
>> ** | Idea 2 | Property | Property |
>>
>> Is there any way for me to do this? Essentially it would function like
>> a table until you tab down into it.
>> I think this would be FANTASTIC!
>> Thanks,
>> Chris
>>
>
> Well, nothing prevents you from dividing up a heading with pipe characters,
> if you like the way it looks. It doesn't function like a table, but what
> table functionality is it that you want to use here?
>
> For one thing, you won't be able to do advanced searching for tag/property
> combinations, gather those properties into a column view or dynamic block
> (for that you want regular Org properties). Nor easily access them from a
> spreadsheet or source code elsewhere in the document (for that you want a
> named table).
>
> I suggest you rather consider tags and regular Org properties.
>
> * Idea :A_Property:Another_Property:
> * Idea
>  :PROPERTIES:
>  :A_Property: value
>  :Another_Property: value2
>  :END:
>
> Yours,
> Christian
>


Re: [O] Options for HTML & PDF export

2011-05-19 Thread Sebastien Vauban
Hi Ken,

 wrote:
> I use the Babel features of org-mode to do a sort of literate-programming
> thing. I have lots of R code that generates graphics which get included into
> an exported HTML or PDF (via LaTeX) document.
>
> I'm wondering about "best practices" (though I hate that term) for managing
> the export to both HTML & PDF.

Just by curiosity, what don't use like that term?

> For the HTML I generate the graphics files as PNG, but for PDF the PNG
> format doesn't embed very well, so I need to generate PDF or EPS or
> somesuch. But then I have to change the ":file filename.png" to ":file
> filename.pdf", which is quite cumbersome to do every time I want to export.
>
> Is there some wcy people have for dealing with this situation? Some options
> setting maybe?

I've no time to customize it to your particular needs, but here's something
you can update to map it to your needs:

#+begin_src org
#+BABEL: :results (if (and (boundp 'backend) (eq backend 'latex)) "latex" 
"file")
#+end_src

Please post your solution for the sake of further sharing...

Best regards,
  Seb

-- 
Sébastien Vauban




Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Eric S Fraga
Chris Barber  writes:

> Hi, I am planning to record some ideas in org-mode, and I would love to be
> able to set it out as follows:
>
> * Ideas
> ** | Idea | A property | A property |
> *** Regular outlined notes
> Some notes
> *** More sub notes
> ** | Idea 2 | Property | Property |
>
> Is there any way for me to do this? Essentially it would function like a
> table until you tab down into it.
> I think this would be FANTASTIC!
> Thanks,
> Chris

Have a look at properties and columns in info: (org) Properties and
Columns.  I believe that column with with properties will do exactly
what you want.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.284.g2a8fb)



Re: [O] Mixing org-mode tables with outlining?

2011-05-19 Thread Michael Brand
Hi Chris

This _is_ fantastic, Org can do it with column view:
http://orgmode.org/manual/Column-view.html#Column-view

Michael

On Thu, May 19, 2011 at 08:21, Chris Barber  wrote:
> Hi, I am planning to record some ideas in org-mode, and I would love to be
> able to set it out as follows:
> * Ideas
> ** | Idea | A property | A property |
> *** Regular outlined notes
> Some notes
> *** More sub notes
> ** | Idea 2 | Property | Property |
> Is there any way for me to do this? Essentially it would function like a
> table until you tab down into it.
> I think this would be FANTASTIC!