Re: [Orgmode] Spreadsheet and weighted means

2008-10-04 Thread Nicolas Goaziou
Hello,

Carsten Dominik <[EMAIL PROTECTED]> writes:

> (defun my-wmean (values weights)
>  (let ((vsum 0) (wsum 0))
>(while (and values weights)
>  (setq v (pop values) w (pop weights))
>  (unless (equal "" v)
>   (setq vsum (+ vsum (* (string-to-number w) (string-to-number
> v)))
> wsum (+ wsum (string-to-number w)
>(if (= vsum 0) "" (format "%.1f" (/ vsum wsum)

But in this case, there's no difference between one who didn't work and
one who just wasn't there: 0 0 and "empty" "empty" will have the same
"empty" mean, won't they ?

>> Finally, I wondered if it would be useful to make it built-in as
>> weighted means are somewhat popular in education.
>
> Well, I could do that, of course. But which version of this function?
> What ouput etc?
> I guess this would then be the original version, which returns a
> number, and which returns 0 if the student has done absolutely
> nothing

Though it seems more of a rhetorical question, I would be tempted to
answer that any of them would be useful.
On the other hand, I can live with "my-wmean" in my .emacs.

Regards,

-- 
Nicolas Goaziou


___
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] orgtbl-mode and numerical keypad

2008-10-04 Thread Rainer Thiel
I have noticed a side-effect of orgtbl-mode that I suppose is not intended:

Whenever orgtbl-mode is active, pressing any key on the numerical
keypad (except for ) doesn't insert any character, but produces
the following error message: "Wrong type argument: commandp, nil".

As all relevant keys in that case are bound to
orgtbl-self-insert-command, the problem may lurk in that function
definition.

I first thought the problem might be an interference with auctex, but
now see it can be reproduced with text mode after starting Emacs from
the command line with "emacs -q" and evaluating "(require
'org-install)" in the *scratch* buffer.

Thanks for this excellent mode and thank for any and all help!

Rainer
-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
[EMAIL PROTECTED]


___
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] Footnotes and org-export

2008-10-04 Thread mdl

First, let me say thank you to Carsten and everyone else for this
wonderful note-taking/PIM/spreadsheet/everything-but-the-kitchen-sink
software. It is one of the best computer tools I've ever used. As an
Emacs neophyte, I remained humbled by the generosity of those with far
superior computer skills.

I am an academic and I use LaTeX footnotes extensively in my writing.
I'd like to be able to write my drafts in org-mode and then export
them both to HTML and LaTeX. The problem is that the emacs footnote
mode is not very robust (being designed for emails with one or two
footnotes). Trying to add more than a handful of footnotes to a
document with footnote.el quickly becomes a nightmare (ordering gets
broken, the count gets messed up, etc.)

And now for the question (which will betray my ignorance about emacs
lisp). How complicated would it be to write a function for org-export
that would transform the LaTeX markup for footnotes (i.e.,
\footnote{text}) into hyperref footnotes? I'd like to be able to enter
the LaTeX footnote markup directly in my org file and then export it
to html.[1]

Or, if this wouldn't work, how complicated would it be to create a
different footnote markup altogether for org-export? One possibility,
I imagine, would be a footnote markup with unique labels for each
footnote, such as:
 
 Here is a sentence with a footnote.[fn:label]
 
 ...

 [fn id=label] And here is the footnote.
 
This latter option would allow for the arbitrary placement of
footnotes in html documents.
 
Thanks for your suggestions!



Matthew Lundin
mdl at imapmail dot org



[1] I've checked the mailing lists and documentation, and as far as I
can tell, \footnote is not one of the embedded LaTeX macros that org
recognizes. Please do correct me if I am wrong.


___
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] orgtbl-mode and numerical keypad

2008-10-04 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Oct 4, 2008, at 11:16 AM, Rainer Thiel wrote:

I have noticed a side-effect of orgtbl-mode that I suppose is not  
intended:


Whenever orgtbl-mode is active, pressing any key on the numerical
keypad (except for ) doesn't insert any character, but produces
the following error message: "Wrong type argument: commandp, nil".

As all relevant keys in that case are bound to
orgtbl-self-insert-command, the problem may lurk in that function
definition.

I first thought the problem might be an interference with auctex, but
now see it can be reproduced with text mode after starting Emacs from
the command line with "emacs -q" and evaluating "(require
'org-install)" in the *scratch* buffer.

Thanks for this excellent mode and thank for any and all help!

Rainer
--
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
[EMAIL PROTECTED]


___
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




___
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] Latex export & Prosper Presentation

2008-10-04 Thread Carsten Dominik


On Sep 26, 2008, at 6:33 PM, Russell Adams wrote:


I've gotten a basic export to Prosper working for a presentation I'm
writing to give this weekend.

Here is the extra portion for .emacs:
(setq org-export-latex-classes (cons '("prosper"
   "% BEGIN Prosper Defaults
\\documentclass[pdf, contemporain]{prosper}
\\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc}
\\usepackage[colorlinks,linkcolor=blue]{hyperref}
% END Prosper Defaults

"
   ("\\begin{slide}{%s}" . "\\begin{slide}{%s}"))
   org-export-latex-classes))

Unfortunately it doesn't appear that I can add a closure for the
slide, so a manual "\end{slide}" must go at the end of each.


As a hack, until we get around to define a closure:  I guess you could  
live with a single empty first slide?


Then you can do


   ("\\end{slide}\n\\begin{slide}{%s}" . "\\end{slide}\n\\begin{slide} 
{%s}"))

   org-export-latex-classes))

And just put a single \begin{slide} at the beginning and a single  
\end{slide} at the end.


- 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: custom commands 'todo-tree' and org-agenda-skip-function

2008-10-04 Thread Carsten Dominik


On Oct 1, 2008, at 7:06 PM, Vladi Solutka wrote:


Hi!

Carsten Dominik  uva.nl> writes:

I'm currently playing with org-agenda-custom-commands and noticed  
that

skipping scheduled entries does not work for todo-trees.

Example: The following works fine for 'todo', but with 'todo-tree'
(as used here) scheduled entries are also shown.

(setq org-agenda-custom-commands '(("x" "Open" todo-tree "TODO"
((org-agenda-skip-function (lambda nil (org-agenda-skip-entry-if
'scheduled 'deadline)))


Is this intended?


Maybe not intended, but the tree commands are using a completely
separate implementation (the sparse-tree engine.  You can specify  
tree

commands in agenda-custom-commands as shortcuts, but really they have
nothing to do with the agenda engine.  And it is that engine which
implements skipping.


Oh, ok, I see :-| This wasn't clear to me from the manual - thanks for
clarification!

Hm. Thou I nearly don't dare to ask: Are there any chances or plans  
that

skipping in the sparse-tree will be implemented?


Not likely in the near future.  You can do some hacking by using org- 
occur and the callback argument, but I think for complex searching the  
agenda is where the future likes.  I think of sparse trees more like a  
quick-look tool.





Anyway, thanks for orgmode :-)


You're welcome.

- Carsten




--- \\/ladi




___
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




___
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] uncommented call to debug in org-id

2008-10-04 Thread Eric Schulte

There's a debug call in org-id.el from the git repo that's tripping up
my ical export.  It should probably be commented out.

./org-id.el:306:  (debug)

-- Eric


___
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] Footnotes and org-export

2008-10-04 Thread Carsten Dominik

Hi Matthew,

I guess one way to do this would be to write a hook function that,  
prior to export, colectes all the footnotes you have produced in your  
favorite markup and to put them in the normal ASCII format that Org  
can digest.


I am not convinced that this is a good approach.  Org ist supposed to  
be and ASCII format, easily readable and exportable.  To write text  
with extensive use of footnotes may well be stretching the envelope of  
Org.


Having said this, I have had quite good experiences with Steve L.  
Baur's footnote-mode.  But maybe I have never used it to the extend  
you do?  How exactly does it fail?  Can you make an example?  Or a bug  
report to Steve?


- Carsten

On Oct 3, 2008, at 7:04 PM, [EMAIL PROTECTED] wrote:



First, let me say thank you to Carsten and everyone else for this
wonderful note-taking/PIM/spreadsheet/everything-but-the-kitchen-sink
software. It is one of the best computer tools I've ever used. As an
Emacs neophyte, I remained humbled by the generosity of those with far
superior computer skills.

I am an academic and I use LaTeX footnotes extensively in my writing.
I'd like to be able to write my drafts in org-mode and then export
them both to HTML and LaTeX. The problem is that the emacs footnote
mode is not very robust (being designed for emails with one or two
footnotes). Trying to add more than a handful of footnotes to a
document with footnote.el quickly becomes a nightmare (ordering gets
broken, the count gets messed up, etc.)

And now for the question (which will betray my ignorance about emacs
lisp). How complicated would it be to write a function for org-export
that would transform the LaTeX markup for footnotes (i.e.,
\footnote{text}) into hyperref footnotes? I'd like to be able to enter
the LaTeX footnote markup directly in my org file and then export it
to html.[1]

Or, if this wouldn't work, how complicated would it be to create a
different footnote markup altogether for org-export? One possibility,
I imagine, would be a footnote markup with unique labels for each
footnote, such as:

Here is a sentence with a footnote.[fn:label]

...

[fn id=label] And here is the footnote.

This latter option would allow for the arbitrary placement of
footnotes in html documents.

Thanks for your suggestions!



Matthew Lundin
mdl at imapmail dot org



[1] I've checked the mailing lists and documentation, and as far as I
can tell, \footnote is not one of the embedded LaTeX macros that org
recognizes. Please do correct me if I am wrong.


___
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




___
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] Any iPhone devellopers here

