Re: [Orgmode] latex export and beamer columns

2009-11-26 Thread Eric S Fraga
At Thu, 26 Nov 2009 00:25:21 +0100,
Carsten Dominik wrote:

 On Nov 25, 2009, at 7:03 PM, Eric S Fraga wrote:
 
  Carsten,
 
  I am puzzled.  I can get this to work (and it works very well indeed)
  but only if I set these variables through the customisation interface
  in Emacs (custom-set-variables) and not if I setq them after loading
  the packages as I normally do.  No other variables in org-mode give me
  this behaviour.
 
  I haven't yet tried seeing if both variables have to be set through
  custom-set-variables or only one of them but will try that later.
 
 Hi Eric,
 
 I wrote in my reply that a restart of Emacs is necessary to make the
 work.
 The reason is that the information in these variables must be
 converted into  complicated regexp, and that only happens if you do it
 through customize
 (which sets the variable and then calls a hook to do the necessary
 updates),
 or if you set the variables in Lisp *before* org.el is loaded.
 
 The docstring of org-emphasis-alist says:
 
 Use customize to modify this, or restart Emacs after changing it.
 
 If that is not clear enough, what should I write there?
 
 - Carsten
 

This is all perfectly clear: I did restart emacs (several times) after
putting in the setq commands to set those variables.  

However, I guess the instructions you give are actually subtly
incorrect?  That is, from what you say above, using setq is not going
to work because that doesn't invoke any hooks for the particular
variables.  Therefore these variable must (?)  be set through
customize?  Or is there some way to invoke, automatically, the hooks
when setting a variable directly?  Probably not.

FYI, I am happy in principle to use customize but I don't use it in
general because I share my emacs configuration amongst a number of
machines and tend to use customize *only* for those variables that are
different on each system (e.g. only emacs 22 is available on my
internet table).  This makes it easy to have an almost consistent
environment regardless of the system I'm using.

Anyway, thanks again: using @text@ now works very nicely both in org
mode and in the export!

eric


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] how to escape in typewriter markup

2009-11-26 Thread Stefan Vollmar
Hello,

we are using org-mode for software documentation and use the usual convention 
that commandline input should be set in a typewriter font.

This works fine in org 6.32 trans:
=somescript -U input=

This does not:
=somescript -U my key my value=
when exporting to HTML this is rendered to normal text including the 
surrounding =.

The inverted commas cause the problem. Is there a way to escape them (something 
like \)?
Many thanks in advance.

Warm regards,
 Stefan
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Adding to a List With No Heading Doesn't Work as Expected

2009-11-26 Thread Carsten Dominik

Fixed, thanks.

- Carsten

On Nov 25, 2009, at 11:39 AM, Ian Barton wrote:

I am not sure if this is intended behaviour or not. If I start a new  
document with no headings and type:


- item 1

then press M_Ret, I get:

- item 1
*

If my document is like:

* Heading
- item 1

M-Ret works as expected.

This is with 6.33 trans.

Ian.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Infinite loop when org-entry-put is called in buffer not in org-mode [6.33trans]

2009-11-26 Thread Carsten Dominik


On Nov 25, 2009, at 9:05 AM, David Maus wrote:



Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


When `org-entry-put' is called in a buffer that is not in org-mode
Emacs enters an infinite loop.

Use this simple function

,
|(defun dmj/debug ()
|  Call me within a buffer not in org-mode and I will hang.
|  (interactive)
|  (org-entry-put (point) Prop Val))
`

Create a new buffer in fundamental mode and enter a headline manually:

*test*
,
| * Headline
`

Now call dmj/debug interactivly (M-x dmj/debug RET) and Emacs hangs.


Hi David,

you cannot reasonably expect that org-mode functions should work
in other modes.  And you cannot expect these functions to check
the mode all the time.

I don't know what you are up to here.  But maybe the function
`org-run-as-in-org-mode' offers a way out?

- Carsten



Regards,

 -- David

Emacs  : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
of 2009-11-15 on elegiac, modified by Debian
Package: Org-mode version 6.33trans

current state:
==
(setq
org-export-latex-default-class scrartcl
org-clock-in-switch-to-state STARTED
org-todo-keyword-faces '((TODO :foreground red :weight bold)  
(STARTED :foreground orange red :weight bold)

  (DONE :foreground light green) (MAYBE :foreground 
tomato)
			  (WAITING :foreground tan2 :weight bold)  
(CANCELLED :foreground firebrick))

org-expiry-insert-created-only-if-todo t
org-agenda-custom-commands '((r Refile New Notes and Tasks tags  
LEVEL=1+REFILE

   ((org-agenda-todo-ignore-with-date nil)))
  (s Started Tasks todo STARTED
			   ((org-agenda-todo-ignore-scheduled nil) (org-agenda-todo- 
ignore-deadlines nil)

(org-agenda-todo-ignore-with-date nil))
   )
  )
org-agenda-files '(/home/david/Org/XXX)
org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
org-agenda-tags-column -120
org-checklist-export-function 'org-export-as-ascii
org-completion-use-ido t
org-expiry-created-property-name Created
org-after-todo-state-change-hook '(org-clock-out-if-current org- 
expiry-insert-created org-checklist)

org-expiry-expiry-timestamp-active nil
org-agenda-todo-ignore-scheduled t
org-todo-state-tags-triggers '((todo (NOTE)) ( (NOTE . t)))
org-log-redeadline 'time
org-expiry-created-timestamp-active nil
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-tags-exclude-from-inheritance '(NOTE ATTACH APPT)
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-todo-keywords '((sequence TODO(t) STARTED(s) | DONE(D@))
 (sequence MAYBE(m) WAITING(w@/!) | CANCELLED(C@)))
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-directory ~/Org
org-log-reschedule 'time
org-insert-heading-hook '(org-expiry-insert-created)
org-after-tags-change-hook '(org-expiry-insert-created)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
org-publish-project-alist '((private-dynamic :base-directory ~/ 
Org/www :base-extension org :publishing-directory
			  ~/www/private :publishing-function (org-publish-org-to- 
html) :recursive t :author

  David Maus :email maus.da...@gmail.com)
			 (private-static :base-directory ~/Org/www :base- 
extension css :publishing-directory
			  ~/www/private :publishing-function org-publish- 
attachment :recursive t)

 (private :components (private-dynamic 
private-static)))
org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook  
change-major-mode-hook org-show-block-all append local] 5])

org-refile-targets '((org-agenda-files :maxlevel . 3))
org-confirm-elisp-link-function 'yes-or-no-p
org-refile-use-outline-path 'file
org-expiry-wait +3m
org-log-into-drawer LOGBOOK
org-agenda-todo-ignore-with-date t
org-enforce-todo-dependencies t
org-insert-heading-respect-content t
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp \\David Maus\\
org-tags-column -120
org-remember-templates '((todo 116 * TODO %^{Description} %^G 
\n  :PROPERTIES:\n  :Created: %U\n  :Ref: %a\n  :END:

   refile.org bottom nil)
  (appt 97
			   * %^{Description} :APPT:%^G\n  %^T\n  :PROPERTIES: 
\n  :Created: %U\n  :Ref: %a\n  :END:

   refile.org bottom nil)
			  (note 110 * %^{Description} %^G:NOTE:\n  :PROPERTIES: 
\n  

Re: [Orgmode] How to get visual-line-mode keep indentation on extra lines?

2009-11-26 Thread Carsten Dominik

Hi Jan,

this is much work to get this fixed - just get used to it is my  
proposal.


- Carsten

On Nov 24, 2009, at 12:20 AM, jan wrote:


Laurent Bedubourg lbedubourg at gmail.com writes:



Hello,

First of all thank you very much for org-mode, it made me switch from
vim to emacs and I really enjoy the trip :)

There is this little thing which bother me and I am not sure if it's
related to this thread or not:
Re: [Orgmode] Re: org-indent-mode and visual-line-mode
http://www.mail-archive.com/emacs-orgmode at gnu.org/
msg19713.html

Here my little problem:

When visual-line-mode is active and you resize your window (ubuntu
karmic, official emacs 23 package) you often see something like this:

* My list
 * Some thing this is longer
back to line which is really
anoying
 * Other thing which is
truncated
   * Sub items with blah
to line

I would like to keep the indentation on these extra lines and get
something like that:

* My list
 * Some thing this is longer
   back to line which is
   really anoying
 * Other thing which is
   truncated
   * Sub items with blah
 to line

Which I find more readable (no offence if someone prefers the former
form, may be it's a question of taste :).

Is there some way to achieve this with my current packages?
Will installing org-mode using GIT sources provide the feature  
through

org-indent-mode?

Thank you for your help!

PS: I also posted this question on stackoverflow in case the answer
came up quickly
http://stackoverflow.com/questions/1771981/how-to-keep-indentation

-with-emacs-org-mode-
visual-line-mode




Dear all,

i have a similar Problem with checkboxes.

* TODO fix checkboxes in visual line mode
  - [-] thanks for org-mode [1/3]
- [ ] i love lists
- [X] an checkboxes
- [ ] for example the next line begins
  to far to the left in emacs 23.1 with
  org-mode 6.33f
- [X] The next line should start
  here.

Thanks for all the good work! i use org-mode at work on an PC to  
organize,

document and sort my projects.




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] time ranged notes on the agenda

2009-11-26 Thread Carsten Dominik


On Nov 23, 2009, at 5:16 PM, Łukasz Stelmach wrote:


Hello.

Isn't it wrong when a note like this:

* A very interesting meeting 11:15-12:00
 2009-11-30 Mon--2009-12-01 Tue

Shows up in the agenda time gird only on monday while being untimed on
tuesday?


What is funny is that I explicitly turn off the time for the  
additional dates.
I guess there must have been a reason for this in 2003 - but I can't  
see what the reason might be.  So I have changed this.


Thanks!

- Carsten


To make it right I do

* A very interesting meeting
 2009-11-30 Mon 11:15--2009-11-30 Mon 12:00
 2009-12-01 Tue 11:15--2009-12-01 Tue 12:00

or simply

* A very interesting meeting 11:15-12:00
 2009-11-30 Mon
 2009-12-01 Tue

Which works but doesn't show the recurrence counter.

Is it a bug or a feature?

--
Miłego dnia,
Łukasz Stelmach



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] problem with installing org mode 6.33f on windows

2009-11-26 Thread Carsten Dominik

Hi Bostjan,

I don't think anything has changed in the Makefile - so I don't know  
what might be causing this.


- Carsten

On Nov 23, 2009, at 6:56 AM, Bostjan Vilfan wrote:


Hello,
I use org mode on Windows and Linux machines, and with 6.33f I have  
encountered

a problem that didn't occur before:

Installation on Linux completes normally, but on Windows XP it ends  
with the

following lines:

lisp/org-w3m.el lisp/org-wl.el lisp/org-xoxo.el)))' \
   --eval '(insert \n(provide (quote org-install))\n)' \
   --eval '(save-buffer)'
End of file during parsing
make: *** [lisp/org-install.el] Error -1

I am using gnuwin32 make. As I mentioned, this never happened  
previously.

Regards,
Bostjan



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Export to ics, recurring events not being exported

2009-11-26 Thread Carsten Dominik


On Nov 24, 2009, at 6:35 PM, Marcelo de Moraes Serpa wrote:


Hello list!

I have some events that have a past date, but that have the +1w flag  
at the end, meaning they should repeat every week. However, they  
don't seem to be exported when I export using  the org-export-agenda- 
combined command. Any ideas?


Hi Marcello,

please make an example file.  I am going through 20 mails like yours  
every day - anything that reduces the effort I have to put in will  
make it more likely that I

will take a look at the issue.

Thanks.

- Carsten



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Sorting of Lists Beginning with a Link Does Not Work as Expected

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 8:19 AM, Ian Barton wrote:


Carsten Dominik wrote:

On Nov 25, 2009, at 12:04 PM, Ian Barton wrote:
- [[./benighted_on_the_ben.html][Benighted on the Ben.]] A Winter  
ascent of Glover's Chimney almost leads to bed  breakfast on the  
summit of Ben Nevis.
- [[./route_major.html][Route Major.]] We get lost on the famous  
route on Mont Blanc's southern side.
- [[file:a_walk_in_the_berwyns.org][A Walk in the Berwyns]]  Just  
to show I don't always get lost.
- [[file:castell_helen_gogarth.org][Castell Helen Gogarth]]   
Classic cliff with a cafe at the top!
- [[file:crowberry_left_fork.org][Crowberry Gully, Left Fork]]  
Buchaille Etive Mor. Much more fun than the ordinary  
straightforward route.
- [[file:first_pinnacle_rib_tryfan.org][First Pinaccle Rib  
Tryfan]] How not to go climbing with young children.


Again I am not sure if this is expected behaviour. If I try to  
sort the above list using any of the available methods, it doesn't  
get sorted at all.


Using alpha sort I would expect the list to sort starting with the  
link description and then to consider the rest of the text.

Hi Ian,
the sorting algorithm is not smart enough to analyze links, so this  
will be sorted

the the link URL, which it is.

Thanks. I'll sort them manually.


The sorting machine allow for a user-written function to compare  
entries


- Carsten



Ian.


- Carsten





___
Emacs-orgmode mailing list
Please 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 and beamer columns

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 9:16 AM, Eric S Fraga wrote:


At Thu, 26 Nov 2009 00:25:21 +0100,
Carsten Dominik wrote:


On Nov 25, 2009, at 7:03 PM, Eric S Fraga wrote:


Carsten,

I am puzzled.  I can get this to work (and it works very well  
indeed)
but only if I set these variables through the customisation  
interface

in Emacs (custom-set-variables) and not if I setq them after loading
the packages as I normally do.  No other variables in org-mode  
give me

this behaviour.

I haven't yet tried seeing if both variables have to be set through
custom-set-variables or only one of them but will try that later.


Hi Eric,

I wrote in my reply that a restart of Emacs is necessary to make the
work.
The reason is that the information in these variables must be
converted into  complicated regexp, and that only happens if you do  
it

through customize
(which sets the variable and then calls a hook to do the necessary
updates),
or if you set the variables in Lisp *before* org.el is loaded.