2008-10-04 Thread Carsten Dominik

Hi,

do we have any iPhone developer here on the list who would like to  
listen to my ideas about a (very simple) mobile arm (not version) of  
Org?


- 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] uncommented call to debug in org-id

2008-10-04 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Oct 4, 2008, at 9:38 PM, Eric Schulte wrote:



There's a debug call in org-id.el from the git repo that's tripping up
my ical export.  It should probably be commented out.

./org-id.el:306:  (debug)

-- Eric


___
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




___
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] RELEASE: Org-mode 6.08a

2008-10-04 Thread Carsten Dominik


Hi

I am releasing Org version 6.08.  The biggest news is the integration of
John Wiegley's attachment system that allows to keep a directory with  
file

attachments for each entry.  Great stuff.

As usually, you can get the release through GIT, or at http://orgmode.org

Enjoy!

- Carsten



Changes in Version 6.08
===

Incompatible changes


The default structure of IDs has changed


IDs created by Org have changed a bit:
- By default, there is no prefix on the ID.  There used to be
  an "Org" prefix, but I now think this is not necessary.
- IDs use only lower-case letters, no upper-case letters
  anymore.  The reason for this is that IDs are now also used
  as directory names for org-attach, and some systems do not
  distinguish upper and lower case in the file system.
- The ID string derived from the current time is now /reversed/
  to become an ID.  This assures that the first two letters
  of the ID change fast, so hat it makes sense to split them
  off to create subdirectories to balance load.