The docstring of org-emphasis-alist says:

Use customize to modify this, or restart Emacs after changing it.

If that is not clear enough, what should I write there?

- Carsten



This is all perfectly clear: I did restart emacs (several times) after
putting in the setq commands to set those variables.

However, I guess the instructions you give are actually subtly
incorrect?  That is, from what you say above, using setq is not going
to work because that doesn't invoke any hooks for the particular
variables.  Therefore these variable must (?)  be set through
customize?  Or is there some way to invoke, automatically, the hooks
when setting a variable directly?  Probably not.


setq will work when you do it *before* loading org.el

- Carsten



FYI, I am happy in principle to use customize but I don't use it in
general because I share my emacs configuration amongst a number of
machines and tend to use customize *only* for those variables that are
different on each system (e.g. only emacs 22 is available on my
internet table).  This makes it easy to have an almost consistent
environment regardless of the system I'm using.

Anyway, thanks again: using @text@ now works very nicely both in org
mode and in the export!

eric


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] how to escape in typewriter markup

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 9:40 AM, Stefan Vollmar wrote:


Hello,

we are using org-mode for software documentation and use the usual  
convention that commandline input should be set in a typewriter  
font.


This works fine in org 6.32 trans:
=somescript -U input=

This does not:
=somescript -U my key my value=
when exporting to HTML this is rendered to normal text including the  
surrounding =.


The inverted commas cause the problem. Is there a way to escape them  
(something like \)?

Many thanks in advance.


Hi Stefan,

customize the variable org-emphasis-regexp-components and remove
these two characters

   \

from the third element.

That should do the trick, but will then no longer allow you to write

  this is =quoted=

Such are the limitations of ASCII text .. :(

HTH anyway

- Carsten

- Carsten



Warm regards,
Stefan
--
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Sorting of Lists Beginning with a Link Does Not Work as Expected

2009-11-26 Thread Ian Barton

Carsten Dominik wrote:


On Nov 26, 2009, at 8:19 AM, Ian Barton wrote:


Carsten Dominik wrote:

On Nov 25, 2009, at 12:04 PM, Ian Barton wrote:
- [[./benighted_on_the_ben.html][Benighted on the Ben.]] A Winter 
ascent of Glover's Chimney almost leads to bed  breakfast on the 
summit of Ben Nevis.
- [[./route_major.html][Route Major.]] We get lost on the famous 
route on Mont Blanc's southern side.
- [[file:a_walk_in_the_berwyns.org][A Walk in the Berwyns]]  Just to 
show I don't always get lost.
- [[file:castell_helen_gogarth.org][Castell Helen Gogarth]]  Classic 
cliff with a cafe at the top!
- [[file:crowberry_left_fork.org][Crowberry Gully, Left Fork]] 
Buchaille Etive Mor. Much more fun than the ordinary straightforward 
route.
- [[file:first_pinnacle_rib_tryfan.org][First Pinaccle Rib Tryfan]] 
How not to go climbing with young children.


Again I am not sure if this is expected behaviour. If I try to sort 
the above list using any of the available methods, it doesn't get 
sorted at all.


Using alpha sort I would expect the list to sort starting with the 
link description and then to consider the rest of the text.

Hi Ian,
the sorting algorithm is not smart enough to analyze links, so this 
will be sorted

the the link URL, which it is.

Thanks. I'll sort them manually.


The sorting machine allow for a user-written function to compare 
entries



Thanks. Time to dig out my regexp book.

Ian.


___
Emacs-orgmode mailing list
Please 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 and beamer columns

2009-11-26 Thread Eric S Fraga
At Thu, 26 Nov 2009 10:05:06 +0100,
Carsten Dominik wrote:

[...]

  However, I guess the instructions you give are actually subtly
  incorrect?  That is, from what you say above, using setq is not going
  to work because that doesn't invoke any hooks for the particular
  variables.  Therefore these variable must (?)  be set through
  customize?  Or is there some way to invoke, automatically, the hooks
  when setting a variable directly?  Probably not.
 
 setq will work when you do it *before* loading org.el

Ah ha!  Does this apply to all the variables?  That is, are there some
that need to be defined after loading org.el?  

I've always been a bit confused as to how and when variables can be
manipulated...  I guess it comes down to all these variables being
global in scope.

Anyway, setting the variables before loading org does indeed do what I
want.  My lecture slides now look as they should!  Thanks again and
sorry for the noise!


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)]