- You can now set the `org-id-method' to `uuidgen' on systems
  which support it.

C-c C-a no longer calls `show-all'
--

   The reason for this is that C-c C-a is now used for the
   attachment system.  On the rare occasions that this
   command is needed, use `M-x show-all', or `C-u C-u C-u TAB'.

Details
===

New attachment system
-

You can now attach files to each node in the outline tree.
This works by creating special directories based on the ID of
an entry, and storing files in these directories.  Org can
keep track of changes to the attachments by automatically
committing changes to git.  See the manual for more
information.

Thanks to John Wiegley who contributed this fantastic new
concept and wrote org-attach.el to implement it.

New remember template escapes
-

 %^{prop}p   to insert a property
 %k  the heading of the item currently being clocked
 %K  a link to the heading of the item currently being  
clocked


Also, when you exit remember with `C-2 C-c C-c', the item
will be filed as a child of the item currently being
clocked.  So the idea is, if you are working on something and
think of a new task related to this or a new note to be
added, you can use this to quickly add information to that
task.

Thanks to James TD Smith for a patch to this effect.

Clicking with mouse-2 on clock info in mode-line visits the clock.
--

Thanks to James TD Smith for a patch to this effect.

New file in contrib: lisp/org-checklist.el
--

This module deals with repeated tasks that have checkbox
lists below them.

Thanks to James TD Smith for this contribution.

New in-buffer setting #+STYLE
-

It can be used to locally set the variable
`org-export-html-style-extra'.  Several such lines are
allowed-, they will all be concatenated.  For an example on
how to use it, see the publishing tutorial.




___
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