2009-11-26 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Nov 25, 2009, at 7:54 PM, Bernt Hansen wrote:


 My auto exclude functions are inline below:

 (defun bh/org-auto-exclude-function (tag)
  (and (cond
  ((string= tag @home)
   (bh/working-p))
  ((string= tag @office)
   (not (bh/working-p)))
  ((string= tag MARK)
   (not (bh/mark-p)))
  ((or (string= tag @errand) (string= tag PHONE))
   (let ((hour (nth 2 (decode-time
 (or ( hour 8) ( hour 21)
   (concat - tag)))


 do you get it back to when when replacing MARK with mark and
 PHONE wiht phone?

Yes.  When I make the tags lowercase in the function above it works
again.

Thanks!

-Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)]

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 11:55 AM, Bernt Hansen wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


On Nov 25, 2009, at 7:54 PM, Bernt Hansen wrote:



My auto exclude functions are inline below:

(defun bh/org-auto-exclude-function (tag)
(and (cond
((string= tag @home)
 (bh/working-p))
((string= tag @office)
 (not (bh/working-p)))
((string= tag MARK)
 (not (bh/mark-p)))
((or (string= tag @errand) (string= tag PHONE))
 (let ((hour (nth 2 (decode-time
   (or ( hour 8) ( hour 21)
 (concat - tag)))



do you get it back to when when replacing MARK with mark and
PHONE wiht phone?


Yes.  When I make the tags lowercase in the function above it works
again.


The docstring of org-agenda-auto-exclude-function does mention this,
but it is indeed a change from John's original code - so it was not in  
the docstring when you wrote this function..


- Carsten



Thanks!

-Bernt


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Beamer support in Org-mode

2009-11-26 Thread Carsten Dominik

Hi,

this is in response to the discussions about beamer
export from Org-mode.  Yesterday I had a long train ride
during which I scanned the beamer documentation (smoking
hot stuff!).  Then I made the attached draft
for Org-mode support, strongly based on the stuff
Eric Fraga has put together recently.  What is described
below sort-of works in some experimental code here, but before
I polish I would like comments on this outline.

NOW is the time to chime in.

Thanks!

- Carsten

  beamerdoc
  =

Author: Carsten Dominik carsten.domi...@gmail.com
Date: 2009-11-26 12:08:45 CET



Table of Contents
=
1 Organization
1.1 Sections
1.2 Frames
1.3 Columns
1.4 A column
1.5 Block-like environments
1.6 Overlay/action tag and environment options
1.7 Overlay/action in list environment
1.8 Embedded LaTeX
1.9 Example
2 org-beamer-mode
2.1 Fast tag selection for beamer environments
2.2 Special font-locking of beamer tags


1 Organization
~~~

1.1 Sections
=

By default, level one headlines become sections in the beamer
document.  You can configure the variable org-beamer-frame-level
to change this.  Setting it to three will make level 2 headlines
become subsections.  For the rest of this document, I will assume
that this variable has its default value 2.

1.2 Frames
===
Level 2 headline (or the level configured in
org-beamer-frame-level) become frames.  The headline text become
the frame title, but if no headline text is given, the frame gets
no title.  If the frame title contains the string \\, the line
will be split at that location, and the second half become the
frame /subtitle/.

1.3 Columns

Headlines one below frames (level 3 by default) can be used start
columns on a frame.  The presence of such a headline without a
beamer tag (see below) will create the columns environment.  The
text in the headline is ignored.  It is helpful to write
columns in this headline anyway.

1.4 A column
=
Headlines below a columns environment (level 4 by default) open a
column.  The text in the headline should be a number smaller than
one and will be used to define the column width.

1.5 Block-like environments

Any headline can become a block-like environment by tagging it
with a beamer tag.  For examples, `:B_block:' will trigger the
creation of a block environment, while `:B_theorem:' will trigger
the creation of a theorem environment.  When it makes sense, the
headline text is used in an appropriate argument of the
environment, if that does not make sense, it is ignored.

1.6 Overlay/action tag and environment options
===
Any headline can contain three types of cookies

`...': The overlay/action setting for the environment
`[...]': The default overlay/action specification for the
 content of the environment, which can be overwritten locally
 by each content element.
`[...]': Optional argument(s) for the environment

These can be given in arbitrary order freely in the headline.
Org-mode will fish them out and insert them in the appropriate
locations in the \begin statement of the environment.

Having these cookies plainly in the headline reduces the
usability of the document as a normal document.  I have been
thinking to move them into comments or properties, but I think
this is, in the end, less convenient.  I people want to export
these in other ways as well, we can write a function to clean
up

1.7 Overlay/action in list environment
===
For plain list environments (ordered, unordered, and description
lists) you can start each item optionally with an overlay
specification `...'.  If any item in the list contains a
default specification `[...]', this will be moved into the
begin statement of the itemize/enumerate/description environment,
to provide a default setting for the list items.

1.8 Embedded LaTeX
===
As is normal for Org-mode, you can embed LaTeX commands into the
text, and they will be transferred literally into the exported
document.  In particular, you can also embed beamer-specific
commands.

1.9 Example

Here is a (still very incomplete) example Org document that is
intended for beamer export.

  #+LaTeX_CLASS: beamer
  #+TITLE: Example Presentation
  #+AUTHOR: Carsten Dominik

  * This is the first structural section
  ** Frame 1 \\ with a subtitle
  *** columns will be used
   0.3
  * Thanks   :B_block:
Thanks to Eric Fraga for the first viable beamer setup in Org
  * Here we continue after the block :B_normal:
using a normal environment that helps to keep the structure
after a block
   0.7
  ** Frame 2 \\ where we will not use columns
  ***  
Request 
 :B_block:

  Please test this stuff!

2 

Re: [Orgmode] Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)]

2009-11-26 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Nov 26, 2009, at 11:55 AM, Bernt Hansen wrote:

 Carsten Dominik carsten.domi...@gmail.com writes:

 On Nov 25, 2009, at 7:54 PM, Bernt Hansen wrote:


 My auto exclude functions are inline below:

 (defun bh/org-auto-exclude-function (tag)
 (and (cond
((string= tag @home)
 (bh/working-p))
((string= tag @office)
 (not (bh/working-p)))
((string= tag MARK)
 (not (bh/mark-p)))
((or (string= tag @errand) (string= tag PHONE))
 (let ((hour (nth 2 (decode-time
   (or ( hour 8) ( hour 21)
  (concat - tag)))


 do you get it back to when when replacing MARK with mark and
 PHONE wiht phone?

 Yes.  When I make the tags lowercase in the function above it works
 again.

 The docstring of org-agenda-auto-exclude-function does mention this,
 but it is indeed a change from John's original code - so it was not in
 the docstring when you wrote this function..

Ah!  Oops.  I was bad and didn't read the contents of commit c6186f4
(Check all represented tags in agenda for auto-exclusion, 2009-11-20)
before submitting the bug report.  I'll try to remember to do that next
time.

This change should probably be described in the upcoming release notes
just so anyone else that already has the function defined won't get
caught by it but I'm sure you're already planning to do that :)
I can't find anything in the Changelog mentioning the case change.

Thanks for the clarification!

Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Friedrich Delgado Friedrichs
Hiho!

Sounds very reasonable!

Carsten Dominik schrieb:
 this is in response to the discussions about beamer
 export from Org-mode.  Yesterday I had a long train ride
 during which I scanned the beamer documentation (smoking
 hot stuff!).  Then I made the attached draft
 for Org-mode support, strongly based on the stuff
 Eric Fraga has put together recently.  What is described
 below sort-of works in some experimental code here, but before
 I polish I would like comments on this outline.
 
 NOW is the time to chime in.

-- 
Friedrich Delgado Friedrichs frie...@nomaden.org
 TauPan on Ircnet and Freenode ;)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)]

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 12:21 PM, Bernt Hansen wrote:


The docstring of org-agenda-auto-exclude-function does mention this,
but it is indeed a change from John's original code - so it was not  
in

the docstring when you wrote this function..


Ah!  Oops.  I was bad and didn't read the contents of commit c6186f4
(Check all represented tags in agenda for auto-exclusion, 2009-11-20)
before submitting the bug report.  I'll try to remember to do that  
next

time.

This change should probably be described in the upcoming release notes
just so anyone else that already has the function defined won't get
caught by it but I'm sure you're already planning to do that :)


Yes, it will be in the release notes, in the incompatible changes  
section.



I can't find anything in the Changelog mentioning the case change.


So it is me who is bad... :-)



Thanks for the clarification!

Bernt


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]

2009-11-26 Thread Scot Becker
I cite my references in org like this.\autocite[231]{bibtexkey_2009},
where '231' is the relevant page number.  When exporting to LaTeX, Org
thinks that the value in square brackets is a footnote number and
produces a document with a footnote definition not found: 231 error
message at the bottom of the document.  My settings are below, and
I've searched pretty hard through them to look for anything that might
have caused it.  Any ideas?


Many thanks.
Scot

(sample org file, output, and my full org configuration included below)

Sample file:

#+TITLE: Some Lorem
#+LaTeX_CLASS: mychapter

* Heading
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est
laborum.\autocite[51]{Einstein_1950}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.\autocite[123]{dominik_2010}  Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.\autocite[xxi]{spacebook_2001}
--

output (edited):
---
% Created 2009-11-26 Thu 11:22
\documentclass[12pt,oneside,a4paper]{book}

\title{Some Lorem}
\author{Scot Becker}
\date{26 November 2009}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{Heading}
\label{sec-1}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est
laborum.\autocite[1]{Einstein_1950}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.\autocite[2]{dominik_2010}  Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est
laborum.\autocite[xxi]{spacebook_2001}

$^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51

$^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123


\end{document}


---Settings---
Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on vernadsky, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.35.g3efe)

current state:
==
(setq
 org-export-html-final-hook '(org-inlinetask-remove-terminator)
 org-export-ascii-final-hook '(org-inlinetask-remove-terminator)
 org-hide-leading-stars t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-footnote-section nil
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '(sh emacs-lisp)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file ~/org/notes.org
 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 '((article

\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}
 (\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} .
\\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \\subparagraph*{%s}))
    (xetex-article

\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref\\usepackage{fontspec}\n%
BEGIN My Article Defaults\n\\input{~/org/thesis-header.tex}\n% END My
Article Defaults}
 (\\section{%s} . \\section*{%s})

Re: [Orgmode] Bug: / RET filter no longer auto-excludes FILETAGS [6.33trans (release_6.33f.34.gf806)]

2009-11-26 Thread Bernt Hansen
Carsten Dominik carsten.domi...@gmail.com writes:

 On Nov 26, 2009, at 12:21 PM, Bernt Hansen wrote:

 Yes, it will be in the release notes, in the incompatible changes
 section.

Great! :)

 I can't find anything in the Changelog mentioning the case change.

 So it is me who is bad... :-)

Well... no :)  I didn't read the Changelog until today either... :-P

I'll gladly take the blame -- sorry for the noise. :)

-Bernt


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Again on bookmarks

2009-11-26 Thread andrea
Samuel Wales samolog...@gmail.com writes:

 On 2009-11-25, andrea andrea.crott...@gmail.com wrote:

 That can be done with existing features, IIUC.

 I don't know if this is what you're considering, but I'd like to use
 org as the central place to store all bookmarks, for all browsers, and
 sync.  What needs to be done to make that happen, do you suppose?

I agree with you.
Exporting automatically all the files in the org-agenda to a very big
html file with all the links it's not a big deal.

The problems than for me are
- organization of bookmarks:
  If they are all together it's not so useful, I would like subdiretories

- integration with browsers and automatic importing:
  Without automatic importing/synchronization it's not so useful, we
  should find a common way to collect bookmarks and set the different
  browsers to fetch from it.

Any other thoughts?
If someone uses quicksilver by the way I think an org-mode plugin would
be wonderful, it would be a nice way to experiment with objective C... 



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Collaborate with heretics

2009-11-26 Thread andrea
andrea andrea.crott...@gmail.com writes:

Sorry for the double post, I thought I had an error and didn't listen to
gnus when it was saying it was a duplicate.

Anyway I did some researches and I only noticed that there are vim users
looking for something equivalent to org-mode for vim.

To simplify things at maximum I think just keeping orgstruct without
even tables would be already something.

Is there a complete grammar somewhere?

I could try to write something for textmate, the only editor I know
which is so easily configurable...



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]

2009-11-26 Thread Carsten Dominik

Hi Scott,

I have fixed this for export - but the string are still highlighted as  
footnotes

by font-lock, this is harder to solve.

- Carsten

On Nov 26, 2009, at 12:27 PM, Scot Becker wrote:


I cite my references in org like this.\autocite[231]{bibtexkey_2009},
where '231' is the relevant page number.  When exporting to LaTeX, Org
thinks that the value in square brackets is a footnote number and
produces a document with a footnote definition not found: 231 error
message at the bottom of the document.  My settings are below, and
I've searched pretty hard through them to look for anything that might
have caused it.  Any ideas?


Many thanks.
Scot

(sample org file, output, and my full org configuration included  
below)


Sample file:

#+TITLE: Some Lorem
#+LaTeX_CLASS: mychapter

* Heading
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est
laborum.\autocite[51]{Einstein_1950}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.\autocite[123]{dominik_2010}  Duis
aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.\autocite[xxi]{spacebook_2001}
--

output (edited):
---
% Created 2009-11-26 Thu 11:22
\documentclass[12pt,oneside,a4paper]{book}

\title{Some Lorem}
\author{Scot Becker}
\date{26 November 2009}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{Heading}
\label{sec-1}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est
laborum.\autocite[1]{Einstein_1950}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.\autocite[2]{dominik_2010}  Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
sunt in culpa qui officia deserunt mollit anim id est
laborum.\autocite[xxi]{spacebook_2001}

$^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51

$^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123


\end{document}


---Settings---
Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
 of 2009-11-10 on vernadsky, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.35.g3efe)

current state:
==
(setq
 org-export-html-final-hook '(org-inlinetask-remove-terminator)
 org-export-ascii-final-hook '(org-inlinetask-remove-terminator)
 org-hide-leading-stars t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-footnote-section nil
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-interpreters '(sh emacs-lisp)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-default-notes-file ~/org/notes.org
 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 '((article

\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\ 
\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\ 
\usepackage{longtable}\n\\usepackage{hyperref}

 (\\section{%s} . \\section*{%s})
(\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} .
\\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \ 
\subparagraph*{%s}))

(xetex-article

\\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\ 
\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\ 

[Orgmode] Re: Again on bookmarks

2009-11-26 Thread Thierry Volpiatto
andrea andrea.crott...@gmail.com writes:

 Samuel Wales samolog...@gmail.com writes:

 On 2009-11-25, andrea andrea.crott...@gmail.com wrote:

 That can be done with existing features, IIUC.

 I don't know if this is what you're considering, but I'd like to use
 org as the central place to store all bookmarks, for all browsers, and
 sync.  What needs to be done to make that happen, do you suppose?

 I agree with you.
 Exporting automatically all the files in the org-agenda to a very big
 html file with all the links it's not a big deal.

 The problems than for me are
 - organization of bookmarks:
   If they are all together it's not so useful, I would like subdiretories

 - integration with browsers and automatic importing:
   Without automatic importing/synchronization it's not so useful, we
   should find a common way to collect bookmarks and set the different
   browsers to fetch from it.

See BookmarkExtension:
http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

It support now nearly all:
emacs-w3m bookmarks, Firefox bookmarks, Delicious bookmarks, Gnus
bookmarks, Man pages etc...

You can jump to url bookmarks either to w3m or Firefox.

 Any other thoughts?
 If someone uses quicksilver by the way I think an org-mode plugin would
 be wonderful, it would be a nice way to experiment with objective C... 



 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 [...] before I polish I would like comments on this outline.

 1 Organization
 ~~~

 1.1 Sections
 =

 By default, level one headlines become sections in the beamer
 document.  You can configure the variable org-beamer-frame-level
 to change this.  Setting it to three will make level 2 headlines
 become subsections.  For the rest of this document, I will assume
 that this variable has its default value 2.

I was used to use Org level-1 headlines as the frame title... but I've never
resolved how to put sections in my beamer slides (via Org) -- though this was
not that important yet for me, as I only converted slides made by others in
PowerPoint, and they don't have such sections (and TOC visible in the left
bar).

Though, I find this way of structuring excellent: sound and logical. Plus it
is even customizable. What else would we want?  Nothing...


 1.2 Frames
 ===
 Level 2 headline (or the level configured in
 org-beamer-frame-level) become frames.  The headline text become
 the frame title, but if no headline text is given, the frame gets
 no title.  If the frame title contains the string \\, the line
 will be split at that location, and the second half become the
 frame /subtitle/.

Excellent. Really.


 1.3 Columns
 
 Headlines one below frames (level 3 by default) can be used start
 columns on a frame.  The presence of such a headline without a
 beamer tag (see below) will create the columns environment.  The
 text in the headline is ignored.  It is helpful to write
 columns in this headline anyway.

Would *I* be asked about my true opinion, I would really object against this
one... Except that you say can be used. So, I guess we're not forced.

My main problem here is that I like the idea of being to convert back or
forward between Org documents and Org-beamer documents. Such headlines would
not mean anything for a normal Org document, as you already pointed out.

Now, if this is not the default interpretation, it could be OK for everybody.
We should show this in the example below:
- normal level-3 headlines (level-1 for Beamer) and
- column level-3 headlines.


 1.4 A column
 =
 Headlines below a columns environment (level 4 by default) open a
 column.  The text in the headline should be a number smaller than
 one and will be used to define the column width.

 1.5 Block-like environments
 
 Any headline can become a block-like environment by tagging it
 with a beamer tag.  For examples, `:B_block:' will trigger the
 creation of a block environment, while `:B_theorem:' will trigger
 the creation of a theorem environment.  When it makes sense, the
 headline text is used in an appropriate argument of the
 environment, if that does not make sense, it is ignored.

 1.6 Overlay/action tag and environment options
 ===
 Any headline can contain three types of cookies

 `...': The overlay/action setting for the environment
 `[...]': The default overlay/action specification for the
  content of the environment, which can be overwritten locally
  by each content element.
 `[...]': Optional argument(s) for the environment

 These can be given in arbitrary order freely in the headline.
 Org-mode will fish them out and insert them in the appropriate
 locations in the \begin statement of the environment.

I never really used overlays yet (only to play with). Though, this seems nice
to me, even if...

 Having these cookies plainly in the headline reduces the
 usability of the document as a normal document.  I have been
 thinking to move them into comments or properties, but I think
 this is, in the end, less convenient.  I people want to export
 these in other ways as well, we can write a function to clean
 up

 1.7 Overlay/action in list environment
 ===
 For plain list environments (ordered, unordered, and description
 lists) you can start each item optionally with an overlay
 specification `...'.  If any item in the list contains a
 default specification `[...]', this will be moved into the
 begin statement of the itemize/enumerate/description environment,
 to provide a default setting for the list items.

 1.8 Embedded LaTeX
 ===
 As is normal for Org-mode, you can embed LaTeX commands into the
 text, and they will be transferred literally into the exported
 document.  In particular, you can also embed beamer-specific
 commands.

 1.9 Example
 
 Here is a (still very incomplete) example Org document that is
 intended for beamer export.

   #+LaTeX_CLASS: beamer
   #+TITLE: Example Presentation
   #+AUTHOR: Carsten Dominik

   * This is the first structural section
   ** Frame 1 \\ with a subtitle
   *** columns will be used
    0.3
   * Thanks   :B_block:
 Thanks to Eric Fraga for the first viable beamer setup in Org
   * Here we continue after the block 

Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Carsten Dominik

Hi Sebastian,


On Nov 26, 2009, at 3:01 PM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

[...] before I polish I would like comments on this outline.

1 Organization
~~~

1.1 Sections
=

By default, level one headlines become sections in the beamer
document.  You can configure the variable org-beamer-frame-level
to change this.  Setting it to three will make level 2 headlines
become subsections.  For the rest of this document, I will assume
that this variable has its default value 2.


I was used to use Org level-1 headlines as the frame title... but  
I've never
resolved how to put sections in my beamer slides (via Org) -- though  
this was
not that important yet for me, as I only converted slides made by  
others in
PowerPoint, and they don't have such sections (and TOC visible in  
the left

bar).

Though, I find this way of structuring excellent: sound and logical.  
Plus it

is even customizable. What else would we want?  Nothing...



1.2 Frames
===
Level 2 headline (or the level configured in
org-beamer-frame-level) become frames.  The headline text become
the frame title, but if no headline text is given, the frame gets
no title.  If the frame title contains the string \\, the line
will be split at that location, and the second half become the
frame /subtitle/.


Excellent. Really.



1.3 Columns

Headlines one below frames (level 3 by default) can be used start
columns on a frame.  The presence of such a headline without a
beamer tag (see below) will create the columns environment.  The
text in the headline is ignored.  It is helpful to write
columns in this headline anyway.


Would *I* be asked about my true opinion, I would really object  
against this
one... Except that you say can be used. So, I guess we're not  
forced.


Of course *you* are asked.

I am wondering:  What function do the headlines in your document
under the frame level have?  How do you export them?  I guess
you can't have them spit out subsection or so.  What you your
class configuration?




My main problem here is that I like the idea of being to convert  
back or
forward between Org documents and Org-beamer documents. Such  
headlines would
not mean anything for a normal Org document, as you already  
pointed out.


Now, if this is not the default interpretation, it could be OK for  
everybody.

We should show this in the example below:
- normal level-3 headlines (level-1 for Beamer) and
- column level-3 headlines.


Yes, this would be useful.  Indeed, we should work on an extensive  
example once we have settled for a structure/format.  Which is not yet  
the case.


- Carsten





1.4 A column
=
Headlines below a columns environment (level 4 by default) open a
column.  The text in the headline should be a number smaller than
one and will be used to define the column width.

1.5 Block-like environments

Any headline can become a block-like environment by tagging it
with a beamer tag.  For examples, `:B_block:' will trigger the
creation of a block environment, while `:B_theorem:' will trigger
the creation of a theorem environment.  When it makes sense, the
headline text is used in an appropriate argument of the
environment, if that does not make sense, it is ignored.

1.6 Overlay/action tag and environment options
===
Any headline can contain three types of cookies

`...': The overlay/action setting for the environment
`[...]': The default overlay/action specification for the
content of the environment, which can be overwritten locally
by each content element.
`[...]': Optional argument(s) for the environment

These can be given in arbitrary order freely in the headline.
Org-mode will fish them out and insert them in the appropriate
locations in the \begin statement of the environment.


I never really used overlays yet (only to play with). Though, this  
seems nice

to me, even if...


Having these cookies plainly in the headline reduces the
usability of the document as a normal document.  I have been
thinking to move them into comments or properties, but I think
this is, in the end, less convenient.  I people want to export
these in other ways as well, we can write a function to clean
up

1.7 Overlay/action in list environment
===
For plain list environments (ordered, unordered, and description
lists) you can start each item optionally with an overlay
specification `...'.  If any item in the list contains a
default specification `[...]', this will be moved into the
begin statement of the itemize/enumerate/description environment,
to provide a default setting for the list items.

1.8 Embedded LaTeX
===
As is normal for Org-mode, you can embed LaTeX commands into the
text, and they will be transferred literally into the exported
document.  In particular, you can also embed beamer-specific
commands.

1.9 Example

Re: [Orgmode] Bug: Org finds footnotes in LaTeX export where none are intended [6.33trans (release_6.33f.35.g3efe)]

2009-11-26 Thread Scot Becker
Wonderful.  I, for one don't mind the font lock problem.  You have to
leave some problems for your successor, (long may he wait).

Gratefully,
Scot


On Thu, Nov 26, 2009 at 12:51 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi Scott,

 I have fixed this for export - but the string are still highlighted as
 footnotes
 by font-lock, this is harder to solve.

 - Carsten

 On Nov 26, 2009, at 12:27 PM, Scot Becker wrote:

 I cite my references in org like this.\autocite[231]{bibtexkey_2009},
 where '231' is the relevant page number.  When exporting to LaTeX, Org
 thinks that the value in square brackets is a footnote number and
 produces a document with a footnote definition not found: 231 error
 message at the bottom of the document.  My settings are below, and
 I've searched pretty hard through them to look for anything that might
 have caused it.  Any ideas?


 Many thanks.
 Scot

 (sample org file, output, and my full org configuration included below)

 Sample file:
 
 #+TITLE: Some Lorem
 #+LaTeX_CLASS: mychapter

 * Heading
 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
 aliquip ex ea commodo consequat. Duis aute irure dolor in
 reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
 culpa qui officia deserunt mollit anim id est
 laborum.\autocite[51]{Einstein_1950}

 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
 aliquip ex ea commodo consequat.\autocite[123]{dominik_2010}  Duis
 aute irure dolor in reprehenderit in voluptate velit esse cillum
 dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
 proident, sunt in culpa qui officia deserunt mollit anim id est
 laborum.\autocite[xxi]{spacebook_2001}
 --

 output (edited):
 ---
 % Created 2009-11-26 Thu 11:22
 \documentclass[12pt,oneside,a4paper]{book}

 \title{Some Lorem}
 \author{Scot Becker}
 \date{26 November 2009}

 \begin{document}

 \maketitle

 \setcounter{tocdepth}{3}
 \tableofcontents
 \vspace*{1cm}

 \section{Heading}
 \label{sec-1}

 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
 aliquip ex ea commodo consequat. Duis aute irure dolor in
 reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
 pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
 culpa qui officia deserunt mollit anim id est
 laborum.\autocite[1]{Einstein_1950}

 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
 eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad
 minim veniam, quis nostrud exercitation ullamco laboris nisi ut
 aliquip ex ea commodo consequat.\autocite[2]{dominik_2010}  Duis aute
 irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
 fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident,
 sunt in culpa qui officia deserunt mollit anim id est
 laborum.\autocite[xxi]{spacebook_2001}

 $^{1}$ FOOTNOTE DEFINITION NOT FOUND: 51

 $^{2}$ FOOTNOTE DEFINITION NOT FOUND: 123


 \end{document}


 ---Settings---
 Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3)
  of 2009-11-10 on vernadsky, modified by Debian
 Package: Org-mode version 6.33trans (release_6.33f.35.g3efe)

 current state:
 ==
 (setq
  org-export-html-final-hook '(org-inlinetask-remove-terminator)
  org-export-ascii-final-hook '(org-inlinetask-remove-terminator)
  org-hide-leading-stars t
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-footnote-section nil
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-babel-interpreters '(sh emacs-lisp)
  org-export-preprocess-hook '(org-export-blocks-preprocess)
  org-tab-first-hook '(org-hide-block-toggle-maybe)
  org-src-mode-hook '(org-src-mode-configure-edit-buffer)
  org-confirm-shell-link-function 'yes-or-no-p
  org-agenda-before-write-hook '(org-agenda-add-entry-text)
  org-default-notes-file ~/org/notes.org
  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 '((article


 \\documentclass[11pt]{article}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}
                             (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
                             

Re: [Orgmode] Re: Collaborate with heretics

2009-11-26 Thread Scot Becker
Yours is an interesting question, and it's one I've thought about as
well.  I have a friend just starting a PhD, and she was asking me how
I keep my work.  Org+emacs is great for me.I sometimes also think
anyone who needs a robust tool and can muster the patience to learn it
should try org/Emacs.

But then I shake my head.  I'm still just a beginner after a year,
unable to muster more than the simplest elisp, forever forgetting
bindings and printing out new lists to past to my office walls.  Emacs
has come along with the times in some very nice ways, but, friends,
it's /hard/.  My friend is not a big fan of computers (wants to 'do
work', imagine!)  So I had a hard time recommending it to her.

I don't mean to push Andrea's question off topic. We could debate that
statement.  I debate it myself all the time.  (Is Emacs hard or is it
easy?)  But it's at least arguably hard.  Or rather, it's hard to
stick only to the easy stuff.

As  to Andrea's question.  It's true that most editors aren't capable
of producing a full implementation of something like org-mode (is
any?), but perhaps one or two implementations of org-lite would be a
useful thing, for collaboration, and for beginners.   It could perhaps
even use the org-mobile framework.

And about the full 'spec'.  I think the best we've got is the manual.
which is not bad, though it's not a full spec in the same way as the
Restructured Text manual.

Scot



On Thu, Nov 26, 2009 at 12:48 PM, andrea andrea.crott...@gmail.com wrote:
 andrea andrea.crott...@gmail.com writes:

 Sorry for the double post, I thought I had an error and didn't listen to
 gnus when it was saying it was a duplicate.

 Anyway I did some researches and I only noticed that there are vim users
 looking for something equivalent to org-mode for vim.

 To simplify things at maximum I think just keeping orgstruct without
 even tables would be already something.

 Is there a complete grammar somewhere?

 I could try to write something for textmate, the only editor I know
 which is so easily configurable...



 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Nick Dokos
Carsten Dominik carsten.domi...@gmail.com wrote:

 this is in response to the discussions about beamer
 export from Org-mode.  Yesterday I had a long train ride
 during which I scanned the beamer documentation (smoking
 hot stuff!).

Indeed - Till Tantau has a gift for documentation (among other
gifts). I'd recommend the documentation for pgf/tikz as well. Amazing.

 Then I made the attached draft
 for Org-mode support, strongly based on the stuff
 Eric Fraga has put together recently.  What is described
 below sort-of works in some experimental code here, but before
 I polish I would like comments on this outline.
 
 NOW is the time to chime in.
 

Two questions (with apologies in advance: I've been buried for a while
now, so I may have missed important details):

o How do I test? Is there a beamer template for org-export-latex-classes
  that implements this spec? I just did a git pull but did not see one.

o I didn't see anything about notes (in the beamer sense: speaker notes
  that don't appear in the slides, but do appear in the handout). For
  me, that is one of the most important aspects of beamer: the slides
  are there to remind me what to say (and hopefully to elicit the same
  memory in the audience, after the talk is finished). They provide the
  structure, but they are just a bunch of bones, a skeleton.  The notes
  are the meat of the presentation, so imho it would behoove Org to
  provide a mechanism for notes from the get-go.

Thanks,
Nick





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 5:30 PM, Nick Dokos wrote:


Carsten Dominik carsten.domi...@gmail.com wrote:


this is in response to the discussions about beamer
export from Org-mode.  Yesterday I had a long train ride
during which I scanned the beamer documentation (smoking
hot stuff!).


Indeed - Till Tantau has a gift for documentation (among other
gifts). I'd recommend the documentation for pgf/tikz as well. Amazing.


Don't tell me he wrote pgf/tikz as well???

Unbelievable.




Then I made the attached draft
for Org-mode support, strongly based on the stuff
Eric Fraga has put together recently.  What is described
below sort-of works in some experimental code here, but before
I polish I would like comments on this outline.

NOW is the time to chime in.



Two questions (with apologies in advance: I've been buried for a while
now, so I may have missed important details):

o How do I test? Is there a beamer template for org-export-latex- 
classes

 that implements this spec? I just did a git pull but did not see one.


This is still crappy code on a local branch here, I want to figure out  
what

I/we actually want before publishing it.



o I didn't see anything about notes (in the beamer sense: speaker  
notes

 that don't appear in the slides, but do appear in the handout). For
 me, that is one of the most important aspects of beamer: the slides
 are there to remind me what to say (and hopefully to elicit the same
 memory in the audience, after the talk is finished). They provide the
 structure, but they are just a bunch of bones, a skeleton.  The notes
 are the meat of the presentation, so imho it would behoove Org to
 provide a mechanism for notes from the get-go.


Yes, I did not look at notes yet.  Good point.

Any succestions?  Subtrees with a B_note tag?

First need to try how notes actually work

- Carsten



Thanks,
Nick





- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Dan Davison
Carsten Dominik carsten.domi...@gmail.com writes:

 Hi,

 this is in response to the discussions about beamer
 export from Org-mode.  Yesterday I had a long train ride
 during which I scanned the beamer documentation (smoking
 hot stuff!).  Then I made the attached draft
 for Org-mode support, strongly based on the stuff
 Eric Fraga has put together recently.  What is described
 below sort-of works in some experimental code here, but before
 I polish I would like comments on this outline.

 NOW is the time to chime in.

This is all looking like *extremely* good news to me.

I'm trying to test out Carsten's example, but I have a question that
probably just reveals that I haven't understood the discussion: what
exactly are we supposed to use for the beamer entry in
org-export-latex-classes?  Are we using the version in Eric Fraga's
original post unmodified? (But that doesn't seem to have the initial
header-string entry?) [Would someone like to make the start of a Worg
page where we can keep the documentation and configuration code etc as
it evolves? I can do it, but only very ignorantly.]

Thanks,

Dan


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 5:49 PM, Dan Davison wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


Hi,

this is in response to the discussions about beamer
export from Org-mode.  Yesterday I had a long train ride
during which I scanned the beamer documentation (smoking
hot stuff!).  Then I made the attached draft
for Org-mode support, strongly based on the stuff
Eric Fraga has put together recently.  What is described
below sort-of works in some experimental code here, but before
I polish I would like comments on this outline.

NOW is the time to chime in.


This is all looking like *extremely* good news to me.

I'm trying to test out Carsten's example, but I have a question that
probably just reveals that I haven't understood the discussion: what
exactly are we supposed to use for the beamer entry in
org-export-latex-classes?  Are we using the version in Eric Fraga's
original post unmodified? (But that doesn't seem to have the initial
header-string entry?) [Would someone like to make the start of a Worg
page where we can keep the documentation and configuration code etc as
it evolves? I can do it, but only very ignorantly.]



Nothing of this is yet working with the current org.-mode.  I am  
building special support for this, basically the ability to provide a  
function that does the class support, instead of the list you normally  
have to provide in the org-export-latex-classes variable.  And then  
org-beamer.el which implements this function and the minor mode.


- Carsten



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Thomas S. Dye

Hi Carsten,

On Nov 26, 2009, at 1:17 AM, Carsten Dominik wrote:


Hi,

this is in response to the discussions about beamer
export from Org-mode.  Yesterday I had a long train ride
during which I scanned the beamer documentation (smoking
hot stuff!).  Then I made the attached draft
for Org-mode support, strongly based on the stuff
Eric Fraga has put together recently.  What is described
below sort-of works in some experimental code here, but before
I polish I would like comments on this outline.

NOW is the time to chime in.

Thanks!

- Carsten



This is a very useful idea.  Beamer is definitely smoking hot stuff!

Org-mode with Beamer works tolerably well now.  Eric Fraga's setup in  
a post a few days ago manages to leverage the core of Beamer  
functionality in plain-vanilla Org-mode.  It would be nice to get all  
of Beamer with Org-mode, but I'm worried that this proposal would  
create a separate species of Org-mode file, which would have a single  
use.  Perhaps my worry is misplaced, but I think it would be more  
useful to embed a Beamer presentation within an Org-mode file.



 beamerdoc
 =

Author: Carsten Dominik carsten.domi...@gmail.com
Date: 2009-11-26 12:08:45 CET



Table of Contents
=
1 Organization
   1.1 Sections
   1.2 Frames
   1.3 Columns
   1.4 A column
   1.5 Block-like environments
   1.6 Overlay/action tag and environment options
   1.7 Overlay/action in list environment
   1.8 Embedded LaTeX
   1.9 Example
2 org-beamer-mode
   2.1 Fast tag selection for beamer environments
   2.2 Special font-locking of beamer tags


1 Organization
~~~

1.1 Sections
=

By default, level one headlines become sections in the beamer
document.  You can configure the variable org-beamer-frame-level
to change this.  Setting it to three will make level 2 headlines
become subsections.  For the rest of this document, I will assume
that this variable has its default value 2.



In Beamer, the use (or not) of sections and subsections is determined  
by the theme, which is also responsible for how the title is  
displayed.  So, some mechanism to set the theme will need to be part  
of the package.  After this, in my experience, is the colortheme.  The  
rather somber colors preferred by the Beamer author don't play too  
well here in Hawai`i, and I typically set the colortheme as well.



1.2 Frames
===
Level 2 headline (or the level configured in
org-beamer-frame-level) become frames.  The headline text become
the frame title, but if no headline text is given, the frame gets
no title.  If the frame title contains the string \\, the line
will be split at that location, and the second half become the
frame /subtitle/.

1.3 Columns

Headlines one below frames (level 3 by default) can be used start
columns on a frame.  The presence of such a headline without a
beamer tag (see below) will create the columns environment.  The
text in the headline is ignored.  It is helpful to write
columns in this headline anyway.

1.4 A column
=
Headlines below a columns environment (level 4 by default) open a
column.  The text in the headline should be a number smaller than
one and will be used to define the column width.



This idea of a fixed starting point for mapping Org-mode headlines to  
Beamer elements looks very good, if you want to devote an entire Org- 
mode document to a Beamer slide show.  Sebastien Vauban's concerns in  
another message in this thread about all the special requirements for  
headlines in Beamer mode and their effect on the normal Org-mode use  
of the file (I'm paraphrasing) are important.


Would it be possible to tag a headline in some way to indicate Beamer  
mode starts here and then have a beamer-export function only export  
appropriately tagged sub-trees?  This would mean that the mapping  
scheme would start at the marked sub-tree level: sections at level n,  
frames at level n+1 (depending on the value of org-beamer-frame- 
level), etc.


With this kind of structure it would be possible to embed more than  
one beamer slide show in an Org-mode file, so there would need to be  
some mechanism to generate separate file names.



1.5 Block-like environments

Any headline can become a block-like environment by tagging it
with a beamer tag.  For examples, `:B_block:' will trigger the
creation of a block environment, while `:B_theorem:' will trigger
the creation of a theorem environment.  When it makes sense, the
headline text is used in an appropriate argument of the
environment, if that does not make sense, it is ignored.

1.6 Overlay/action tag and environment options
===
Any headline can contain three types of cookies

`...': The overlay/action setting for the environment
`[...]': The default overlay/action specification for the
content of the environment, which can be 

[Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Christoph Groth
Nice idea to create LaTeX-presentations using orgmode.  Though, whenever
using beamer, I always find myself having to tweak some spaces on a
fairly low level.  I'm curious whether it will work out to create
non-trivial presentations by using orgmode only.

Carsten Dominik carsten.domi...@gmail.com writes:

 If the frame title contains the string \\, the line will be split at
 that location, and the second half become the frame /subtitle/.

Sometimes one might have a frame title which is too wide for one line.
Then one might want to split the title at a specific place -- and that
is done by inserting a \\ there.  Therefore, I suggest to use some other
magic string.  What about an unquoted ampersand ()?  This character is
already used in LaTeX to split things and its unquoted use in a
frame title is actually an error.

Christoph



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On Nov 26, 2009, at 3:01 PM, Sébastien Vauban wrote:
 Carsten Dominik wrote:
 [...] before I polish I would like comments on this outline.

 1 Organization
 ~~~

 1.1 Sections
 =

 By default, level one headlines become sections in the beamer
 document.  You can configure the variable org-beamer-frame-level
 to change this.  Setting it to three will make level 2 headlines
 become subsections.  For the rest of this document, I will assume
 that this variable has its default value 2.

 I was used to use Org level-1 headlines as the frame title... but I've never
 resolved how to put sections in my beamer slides (via Org) -- though this
 was
 not that important yet for me, as I only converted slides made by others in
 PowerPoint, and they don't have such sections (and TOC visible in the left
 bar).

 Though, I find this way of structuring excellent: sound and logical. Plus it
 is even customizable. What else would we want?  Nothing...


 1.3 Columns
 
 Headlines one below frames (level 3 by default) can be used start
 columns on a frame.  The presence of such a headline without a
 beamer tag (see below) will create the columns environment.  The
 text in the headline is ignored.  It is helpful to write
 columns in this headline anyway.

 Would *I* be asked about my true opinion, I would really object against this
 one... Except that you say can be used. So, I guess we're not forced.

 Of course *you* are asked.

 I am wondering:  What function do the headlines in your document
 under the frame level have?  How do you export them?  I guess
 you can't have them spit out subsection or so.  What you your
 class configuration?

That's what I tried to say above:

 I was used to use Org level-1 headlines as the frame title... but I've
 never resolved how to put sections in my beamer slides (via Org).

I currently couldn't have sections in my beamer presentation.

- The level-1 headlines are the frame titles.
- The level-2 headlines are the level-1 items of the slides.

My current configuration:

--8---cut here---start-8---
  (add-to-list 'org-export-latex-classes
   '(beamer
 \\documentclass[t]{beamer}
\\mode{{{beamermode}}}
{
\\usethemebeamertheme
}
\\usepackage[english]{babel}
\\usepackage[utf8x]{inputenc}
\\usepackage{times}
\\usepackage[T1]{fontenc}
\\usepackage{pgf}
\\institutebeamerinstitute
\\subjectbeamersubject
 (\\begin{frame}\\frametitle{%s}\\begin{itemize}
  \\end{itemize}\\end{frame}
  \\begin{frame}\\frametitle{%s}\\begin{itemize} 
\\end{itemize}\\end{frame})
 (\\item{%s} . \\item*{%s})))
--8---cut here---end---8---


 My main problem here is that I like the idea of being to convert back or
 forward between Org documents and Org-beamer documents. Such headlines would
 not mean anything for a normal Org document, as you already pointed out.

 Now, if this is not the default interpretation, it could be OK for
 everybody.
 We should show this in the example below:
 - normal level-3 headlines (level-1 for Beamer) and
 - column level-3 headlines.

 Yes, this would be useful.  Indeed, we should work on an extensive example
 once we have settled for a structure/format.  Which is not yet  the case.

I'll try to help on that, as much as I can.

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: latex export and beamer columns

2009-11-26 Thread Eric S Fraga
At Thu, 26 Nov 2009 02:52:04 +0100,
Łukasz Stelmach wrote:
 
 I've just tried something simplier and IMHO more flexible (widths).
 
 --8---cut here---start-8---
 * The Title
 ** The Section
 *** The Frame
 #+latex: \begin{columns}[t]
 #+latex: \column{.5\textwidth}
- My point
- Your point
 #+latex: \column{.5\textwidth}
 Conclusion
 #+latex: \end{columns}
 --8---cut here---end---8---
 
 Unfortunately the the plain list is not recognized and converted to
 itemize. When I remove the #+latex: \begin|end stuff then the list
 looks as it should.


(note that my response has probably been superseded by Carsten's
recent message regarding beamer support in org mode but this still
might be of some interest)


I am not sure what to say!  IMO, it's not simpler although I guess it
could be more flexible.  However, you say it doesn't work?

One alternative based on your approach is to define begin and end
commands for the columns environment that avoid using \begin and
\end which org interprets.  Maybe something like this:

--8---cut here---start-8---
#+LaTeX_CLASS: beamer 

#+latex: \newcommand{\BC}{\begin{columns}[t]}
#+latex: \newcommand{\EC}{\end{columns}}

* The main section
*** An interesting slide
\BC
#+latex: \column{0.4\textwidth}
- an item with enough text to show the width of the column
- another item
#+latex: \column{0.6\textwidth}
- an item with enough text to show the width of the column
- and yet another
\EC
--8---cut here---end---8---

which appears to work just fine.  Whether it's simpler or not depends
on what you want.  I like using org headlines to be able to hide
individual columns and to be able to move them around easily.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Eric S Fraga
At Thu, 26 Nov 2009 12:17:21 +0100,
Carsten Dominik wrote:
 
 Hi,
 
 this is in response to the discussions about beamer
 export from Org-mode.  Yesterday I had a long train ride
 during which I scanned the beamer documentation (smoking
 hot stuff!).  Then I made the attached draft
 for Org-mode support, strongly based on the stuff
 Eric Fraga has put together recently.  What is described
 below sort-of works in some experimental code here, but before
 I polish I would like comments on this outline.

Wow!  This is great Carsten.  

As you know, I have spent the past week preparing a set of lectures
for one of my courses completely in org mode using beamer.  I finished
them today (100 or so slides) and the way I set it up is working quite
well for me.  Mind you, you've added a few features that will
definitely come in useful and I am going to retrofit back into this
set of slides when your update is available.

I do like the whole setup you've defined but I have a couple of comments:

 1.3 Columns
 
 Headlines one below frames (level 3 by default) can be used start
 columns on a frame.  The presence of such a headline without a
 beamer tag (see below) will create the columns environment.  The
 text in the headline is ignored.  It is helpful to write
 columns in this headline anyway.

I've modified *my* interpretation of level 3 headings to take the text
given on this heading as the option to the columns environment so
that, for instance,

,
| * section
| ** a slide
| *** [t]
|  0.4
|  - one column
|  0.6
|  - another slightly wider column
`

will generate

  ...
  \begin{columns}[t]  % note the [t]
  ...

as I found this necessary sometimes.  Although this looks a little
ugly, I am not sure if there is a better way of passing these types of
options to the columns environment?

 1.4 A column
 =
 Headlines below a columns environment (level 4 by default) open a
 column.  The text in the headline should be a number smaller than
 one and will be used to define the column width.

You may wish to make it clear that this will be relative to \textwidth
as currently defined at that point.

 1.5 Block-like environments
 
 Any headline can become a block-like environment by tagging it
 with a beamer tag.  For examples, `:B_block:' will trigger the
 creation of a block environment, while `:B_theorem:' will trigger
 the creation of a theorem environment.  When it makes sense, the
 headline text is used in an appropriate argument of the
 environment, if that does not make sense, it is ignored.

This is really nice!  As you know, I was using level 5 for blocks
which meant that they had to be in columns (although obviously I could
have one column of full width).  This is much less clumsy than my
approach. 

One last thing: would you like to mention support for \alert{} or does
this belong elsewhere?

Thanks again,
eric


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Darlan Cavalcante Moreira


I usually make my presentations in beamer as below.
,
| \begin{frame}
|   \frametitle{This is the frametitle}
|   \begin{itemize}
| \item Some information
| \begin{itemize}
|   \item Some information in a subitem
| \end{itemize}
| \item more information
| \item more information \note[item]{This is a note about this item}
|   \end{itemize}
| \end{frame}
`

Therefore, I think a simple solution is just writing the \note command directly
in org that would then be passed to beamer. In org-mode the same slide would be

,
| * This is the frametitle
|  - Some information
|- Some information in a subitem
|  - more information
|  - more information \note[item]{This is a note about this item}
`

This avoids cluttering the org file and since the item (including the note) will
probably span more then one line, then just leaving notes like this will allow
hiding everything with the outline capabilities of org-mode. If a subtree is
used this would probably not be possible.

The item option in the note command is used in beamer to number the notes (I
myself always want this).

Of course that if everyone else like to put the notes at the end of the frame
then a subtree with all the notes makes sense. Beamer does not impose where the
notes should be inside the frame and I can reeducate myself to put them inside a
subtree, but I'd like to leave the notes near the items they are related to, if
possible.

- Darlan Cavalcante

At Thu, 26 Nov 2009 17:47:22 +0100,
Carsten Dominik carsten.domi...@gmail.com wrote:
 
 
 On Nov 26, 2009, at 5:30 PM, Nick Dokos wrote:
 
  Carsten Dominik carsten.domi...@gmail.com wrote:
 
  this is in response to the discussions about beamer
  export from Org-mode.  Yesterday I had a long train ride
  during which I scanned the beamer documentation (smoking
  hot stuff!).
 
  Indeed - Till Tantau has a gift for documentation (among other
  gifts). I'd recommend the documentation for pgf/tikz as well. Amazing.
 
 Don't tell me he wrote pgf/tikz as well???
 
 Unbelievable.
 
 
  Then I made the attached draft
  for Org-mode support, strongly based on the stuff
  Eric Fraga has put together recently.  What is described
  below sort-of works in some experimental code here, but before
  I polish I would like comments on this outline.
 
  NOW is the time to chime in.
 
 
  Two questions (with apologies in advance: I've been buried for a while
  now, so I may have missed important details):
 
  o How do I test? Is there a beamer template for org-export-latex- 
  classes
   that implements this spec? I just did a git pull but did not see one.
 
 This is still crappy code on a local branch here, I want to figure out  
 what
 I/we actually want before publishing it.
 
 
  o I didn't see anything about notes (in the beamer sense: speaker  
  notes
   that don't appear in the slides, but do appear in the handout). For
   me, that is one of the most important aspects of beamer: the slides
   are there to remind me what to say (and hopefully to elicit the same
   memory in the audience, after the talk is finished). They provide the
   structure, but they are just a bunch of bones, a skeleton.  The notes
   are the meat of the presentation, so imho it would behoove Org to
   provide a mechanism for notes from the get-go.
 
 Yes, I did not look at notes yet.  Good point.
 
 Any succestions?  Subtrees with a B_note tag?
 
 First need to try how notes actually work
 
 - Carsten
 
 
  Thanks,
  Nick
 
 
 
 
 - Carsten
 
 
 
 
 
 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Dan Davison
...
 On Nov 26, 2009, at 1:17 AM, Carsten Dominik wrote:

...
 NOW is the time to chime in.

I don't know if this is helpful from someone who hasn't thought through
the details of beamer support but just in case: is there any chance that
we should be thinking at this stage of a generic org-presentation API
which would initially support just beamer but which would leave open the
possibility for others to implement other slide presentation engines?
For example I remember that someone once brought up the possibility on
this list of exporting org to OpenOffice presentation format. And it's
possible to create something like a slide-show in HTML/CSS -- although I
never see anyone doing it. There are at least some things in common
between different slide-show engines, such as where to break from slide
to slide, slide titles, non-slide notes, etc.

Also, I do agree with others that to the extent possible we want
presentations to emerge naturally out of 'normal' org-files with the
help of established org mechanisms such as selective subtree
export. E.g. using the heading title to set the column width feels
wrong; the natural reaction is to think that that sort of metadata
should be in a property.

Dan


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] emacs + orgmode on Ubuntu on Android G1

2009-11-26 Thread Adam Spiers
On Wed, Nov 04, 2009 at 04:01:11PM +0900, Torsten Wagner wrote:
 Hi
 
 Looks like fantastic work, congratulations!  Thank heavens I finally
  got Ubuntu/emacs/orgmode/git running natively on my Android phone,
  otherwise I'd be green with envy ;-)
 
 
 That means you run a full emacs23 together with org-mode on your phone :o
 
  oh thanks now I'm be green with envy :P 
 
 Any docs, how-tos, screencasts, screenshots, notes, tips and tricks ?

On Mon, Nov 09, 2009 at 11:49:05AM +0530, Noorul Islam wrote:
 Can you share your experience with us?

Sorry for the slow reply.  I don't have time to go into exact details
but I updated this page:

  http://www.emacswiki.org/emacs/EmacsOnAndroid

so it should have everything you need.

It's all pretty easy really.  The hardest bit is rooting the phone and
setting up an ext2 (or ext3, I can't remember) partition on the SD
card, and even that's well documented by now.

Once you have the Ubuntu chroot image downloaded and unpacked onto
that partition, starting up Ubuntu is trivial, and then installing
emacs and org-mode is as easy as doing it on a normal Linux box :-)

I still need to try and trim down the emacs install, as it takes a
lng time to load, and the phone is already pretty short of memory
in general.  Scot already posted some ideas to this list on how to do
it; I added a link to his article from the wiki page.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Again on bookmarks

2009-11-26 Thread andrea
Thierry Volpiatto thierry.volpia...@gmail.com writes:

 andrea andrea.crott...@gmail.com writes:

 See BookmarkExtension:
 http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

 It support now nearly all:
 emacs-w3m bookmarks, Firefox bookmarks, Delicious bookmarks, Gnus
 bookmarks, Man pages etc...

 You can jump to url bookmarks either to w3m or Firefox.


I installed it but it has no kind of documentation and I don't see any
way to export/use from an external browser...

It looks like just a replacement for bookmark in emacs, is there any doc
somewhere?



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Again on bookmarks

2009-11-26 Thread Samuel Wales
Hi Thierry,

On 2009-11-26, Thierry Volpiatto thierry.volpia...@gmail.com wrote:
 See BookmarkExtension:
 http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

 It support now nearly all:
 emacs-w3m bookmarks, Firefox bookmarks, Delicious bookmarks, Gnus
 bookmarks, Man pages etc...

The reason I like the idea of using org as the central store is that
it holds a lot of information, including annotations (headline body
text), subheadings, tags, properties, etc.  Possibly even
last-modified date of the web page and last-synced.  It can also be
subsetted using the agenda.

The idea would be that when you, say, save all Firefox tabs that are
currently open to a Firefox bookmark folder, you can export that whole
folder to org.  Then, you can add annotations, move the headlines
anywhere in the agenda files hierarchy, export from org to w3m or
Firefox or Safari (using the agenda to subset), and reimport back to
org without losing the annotations (new browser tabs (web pages) that
org does not know about yet end up in a special place in the org
hierarchy while existing ones sync with existing headlines).

Can the emacs bookmark mechanism serialize all that org data?  If not,
perhaps org would be a good place to store everything.

Maybe we have different ideas, which deserve different implementations?


Samuel

-- 
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied ME/CFS for 25 years]
=
Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Collaborate with heretics

2009-11-26 Thread andrea

I try to be a prophet of emacs and org-mode but sometimes it's just a
loss of time.
Even very skilled informatics weren't convinced, sometimes they didn't
like it sometimes they just didn't want to spend time on it.

Once it happened that a friend of mine that was working with excel
tables saw how the text was flowing nicely on my org-mode buffer.
He was amazed and wanted to know everything and use it.

I was very happy about and I installed all the necessary, but then it
didn't work out.
It's just too alien for people used to work with office (bleah).

Emacs is not easy, org-mode also adds a lot of complexity (even if it's
really elegant and clear), and if both are not used daily it could
become more a pain than a pleasure.

But I'm convinced there's nothing more powerful on earth than org-mode
for working with plain text files.

So my question is a bit egoistic in fact, I want it whenever possible
also forcing other people to do it.

The other way for serious work is anyway latex, which is not at all
easier to manage.

Regarding the org-lite, I think it's quite difficult to create it, the
text manipulation which is done is really dynamic, a normal grammar
would not be enough.

But I guess in org-mobile there's code that could be very useful for
an org-lite, is there a plan to port that program to osx/windows/linux?



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Again on bookmarks

2009-11-26 Thread Thierry Volpiatto
andrea andrea.crott...@gmail.com writes:

 Thierry Volpiatto thierry.volpia...@gmail.com writes:

 andrea andrea.crott...@gmail.com writes:

 See BookmarkExtension:
 http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

 It support now nearly all:
 emacs-w3m bookmarks, Firefox bookmarks, Delicious bookmarks, Gnus
 bookmarks, Man pages etc...

 You can jump to url bookmarks either to w3m or Firefox.


 I installed it but it has no kind of documentation and I don't see any
 way to export/use from an external browser...

 It looks like just a replacement for bookmark in emacs, is there any doc
 somewhere?
Yes it is enhancement of standard Emacs bookmarks.

I wrote a little doc only to setup Firefox protocols, you will find it
in the directory you get with mercurial.

Before all, you have to setup Firefox.
Read the doc on Emacswiki and the file
bookmark-extensions-documentation.rst.

When done use as standard Emacs bookmarks:
C-x r l
Then for firefox bookmarks just hit P.

If that work, you can export to an org file with
M-x bmkext-firefox2org

For Delicious bookmarks, you need the library anything-delicious.el.
You will find it on emacswiki also.
or here:(get it with hg clone)

http://mercurial.intuxication.org/hg/anything-delicious

Read inside the file instruction to setup, specially for the
authentification side.

When done, hit D from bookmark menu list (C-x r l)
C-u D will refresh the list from Delicious server.



 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: latex export and beamer columns

2009-11-26 Thread Darlan Cavalcante Moreira

Maybe a simpler notation could be used instead direct latex since we are talking
about official support for beamer in org-mode. For instance

,
| * Teste beamer: This is a Section
| *** Teste beamer: This is a Subsection
| * This is the frame title
|   Frame content
| 
| * This is the frame title of another frame
| #+\{0.4
|   - This is an item
|   - This is an item too
| #+\\0.6
|   - Another item
|   - Another one
|   - One more item
| \note[item]{lala}
| #+\}
`

The #+\{ comment indicates the beginning of a columns environment and the
0.4 the width (0.4\textwidth) of the first column. The #+\\0.6 comment
creates another column and the #+\} comment closes the columns
environment. I'm not saying this is the best way, but IMHO this is better than
using #+latex commands directly, since beamer support in org-mode will be
official. Also, this will export nicely to standard latex and HTML. Using
#+latex: could cause problems when exporting to standard latex and using
headings as suggested in other E-mails here could me exporting to anything
different from beamer unnatural.

If this syntax or something similar is used, I'd like to request only two thinks
in addition:
  1) the items in the different columns should be exported to different
 itemize environments when exporting to standard latex (similarly to HTML). 
If
 they are exported to the same environment it can be confusing.
  2) It would be nice if the width could be optional. If there are columns whose
 width is not specified then org could sum the widths that were specified
 and distribute the remaining among the columns whose width is not
 specified. For instance, in a frame with 3 columns I could specify the
 width of one column as 0.4 and leave the others unspecified. Org should
 then choose a width of 0.3 for the remaining two columns.


- Darlan Cavalcante


At Thu, 26 Nov 2009 18:25:19 +,
Eric S Fraga ucec...@ucl.ac.uk wrote:
 
 At Thu, 26 Nov 2009 02:52:04 +0100,
 Łukasz Stelmach wrote:
  
  I've just tried something simplier and IMHO more flexible (widths).
  
  --8---cut here---start-8---
  * The Title
  ** The Section
  *** The Frame
  #+latex: \begin{columns}[t]
  #+latex: \column{.5\textwidth}
 - My point
 - Your point
  #+latex: \column{.5\textwidth}
  Conclusion
  #+latex: \end{columns}
  --8---cut here---end---8---
  
  Unfortunately the the plain list is not recognized and converted to
  itemize. When I remove the #+latex: \begin|end stuff then the list
  looks as it should.
 
 
 (note that my response has probably been superseded by Carsten's
 recent message regarding beamer support in org mode but this still
 might be of some interest)
 
 
 I am not sure what to say!  IMO, it's not simpler although I guess it
 could be more flexible.  However, you say it doesn't work?
 
 One alternative based on your approach is to define begin and end
 commands for the columns environment that avoid using \begin and
 \end which org interprets.  Maybe something like this:
 
 --8---cut here---start-8---
 #+LaTeX_CLASS: beamer 
 
 #+latex: \newcommand{\BC}{\begin{columns}[t]}
 #+latex: \newcommand{\EC}{\end{columns}}
 
 * The main section
 *** An interesting slide
 \BC
 #+latex: \column{0.4\textwidth}
 - an item with enough text to show the width of the column
 - another item
 #+latex: \column{0.6\textwidth}
 - an item with enough text to show the width of the column
 - and yet another
 \EC
 --8---cut here---end---8---
 
 which appears to work just fine.  Whether it's simpler or not depends
 on what you want.  I like using org headlines to be able to hide
 individual columns and to be able to move them around easily.
 
 
 ___
 Emacs-orgmode mailing list
 Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Again on bookmarks

2009-11-26 Thread Samuel Wales
On 2009-11-26, Thierry Volpiatto thierry.volpia...@gmail.com wrote:
 reimport back to
 org without losing the annotations (new browser tabs (web pages) that
 org does not know about yet end up in a special place in the org
 hierarchy while existing ones sync with existing headlines).

 You can actually store all Firefox bookmarks to a org file.
 Not a specific Firefox bookmark folder (that can be done though).

If the link is already in an org file, will it update the dates and
avoid adding it to org elsewhere?  Otherwise every time you store to
an org file, you add duplicate entries.

-- 
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied ME/CFS for 25 years]
=
Retrovirus: http://www.wpinstitute.org/xmrv/xmrv_qa.html


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: column view face for todo keywords

2009-11-26 Thread Patrick Drechsler

Carsten Dominik wrote:


On Nov 25, 2009, at 9:33 PM, Patrick Drechsler wrote:


Hi,

is it possible to display TODO keywords in their 
non-column-view-font/face while in column view?


No, I don't think it is possible.


OK, thanks for the feedback. I wasn't sure if I missed something in the 
manual.


Regards, Patrick



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Remove leftover merge separater line

2009-11-26 Thread Bernt Hansen
This was leftover from a previous merge and should be deleted
---
This patch is available at git://git.norang.ca/org-mode.git for-carsten

 lisp/ChangeLog |1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1265f2b..4acb99c 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -40,7 +40,6 @@
* org-colview.el (org-agenda-colview-summarize): Sort out some
confusion between properties and titles, which resulted in
agenda summaries not working if a title was set for a column.
- james/bugfixes:lisp/ChangeLog
 
 2009-11-24  Carsten Dominik  carsten.domi...@gmail.com
 
-- 
1.6.6.rc0.54.gb073b



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Q: How to search dates within current week

2009-11-26 Thread tan....@juno.com
Hi Carsten,

Sorry for taking so long to reply you. Being a newbie, it's taken me more time 
than usual to figure things out.

I've added an update to my query Q: How to search dates within current week.

Regarding updating the documentation, my suggestion would be to add
to Section 10.5 Commands in the agenda buffer : 

`l'
 Toggle Logbook mode.  In Logbook mode, entries that were marked
 DONE while logging was on (variable `org-log-done') are shown in
 the agenda, as are entries that have been clocked on that day.
 You can configure the entry types that should be included in log
 mode using the variable `org-agenda-log-mode-items'.  When called
 with a `C-u' prefix, show all possible logbook entries, including
 state changes.  When called with two prefix args `C-u C-u', show
 only logging information, nothing else.  

  |  Logbook mode off will show scheduled items while logbook mode on will
  |  show closed times in your selected time frame. The time frame depends 
  |  on whether you are in agenda daily, week, month, year or Timeline 
view.


Thanks for a great tool and your high level of support,

Happy Thanksgiving!


-- Original Message --
From: Carsten Dominik carsten.domi...@gmail.com
To: tan@juno.com
Cc: be...@norang.ca, emacs-orgmode@gnu.org
Subject: Re: [Orgmode] Re: Q: How to search dates within current week
Date: Sun, 18 Oct 2009 08:36:02 +0200

Hi,

if you have a proposal how to improve the documentation, let me know.

- Carsten




Weight Loss Program
Best Weight Loss Program - Click Here!
http://thirdpartyoffers.juno.com/TGL2131/c?cp=_4cTFOFEA3tOS8LqYeEQwgAAJz2dHEwHj3vEVwLaaaOeXNfeAAYAAADNAAAEUgA=


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Q: How to search dates within current week

2009-11-26 Thread Kwee Heong TAn
Hi,

Problem : search for CLOSED items in current week

It turns out that Orgmode has the functionality all along but being a newbie,
I did not ask the right question. Bernt Hansen's suggestion to use Timeline 
with C-u l provided the clue.

When I view the weekly agenda ( C-c a a ), I get a list of scheduled items. 
Press l to turn on logbook mode and presto!, I get a list of items closed for 
the same week.
I can change the time period with d,w,m,y to get daily, weekly, monthly or 
yearly view. To see the entire file, I switch to Timeline, and then turn on 
logbook mode.

In summary, logbook mode off always shows scheduled items while logbook mode on 
always shows closed times. The time frame being displayed depends on whether 
you are viewing daily, monthly, yearly or timeline.

The other neat thing is that when you press left or right to shift the date 
window, the logbook mode shows the closed items for the correct time frame.

Happy Thanksgiving!




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: org-mobile Bad file encoding [6.33trans]

2009-11-26 Thread Ben Alexander

Well, the problem came back :-(

I tried to go to the agendas.org file on my WebDAV server and save it  
in utf-8 manually (using the command M-x set-buffer-file-encoding  
utf-8) but because the checksums.dat don't change, the iPod doesn't  
reload the newly saved file.  So I deleted checksums.dat  and then it  
copied all the files and the agendas.org file showed up properly.


Then I tried one more time, making a small change on my laptop and  
trying to save the agendas.org file manually *before* doing a sync on  
the iPod, and now I can't make it work.  The agendas.org file is the  
only file that won't display at all, giving the Bad file encoding  
message instead of the file text.  Yet on the WebDAV share, from my  
laptop, I can cat the file, no problem.


I have now removed the only non-ascii character from my org file that  
is picked up by the agenda (the letter ă, lowercase-a-with-breve- 
accent). And so now there is no 'bad-encoding'.


Clearly there is some emacs magic going on here, because I thought of  
trying the £ symbol, but in another, smaller, file, and when I tried  
to save the file, I was told:

These default coding systems were tried to encode text
in the buffer `birthdays.org':
  iso-8859-2-unix
However, each of them encountered characters it couldn't encode:
  iso-8859-2-unix cannot encode these: £


I thought the earlier emacs code specified utf-8 as the default coding  
system


Strangely (to me) the a-with-breve did not have an issue in the  
default coding system.


I once had a problem with my original org files, but now I can't  
recreate that problem either.


Sorry to bring bad news.
On 2009-Nov-23, at 20:53, Ben Alexander wrote:



I added the following lines (to my ~/.emacs file), as suggested by  
Richard and they work immediately.


For what it's worth, I am running on Mac OS X 10.5.8 on an Intel  
MacBook, and I've had it for a few years and tweaked any number of  
little things.  This may be a 'default' problem, but it might also  
be just because I've copied old customization buffers forward from  
other machines.


Thanks, Richard, for the tip, and thanks to all the rest of you for  
the org-mode community.


-Ben

On 2009-Nov-23, at 02:37, Richard Moreland wrote:


Hi Ben,

I'm replying off-list because I'm not sure this is the answer, but:

(prefer-coding-system   'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)

Between that mess of options, it seems that you be able to have  
your files default to UTF-8 (which is the encoding MobileOrg is  
looking for).


If this works for you, would please let the list know so the  
solution is archived?  I'll also update the website with the  
appropriate details.


Thanks!
Richard

On Nov 22, 2009, at 3:20 PM, Ben Alexander wrote:



Thanks for org-mode and MobileOrg!  I'm very grateful for all the
helpful hints I've seen on the mailing list too.

I an have a small problem with MobileOrg.  After doing an
org-mobile-push and syncing the results to the iPod touch, the
agendas.org file doesn't appear on the iPod.  Instead, it appears  
as if
the only heading is Bad file encoding and the body text is  
Unable to

detect file encoding, please re-save this file using the proper
encoding.

At first I thought it was because I've got things like the
pounds-sterling, t-with-a-comma, a-with-breve, and i-with-circumflex
characters in my text (some of which contains Romanian, hence the
especially odd t-with-a-comma).  But I'm pretty sure I've expunged  
those
characters from my files, and anyway, the agendas.org file should  
only

contain the characters that my original org files contain.

So, I'm happy enough to use the proper encoding, but I don't know  
what
that is, and I don't save the adgendas.org file myself: org-mobile- 
push

must do that on my behalf.

If it is relevant, I am using a 5dollarhosting.com website for my  
webdav
server, not my local machine, so I don't have complete control  
over the

webserver configuration.

I'm stumped as to what I should try next. Any pointers will be
appreciated,

Ben Alexander

==

Emacs  : GNU Emacs 22.3.1 (i386-apple-darwin9.7.0, Carbon Version  
1.6.0)

of 2009-06-07 on scarlett.local - Aquamacs Distribution 1.8c
Package: Org-mode version 6.33trans

current state:
==
(setq
org-remember-default-headline Remember Tasks
org-todo-keyword-faces '((PROJECT :foreground blue :weight  
bold))

org-special-ctrl-a/e t
org-agenda-custom-commands '((b Buy tags #(+TODO=\BUY\ 0  
11 (face org-warning)) nil) (A Angella related questions tags  
#(angella 0 7 (face org-warning)) nil)
 (u unscheduled todo #(TODO|DEFER 0  
10 (face org-warning))
  ((org-agenda-skip-function (lambda nil  
(org-agenda-skip-entry-if (quote scheduled) (quote deadline)  
(quote regexp) [^\n]+)))
   

[Orgmode] org-babel for matlab?

2009-11-26 Thread Christopher Long

Dear All,

   Has anyone started on a babel mode for matlab?  Or is anyone else 
interested
in making it happen?  Or have a suggestion for a good template to start 
from (babel-python? babel-R?)  And anyone has an estimate of how time 
consuming such a project would be?


   I'd like it to work on Windows and there isn't a console mode of Matlab
on windows, but you can evaluate code with EmacsLink and likely direct
all output to temporary files.
(I know EmacsLink was dropped in R2009a, but some of us are avoiding 
upgrading

and hoping that Matlab will return EmacsLink in the future.)


Thanks,

Stoph


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Again on bookmarks

2009-11-26 Thread Thierry Volpiatto
Samuel Wales samolog...@gmail.com writes:

 Hi Thierry,

 On 2009-11-26, Thierry Volpiatto thierry.volpia...@gmail.com wrote:
 See BookmarkExtension:
 http://www.emacswiki.org/cgi-bin/emacs/BookmarkExtension

 It support now nearly all:
 emacs-w3m bookmarks, Firefox bookmarks, Delicious bookmarks, Gnus
 bookmarks, Man pages etc...

 The reason I like the idea of using org as the central store is that
 it holds a lot of information, including annotations (headline body
 text), subheadings, tags, properties, etc.  Possibly even
 last-modified date of the web page and last-synced.  It can also be
 subsetted using the agenda.

The both are complementary i think.
For Gnus, i use bookmark to quickly save a mail with (C-x r m), but i
also use Org with remember when i want to store more info (TODOS, notes
etc...)

 The idea would be that when you, say, save all Firefox tabs that are
 currently open to a Firefox bookmark folder, you can export that whole
 folder to org.  Then, you can add annotations, move the headlines
 anywhere in the agenda files hierarchy, export from org to w3m or
 Firefox or Safari (using the agenda to subset), and reimport back to
 org without losing the annotations (new browser tabs (web pages) that
 org does not know about yet end up in a special place in the org
 hierarchy while existing ones sync with existing headlines).

You can actually store all Firefox bookmarks to a org file.
Not a specific Firefox bookmark folder (that can be done though).

 Can the emacs bookmark mechanism serialize all that org data?  If not,
 perhaps org would be a good place to store everything.

For the moment, from firefox, i record only the title and url of
bookmarks.
however,i can record more infos if needed:
All infos that are provided by the firefox bookmarks.

 Maybe we have different ideas, which deserve different implementations?


 Samuel

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Emacs opens a frame for each file in agenda list on org-mobile

2009-11-26 Thread Christopher Long

Dear Steve and All,

 I've been able to suppress the problem by commenting out one line 
(line 232) in org-mobile.el

(in the version of org I just recently got from git, 6.33f+).  That line is:

;;  (push (cons file link-name) rtn))

 Unfortunately, this also suppresses the update of the .org file of 
interest in the staging directory.
Can anyone fluent in list propose how to update the org file without 
having the file pop open

on Windows XP?

 Also, it is not simply an emacsclient issue as I was first guessing.
If I use a .txt file as my org file of interest this gets opened by 
notepad rather than emacs
(since I have not told Windows to open .txt files with emacs, but I 
have allowed org to use txt files.)
(Also note, .txt files are not supported in the present version of 
mobileorg, but Richard has written

a version which should be able to access them in the future.)

 Here are more details:

file: org-6.33f\lisp\org-mobile.el

I traced the problem by following:
1. defun org-mobile-push which calls org-mobile-files-alist
2. defun org-mobile-files-alist contains
 (push (cons file link-name) rtn))

Thanks!

Stoph

Steve Brown wrote:

Hi Christopher,

On 23/11/2009 17:42, Christopher Long wrote:

Dear Steve and All,

Was this additional instance of emacs problem resolved?
I am having the same problem also on windows XP.
I wonder whether emacsclient or emacsclientw need to be called instead
of a new instance of emacs.


Sadly, I've not managed to resolve this at all.

I did try using (server-start) but the frames still open and they 
bitterly complain that a server instance is already running.


I'm going to strip out everything from my .emacs until I just have the 
org-mode settings left to see if that changes anything, but I'm not 
hopeful.


I haven't seen many complaints about this issue, so I assume that it 
is uncommon and possibly difficult to replicate.


Unfortunately I don't know how to step through elisp to debug this 
myself ;-) I may have a steep learning curve ahead of me.


If someone could give me a hint as to how to do this I'd be grateful.

Best,

Steve




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Sébastien Vauban
Christoph Groth wrote:
 Nice idea to create LaTeX-presentations using orgmode.  Though, whenever
 using beamer, I always find myself having to tweak some spaces on a
 fairly low level.  I'm curious whether it will work out to create
 non-trivial presentations by using orgmode only.

I am sure we will make it!


 If the frame title contains the string \\, the line will be split at
 that location, and the second half become the frame /subtitle/.

 Sometimes one might have a frame title which is too wide for one line.
 Then one might want to split the title at a specific place -- and that
 is done by inserting a \\ there.

An alternative would be for you to use \linebreak in such cases (when you
wanna break the line because it's too long).

Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Again on bookmarks

2009-11-26 Thread Thierry Volpiatto
Samuel Wales samolog...@gmail.com writes:

 On 2009-11-26, Thierry Volpiatto thierry.volpia...@gmail.com wrote:
 reimport back to
 org without losing the annotations (new browser tabs (web pages) that
 org does not know about yet end up in a special place in the org
 hierarchy while existing ones sync with existing headlines).

 You can actually store all Firefox bookmarks to a org file.
 Not a specific Firefox bookmark folder (that can be done though).

 If the link is already in an org file, will it update the dates and
 avoid adding it to org elsewhere?  Otherwise every time you store to
 an org file, you add duplicate entries.

Yes.

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Sébastien Vauban
Dan Davison wrote:
 On Nov 26, 2009, at 1:17 AM, Carsten Dominik wrote:
 NOW is the time to chime in.

 I don't know if this is helpful from someone who hasn't thought through the
 details of beamer support but just in case: is there any chance that we
 should be thinking at this stage of a generic org-presentation API which
 would initially support just beamer but which would leave open the
 possibility for others to implement other slide presentation engines? For
 example I remember that someone once brought up the possibility on this list
 of exporting org to OpenOffice presentation format. And it's possible to
 create something like a slide-show in HTML/CSS -- although I never see
 anyone doing it. There are at least some things in common between different
 slide-show engines, such as where to break from slide to slide, slide
 titles, non-slide notes, etc.

I have absolutely no experience with other slide engines in LaTeX. But I
think (as well) it's a good time to think at commonalities between these, so
that one extract the right model, even if we only support Beamer (which I
think is the best) in the first place, and maybe for ever. But it would maybe
ensure we ask ourselves the right questions.

I just know ('ve seen it) that Russell Adams (hep! ;-)) uses Prosper, one of
the old alternatives, before Beamer came on the market. Maybe he could tell
us some interesting things about this planned construction?


 Also, I do agree with others that to the extent possible we want
 presentations to emerge naturally out of 'normal' org-files

Yes, I do have the same concern. An Org file for Beamer or a standard Org file
should have almost no differences -- except for the class. I think it's even
possible for small and standard slides show that there would be no difference
at all, except once again the length of sentence and the numerous headlines.

At least, the Beamer Org file would be the first mind map, or the skeleton, of
a real-document, would it outgrow from slides to document.


 with the help of established org mechanisms such as selective subtree
 export. E.g. using the heading title to set the column width feels wrong;
 the natural reaction is to think that that sort of metadata should be in a
 property.

I don't know which exact representation it should have, but I'm puzzled by
headlines setting the width of columns, too.

Best regards,
  Fabrice Niessen

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Beamer support in Org-mode

2009-11-26 Thread Russell Adams
On Thu, Nov 26, 2009 at 10:38:20PM +0100, S??bastien Vauban wrote:
 I just know ('ve seen it) that Russell Adams (hep!??;-)) uses Prosper, one of
 the old alternatives, before Beamer came on the market. Maybe he could tell
 us some interesting things about this planned construction?

I heard my name *ears burning*.

I just made my first Beamer presentation in Org recently, and I'm
*sold* on it.

http://www.adamsinfoserv.com/AISTWiki/pub/AIS/Presentations/HoustonAIXUsersGroup_ToolsTipsTricks.pdf

  Also, I do agree with others that to the extent possible we want
  presentations to emerge naturally out of 'normal' org-files
 
 Yes, I do have the same concern. An Org file for Beamer or a standard Org file
 should have almost no differences -- except for the class. I think it's even
 possible for small and standard slides show that there would be no difference
 at all, except once again the length of sentence and the numerous headlines.

I think any Beamer enhancements should be encoded in the headline
properties (section, transition, etc). Don't introduce new syntax,
make it work out of the box with reasonable defaults, and then allow
customization via property drawers for individual headlines, and the
export options header for global options.



--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: Infinite loop when org-entry-put is called in buffer not in org-mode [6.33trans]

2009-11-26 Thread David Maus
Hi Carsten,

At Thu, 26 Nov 2009 08:42:09 +0100,
Carsten Dominik wrote:
 Hi David,
 
 you cannot reasonably expect that org-mode functions should work
 in other modes.  And you cannot expect these functions to check
 the mode all the time.
 
 I don't know what you are up to here.  But maybe the function
 `org-run-as-in-org-mode' offers a way out?

I stumpled on this infinite loop by accident and simply avoid it by
make my function refuse to work on a buffer not in org-mode.

However, I decided it worth a bugreport as I didn't know the reason
for this and assumed org-mode may enter this loop by itself if the
right conditions are met.

After debugging the loop it turns out that the loop occurs in
`org-insert-property-drawer' because `org-keyword-time-regexp' is
buffer local only (calculated when entering org-mode) and defaults to
nil, so when `org-insert-property-drawer' tries to skip SCHEDULED,
DEADLINE etc. lines it tries this by while-re-search-forwarding[1]
with the regexp ^[ \t]* -- that is what throws Emacs in this loop
(for whatever reason -- I hope I am going to find out).

So the question is: Is it in anyway possible that
`org-keyword-time-regexp' is (re-set to) nil in regular orgmode
operation? 

As far as I could see: No, so it should not effect the normal
operations of org-mode.

Regards,

  -- David

[1] i.e.: (while (re-search-forward ^[ \t]*)) causes Emacs to
loop. That means not beeing in orgmode not even a sine qua non for
this loop.

-- 
OpenPGP... 0x316F4BE4670716FD
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com
ICQ... 241051416


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Beamer support in Org-mode

2009-11-26 Thread Carsten Dominik


On Nov 26, 2009, at 7:40 PM, Dan  wrote:


...

On Nov 26, 2009, at 1:17 AM, Carsten Dominik wrote:


...

NOW is the time to chime in.


I don't know if this is helpful from someone who hasn't thought  
through
the details of beamer support but just in case: is there any chance  
that

we should be thinking at this stage of a generic org-presentation API
which would initially support just beamer but which would leave open  
the

possibility for others to implement other slide presentation engines?
For example I remember that someone once brought up the possibility on
this list of exporting org to OpenOffice presentation format. And it's
possible to create something like a slide-show in HTML/CSS --  
although I

never see anyone doing it. There are at least some things in common
between different slide-show engines, such as where to break from  
slide

to slide, slide titles, non-slide notes, etc.


This is an interesting thought, but would require someone skilled
in his area, and a lengthy design process.  LaTeX is not a bad
default for org, because it is LaTeX-centric anyway ?



Also, I do agree with others that to the extent possible we want
presentations to emerge naturally out of 'normal' org-files with the
help of established org mechanisms such as selective subtree
export. E.g. using the heading title to set the column width feels
wrong; the natural reaction is to think that that sort of metadata
should be in a property.


OK, I hear you all pull the same string, that Org-mode files should be  
beamer presentations as they are, more or less.


Here are some ideas in that direction:

1. Don't automatically use a specific headline level to create the  
columns

   environment - at least make that configurable.

2. Make beamer export force org-export-headline-levels equal org- 
beamer-frame-level,

   so that headlines below the frame level automatically become itemize
   levels, unless modified by tags or properties.

3. Use meta data to make headlines special, instead of mixing this
   stuff into the.  I first thought this is too hard - but maybe it is
   OK when edited with column view?  Hmm, I am only half-sold on this  
- properties

   are so hard to see when you need them frequently during editing.

Thomas asked for the possibility to export a subtree as a
presentation, with *relative* levels determining functionality.  This
should be easy - when selection a subtree with `C-c @' and then  
exporting,

relative levels are already being used now, for any kind of export.

...

- Carsten



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org-mode version 6.32b; shift-tab configured wrong in xemacs

2009-11-26 Thread Kevin Haddock
Please take note:

I think this patch will fix the problem:

*** org.el  Thu Nov 26 18:08:57 2009
--- org.el.orig Thu Nov 26 18:08:23 2009
***
*** 14416,14423 
  (org-defkey org-mode-map \M-\t 'org-complete)
  (org-defkey org-mode-map \M-\C-i  'org-complete)
  ;; The following line is necessary under Suse GNU/Linux
! (if (featurep 'xemacs)
!   (org-defkey org-mode-map [iso-left-tab]  'org-shifttab))
  (org-defkey org-mode-map [(shift tab)]'org-shifttab)
  (define-key org-mode-map [backtab] 'org-shifttab)
  
--- 14416,14423 
  (org-defkey org-mode-map \M-\t 'org-complete)
  (org-defkey org-mode-map \M-\C-i  'org-complete)
  ;; The following line is necessary under Suse GNU/Linux
! (unless (featurep 'xemacs)
!   (org-defkey org-mode-map [S-iso-lefttab]  'org-shifttab))
  (org-defkey org-mode-map [(shift tab)]'org-shifttab)
  (define-key org-mode-map [backtab] 'org-shifttab)


-end patch

Emacs  : XEmacs 21.5  (beta29) garbanzo [Lucid] (i686-pc-linux, Mule) of Wed 
Nov 11 2009 on beta
Package: Org-mode version 6.32b



current state:
==
(setq
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-mode-hook '((lambda nil
  (org-add-hook (quote change-major-mode-hook) (quote 
org-show-block-all) (quote append)
   (quote local))
  )
 #compiled-function nil ...(7)
 [org-add-hook change-major-mode-hook org-show-block-all append 
local] 5)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-files '(~/.00-org/mgmt.org ~/.00-org/ent.org 
~/.00-org/prod.org)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-occur-hook '(org-first-headline-recenter)
 )



-Kevin

-

People originally thought the eternal question was:

  Why am I here?

But now we know the question is actually:

  Why is THAT THERE?

-Me


  


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: Before first heading error when rearranging tasks in narrow to subtree [6.33trans (release_6.33f.45.gfe96)]

2009-11-26 Thread Bernt Hansen

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


,[ test.org ]
| 
| * Main task
| ** DONE Task 1
| ** DONE Task 2
| ** TODO Task 4
| ** TODO Task 3
| ** TODO Task 5
| * Next task
`

Put the point on * Main Task
C-x n s to narrow to subtree
C-c C-v to show active TODOs
Put point on TODO Task 4
M-down arrow 
M-up arrow

generates

Debugger entered--Lisp error: (error before first heading)
  signal(error (before first heading))
  error(before first heading)
  outline-back-to-heading()
  hide-entry()
  (if (save-excursion (goto-char ...) (org-invisible-p)) (hide-entry))
  (while (re-search-forward re nil t) (if (save-excursion ... ...) 
(hide-entry)))
  (progn (goto-char (point-min)) (while (re-search-forward re nil t) (if ... 
...)))
  (if re (progn (goto-char ...) (while ... ...)))
  (when re (goto-char (point-min)) (while (re-search-forward re nil t) (if ... 
...)))
  (save-restriction (narrow-to-region beg end) (when re (goto-char ...) (while 
... ...)) (org-cycle-show-empty-lines (quote overview)) (org-cycle-hide-drawers 
(quote overview)))
  (save-excursion (save-restriction (narrow-to-region beg end) (when re ... 
...) (org-cycle-show-empty-lines ...) (org-cycle-hide-drawers ...)))
  (let* ((beg ...) (end ...) (level ...) (re ...)) (save-excursion 
(save-restriction ... ... ... ...)))
  org-clean-visibility-after-subtree-move()
  (let ((movfunc ...) (ins-point ...) (cnt ...) beg beg0 end txt folded ne-beg 
ne-end ne-ins ins-end) (org-back-to-heading) (setq beg0 (point)) 
(save-excursion (setq ne-beg ...) (setq beg ...)) (save-match-data 
(save-excursion ... ...) (outline-end-of-subtree)) (outline-next-heading) (setq 
ne-end (org-back-over-empty-lines)) (setq end (point)) (goto-char beg0) (when 
(and ... ... ...) (save-excursion ... ... ...)) (while ( cnt 0) (or ... ...) 
(setq cnt ...)) (if ( arg 0) (progn ... ...)) (setq ne-ins 
(org-back-over-empty-lines)) (move-marker ins-point (point)) (setq txt 
(buffer-substring beg end)) (org-save-markers-in-region beg end) (delete-region 
beg end) (org-remove-empty-overlays-at beg) (or (= beg ...) 
(outline-flag-region ... beg nil)) (or (bobp) (outline-flag-region ... ... 
nil)) (and (not ...) (looking-at \n) (forward-char 1)) (let (...) 
(insert-before-markers txt) (org-reinstall-markers-in-region bbb) (move-marker 
ins-point bbb)) (or (bolp) (insert \n)) (setq ins-end (point)) (goto-char 
ins-point) (org-skip-whitespace) (when (and ... ... ...) (save-excursion ... 
...) (insert ...)) (move-marker ins-point nil) (if folded (hide-subtree) 
(org-show-entry) (show-children) (org-cycle-hide-drawers ...)) 
(org-clean-visibility-after-subtree-move))
  org-move-subtree-down(-1)
  org-move-subtree-up(1)
  call-interactively(org-move-subtree-up)
  (cond ((run-hook-with-args-until-success ...)) ((org-at-table-p) 
(org-call-with-arg ... ...)) ((org-on-heading-p) (call-interactively ...)) 
((org-at-item-p) (call-interactively ...)) (t (transpose-lines 1) 
(beginning-of-line -1)))
  org-metaup(nil)
  call-interactively(org-metaup)

-Bernt


Emacs  : GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11)
 of 2008-11-09 on raven, modified by Debian
Package: Org-mode version 6.33trans (release_6.33f.45.gfe96)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] [PATCH] Stop generating superfluous clock entries

2009-11-26 Thread Bernt Hansen
Avoid closing the currently clocking entry when clocking in the same task
again.  Leave the clock entry open until some other task is clocked in.

This allows us to clock in tasks with hooks that are called frequently without
generating lots of short sequential clock entries for the same task.
---
This patch is available at git://git.norang.ca/org-mode.git clock-in

I haven't extensively tested this but it seems to work for for me.  I currently 
have clock resolution disabled.

 lisp/ChangeLog|5 +
 lisp/org-clock.el |   29 -
 2 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4acb99c..ecba8f7 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-26  Bernt Hansen  be...@norang.ca
+
+   * org-clock.el (org-clock-in): Avoid creating superfluous clock
+   entries when clocking in the task that is already running.
+
 2009-11-26  Carsten Dominik  carsten.domi...@gmail.com
 
* org-footnote.el (org-footnote-normalize): Don't take optional
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index f598cc3..9bfe53e 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -847,18 +847,29 @@ the clocking selection, associated with the letter `d'.
(if selected-task
(setq selected-task (copy-marker selected-task))
  (error Abort)))
-  (when interrupting
-   ;; We are interrupting the clocking of a different task.
-   ;; Save a marker to this task, so that we can go back.
-   (move-marker org-clock-interrupted-task
-(marker-position org-clock-marker)
-(marker-buffer org-clock-marker))
-   (org-clock-out t))
-  
+
+  (let ((current-hd-marker (make-marker)))
+   ; Find the heading for the current point
+   (move-marker current-hd-marker
+(save-excursion
+  (org-back-to-heading t)
+  (point))
+(buffer-base-buffer))
+   ; Do not clock out if we want to clock in the task
+   ; that is currently clocking
+   (when interrupting
+ (unless (equal current-hd-marker org-clock-hd-marker)
+   ;; We are interrupting the clocking of a different task.
+   ;; Save a marker to this task, so that we can go back.
+   (move-marker org-clock-interrupted-task
+(marker-position org-clock-marker)
+(marker-buffer org-clock-marker))
+   (org-clock-out t
+
   (when (equal select '(16))
;; Mark as default clocking task
(org-clock-mark-default-task))
-  
+
   ;; Clock in at which position?
   (setq target-pos
(if (and (eobp) (not (org-on-heading-p)))
-- 
1.6.6.rc0.54.gb073b



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org-mode version 6.32b; shift-tab configured wrong in xemacs

2009-11-26 Thread Carsten Dominik

Hi Kevin,

this is already corrected in the current version.

- Carsten

On Nov 27, 2009, at 3:12 AM, Kevin Haddock wrote:


Please take note:

I think this patch will fix the problem:

*** org.el  Thu Nov 26 18:08:57 2009
--- org.el.orig Thu Nov 26 18:08:23 2009
***
*** 14416,14423 
 (org-defkey org-mode-map \M-\t 'org-complete)
 (org-defkey org-mode-map \M-\C-i  'org-complete)
 ;; The following line is necessary under Suse GNU/Linux
! (if (featurep 'xemacs)
!   (org-defkey org-mode-map [iso-left-tab]  'org-shifttab))
 (org-defkey org-mode-map [(shift tab)]'org-shifttab)
 (define-key org-mode-map [backtab] 'org-shifttab)

--- 14416,14423 
 (org-defkey org-mode-map \M-\t 'org-complete)
 (org-defkey org-mode-map \M-\C-i  'org-complete)
 ;; The following line is necessary under Suse GNU/Linux
! (unless (featurep 'xemacs)
!   (org-defkey org-mode-map [S-iso-lefttab]  'org-shifttab))
 (org-defkey org-mode-map [(shift tab)]'org-shifttab)
 (define-key org-mode-map [backtab] 'org-shifttab)


-end patch

Emacs  : XEmacs 21.5  (beta29) garbanzo [Lucid] (i686-pc-linux,  
Mule) of Wed Nov 11 2009 on beta

Package: Org-mode version 6.32b



current state:
==
(setq
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
drawers org-cycle-show-empty-lines

  org-optimize-window-after-visibility-change)
org-mode-hook '((lambda nil
		  (org-add-hook (quote change-major-mode-hook) (quote org-show- 
block-all) (quote append)

   (quote local))
  )
 #compiled-function nil ...(7)
		 [org-add-hook change-major-mode-hook org-show-block-all append  
local] 5)

org-confirm-elisp-link-function 'yes-or-no-p
org-confirm-shell-link-function 'yes-or-no-p
org-agenda-files '(~/.00-org/mgmt.org ~/.00-org/ent.org ~/.00- 
org/prod.org)

org-tab-first-hook '(org-hide-block-toggle-maybe)
org-export-preprocess-hook '(org-export-blocks-preprocess)
org-occur-hook '(org-first-headline-recenter)
)



-Kevin

-

People originally thought the eternal question was:

 Why am I here?

But now we know the question is actually:

 Why is THAT THERE?

-Me





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Stop generating superfluous clock entries

2009-11-26 Thread Carsten Dominik

Thanks, Bernt, good idea!

I have applied a modified version.

- Carsten

On Nov 27, 2009, at 3:21 AM, Bernt Hansen wrote:

Avoid closing the currently clocking entry when clocking in the same  
task
again.  Leave the clock entry open until some other task is clocked  
in.


This allows us to clock in tasks with hooks that are called  
frequently without

generating lots of short sequential clock entries for the same task.
---
This patch is available at git://git.norang.ca/org-mode.git clock-in

I haven't extensively tested this but it seems to work for for me.   
I currently

have clock resolution disabled.

lisp/ChangeLog|5 +
lisp/org-clock.el |   29 -
2 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4acb99c..ecba8f7 100755
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-26  Bernt Hansen  be...@norang.ca
+
+   * org-clock.el (org-clock-in): Avoid creating superfluous clock
+   entries when clocking in the task that is already running.
+
2009-11-26  Carsten Dominik  carsten.domi...@gmail.com

* org-footnote.el (org-footnote-normalize): Don't take optional
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index f598cc3..9bfe53e 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -847,18 +847,29 @@ the clocking selection, associated with the  
letter `d'.

(if selected-task
(setq selected-task (copy-marker selected-task))
  (error Abort)))
-  (when interrupting
-   ;; We are interrupting the clocking of a different task.
-   ;; Save a marker to this task, so that we can go back.
-   (move-marker org-clock-interrupted-task
-(marker-position org-clock-marker)
-(marker-buffer org-clock-marker))
-   (org-clock-out t))
-
+
+  (let ((current-hd-marker (make-marker)))
+   ; Find the heading for the current point
+   (move-marker current-hd-marker
+(save-excursion
+  (org-back-to-heading t)
+  (point))
+(buffer-base-buffer))
+   ; Do not clock out if we want to clock in the task
+   ; that is currently clocking
+   (when interrupting
+ (unless (equal current-hd-marker org-clock-hd-marker)
+   ;; We are interrupting the clocking of a different task.
+   ;; Save a marker to this task, so that we can go back.
+   (move-marker org-clock-interrupted-task
+(marker-position org-clock-marker)
+(marker-buffer org-clock-marker))
+   (org-clock-out t
+
  (when (equal select '(16))
;; Mark as default clocking task
(org-clock-mark-default-task))
-
+
  ;; Clock in at which position?
  (setq target-pos
(if (and (eobp) (not (org-on-heading-p)))
--
1.6.6.rc0.54.gb073b



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode