Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-26 Thread Carsten Dominik


On Oct 25, 2010, at 11:52 PM, Baoqiu Cui wrote:


Sebastian Rose sebastian_r...@gmx.de writes:


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

OK, I will use class.  I could make a special case for the docbook
exporter..


+1


+1 for making a special case for the docbook exporter. :-) (DocBook
documents can be rendered in different formats, some of which (like  
PDF)

may know nothing about CSS.)


BTW: Org mode's exports to XHTML, not HTML 4.01 or HTML 5 (which is a
proposal, not a standard or recommendation yet).  Still,
'td align=right' is valid XHTML, too.


Maybe we should add a parameter to function org-format-org-table- 
html to

indicate whether we want to format pure standard XHTML tables that do
not use class or CSS related stuff.


This is exactly how I have done it now.

- Carsten



Thanks,

--
Baoqiu



___
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: 7.01 Xemacs 21.4.22: decompose-region is not known

2010-10-26 Thread Carsten Dominik


On Oct 25, 2010, at 7:48 PM, Jambunathan K wrote:





For people who cannot use git, the
snapshot release  files,
corresponding to the latest git version,
are provided a href=http://repo.or.cz/w/org-mode.git;in the git
repository/a.  Choose which snapshot you want, presumably
the first line in the shortlog section and click the
tar.gz or zip link at the right end.


Looks like the below URL (with no modification whatsoever) always
downloads the current tip of the tree.

- http://repo.or.cz/w/org-mode.git/snapshot


This is cool!

Can you please document this in an appropriate spot on Worg?

- 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] Re: [PATCH] sexp may retrurn a list

2010-10-26 Thread Carsten Dominik

Applied, thanks.

- Carsten

On Oct 24, 2010, at 10:01 PM, Łukasz Stelmach wrote:


Łukasz Stelmach lukasz.stelm...@iem.pw.edu.pl writes:

I've disovered, that %%(org-bbdb-anniversaries) returns (as every  
other

sexp) a string. Which is OK if there is only one.

 Anniversaries:  John Doe's 10th wedding anniversary

Unfortunately the agenda view becomes awful if we have noted Jane's
weeding date too

 Anniversaries:  John Doe's 10th wedding anniversary; Jane Doe's  
10th wedding anniversary


And what if we know 3 Eves and 5 Adams and it's Christmas Eve? (Hint:
their name day)

[...]

As Thomas Bauman pointed out, there are functions that can be used in
sexps which return cons cells like this

   (nil . Full Moon 3:35am (CEST))

(this one is diary-lunar-phases), these aren't properly supported by  
the

previous version of my patch. This one can distinguish between such a
cons cell and a real list.

   (John Doe's 10th wedding anniversary
Jane Doe's 10th wedding anniversary)

This is because

   (consp (cdr '(a . b))) ; = nil

so org-diary-sexp-entry can be made return (cdr result) only in case  
of

the former cons cell. The third condition in the `cond' block is IMHO
enough as it is now, but if you think adding

   (listp (cdr result))

may help then be it.

--8---cut here---start-8---
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index ede62e8..8544a62 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4499,17 +4499,20 @@ the documentation of `org-diary'.
category (org-get-category beg)
todo-state (org-get-todo-state))

- (if (string-match \\S- result)
- (setq txt result)
-   (setq txt SEXP entry returned empty string))
-
- (setq txt (org-format-agenda-item
-  txt category tags 'time))
- (org-add-props txt props 'org-marker marker)
- (org-add-props txt nil
-   'org-category category 'date date 'todo-state todo-state
-   'type sexp)
- (push txt ee
+ (dolist (r (if (stringp result)
+(list result)
+  result)) ;; we expect a list here
+   (if (string-match \\S- r)
+   (setq txt r)
+ (setq txt SEXP entry returned empty string))
+
+   (setq txt (org-format-agenda-item
+   txt category tags 'time))
+   (org-add-props txt props 'org-marker marker)
+   (org-add-props txt nil
+ 'org-category category 'date date 'todo-state todo-state
+ 'type sexp)
+   (push txt ee)
(nreverse ee)))

(defun org-diary-class (m1 d1 y1 m2 d2 y2 dayname rest skip-weeks)
diff --git a/lisp/org-bbdb.el b/lisp/org-bbdb.el
index 53514f7..0d3134d 100644
--- a/lisp/org-bbdb.el
+++ b/lisp/org-bbdb.el
@@ -338,8 +338,7 @@ This is used by Org to re-create the anniversary  
hash table.

(setq text (append text (list tmp)))
  (setq text (list tmp)
))
-(when text
-  (mapconcat 'identity text ; 
+text))

(defun org-bbdb-complete-link ()
  Read a bbdb link with name completion.
diff --git a/lisp/org.el b/lisp/org.el
index b482b8e..c1d4e7d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -15024,7 +15024,10 @@ D may be an absolute day number, or a  
calendar-type list (month day year).

 (sleep-for 2))
(cond ((stringp result) result)
  ((and (consp result)
+   (not (consp (cdr result)))
(stringp (cdr result))) (cdr result))
+ ((and (consp result)
+   (stringp (car result))) result)
  (result entry)
  (t nil

--8---cut here---end---8---


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



___
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: Aligning Columns in HTML Export Tables

2010-10-26 Thread Carsten Dominik

OK, I think this change is now done.  Thank you all for sharing your
expertise!

- Carsten

On Oct 25, 2010, at 11:39 PM, Sebastian Rose wrote:


Christian Moe m...@christianmoe.com writes:
Maybe someone with a browser where colgroups actually do work  
(Opera!) can check


1. if they only work with the align attribute, and not with CSS, and

2. whether they still work (take precedence) now that the  
individual cells are

aligned with CSS for their class.


They _never_ took precedence, as soon as I used a style like this:

 /* My default for all td elements */
 td { text-align:left; }

The `td' style will alway be a better CSS-match than the col's style
or class attribute, even then the col's align attribute.  It's even  
the
expected behaviour according to CSS standards since that what's the  
`C'

in CSS means.  I have to remove my favourite default style for td
elements from my stylesheet to make that work in Opera, too.  In  
current

FF it does not work at all.

Here's another test:

CSS:
--8---cut here---start-8---
 col.right  { text-align:right;vertical-align:top;background- 
color:red; }
 col.left   { text-align:left;vertical-align:top;background- 
color:green; }
 col.center { text-align:center;vertical-align:top;background- 
color:blue; }

--8---cut here---end---8---



A table:

--8---cut here---start-8---
table  border=0 summary=
caption/caption
colgroupcol class=left /col class=center /col  
class=right /

/colgroup
thead
trthA/ththB/ththC/th/tr
/thead
tbody
trtd1/tdtd bar/tdtdtext/td/tr
trtd12/tdtd test/tdtd300/td/tr
trtd9/tdtd foo/tdtd4/td/tr
/tbody
/table
--8---cut here---end---8---


The only `style' that works that way is the `background-color'.  In
Opera and FF at least.

Means, the `class' attribute in col elements doesn't work very well
(but 'col class=odd /col class=even /' might make sense with
alternating colors)..

Both, 'align' and the 'style' attribute will be overwritten by a  
default

style for a td element in the users stylesheet (some prefere center,
some left alignment as the default).



It's common practice to have `style' or `class' attribute in td
elements.  That's what classes are for in the end.  Make HTML elements
members of a group with certain properties.

Why not jut go with it?


Look at `magento's code, Drupal, whatever.  They even use more those
usefull classes, e.g. `first' and `last' for the first and last  
elements

of lists.  HTML elements without classes are hard to find.  The reason
is, that HTML is just a document structure.  Classes (and IDs) make
those elements live.

first last right left content footnote menu comment
big small light dark pro contra - classes make the
difference.

Plus 'class=right' is easy to change in central place left
entrirely to the user:  the stylesheet.

XML is not meant to avoid clutter.  And if it was, something went
terribly wrong, I guess :)



 Sebastian



___
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: timestamp with repeater interval

2010-10-26 Thread Carsten Dominik


On Oct 25, 2010, at 7:30 PM, Matt Lundin wrote:


Eric S Fraga ucec...@ucl.ac.uk writes:

On Sun, 24 Oct 2010 17:11:34 +0200, Rainer Thiel r.th...@uni- 
jena.de wrote:



http://orgmode.org/worg/org-faq.php#org-diary-class


This would be exactly what I need -- if it really worked.  It does  
not

for me, probably because I haven't really understood how it is
supposed to work.  I should have expected that an entry like this:

* TODO Class 10:00am-12:00am
%%(org-diary-class 10 18 2010 2 12 2011 3)

in one of my agenda files would make show up an agenda entry every
Wednesday between Oct 18th, 2010 and Feb 12, 2011 in my agenda.  But
this is not the case, nothing shows up.  What am I doing wrong?


What is wrong (if you can call it that) is that the actual argument
list to the org-diary-class function depends on the settings of a
couple of variables: calendar-date-style and/or
european-calendar-style.


I have been wondering for many years: What was Edward M. Reingold
thinking when he made this horrible decision.  I mean, local
dependencies when parsing plain text dates - I guess there is
no way around it.  But in a function call?  Sequence of arguments?
What?

Cheers

- Carsten


As I have the former set to 'iso, in my case
I need to specify dates in the Y M D order:

* TODO Class 10:00am-12:00am
%%(org-diary-class 2010 10 18 2011 2 12 3)

You may need to do the same.

I've cc-ed the org-mode list for others to be aware of this as well.


Thanks for this clarification Eric. I updated the FAQ accordingly.

Best,
Matt

___
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] org-capture adds newline(s) when it should not

2010-10-26 Thread Marcel van der Boom
On di 26-okt-2010 11:06
Noorul Islam noo...@noorul.com wrote:

[...]
 Sounds like a but to me too.
 For now I am working around this in the latest git version.

 Marcel, this should be fixed.  Could you please submit a bug report
 to Emacs 24, stating that (newline 0) does insert a newline?


 I filed a bug report.


 Here is the link

 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7281


Thanks guys! You're way too fast for me.

marcel


-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl

___
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-capture adds newline(s) when it should not

2010-10-26 Thread Marcel van der Boom
On di 26-okt-2010 06:35
Carsten Dominik carsten.domi...@gmail.com wrote:

 I find that puzzling.  What might have changed in Emacs 24 to
 cause such
 differences?  I do not use Emacs 24 on a day-to-day basis yet.
  

 On emacs 24 (newline 0) inserts a new line which I think is
 incorrect.  

Sounds like a but to me too.
For now I am working around this in the latest git version.

Marcel, this should be fixed.  Could you please submit a bug report
to Emacs 24, stating that (newline 0) does insert a newline?

The newlines are indeed fixed, but I have to manually widen the
target buffer before the captured entry is visible. 

Tried this on emacs 23 as well and there it is functioning properly, so
this seems emacs 24 specific too.

marcel

-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl

___
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: [PATCH] Alphabetical ordered lists

2010-10-26 Thread Carsten Dominik


On Oct 26, 2010, at 10:21 AM, Nicolas Goaziou wrote:


Hello,


Nathaniel Flath writes:



I think I've fixed the issues brought up with this new patch. Please
let me know what you think.


I've noticed a couple of glitches.

First, you are using

 ( 28 (length struct))

to know when to replace letters by numbers. But (length struct)
doesn't always match list length, so it will lead to errors when
outdenting items.

For example, try outdenting, with its subtree, the item marked with
 in the list below:

 a) etsiun
 b) etsiun
 c) etsiun
 d) etisun
 e) etsiun
 f) etsiun
 g) etsiun
 h) etsiun
 i) etisun
 j) etsiun
 k) etsiun
 l) etsiun
 m) etsiun
 n) etsiun
a) Outdent me and my children ! 
   a) tersiu
   b) etsiru
   c) estiur
   d) etsnriu
   e) etsiun
   f) etiune
   g) etuirsnet
b) etsiun
 o) etsiun
 p) etsiun
 q) etsiun
 r) etsiun
 s) etsiun

All the lists will be numbered although they could keep alphabetical
bullets.

Another (lesser) problem is coming from the regexp chosen for bullets,
that is [0-9A-Za-z]+. I would suggest something alike
\\(\\(?:[0-9]\\)+\\|[A-Za-z]\\). At the moment, you can set counter
to [...@a4] and break you list when applying it.



Also, even when the alpha lists are turned off, typing

   a)

and pressing M-RET will show that a) is seen as a list bullet.

Thanks for your work, we are getting closer to an acceptable patch.

- Carsten



Regards,

-- Nicolas


- 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] Re: [PATCH] Alphabetical ordered lists

2010-10-26 Thread Nicolas Goaziou
Hello,

 Nathaniel Flath writes:

 I think I've fixed the issues brought up with this new patch. Please
 let me know what you think.

I've noticed a couple of glitches.

First, you are using

  ( 28 (length struct))

to know when to replace letters by numbers. But (length struct)
doesn't always match list length, so it will lead to errors when
outdenting items.

For example, try outdenting, with its subtree, the item marked with
 in the list below:

  a) etsiun
  b) etsiun
  c) etsiun
  d) etisun
  e) etsiun
  f) etsiun
  g) etsiun
  h) etsiun
  i) etisun
  j) etsiun
  k) etsiun
  l) etsiun
  m) etsiun
  n) etsiun
 a) Outdent me and my children ! 
a) tersiu
b) etsiru
c) estiur
d) etsnriu
e) etsiun
f) etiune
g) etuirsnet
 b) etsiun
  o) etsiun
  p) etsiun
  q) etsiun
  r) etsiun
  s) etsiun

All the lists will be numbered although they could keep alphabetical
bullets.

Another (lesser) problem is coming from the regexp chosen for bullets,
that is [0-9A-Za-z]+. I would suggest something alike
\\(\\(?:[0-9]\\)+\\|[A-Za-z]\\). At the moment, you can set counter
to [...@a4] and break you list when applying it.

Regards,

-- Nicolas

___
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-capture adds newline(s) when it should not

2010-10-26 Thread Noorul Islam
On Tue, Oct 26, 2010 at 1:46 PM, Marcel van der Boom mar...@hsdev.com wrote:
 On di 26-okt-2010 06:35
 Carsten Dominik carsten.domi...@gmail.com wrote:

 I find that puzzling.  What might have changed in Emacs 24 to
 cause such
 differences?  I do not use Emacs 24 on a day-to-day basis yet.


 On emacs 24 (newline 0) inserts a new line which I think is
 incorrect.

Sounds like a but to me too.
For now I am working around this in the latest git version.

Marcel, this should be fixed.  Could you please submit a bug report
to Emacs 24, stating that (newline 0) does insert a newline?

 The newlines are indeed fixed, but I have to manually widen the
 target buffer before the captured entry is visible.

 Tried this on emacs 23 as well and there it is functioning properly, so
 this seems emacs 24 specific too.

How did you fix it?

Thanks and Regards
Noorul

___
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-capture adds newline(s) when it should not

2010-10-26 Thread Marcel van der Boom
On di 26-okt-2010 13:54
Noorul Islam noo...@noorul.com wrote:

On Tue, Oct 26, 2010 at 1:46 PM, Marcel van der Boom
mar...@hsdev.com wrote:
 On di 26-okt-2010 06:35
 Carsten Dominik carsten.domi...@gmail.com wrote:

 I find that puzzling.  What might have changed in Emacs 24 to
 cause such
 differences?  I do not use Emacs 24 on a day-to-day basis yet.


 On emacs 24 (newline 0) inserts a new line which I think is
 incorrect.

Sounds like a but to me too.
For now I am working around this in the latest git version.

Marcel, this should be fixed.  Could you please submit a bug report
to Emacs 24, stating that (newline 0) does insert a newline?

 The newlines are indeed fixed, but I have to manually widen the
 target buffer before the captured entry is visible.

 Tried this on emacs 23 as well and there it is functioning properly,
 so this seems emacs 24 specific too.

How did you fix it?

Sorry, I wasn't clear. Capturing with emacs 23 with the latest git
version works perfectly.

If I use emacs 24 with the latest git capturing works with respect to
the newlines, but leaves the captured entry invisible in the target
buffer until I widen the buffer.

marcel


-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl

___
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] capture initial level and refile of capture buffer

2010-10-26 Thread Noorul Islam
On Mon, Oct 25, 2010 at 5:04 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Hi Noorul,

 could you please make a more detailed test case of this but, with an example
 files (capture target and refile target files) and step by step
 instructions.  I am not sure I understand what exactly you are doing.


I think it was my misunderstanding of how C-c C-w works inside org
capture. I think, now I have a clear picture and the behavior that I
mentioned was an expected one.

I was trying to refile to target file.

Thanks and Regards
Noorul


 On Oct 23, 2010, at 10:42 AM, Noorul Islam wrote:

 On Fri, Oct 22, 2010 at 5:13 PM, Richard Riley rile...@googlemail.com
 wrote:

 What determines the level of a new capture element? e.g I just created
 one and it started at .

 feature request : when I added some sub elements to a capture buffer e.g

 * my new capture

 ** sub point

 *** sub sub point 1
 *** sub sub point 2

 and hit C-c C-w to refile, it only refiled the sub element (where cursor
 was) and then lost the rest. I would like to suggest that refile from
 the capture buffer should refile the entire buffer and not only the
 current nested org item. Or am I missing something in my setup?

 On my box I have this observation.

 If I have something like this in my capture buffer

 * TODO Test

 * my new capture

 ** sub point

 *** sub sub point 1
 *** sub sub point 2


 and if I press C-c C-w at the last line (*** sub sub point 2) and
 refile it to refile.org then what I get in refile.org is this


 * TODO Test

 * my new capture

 ** sub point

 *** sub sub point 1
 * sub sub point 2


 The last one's level got changed.
 I have latest pull from git repo.

 Org-mode version 7.01trans (release_7.01h.833.g21ad0)
 GNU Emacs 23.2.2 (i686-pc-linux-gnu)
 of 2010-06-08 on sajida

 Thanks and Regards
 Noorul

 ___
 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] org-capture adds newline(s) when it should not

2010-10-26 Thread Noorul Islam
On Tue, Oct 26, 2010 at 2:05 PM, Marcel van der Boom mar...@hsdev.com wrote:
 On di 26-okt-2010 13:54
 Noorul Islam noo...@noorul.com wrote:

On Tue, Oct 26, 2010 at 1:46 PM, Marcel van der Boom
mar...@hsdev.com wrote:
 On di 26-okt-2010 06:35
 Carsten Dominik carsten.domi...@gmail.com wrote:

 I find that puzzling.  What might have changed in Emacs 24 to
 cause such
 differences?  I do not use Emacs 24 on a day-to-day basis yet.


 On emacs 24 (newline 0) inserts a new line which I think is
 incorrect.

Sounds like a but to me too.
For now I am working around this in the latest git version.

Marcel, this should be fixed.  Could you please submit a bug report
to Emacs 24, stating that (newline 0) does insert a newline?

 The newlines are indeed fixed, but I have to manually widen the
 target buffer before the captured entry is visible.

 Tried this on emacs 23 as well and there it is functioning properly,
 so this seems emacs 24 specific too.

How did you fix it?

 Sorry, I wasn't clear. Capturing with emacs 23 with the latest git
 version works perfectly.

 If I use emacs 24 with the latest git capturing works with respect to
 the newlines, but leaves the captured entry invisible in the target
 buffer until I widen the buffer.


I thought it got automatically fixed. But I could see this.

commit 2a58795e1958210b96e9adee52b9dd68f7d1f50e
Author: Carsten Dominik carsten.domi...@gmail.com
Date:   Tue Oct 26 06:34:16 2010 +0200

Fix empty line bug in capture

* lisp/org-capture.el (org-capture-empty-lines-before):
(org-capture-empty-lines-after): Make sure the n=0 does not insert any
newlines.

Thanks and Regards
Noorul

___
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: struggling with simple indentation

2010-10-26 Thread Rainer Stengele
Am 25.10.2010 19:06, schrieb Nicolas Goaziou:
 Hello,
 
 Rainer Stengele writes:
 
 Dear all,
 
 I am struggling with a simple indentation problem.
 
 Having this: (1)
 
 
 * test
   - indented
 line
 ^
 
 point at ^ and pressing TAB results in:
 
 
 * test
   - indented
   line
 
 
 Having this: (2)
 
 * test
   - indented
   - indented
 line
 ^
 
 point at ^ and pressing TAB results in:
 
 
 * test
   - indented
   - indented
 line
 
 
 I cannot reproduce this. I always get case (1). Are you using
 development version ?
 
 Regards,
 
 -- Nicolas
 
 ___
 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
 

Nicolas, thanks for checking. Yes I use the development version.
After I git - pulled the indentation works now. Must have been an intermediate 
problem.

One thing that is annoying me still:

Having

** headline
   - indent
text
^

and pressing TAB I end up with

** headline
   - indent
   text
   ^

but would like to have

** headline
   - indent
 text
 ^

Is this configurable?


Regards,

-- Rainer


___
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: struggling with simple indentation

2010-10-26 Thread Nicolas Goaziou
Hello,

 Rainer Stengele writes:

 One thing that is annoying me still:

 Having

 ** headline
- indent
 text
 ^

 and pressing TAB I end up with

 ** headline
- indent
text
^

 but would like to have

 ** headline
- indent
  text
  ^

 Is this configurable?

Yes. The less intrusive way of obtaining this is to use C-j instead of
RET after the indent line.

If you do not want lists to rely on indentation ever, you can set
`org-list-ending-method' to `regexp'. In this case, only blank lines
can end a list (see variable doc-string for more information), so
text will get back into the item after pressing TAB.

Regards,

-- Nicolas

___
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] capture initial level and refile of capture buffer

2010-10-26 Thread Carsten Dominik


On Oct 22, 2010, at 1:43 PM, Richard Riley wrote:



What determines the level of a new capture element? e.g I just created
one and it started at .


That is dependent on where your target is.  If the target is a level 3  
entry,

then the capture item will be level 4.



feature request : when I added some sub elements to a capture buffer  
e.g


* my new capture

** sub point

*** sub sub point 1
*** sub sub point 2

and hit C-c C-w to refile, it only refiled the sub element (where  
cursor

was) and then lost the rest. I would like to suggest that refile from
the capture buffer should refile the entire buffer and not only the
current nested org item. Or am I missing something in my setup?


You need to move the cursor back to the parent.  C-c C-w rund the
normal refiling command, which refiles the entry at point.

HTH

- 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] French abbreviations for the week days (`lun.', `mar.', `mer.', ...)

2010-10-26 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On Oct 25, 2010, at 7:30 PM, Matt Lundin wrote:
 Eric S Fraga ucec...@ucl.ac.uk writes:
 On Sun, 24 Oct 2010 17:11:34 +0200, Rainer Thiel wrote:

 * TODO Class 10:00am-12:00am
 %%(org-diary-class 10 18 2010 2 12 2011 3)

 What is wrong (if you can call it that) is that the actual argument list
 to the org-diary-class function depends on the settings of a couple of
 variables: calendar-date-style and/or european-calendar-style.

 I have been wondering for many years: What was Edward M. Reingold thinking
 when he made this horrible decision. I mean, local dependencies when parsing
 plain text dates - I guess there is no way around it. But in a function
 call? Sequence of arguments? What?

 As I have the former set to 'iso, in my case
 I need to specify dates in the Y M D order:

 * TODO Class 10:00am-12:00am
 %%(org-diary-class 2010 10 18 2011 2 12 3)

In the same arena, I've noticed -- since I am on a Windows computer with
French locales, that I now have Frenchized abbreviations for the dates, in the
timestamps and in the agenda.

For example:

--8---cut here---start-8---
   CLOCK: [2010-10-26 mar. 09:14]--[2010-10-26 mar. 10:15] =  1:01
--8---cut here---end---8---

where `mar.' represents `Tue' (mardi, Tuesday).

Though, I must admit that the use of French abbreviations for the *week days*
is not always done: at some point in time, Org reverts to using English week
days abbreviations. But I still don't understand when, what's the cut-off
reason for the change in behavior.

Can you help, please?

My params are:

--8---cut here---start-8---
In GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600)
 of 2009-10-14 on LENNART-69DE564 (patched)
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/g/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Org
--8---cut here---end---8---

and, for the sake of completeness, here is the value of two variables which
could be of interest:

#+begin_src emacs-lisp
(describe-variable 'calendar-date-style)
#+end_src

#+results:
#+begin_example
calendar-date-style is a variable defined in `calendar.el'.
Its value is iso

Documentation:
Your preferred style for writing dates.
The options are:
`american' - month/day/year
`european' - day/month/year
`iso'  - year/month/day
This affects how dates written in your diary are interpreted.
It also affects date display, as well as those calendar and diary
functions that take a date as an argument, e.g. `diary-date', by
changing the order in which the arguments are interpreted.

Setting this variable directly does not take effect (if the
calendar package is already loaded).  Rather, use either
M-x customize or the function `calendar-set-date-style'.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 23.1 of Emacs.
#+end_example

and:

#+begin_src emacs-lisp
(describe-variable 'european-calendar-style)
#+end_src

#+results:
#+begin_example
european-calendar-style is a variable defined in `calendar.el'.
Its value is nil

  This variable is obsolete since 23.1;
  use `calendar-date-style' instead.

Documentation:
Non-nil means use the European style of dates in the diary and display.
In this case, a date like 1/2/1990 would be interpreted as
February 1, 1990.  See `diary-european-date-forms' for the
default European diary date styles.

Setting this variable directly does not take effect (if the
calendar package is already loaded).  Rather, use either
M-x customize or the function `calendar-set-date-style'.

You can customize this variable.
#+end_example

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


[Orgmode] Re: struggling with simple indentation

2010-10-26 Thread Nicolas Goaziou
Hello,

 Rainer Stengele writes:

 One thing that is annoying me still:

 Having

 ** headline
- indent
 text
 ^

 and pressing TAB I end up with

 ** headline
- indent
text
^

 but would like to have

 ** headline
- indent
  text
  ^

 Is this configurable?

Yes. The less intrusive way of obtaining this is to use C-j instead of
RET after the indent line.

If you do not want lists to rely on indentation ever, you can set
`org-list-ending-method' to `regexp'. In this case, only blank lines
can end a list (see variable doc-string for more information), so
text will get back into the item after pressing TAB.

Regards,

-- Nicolas

___
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] TikZ to separate file (babel?) possible?

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy jw.he...@gmail.com wrote:
 
 [1  text/plain; ISO-8859-1 (7bit)]
 
 [2  text/html; ISO-8859-1 (quoted-printable)]
 On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte schulte.e...@gmail.com wrote:
 
 Hi John,

 In the case you describe I would export the *code* of the tikz latex
 block rather than the file resulting from evaluating the block.
 
 Code = raw LaTeX/TikZ code? If so, I don't really care about that. i just 
 want the graphic.

Yes but the point is that, if I understand the processes involved
correctly, the export and babel routes each generate different latex
code.  Babel does *not* look at the document wide settings whereas
export does.  This is why Eric is suggesting you export the babel code
so that it is interpreted by the latex document that results from
exporting the whole org document.  Otherwise, make sure the settings
you want are within the latex source code block?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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 and ido mode

2010-10-26 Thread Christopher Witte
I just downloaded ido-hacks.el and added the following lines to my .emacs
(require 'ido-hacks)
(ido-hacks-mode t)
but it still does use ido for attachments.

Chris

On 23 October 2010 22:45, Samuel Wales samolog...@gmail.com wrote:

 Look for ido-hacks.el.




-- 
Postdoctoral Research Fellow
Molecular Imaging Group
 Leibniz-Institut für Molekulare Pharmakologie (FMP)
Campus Berlin-Buch
Robert-Roessle-Str. 10
13125 Berlin, Germany
Phone: 00493094793-279
___
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: timestamp with repeater interval

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 13:30:29 -0400, Matt Lundin m...@imapmail.org wrote:
 
 Eric S Fraga ucec...@ucl.ac.uk writes:

[...]

 
 Thanks for this clarification Eric. I updated the FAQ accordingly. 

Thanks!  You beat me to it.  I was off-line most of yesterday
(examining a PhD student...) but had given myself a task for today to
update the FAQ.  Glad you got to it before I did :-)

Thanks again,
eric

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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: struggling with simple indentation

2010-10-26 Thread Rainer Stengele
Am 26.10.2010 11:06, schrieb Nicolas Goaziou:
 Hello,
 
 Rainer Stengele writes:
 
 One thing that is annoying me still:
 
 Having
 
 ** headline
- indent
 text
 ^
 
 and pressing TAB I end up with
 
 ** headline
- indent
text
^
 
 but would like to have
 
 ** headline
- indent
  text
  ^
 
 Is this configurable?
 
 Yes. The less intrusive way of obtaining this is to use C-j instead of
 RET after the indent line.
 
 If you do not want lists to rely on indentation ever, you can set
 `org-list-ending-method' to `regexp'. In this case, only blank lines
 can end a list (see variable doc-string for more information), so
 text will get back into the item after pressing TAB.
 
 Regards,
 
 -- Nicolas
 

Thanks! C-j is best. I still struggle with indentation:

Sometime I do save some an email body text under an org item.
Pasting the text under item leads to

* heading
  - item
E-Mail body text line1
E-Mail body text line2
...

Now I cannot use C-j of course. How do I easily get

* heading
  - item
E-Mail body text line1
E-Mail body text line2
...

TAB as explained does not what I want.
Do you have an idea? indent-region does also the wrong thing.

Regards,

-- Rainer

___
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: struggling with simple indentation

2010-10-26 Thread Nicolas Goaziou
Hello,
 Rainer Stengele writes:

 Sometime I do save some an email body text under an org item.
 Pasting the text under item leads to

 * heading
   - item 
 E-Mail body text line1
 E-Mail body text line2
 ...

 Now I cannot use C-j of course. How do I easily get

 * heading
   - item
 E-Mail body text line1
 E-Mail body text line2
 ...

There is no way for Org to guess what you have in mind here (and this
is why I don't like that much the indent method in
`org-list-ending-method').

In your situation, I would use C-x r o with an adequate rectangle
selection. After all, we are _also_ in Emacs.

Regards,

-- Nicolas

___
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: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-10-26 Thread Carsten Dominik

Hi Rainer, hi Bernt,

On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:


Am 21.07.2010 16:24, schrieb Carsten Dominik:


On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:


Hi all!

lately I use the marvelous clocktables a lot...

For toplevel clocktables which just sum up all I use :maxlevel 0

The manual reads

:maxlevelMaximum level depth to which times are listed in the  
table.


which I misunderstood.
I understood: an unlisted item does not mean that its time is not  
added!

But it looks like :maxlevel 0 does not add everything up.



I cannot reproduce this, :maxlevel 0 works for me.



Ok, maybe the manual is a bit misleading here.



How can I get a clocktable without any details which simply adds  
up everything in the scope?


BTW, the :stepskip0 parameter does not seem to be included in  
the manual.


It is in the manual.

- Carsten



Rainer






Carsten,

maybe I misunderstood.


1. Without maxlevbel I get I get

#+BEGIN: clocktable :scope (file1.org file2) :timestamp  
t :tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:07]

| File  | L | Timestamp   | Headline   |  
Time |||
|---+---+-+ 
+--++|
|   |   | Timestamp   | *Total time*   |  
*327:51* |||

...



with :maxlevel 0 I get


#+BEGIN: clocktable :maxlevel 0 :scope (file1.org  
file2) :timestamp t :tstart 2010-05-01 Sa 00:00 :tend   
2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:11]

| File | L | Timestamp | Headline | Time |
|--+---+---+--+--|
|  |   | Timestamp | *Total time* | *232:17* |
|--+---+---+--+--|
#+END:


I would like to get the same results!
Is :maxlevel 0 intended to not include the sublevel clocks?


I think I have finally fixed this bug.  Please verify.

Bernt, I made a change to clock tables which I think I understand.   
But can you please watch out for inconsistencies with the newest  
version?  Maybe run some tests with old and new version, to make sure  
clock tables deliver the same results?


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] Re: struggling with simple indentation

2010-10-26 Thread Carsten Dominik


On Oct 26, 2010, at 12:58 PM, Nicolas Goaziou wrote:


Hello,

Rainer Stengele writes:



Sometime I do save some an email body text under an org item.
Pasting the text under item leads to



* heading
 - item
E-Mail body text line1
E-Mail body text line2
...



Now I cannot use C-j of course. How do I easily get



* heading
 - item
   E-Mail body text line1
   E-Mail body text line2
   ...


There is no way for Org to guess what you have in mind here (and this
is why I don't like that much the indent method in
`org-list-ending-method').


I think it would be OK to modify the indentation code to
do the most useful thing in this case, which is indenting
to under the list.  Is is OK to put the burden for
terminating list by indentation on the user.  The reason why
I wanted this was mostly so that old files still publish
the same way.  I myself has switched to leave two empty
lines to terminate my lists and enjoy the consistent
indentation that results from this.

- Carsten



In your situation, I would use C-x r o with an adequate rectangle
selection. After all, we are _also_ in Emacs.

Regards,

-- Nicolas

___
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] Re: struggling with simple indentation

2010-10-26 Thread Nicolas Goaziou
 Carsten Dominik writes:

 I think it would be OK to modify the indentation code to do the most
 useful thing in this case, which is indenting to under the list.  Is
 is OK to put the burden for terminating list by indentation on the
 user.  

I fear that by doing this modification, we're letting in again a
dreadful bug. Let me explain it.

This is not the most useful thing in this case, but the most
conservative one. This is needed when you want to correct indentation
of a region (or the whole buffer). If we turn the behavior the other
way, indenting the buffer will ruin parts of it, like before, as any
text beyond a list would go inside its last item, regardless of text
position.

And this is worse than having to cope with some rectangle selection,
because it would modify parts of buffer outside user's view. With the
current behavior, what's in stays in, and what's out stays out.

Another idea would be to slightly modify `org-paste-special' and
`org-yank' so anything yanked inside a list is automatically put
inside the item at point. The exact behavior of this has yet to be
defined, though.

Regards,

-- Nicolas

___
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: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-10-26 Thread Rainer Stengele
Am 26.10.2010 13:30, schrieb Carsten Dominik:
 Hi Rainer, hi Bernt,

 On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:

 Am 21.07.2010 16:24, schrieb Carsten Dominik:

 On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:

 Hi all!

 lately I use the marvelous clocktables a lot...

 For toplevel clocktables which just sum up all I use :maxlevel 0

 The manual reads

 :maxlevelMaximum level depth to which times are listed in the table.

 which I misunderstood.
 I understood: an unlisted item does not mean that its time is not added!
 But it looks like :maxlevel 0 does not add everything up.


 I cannot reproduce this, :maxlevel 0 works for me.


 Ok, maybe the manual is a bit misleading here.



 How can I get a clocktable without any details which simply adds up 
 everything in the scope?

 BTW, the :stepskip0 parameter does not seem to be included in the manual.

 It is in the manual.

 - Carsten


 Rainer





 Carsten,

 maybe I misunderstood.


 1. Without maxlevbel I get I get

 #+BEGIN: clocktable :scope (file1.org file2) :timestamp t :tstart 
 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55
 Clock summary at [2010-07-22 Do 09:07]

 | File  | L | Timestamp   | Headline   | Time |  
   ||
 |---+---+-++--++|
 |   |   | Timestamp   | *Total time*   | *327:51* |  
   ||
 ...



 with :maxlevel 0 I get


 #+BEGIN: clocktable :maxlevel 0 :scope (file1.org file2) :timestamp t 
 :tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55
 Clock summary at [2010-07-22 Do 09:11]

 | File | L | Timestamp | Headline | Time |
 |--+---+---+--+--|
 |  |   | Timestamp | *Total time* | *232:17* |
 |--+---+---+--+--|
 #+END:


 I would like to get the same results!
 Is :maxlevel 0 intended to not include the sublevel clocks?

 I think I have finally fixed this bug.  Please verify.

 Bernt, I made a change to clock tables which I think I understand.  But can 
 you please watch out for inconsistencies with the newest version?  Maybe run 
 some tests with old and new version, to make sure clock tables deliver the 
 same results?

 Thanks!

 - Carsten

Hi Carsten,

I checked and found:

- clocktable sums are resulting in identical values, independant of the 
:maxlevel level
- without :maxlevel parameter some tables now give slightly different results 
than in the past, some give identical results
  * I hope the new results are correct, but I did not have time to check in 
detail

Looks good, I will test further.

Thanks and thanks!

-- Rainer



___
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: [org-babel] Using the power of ESS inside an R source code block

2010-10-26 Thread Dan Davison
Eric Schulte schulte.e...@gmail.com writes:

 Hi Bernd,

 It seems that you have already found the best solution in the indirect
 edit buffers (by calling C-c ' from inside of a code block).  I would
 only add that in the email you mentioned below, I was specifically
 talking about syntax highlighting of R code in Org-mode buffers, which
 at the time I believed was not possible.  It would seem I was wrong, as
 such syntax highlighting is now implemented in recent versions of
 Org-mode through setting the `org-src-fontify-natively' variable.

 Hope you enjoy using Org-mode with Ess.

 Best -- Eric

 Bernd Weiss bernd.we...@uni-koeln.de writes:

 Am 24.10.2010 05:44, schrieb Bernd Weiss:

Hi Bernd,

 Dear all,

 Yesterday, I spent some time (re-)discovering the power of org-babel
 and R. Everything works well but there is one issue that I find
 somewhat annoying (I apologise if this word is too rude).

Not at all. Good to know what drawbacks users are encountering. I'm
happy to report that all three of the things you mention are now
possible in the Org buffer. You will need to be using a recent version
of Org-mode (i.e. from within the last few weeks).

 As a
 long-time ESS user I wish that I could use things like ESS syntax
 highlighting,

This, as Eric mentioned, is turned on with
`org-src-fontify-natively'. However from your config below it seems you
have set this variable. So that requires some explanation -- please let
us know if syntax highlighting in the Org buffer is working for you or
not.

 indentation 

Setting `org-src-tab-acts-natively' causes TAB to have the indenting
effect that you would get in an ESS buffer.[2]

Beyond these two variables, there is a general method that addresses the
issues you are raising. It involves using the function
`org-babel-do-key-sequence-in-edit-buffer'. For example, here is how to
make C-M-\ perform language-specific indentation on the active region in
the source block:

  (defun dan/org-indent-region ()
(interactive)
(or (org-babel-do-key-sequence-in-edit-buffer \C-\M-\\)
(indent-region)))

   (define-key org-mode-map \C-\M-\\ 'dan/org-indent-region)


 or some keybindings (e.g. for -) inside
 an R source code block.

This one can be done with

  (defun dan/org-underscore-command ()
(interactive)
(or (org-babel-do-key-sequence-in-edit-buffer _)
(org-self-insert-command 1)))

   (define-key org-mode-map _ 'dan/org-underscore-command)

And another one that you may like is for commenting code:

  (defun dan/org-comment-dwim (optional arg)
(interactive P)
(or (org-babel-do-key-sequence-in-edit-buffer \M-;)
(comment-dwim arg)))

   (define-key org-mode-map \M-; 'dan/org-comment-dwim)


I hope the above supplies the missing functionality.

Dan

 However, with respect to an e-mail from Eric
 Schulte

 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22301.html

 (or this one:
 https://stat.ethz.ch/pipermail/ess-help/2009-September/005544.html )

 this seems to be a feature wich is hard to realise inside org-babel.
 Is this (still) correct? Or is it a problem with my
 installation/initialisation of org-mode/org-babel?[1]


 Ok, one workaround are indirect buffers, right? This blog post is
 really helpful (see A note about syntax highlighting in Emacs)

 http://blogisticreflections.wordpress.com/2010/05/23/introduction-to-using-r-with-org-babel-part-1/

 Bernd

 ___
 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

___
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] TikZ to separate file (babel?) possible?

2010-10-26 Thread John Hendy
On Tue, Oct 26, 2010 at 3:17 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:

 On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy jw.he...@gmail.com wrote:
 
  [1  text/plain; ISO-8859-1 (7bit)]
 
  [2  text/html; ISO-8859-1 (quoted-printable)]
  On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi John,
 
  In the case you describe I would export the *code* of the tikz latex
  block rather than the file resulting from evaluating the block.
 
  Code = raw LaTeX/TikZ code? If so, I don't really care about that. i just
 want the graphic.

 Yes but the point is that, if I understand the processes involved
 correctly, the export and babel routes each generate different latex
 code.  Babel does *not* look at the document wide settings whereas
 export does.  This is why Eric is suggesting you export the babel code
 so that it is interpreted by the latex document that results from
 exporting the whole org document.  Otherwise, make sure the settings
 you want are within the latex source code block?


That makes more sense, though if I export the code into the larger LaTeX
document, I'm left where I started, I believe. An 8.5x11 exported PDF with
my diagram in the middle of it.

If it's just getting the right code into the babel block, that's helpful to
know. Perhaps the easiest way to put it is this: what is the best path to
obtain the following:

- a single pdf output of my TikZ diagram, cropped to fit the diagram
- the font used in the TikZ diagram that I desire (preferably from the doc)

Again, my use-case is one in which I have daily notes or a paper with a
diagram but also would like to preserve the diagram for reuse. With babel,
it appears this should be possible -- I can both export normally and have
the graphic in the paper or send the TikZ section alone to export and use
the graphic in a presentation or elsewhere.

I wondered about what you said re. putting the settings in the latex source
code block, and I was actually fiddling around with that yesterday. My font
is simply set like so (present in the examples I posted earlier):

#+latex_header: \usepackage{lmodern}
#+latex_header: \renewcommand{\rmdefault}{cmss}

But I tried putting variations of this in the babel block (without the
#+latex_header part, of course) with no success.

These didn't work for me:

#+begin_src latex :file flow-chart.pdf :packages '(( tikz)) :border 1em
\usepackage{lmodern}
\renewcommand{\rmdefault}{cmss}

or

#+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
:border 1em
\renewcommand{\rmdefault}{cmss}

or

#+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
:border 1em
\renewcommand{\rmdefault}{cmss}

I haven't found anything at ob-doc-latex covering how to pass package
arguments or include LaTeX settings directly in the babel block. My attempts
at the renewcommand end up with cmss ending up in my TIkZ graphic
somewhere...


Thanks for persisting with me!
John





 --
 Eric S Fraga
 GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D


___
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: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-10-26 Thread Carsten Dominik


On Oct 26, 2010, at 3:53 PM, Rainer Stengele wrote:


Am 26.10.2010 13:30, schrieb Carsten Dominik:

Hi Rainer, hi Bernt,

On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:


Am 21.07.2010 16:24, schrieb Carsten Dominik:


On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:


Hi all!

lately I use the marvelous clocktables a lot...

For toplevel clocktables which just sum up all I use  
:maxlevel 0


The manual reads

:maxlevelMaximum level depth to which times are listed in  
the table.


which I misunderstood.
I understood: an unlisted item does not mean that its time is  
not added!

But it looks like :maxlevel 0 does not add everything up.



I cannot reproduce this, :maxlevel 0 works for me.



Ok, maybe the manual is a bit misleading here.



How can I get a clocktable without any details which simply adds  
up everything in the scope?


BTW, the :stepskip0 parameter does not seem to be included in  
the manual.


It is in the manual.

- Carsten



Rainer






Carsten,

maybe I misunderstood.


1. Without maxlevbel I get I get

#+BEGIN: clocktable :scope (file1.org file2) :timestamp  
t :tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:07]

| File  | L | Timestamp   | Headline
| Time |||
|---+---+-+ 
+--++|
|   |   | Timestamp   | *Total time*   |  
*327:51* |||

...



with :maxlevel 0 I get


#+BEGIN: clocktable :maxlevel 0 :scope (file1.org  
file2) :timestamp t :tstart 2010-05-01 Sa 00:00 :tend   
2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:11]

| File | L | Timestamp | Headline | Time |
|--+---+---+--+--|
|  |   | Timestamp | *Total time* | *232:17* |
|--+---+---+--+--|
#+END:


I would like to get the same results!
Is :maxlevel 0 intended to not include the sublevel clocks?


I think I have finally fixed this bug.  Please verify.

Bernt, I made a change to clock tables which I think I understand.   
But can you please watch out for inconsistencies with the newest  
version?  Maybe run some tests with old and new version, to make  
sure clock tables deliver the same results?


Thanks!

- Carsten


Hi Carsten,

I checked and found:

- clocktable sums are resulting in identical values, independant of  
the :maxlevel level
- without :maxlevel parameter some tables now give slightly  
different results than in the past, some give identical results



This is *very* bad.

Please try to make me an example where it was different.

- Carsten

 * I hope the new results are correct, but I did not have time to  
check in detail


Looks good, I will test further.

Thanks and thanks!

-- Rainer




- 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] Re: struggling with simple indentation (possible bug)

2010-10-26 Thread Anthony Lander

Hi Nicolas,

With regards to the discussion below, if I 'set org-list-ending-method  
to 'regex, it seems to get confused if there is a drawer between the  
headline and the first line of text, so pressing TAB with the cursor  
at the vertical bar in this example:


8---
** Headline
:PROPERTIES:
:FOO: Bar
:END:
|
8---

Does not indent to the position under the H in the headline. The TAB  
key silently does nothing. Same effect with the properties drawer  
folded. Is it possible to indent correctly, ignoring the drawer?


Thanks,

  -Anthony

On 10-Oct-26, at 6:58 AM, Nicolas Goaziou wrote:


Hello,

Rainer Stengele writes:



Sometime I do save some an email body text under an org item.
Pasting the text under item leads to



* heading
 - item
E-Mail body text line1
E-Mail body text line2
...



Now I cannot use C-j of course. How do I easily get



* heading
 - item
   E-Mail body text line1
   E-Mail body text line2
   ...


There is no way for Org to guess what you have in mind here (and this
is why I don't like that much the indent method in
`org-list-ending-method').

In your situation, I would use C-x r o with an adequate rectangle
selection. After all, we are _also_ in Emacs.

Regards,

-- Nicolas

___
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


[Orgmode] How to match items with tags and special todo keyword

2010-10-26 Thread bar tomas
Hi,
I like to create an agenda view of all items that have a specific tag
and also a specific TODO keyword.
I've tried with

C-c a M

but this retrieves all TODO items that are not DONE but I would like
to match only a specific TODO keyword (I've defined my own TODO
categories with +SEQ_TODO)

Many thanks for any help

Tomas Bar

___
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] %20 in file://... URL

2010-10-26 Thread Giovanni Ridolfi
Vincent Belaïche vincent@hotmail.fr writes:

 My Org mode version is not able to interprete any `%20' or suchlike
 escape codes in file://... URL

Which Org mode version are you using?
 
M-x org-version RET
 
And can you give an example of a link that does not work as expected?
 

 [[file://localhost/c%3A/msys/1.0/temp/foo.html][link]]

 the file exists on my PC as 

 c:\msys\1.0\temp\foo.html

 I am under MSWindows XP.
 M-x org-version
 = Org-mode version 7.01

Emacs version?
Here:
Org-mode version 7.01trans commit-4cd56cfa7b93902544acb32848e36ee4004239a3
GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1
Windows XP 

I can confirm the error. 

[[file://localhost/c:/Documents and 
Settings/A/Documenti/z-emacs/a.org][link-localh-:]]   works

[[file://c:/Documents and Settings/A/Documenti/z-emacs/a.org][link-c:]]  
works, faster

[[file://localhost/c%3/Documents and 
Settings/A/Documenti/z-emacs/a.org][link-localh% ]] does 

not work the way expected: it opens a a.org buffer, but  the  path is
wrong:  if you try to save the a.org buffer  C-x w the directory 
proposed is:

.../A/Documenti/z-emacs/

*But*, Vincent, why do you use %3A when the colon : works? ?-/

cheers,

Giovanni

___
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] no line break after subheading?

2010-10-26 Thread Matt Price
Hi eveyrone,

I'm coming up on this with some frequency now -- I often need to write
documents in a pretty compact format, in which subheadings really need to be
on the same line as their component text.  so for instance here:

** Timeline
*** September 2011
Research team assembles initial documents

should be rendered (written in html for convenience, since i don't speak
latex):

H2 Timeline /H2
pbSemtember 2011:/b Research team assembles initial documents/p

Do folks think this is something I can do from org somehow, or is my best
bet to export to odt and redo the formatting in openoffice (that's what i do
now but of course it's a bit frustrating to have to do so, esp. since it
means that i'm stuck in Openoffice once I send a document out for
comments).

thanks as always, best,
Matt
___
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: Aligning Columns in HTML Export Tables

2010-10-26 Thread Baoqiu Cui
Carsten Dominik carsten.domi...@gmail.com writes:

 On Oct 25, 2010, at 11:52 PM, Baoqiu Cui wrote:

 Sebastian Rose sebastian_r...@gmx.de writes:

 Carsten Dominik carsten.domi...@gmail.com writes:
 OK, I will use class.  I could make a special case for the docbook
 exporter..

 +1

 +1 for making a special case for the docbook exporter. :-) (DocBook
 documents can be rendered in different formats, some of which (like
 PDF)
 may know nothing about CSS.)

 BTW: Org mode's exports to XHTML, not HTML 4.01 or HTML 5 (which is a
 proposal, not a standard or recommendation yet).  Still,
 'td align=right' is valid XHTML, too.

 Maybe we should add a parameter to function org-format-org-table-
 html to
 indicate whether we want to format pure standard XHTML tables that do
 not use class or CSS related stuff.

 This is exactly how I have done it now.

Thanks for the quick change, Carsten!  I just tested the latest code and
everything looks good.

-- 
Baoqiu

___
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] fr: capture to kill buffer if requested

2010-10-26 Thread Carsten Dominik


On Oct 23, 2010, at 4:37 AM, Samuel Wales wrote:


Here is an idea for a minor feature in capture.

Sometimes you don't want the buffer to stay around, but you
want to capture to it.  Perhaps the plist notation could
include the possibility of killing the buffer after
capturing to it?  I didn't find a hook, but maybe this is
useful enough for the plist notation.


Sure, please use the property :kill-buffer

THe buffer will only be killed if it was created to do the capture.
If a buffer was already visiting this file before capture was initiated,
then it will not be removed.

This has a nice property:  If you capture A to file foo, and in the  
middle
of doing so you decide to also capture (using the same template) B to  
foo,

then the buffer visiting foo will remain after B capture, but it will be
removed after A capture is finalized.

Greetings

- 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] Re: clocktable: maximum level 0 does not only avoid listing items but also does not calculate items

2010-10-26 Thread Carsten Dominik


On Oct 26, 2010, at 3:53 PM, Rainer Stengele wrote:


Am 26.10.2010 13:30, schrieb Carsten Dominik:

Hi Rainer, hi Bernt,

On Jul 22, 2010, at 9:16 AM, Rainer Stengele wrote:


Am 21.07.2010 16:24, schrieb Carsten Dominik:


On Jul 13, 2010, at 11:21 AM, Rainer Stengele wrote:


Hi all!

lately I use the marvelous clocktables a lot...

For toplevel clocktables which just sum up all I use  
:maxlevel 0


The manual reads

:maxlevelMaximum level depth to which times are listed in  
the table.


which I misunderstood.
I understood: an unlisted item does not mean that its time is  
not added!

But it looks like :maxlevel 0 does not add everything up.



I cannot reproduce this, :maxlevel 0 works for me.



Ok, maybe the manual is a bit misleading here.



How can I get a clocktable without any details which simply adds  
up everything in the scope?


BTW, the :stepskip0 parameter does not seem to be included in  
the manual.


It is in the manual.

- Carsten



Rainer






Carsten,

maybe I misunderstood.


1. Without maxlevbel I get I get

#+BEGIN: clocktable :scope (file1.org file2) :timestamp  
t :tstart 2010-05-01 Sa 00:00 :tend  2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:07]

| File  | L | Timestamp   | Headline
| Time |||
|---+---+-+ 
+--++|
|   |   | Timestamp   | *Total time*   |  
*327:51* |||

...



with :maxlevel 0 I get


#+BEGIN: clocktable :maxlevel 0 :scope (file1.org  
file2) :timestamp t :tstart 2010-05-01 Sa 00:00 :tend   
2010-07-31 Sa 23:55

Clock summary at [2010-07-22 Do 09:11]

| File | L | Timestamp | Headline | Time |
|--+---+---+--+--|
|  |   | Timestamp | *Total time* | *232:17* |
|--+---+---+--+--|
#+END:


I would like to get the same results!
Is :maxlevel 0 intended to not include the sublevel clocks?


I think I have finally fixed this bug.  Please verify.

Bernt, I made a change to clock tables which I think I understand.   
But can you please watch out for inconsistencies with the newest  
version?  Maybe run some tests with old and new version, to make  
sure clock tables deliver the same results?


Thanks!

- Carsten


Hi Carsten,

I checked and found:

- clocktable sums are resulting in identical values, independant of  
the :maxlevel level
- without :maxlevel parameter some tables now give slightly  
different results than in the past, some give identical results
 * I hope the new results are correct, but I did not have time to  
check in detail


Looks good, I will test further.


no, this did not look good.

I think I have found a bug, please pull again...

- 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] no line break after subheading?

2010-10-26 Thread Sebastian Rose
Matt Price mopto...@gmail.com writes:
 Hi eveyrone,

 I'm coming up on this with some frequency now -- I often need to write
 documents in a pretty compact format, in which subheadings really need to be
 on the same line as their component text.  so for instance here:

 ** Timeline
 *** September 2011
 Research team assembles initial documents

 should be rendered (written in html for convenience, since i don't speak
 latex):

 H2 Timeline /H2
 pbSemtember 2011:/b Research team assembles initial documents/p

 Do folks think this is something I can do from org somehow, or is my best
 bet to export to odt and redo the formatting in openoffice (that's what i do
 now but of course it's a bit frustrating to have to do so, esp. since it
 means that i'm stuck in Openoffice once I send a document out for
 comments).


Hi Matt,


looks like a case for the generic exporter to me.

See `org-generic-alist' in the file contrib/lisp/org-export-generic.el
for an example.


Sebastian

___
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] no line break after subheading?

2010-10-26 Thread Thomas S. Dye

Hi Matt,

In LaTeX with the standard article class, I believe that \paragraph{}  
and \subparagraph{} are the sections that set the heading on the same  
line as the text.  How you get that in the LaTeX output depends on how  
you've set org-export-latex-classes.


All the best,
Tom

On Oct 26, 2010, at 5:52 AM, Matt Price wrote:


Hi eveyrone,

I'm coming up on this with some frequency now -- I often need to  
write documents in a pretty compact format, in which subheadings  
really need to be on the same line as their component text.  so for  
instance here:


** Timeline
*** September 2011
Research team assembles initial documents

should be rendered (written in html for convenience, since i don't  
speak latex):


H2 Timeline /H2
pbSemtember 2011:/b Research team assembles initial documents/ 
p


Do folks think this is something I can do from org somehow, or is my  
best bet to export to odt and redo the formatting in openoffice  
(that's what i do now but of course it's a bit frustrating to have  
to do so, esp. since it means that i'm stuck in Openoffice once I  
send a document out for comments).


thanks as always, best,
Matt
___
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


[Orgmode] General question on dealing with Latex to word conversion

2010-10-26 Thread Marvin Doyley
Org mode is now a part of my daily work-flow, not only do I use it for
teaching, scheduling my time, but I also use it to store my research notes.
The only snag is several of my collaborators is tied to microsoft word, and
thus my only work around is to  export my notes and draft from Org to plain
text and then reformat everything in word, which real time sync., especially
when I have to retype equations in Mathtype.  I know there are bunch of
commercial software that claim to be able to convert latex files to word,
but most are far from perfect. Is there a more efficient way of tacking
this  problem ?  Is there is any plans of developing a org-export-rtf or
org-export-docx  function ?


cheers
M
___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Graham Smith
Marvin,

Although, not exactly answering your question, I have just started using

https://docq.com/

and

http://a.nnotate.com/

You can compile as PDF from OrgMode and upload to either of these
sites. Send a web link to the reviewer, who can then annotate and
comment on your document.

You still have to then manually add the comments back into OrgMode,
but at least the reviewer sees the document as it is meant to look.

Both are commercial sites, but have free options for low levels of use.

Graham

___
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: Adding tags, grouping tags

2010-10-26 Thread Karl Maihofer

Carsten wrote:

2. A complex new structure that would somehow utilize properties to
   crease a tag-like parallel structure that can be used in searches.


I think it is a interesting idea to use properties for an extended  
use of tags.


My first attempt to implement my use of tags to organize my documents  
in orgmode:


* Title of the memo:ATTACH:
 :PROPERTIES:
 :Attachments: Memo.pdf
 :ID:   e77dc30e-53c4-4dde-b451-e2g8aa8964c
 :Topic_ALL: Topic1 Topic2 Topic3
 :Client_ALL: Client1 Client2 Client3
 :Topic:
 :Client:
 :END:

I use an org-capture template that gives me the structure above to  
save new entries to my orgmode-based collection of documents. In the  
example above the name of the property item is something like a tag  
group. This enables me to insert tags easily (I can use C-c C-x p Cl  
TAB RET and then scroll through the possible values defined by *_ALL  
using the arrow keys). But since the client-entry can only have one  
value, the memo can concern different topics... but the property  
Topic can only have one value, of course.


I think it would not be nice to use topic_one, topic_two and  
topic_three as properties to be prepared for these cases where an  
entry can have more than one value.


Any ideas on how to realize multible tags (being in the same group)  
per entry using the properties function?





___
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] Updating using snapshot org-install missing

2010-10-26 Thread Gez
I just updated my org mode for the first time, using a snapshot, and I had 
an issue with org-install.  Although I think it's resolved I'm documenting 
it here in case 

a) I've done something incorrect which needs pointing out to me
b) it helps others with the same problem
c) it is useful for documentation etc


Here's what I did:

I read this thread http://thread.gmane.org/gmane.emacs.orgmode/32427/ to find 
out how to get a snapshot
(I had previously downloaded what I thought was the latest version from 
http://orgmode.org/org-latest.zip but it's out of date at the moment)
I downloaded the tar.gz from http://repo.or.cz/w/org-mode.git/snapshot and 
unpacked it
I renamed my org-mode directory to org-mode-backup and copied the downloaded 
org-mode directory into its place
I started emacs and saw an error message about org-install (I'm not relaying 
the message here since I think it's resolved now)
I opened an org file and saw that at least some of my customisations were not 
active (faces), then I closed emacs
I looked in the org-mode directory for org-install.el and saw that it was 
missing
I searched the email list archives and read this thread 
http://thread.gmane.org/gmane.emacs.orgmode/11416
I copied over the org-install.el file from my org-mode-backup directory into 
the new org-mode directory and restarted emacs
Result: org mode updated, no errors

Hope this helps!

Gez
(Windows XP, GNU Emacs 23.2.1, Org-mode version 7.01trans) 
___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Marvin Doyley
Graham,

This looks very interesting, and would definitely save time - no more
reading into word and reformatting.
How much does docq cost ?

cheers
M

On Tue, Oct 26, 2010 at 1:13 PM, Graham Smith myotis...@gmail.com wrote:

 Marvin,

 Although, not exactly answering your question, I have just started using

 https://docq.com/

 and

 http://a.nnotate.com/

 You can compile as PDF from OrgMode and upload to either of these
 sites. Send a web link to the reviewer, who can then annotate and
 comment on your document.

 You still have to then manually add the comments back into OrgMode,
 but at least the reviewer sees the document as it is meant to look.

 Both are commercial sites, but have free options for low levels of use.

 Graham

 ___
 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] Possible Calc support for Org-Babel?

2010-10-26 Thread Eric Schulte
Hi Matthew,

Matthew Oesting oesti...@me.com writes:

 A few of us at my institution have started using CALC in our documents
 (not embedded, which is far too clumsy for most of us, but C-x * u and
 simple embedded phrases, often to the tune of several pages) to use
 Emacs text files rather like Maple and Mathematica files.  We're
 starting to use GIT and OrgMode together to format the work and save
 versions and forks; while there are many CAS packages that can be used
 to write out memos and reports, the power of Elisp/Emacs was simply
 too good to pass up.

 It appears that Calc syntax can be used to assign formulas to
 spreadsheets, but the result is difficult to read, and unsuitable for
 a sequence of several dozen lines.  Similarly, using embedded
 Ruby-symbolic code in the text produces excellent results, but we lose
 the ability to take advantage of Calc, which is significantly stronger
 for our purposes.  Other symbolic packages require more time to learn
 and are difficult to implement across all of our various platforms,
 whereas Calc is a universal and extremely flexible tool for this work.

 My questions are these:
   * Has there been implemented, or would it be at all difficult to
   implement, a 'calc' language functionality for Org-Babel allowing
   the following manner of text:


A Calc language has not yet been implemented, however (although I'd have
to look at Calc's support for running series of commands) I do not think
it would be difficult to implement such functionality.  In fact I think
this is a very good idea.

If you're feeling brave, it may make sense to look at a couple of the
shorter examples of languages supported by Babel (e.g. ob-dot.el) and
try to adapt their functions for working with Calc as you describe below
(see below for more information on implementing a calc interface).


 #+begin_src calc :results output 
 Fish = 2
 Dog = 2 * Fish
 
 sqrt( Dog ) =
 sqrt( 4 ) =
 #+end_src
 
 #+results:
 : sqrt( Dog ) = 2
 : sqrt( 4 ) = 2

 The goal of this exercise would simply be to cut out the text from the
 code block, feed it to a buffer, run the Emacs Calc mode on it, and
 then output the appropriate results where = occurs.


Although I'm not familiar with using Calc as anything more than a 1-off
calculator in the bottom of the frame (i.e. M-x calc) this sounds like a
good approach to using calc to execute code blocks.


  * Has there been implemented, or would it be at all difficult to
  implement, a 'running tag' approach to the Calc mode, essentially a
  #+CALC directive allowing the following manner of text, preferably
  with auto-update:

 This is a discussion.

 #+CALC: Fish = 2

 Fish deserves significant commentary; however, we expect that there
 is some command that would allow us to update the entire buffer's
 #+CALC sequence.  Thus:
 
 #+CALC: Dog = 2 * Fish
 #+CALC: sqrt( Dog ) =
 #+results:
 : sqrt( Dog ) = 2

 If you need a different result, tweak the 'Fish =' line, above, and
 request a re-sequencing, either via C-c C-c or via some M-x command,
 resulting in behavior functionally similar to C-x * u.


I believe this may be much more easily implemented using the session
features of Org-mode code blocks, possibly in combination with the
inline code block syntax.  Please see [1] for much more information on
working with code blocks in Org-mode.


 The goal of this exercise would be, upon updating, to strip all lines
 beginning with #+CALC and feed them to a buffer, inserting the results
 of = statements where the respective line occurs.  The benefit of
 this method over the previous is that it allows for assignments (:=)
 enduring across entire files (though the same could be accomplished if
 one SRC_BEGIN block could somehow call another.)


It is currently possible for one source block to call another, see the
chapter of the manual linked above for details.


 In conclusion, it seems to me that I cannot possibly be the first
 person to have done research in OrgMode, and that these problems were
 likely solved long ago.  When searching the manual, however, I find
 nothing that produces a distinctly clear and encapsulated Calc embed
 in OrgMode.

You are certainly not the first to use Org-mode as a research platform,
however you may be the first calc power-user to attempt to combine calc
with Org-mode.

 Do these exist, and if not, would it require mere hours of time to
 implement them, or weeks?  Is there a tutorial on writing OrgMode
 extensions?


Using the Babel code block support I would anticipate that this would
take more on the order of hours rather than weeks (assuming some elisp
fluency).  See the existing template file for adding support for a new
language to Org-mode.

http://repo.or.cz/w/Worg.git/blob/HEAD:/org-contrib/babel/ob-template.el

This process should be significantly simplified by the fact that Calc is
an Emacs command (rather than an external utility).

I would be happy to help you in implementing an ob-calc.el file, and if
I find time I 

[Orgmode] Request - capture included in customize browser

2010-10-26 Thread Gez
I've had my main system in org mode for a couple of weeks now and I'm getting 
on really well - it's an amazing tool.  I'm very grateful for it. And for the 
support here too.

I want to set up org-capture but cannot find it using M-x customize-apropos.  
I'm guessing that the customize browser is a kind of interface that has to be 
written and hasn't yet been written for org-capture.  I'll get on with making 
my settings by hand, as it were, in the meantime, but this is a request please, 
for a customize interface for org-capture.  

I've been doing all my configuring with the customize browser recently (after 
some early false starts copying, pasting and editing settings directly into my 
.emacs file).  I'm avoiding errors and I also find it better documented than 
the manual and really useful to see the context (the customize group).  

Gez
(Windows XP, GNU Emacs 23.2.1, Org-mode version 7.01trans) 
___
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: General question on dealing with Latex to word conversion

2010-10-26 Thread Jambunathan K

Hello Marvin

 Org mode is now a part of my daily work-flow, not only do I use it for
 teaching, scheduling my time, but I also use it to store my research notes.
 The only snag is several of my collaborators is tied to microsoft word, and
 thus my only work around is to  export my notes and draft from Org to plain
 text and then reformat everything in word, which real time sync., especially
 when I have to retype equations in Mathtype.  

I am currently working on a converter that converts directly from
Orgmode to OpenDocumentText (.odt). It is likely to take another 1-2
months before I get a preview version out.

Please watch out for announcement in this list.

Looks like you are particularly interested in reproducing Math
equations. At this stage, it is not clear to me how I would support
equations. Since the converter is built from HTML exporter it would
handle the equations just the way HTML exporter handles equations.

For now, AFAICS, people either resort to

1. Orgmode-HTML-OpenOffice 
2. Orgmode-Docbook-Openoffice

Have you tried any of (1) and (2). What are your observations
particularly wrt equations?

 I know there are bunch of commercial software that claim to be able to
 convert latex files to word, but most are far from perfect. Is there a
 more efficient way of tacking this problem ?  Is there is any plans of
 developing a org-export-rtf or org-export-docx function ?

Jambunathan K.

___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Graham Smith
Marvin

 This looks very interesting, and would definitely save time - no more
 reading into word and reformatting.
 How much does docq cost ?

I'm using the free version of docq,  which has some limitations in
terms of number of uploads etc.  Paid versions are $7 and $13
depending on requirements https://docq.com/reg/pricing

If I end up going the paying route, I will go with annotate as it is
payg, and better suited to my occasional spurts of collaboration, with
long periods of not needing to use it. This seems better than a
monthly fee.

Pricing for annotate is at http://a.nnotate.com/hosted-pricing.html

Graham

___
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: 7.01 Xemacs 21.4.22: decompose-region is not known

2010-10-26 Thread Jambunathan K

Carsten



 For people who cannot use git, the
 snapshot release  files,
 corresponding to the latest git version,
 are provided a href=http://repo.or.cz/w/org-mode.git;in the git
 repository/a.  Choose which snapshot you want, presumably
 the first line in the shortlog section and click the
 tar.gz or zip link at the right end.

 Looks like the below URL (with no modification whatsoever) always
 downloads the current tip of the tree.

 - http://repo.or.cz/w/org-mode.git/snapshot

 This is cool!

 Can you please document this in an appropriate spot on Worg?


Do I have commit access?

 - 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] Multi-line headline

2010-10-26 Thread Eric S Fraga
On Mon, 25 Oct 2010 11:39:11 -0400, Bill Zingler billzing...@gmail.com wrote:
 
 Is it possible to have multi-line headlines?  If so, how do I set it up?

Not within an org file.  After all, how could org distinguish the
second and subsequent lines as being supplementary headline lines
versus normal text lines?  You could of course simply have multiple
headings in a row:

* this the first line of the headline
* followed by the second

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
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] fr: capture to kill buffer if requested

2010-10-26 Thread Samuel Wales
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] #+CATEGORY missing from main index of online documentation?

2010-10-26 Thread David Maus
At Fri, 15 Oct 2010 14:18:05 -0400,
Raymond Zeitler wrote:

 I just finished studying John Wiegley's excellent tutorial[1], and now I'm
 customizing his recommended setup.  After changing the list of default tags
 that follow the #+TAGS setting, I wondered about the other in-buffer
 settings that he used.

 So I decided to check out the online documentation's Main Index[2] and
 noticed the absence of #+CATEGORY between #+BIND and #+CAPTION.

 However, when I also went to check out #+STARTUP, I noticed #+CATEGORY
 described in Section 15.5 (Summary of in-buffer settings).

 If someone has time, can #+CATEGORY be added to the Main Index, please?
 Also, I wonder at what point will the documentation be updated to 7.01h?

Thanks for the report, it's fixed now in the Git repository.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpmpD5vl9e45.pgp
Description: PGP signature
___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Russell Adams
On Tue, Oct 26, 2010 at 12:49:28PM -0400, Marvin Doyley wrote:
 Org mode is now a part of my daily work-flow, not only do I use it for
 teaching, scheduling my time, but I also use it to store my research notes.
 The only snag is several of my collaborators is tied to microsoft word, and
 thus my only work around is to  export my notes and draft from Org to plain
 text and then reformat everything in word, which real time sync., especially
 when I have to retype equations in Mathtype.  I know there are bunch of
 commercial software that claim to be able to convert latex files to word,
 but most are far from perfect. Is there a more efficient way of tacking
 this  problem ?  Is there is any plans of developing a org-export-rtf or
 org-export-docx  function ?

Are you using Latex due to the equation support?

I have better luck importing HTML exports into Word, perhaps you can
look into Latex snippet support for just the math and leave the rest
in HTML.

Good luck!


--
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] Multi-line headline

2010-10-26 Thread B Smith-Mannschott
On Mon, Oct 25, 2010 at 17:39, Bill Zingler billzing...@gmail.com wrote:
 All,
 Is it possible to have multi-line headlines?  If so, how do I set it up?

Not as such, no, but you could use visual-line-mode to wrap the overly
long line on screen. (I think this was added with emacs 23.1.)

// Ben

___
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 can I just publish entry marked as DONE?

2010-10-26 Thread David Maus
At Fri, 08 Oct 2010 16:35:06 +0800,
Water Lin wrote:


 I am using org project to build my web page. I have written a lot of
 stuff but while I am publishing the org files, I just want to publish
 the part which are marked as DONE( the keyword ).

 Is it possbile?

Yes, for example with this function that is added to
org-export-process-hook:

(defun dmj:org-remove-subtrees-in-export ()
  Remove subtrees during export.
  (org-map-entries (lambda ()
 (let ((beg (point))
   (end (org-end-of-subtree t)))
   (kill-region beg end))) /-DONE))

(add-hook 'org-export-preprocess-hook 'dmj:org-remove-subtrees-in-export)

This function will remove all items that are not marked done
(/-DONE, see Manual about TAGS/PROP/TODO queries) before the
exported file is created.

Of course adding this function to the hook enables it for /all/
exports, what may not be what you've wanted.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgpSPmt7bUees.pgp
Description: PGP signature
___
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: General question on dealing with Latex to word conversion

2010-10-26 Thread Marvin Doyley
Hi Jambunathan,

This would be wonderful, I will keep a watch for the announcement.

Rewriting the equations shouldn't be a major problem

Best
M

On Tue, Oct 26, 2010 at 2:42 PM, Jambunathan K kjambunat...@gmail.comwrote:


 Hello Marvin

  Org mode is now a part of my daily work-flow, not only do I use it for
  teaching, scheduling my time, but I also use it to store my research
 notes.
  The only snag is several of my collaborators is tied to microsoft word,
 and
  thus my only work around is to  export my notes and draft from Org to
 plain
  text and then reformat everything in word, which real time sync.,
 especially
  when I have to retype equations in Mathtype.

 I am currently working on a converter that converts directly from
 Orgmode to OpenDocumentText (.odt). It is likely to take another 1-2
 months before I get a preview version out.

 Please watch out for announcement in this list.

 Looks like you are particularly interested in reproducing Math
 equations. At this stage, it is not clear to me how I would support
 equations. Since the converter is built from HTML exporter it would
 handle the equations just the way HTML exporter handles equations.

 For now, AFAICS, people either resort to

 1. Orgmode-HTML-OpenOffice
 2. Orgmode-Docbook-Openoffice

 Have you tried any of (1) and (2). What are your observations
 particularly wrt equations?

  I know there are bunch of commercial software that claim to be able to
  convert latex files to word, but most are far from perfect. Is there a
  more efficient way of tacking this problem ?  Is there is any plans of
  developing a org-export-rtf or org-export-docx function ?

 Jambunathan K.

___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Marvin Doyley
This sounds like a good plan. I think I can convert my latex snippet to pdf
using latexit and past it directly in word, which should be a breeze.

Cheers
M

On Tue, Oct 26, 2010 at 3:48 PM, Russell Adams rlad...@adamsinfoserv.comwrote:

 On Tue, Oct 26, 2010 at 12:49:28PM -0400, Marvin Doyley wrote:
  Org mode is now a part of my daily work-flow, not only do I use it for
  teaching, scheduling my time, but I also use it to store my research
 notes.
  The only snag is several of my collaborators is tied to microsoft word,
 and
  thus my only work around is to  export my notes and draft from Org to
 plain
  text and then reformat everything in word, which real time sync.,
 especially
  when I have to retype equations in Mathtype.  I know there are bunch of
  commercial software that claim to be able to convert latex files to word,
  but most are far from perfect. Is there a more efficient way of tacking
  this  problem ?  Is there is any plans of developing a org-export-rtf or
  org-export-docx  function ?

 Are you using Latex due to the equation support?

 I have better luck importing HTML exports into Word, perhaps you can
 look into Latex snippet support for just the math and leave the rest
 in HTML.

 Good luck!


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

___
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-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
plot anymore: data from a table within the org file is no longer
digested nicely by gnuplot.

To test, I used the snippet below from the worg
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:


** Data Table Plot

Plotting data points from a table could look like this:
#+tblname: basic-plot
|   x | y1 | y2 |
|-++|
| 0.1 |  0.425 |  0.375 |
| 0.2 | 0.3125 | 0.3375 |
| 0.3 | 0.2493 | 0.2838 |
| 0.4 |  0.275 |0.28125 |
| 0.5 |   0.26 |   0.27 |
| 0.6 | 0.2588 | 0.2493 |
| 0.7 | 0.24642845 | 0.23928553 |
| 0.8 |0.23125 | 0.2375 |
| 0.9 | 0.2323 |  0.232 |
|   1 | 0.2225 |   0.22 |

#+begin_src gnuplot :var data=basic-plot :exports code :file basic-plot.png
set title Putting it All Together

set xlabel X
set xrange [0:1]
set xtics 0,0.1,1


set ylabel Y
set yrange [0.2:0.5]
set ytics 0.2,0.05,0.5


plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
#+end_src

#+results:
[[file:basic-plot.png]]



Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
 level 1) complains:

gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375)
 (0.3 0.2493 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6
 0.2588 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375)
 (0.9 0.2323 0.232) (1 0.2225 0.22))
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375) 
(0.3 0.2493 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6
0.2588 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375)
(0.9 0.2323 
0.232) (1 0.2225 0.22))
 No data in plot


So of course no basic-plot.png is created

As far as I know, my gnuplots were happy sometime within the past week
refreshing org-mode from git basically daily...


___
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] gnuplot version in org-mode

2010-10-26 Thread John Hendy
Hi,


A recent question made me recall something I'd been meaning to ask. I have
gnuplot 4.4.2 installed but whenever I generate gnuplot from org-mode/babel,
the minibuffer flashes:

gnuplot-mode- 0.6.0 (gnuplot 3.7)

or soemthing similar. Where is the 3.7 coming from? I checked gnuplot-ob.el
for any references to a version and only see 7.01 trans referenced, not
anything like 3.7. I just wonder what gnuplot version org-mode is looking
at.


Thanks,
John
___
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-babel-gnuplot broken today?

2010-10-26 Thread John Hendy
On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.


That's odd. I wrote the tutorial and thus my heart skipped a beat for a
moment!


 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:


 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot


 8 


 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \


 8 


 No data in plot


 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...


That's odd indeed. I copied and pasted your exact table and code from the
email and was able to generate the plot. The error is quite odd. It almost
makes me wonder if something is different about how gnuplot is receiving the
data. Like a syntax error or something. I would say that at this point it's
not the table or code, per se, since I can generate the plot. Hopefully
someone will chime in with more experience who may have seen this error?

One thing to try in the meantime... Gather up some gnuplot test data file
and try to run it from the command line perhaps? It would at least be one
way to see if it's working outside of org-mode?


Best regards,
John



 ___
 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] no line break after subheading?

2010-10-26 Thread Jeff Horn
As a workaround, you could use description lists, such that your
source code becomes:

** Timeline
   - September 2011 :: Research team assembles initial documents

Though this will be less useful in HTML export since the exporter adds
a line break after 2011. It should render how you want using the LaTeX
exporter.

-- 
Jeffrey Horn
Graduate Lecturer and PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.com

http://www.failuretorefrain.com/jeff/

___
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] TikZ to separate file (babel?) possible?

2010-10-26 Thread John Hendy
Maybe it would just be easier if someone attached a .org file that functions
as you think would work well -- with both the document and the babel/TikZ
export having the same sans-serif font. Perhaps then I could simply C-e p
the document and C-c C-c the babel block myself to examine how it behaves?

I was not able to get the conditional :export code provided to work.

Thanks,
John

On Tue, Oct 26, 2010 at 9:34 AM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Oct 26, 2010 at 3:17 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:

 On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy jw.he...@gmail.com
 wrote:
 
  [1  text/plain; ISO-8859-1 (7bit)]
 
  [2  text/html; ISO-8859-1 (quoted-printable)]
  On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi John,
 
  In the case you describe I would export the *code* of the tikz latex
  block rather than the file resulting from evaluating the block.
 
  Code = raw LaTeX/TikZ code? If so, I don't really care about that. i
 just want the graphic.

 Yes but the point is that, if I understand the processes involved
 correctly, the export and babel routes each generate different latex
 code.  Babel does *not* look at the document wide settings whereas
 export does.  This is why Eric is suggesting you export the babel code
 so that it is interpreted by the latex document that results from
 exporting the whole org document.  Otherwise, make sure the settings
 you want are within the latex source code block?


 That makes more sense, though if I export the code into the larger LaTeX
 document, I'm left where I started, I believe. An 8.5x11 exported PDF with
 my diagram in the middle of it.

 If it's just getting the right code into the babel block, that's helpful to
 know. Perhaps the easiest way to put it is this: what is the best path to
 obtain the following:

 - a single pdf output of my TikZ diagram, cropped to fit the diagram
 - the font used in the TikZ diagram that I desire (preferably from the doc)

 Again, my use-case is one in which I have daily notes or a paper with a
 diagram but also would like to preserve the diagram for reuse. With babel,
 it appears this should be possible -- I can both export normally and have
 the graphic in the paper or send the TikZ section alone to export and use
 the graphic in a presentation or elsewhere.

 I wondered about what you said re. putting the settings in the latex source
 code block, and I was actually fiddling around with that yesterday. My font
 is simply set like so (present in the examples I posted earlier):

 #+latex_header: \usepackage{lmodern}
 #+latex_header: \renewcommand{\rmdefault}{cmss}

 But I tried putting variations of this in the babel block (without the
 #+latex_header part, of course) with no success.

 These didn't work for me:

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz)) :border 1em
 \usepackage{lmodern}
 \renewcommand{\rmdefault}{cmss}

 or

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
 :border 1em
 \renewcommand{\rmdefault}{cmss}

 or

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
 :border 1em
 \renewcommand{\rmdefault}{cmss}

 I haven't found anything at ob-doc-latex covering how to pass package
 arguments or include LaTeX settings directly in the babel block. My attempts
 at the renewcommand end up with cmss ending up in my TIkZ graphic
 somewhere...


 Thanks for persisting with me!
 John





 --
 Eric S Fraga
 GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D



___
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: [patch] struggling with simple indentation

2010-10-26 Thread Nicolas Goaziou
Hello,

 Anthony Lander writes:

 With regards to the discussion below, if I set
 org-list-ending-method to 'regex

The correct value is 'regexp.

 it seems to get confused if there is a drawer between the headline
 and the first line of text, so pressing TAB with the cursor at the
 vertical bar in this example:

 8---
 ** Headline 
 :PROPERTIES:
 :FOO:  Bar
 :END:
 |
 8---

 Does not indent to the position under the H in the headline. The
 TAB key silently does nothing. Same effect with the properties
 drawer folded. Is it possible to indent correctly, ignoring the
 drawer?

Actually, this has nothing to do with the value of
org-list-ending-method, but I think you are right, indentation should
ignore drawers.

Here is a patch to do so. Does it work for you ?

Regards,

-- Nicolas

From 8aa0a33e36be4593ad605d9a3c283942a275e580 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou n.goaz...@gmail.com
Date: Tue, 26 Oct 2010 23:34:49 +0200
Subject: [PATCH] indentation: lines outside of drawers ignore indentation of 
drawers

* org.el (org-indent-line-function): Ignore drawers above the current
  line when indenting
---
 lisp/org.el |   13 ++---
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index c4c64ee..edc0b74 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -18704,7 +18704,7 @@ which make use of the date at the cursor.
   (beginning-of-line 0)
   (while (and (not (bobp))
  ;; skip comments, verbatim, empty lines, tables,
- ;; inline tasks
+ ;; inline tasks, and lists
  (or (looking-at [ \t]*[\n:#|])
  (and (org-in-item-p) (goto-char (org-list-top-point)))
  (and (not inline-task-p)
@@ -18714,8 +18714,11 @@ which make use of the date at the cursor.
  (not (looking-at org-drawer-regexp)))
(beginning-of-line 0))
   (cond
-   ;; There was an heading above.
-   ((looking-at \\*+[ \t]+)
+   ;; There was an heading or the end of a drawer above.
+   ((or (looking-at \\*+[ \t]+)
+   (and (looking-at [ \t]*:END:)
+(ignore-errors (org-back-to-heading 'invisible-ok))
+(looking-at \\*+[ \t]+)))
(if (not org-adapt-indentation)
(setq column 0)
  (goto-char (match-end 0))
@@ -18724,10 +18727,6 @@ which make use of the date at the cursor.
((looking-at org-drawer-regexp)
(goto-char (1- (match-beginning 1)))
(setq column (current-column)))
-   ;; The drawer had ended: indent like its :END: line.
-   ((looking-at \\([ \t]*\\):END:)
-   (goto-char (match-end 1))
-   (setq column (current-column)))
;; Else, nothing noticeable found: get indentation and go on.
(t (setq column (org-get-indentation))
 (goto-char pos)
-- 
1.7.3.2

___
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: org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
John - thanks for the quick reply (and, btw, the very useful tutorial).

I ought to have noted that the example works fine when invoked directly
from the command line, with the only change being that I move the data
into a file (mainly because I don't know the correct gnuplot syntax for
putting table data into a variable!).

I haven't updated gnuplot since installing it, so I believe the org-mode
- gnuplot unfriendliness lies in some effect that a recent pull of
7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
suppose thats another possible source of error, but it seems unlikely).

I agree that it appears that the table data being handed to gnuplot
from org-mode is somehow being formatted in a way that gnuplot does not 
understand.

John Hendy jw.he...@gmail.com writes:

 On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.

 That's odd. I wrote the tutorial and thus my heart skipped a beat for a 
 moment!
  

 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:

 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot

  8 
  

 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \

  8 
  

         No data in plot

 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...

 That's odd indeed. I copied and pasted your exact table and code from the 
 email and was able to generate the plot. The error is
 quite odd. It almost makes me wonder if something is different about how 
 gnuplot is receiving the data. Like a syntax error or
 something. I would say that at this point it's not the table or code, per se, 
 since I can generate the plot. Hopefully someone will
 chime in with more experience who may have seen this error?

 One thing to try in the meantime... Gather up some gnuplot test data file and 
 try to run it from the command line perhaps? It would
 at least be one way to see if it's working outside of org-mode?

 Best regards,
 John
  

 ___
 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

-- 
Nigel Beck
http://www.nigelbeck.com
+1-323-NDUGU-ME (323-638-4863)

___
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: org-babel-gnuplot broken today?

2010-10-26 Thread Eric Schulte
Hi Nigel,

Org-mode gnuplot code blocks do make use of user variables [1] for
passing arguments into gnuplot.  I believe that this feature may only be
available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
and I've had no problems using gnuplot from Org-mode code blocks which I
do most every day.

the syntax for defining variables is fairly simple, try the following
directly in the gnuplot terminal, if your gnuplot does have variable
support it should graph a straight line of y=10
#+begin_src gnuplot
  a=10
  plot a
#+end_src

Best -- Eric

Nigel Beck m...@nigelbeck.com writes:

 John - thanks for the quick reply (and, btw, the very useful tutorial).

 I ought to have noted that the example works fine when invoked directly
 from the command line, with the only change being that I move the data
 into a file (mainly because I don't know the correct gnuplot syntax for
 putting table data into a variable!).

 I haven't updated gnuplot since installing it, so I believe the org-mode
 - gnuplot unfriendliness lies in some effect that a recent pull of
 7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
 suppose thats another possible source of error, but it seems unlikely).

 I agree that it appears that the table data being handed to gnuplot
 from org-mode is somehow being formatted in a way that gnuplot does not 
 understand.

 John Hendy jw.he...@gmail.com writes:

 On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.

 That's odd. I wrote the tutorial and thus my heart skipped a beat for a 
 moment!
  

 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:

 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot

  8 
  

 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \

  8 
  

         No data in plot

 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...

 That's odd indeed. I copied and pasted your exact table and code from the 
 email and was able to generate the plot. The error is
 quite odd. It almost makes me wonder if something is different about how 
 gnuplot is receiving the data. Like a syntax error or
 something. I would say that at this point it's not the table or code, per 
 se, since I can generate the plot. Hopefully someone will
 chime in with more experience who may have seen this error?

 One thing to try in the meantime... Gather up some gnuplot test data file 
 and try to run it from the command line perhaps? It would
 at least be one way to see if it's working outside of org-mode?

 Best regards,
 John
  

 ___
 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

Footnotes: 
[1]  http://www.gnuplot.info/docs/gnuplot.html#x1-3100013.4


___
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] General question on dealing with Latex to word conversion

2010-10-26 Thread Russell Adams
Perhaps Babel can do it inline?

On Tue, Oct 26, 2010 at 04:47:01PM -0400, Marvin Doyley wrote:
 This sounds like a good plan. I think I can convert my latex snippet to pdf
 using latexit and past it directly in word, which should be a breeze.

 Cheers
 M

 On Tue, Oct 26, 2010 at 3:48 PM, Russell Adams 
 rlad...@adamsinfoserv.comwrote:

  On Tue, Oct 26, 2010 at 12:49:28PM -0400, Marvin Doyley wrote:
   Org mode is now a part of my daily work-flow, not only do I use it for
   teaching, scheduling my time, but I also use it to store my research
  notes.
   The only snag is several of my collaborators is tied to microsoft word,
  and
   thus my only work around is to  export my notes and draft from Org to
  plain
   text and then reformat everything in word, which real time sync.,
  especially
   when I have to retype equations in Mathtype.  I know there are bunch of
   commercial software that claim to be able to convert latex files to word,
   but most are far from perfect. Is there a more efficient way of tacking
   this  problem ?  Is there is any plans of developing a org-export-rtf or
   org-export-docx  function ?
 
  Are you using Latex due to the equation support?
 
  I have better luck importing HTML exports into Word, perhaps you can
  look into Latex snippet support for just the math and leave the rest
  in HTML.
 
  Good luck!
 
 
  --
  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
 

 ___
 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



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


[Orgmode] Is encryption supposed to work in v 1.4?

2010-10-26 Thread Urs Rau (UK)
I have the latest git version in emacs and am trying to use encryption.
The Mobileorg files look to me as if they got properly encrypted, but
on the iPhone the v 1.4 app can't determine the encoding, and is never
prompting for a password?
What's up, what gives?

Thanks for what looks like a promising app.

-- 
Urs Rau

-- 
-- 
Urs Rau

___
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] TikZ to separate file (babel?) possible?

2010-10-26 Thread Eric Schulte
Hi,

First my previously pasted :exports code will throw errors on
interactive evaluation (i.e. when not exporting), this alternative
should be more robust.

 :exports (if (and (boundp 'latexp) latexp) code results)

As for placing latex headers in a latex code block, I don't believe that
is currently possible.  I do agree it would be nice for latex code
blocks to inherit latex headers from the containing Org-mode buffer but
that would be a non-trivial piece of development, which I just don't
have time for at the moment.

I've just added a :headers argument which should allow changing things
like fonts that need to take place in the headers portion of the latex
file.  See the following examples, passing both a single header and a
list of headers.

--8---cut here---start-8---
#+begin_src latex :headers \usepackage{lmodern} :file name1.pdf
  Eric Schulte
#+end_src

#+results:
[[file:name1.pdf]]

#+begin_src latex :headers '(\\usepackage{mathpazo} \\usepackage{fullpage}) 
:file name2.pdf
  Eric Schulte
#+end_src

#+results:
[[file:name2.pdf]]
--8---cut here---end---8---

Please pull this down and let me know if it works for you.

Best -- Eric

John Hendy jw.he...@gmail.com writes:

 Maybe it would just be easier if someone attached a .org file that functions
 as you think would work well -- with both the document and the babel/TikZ
 export having the same sans-serif font. Perhaps then I could simply C-e p
 the document and C-c C-c the babel block myself to examine how it behaves?

 I was not able to get the conditional :export code provided to work.

 Thanks,
 John

 On Tue, Oct 26, 2010 at 9:34 AM, John Hendy jw.he...@gmail.com wrote:

 On Tue, Oct 26, 2010 at 3:17 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:

 On Mon, 25 Oct 2010 13:58:41 -0500, John Hendy jw.he...@gmail.com
 wrote:
 
  [1  text/plain; ISO-8859-1 (7bit)]
 
  [2  text/html; ISO-8859-1 (quoted-printable)]
  On Mon, Oct 25, 2010 at 1:53 PM, Eric Schulte schulte.e...@gmail.com
 wrote:
 
  Hi John,
 
  In the case you describe I would export the *code* of the tikz latex
  block rather than the file resulting from evaluating the block.
 
  Code = raw LaTeX/TikZ code? If so, I don't really care about that. i
 just want the graphic.

 Yes but the point is that, if I understand the processes involved
 correctly, the export and babel routes each generate different latex
 code.  Babel does *not* look at the document wide settings whereas
 export does.  This is why Eric is suggesting you export the babel code
 so that it is interpreted by the latex document that results from
 exporting the whole org document.  Otherwise, make sure the settings
 you want are within the latex source code block?


 That makes more sense, though if I export the code into the larger LaTeX
 document, I'm left where I started, I believe. An 8.5x11 exported PDF with
 my diagram in the middle of it.

 If it's just getting the right code into the babel block, that's helpful to
 know. Perhaps the easiest way to put it is this: what is the best path to
 obtain the following:

 - a single pdf output of my TikZ diagram, cropped to fit the diagram
 - the font used in the TikZ diagram that I desire (preferably from the doc)

 Again, my use-case is one in which I have daily notes or a paper with a
 diagram but also would like to preserve the diagram for reuse. With babel,
 it appears this should be possible -- I can both export normally and have
 the graphic in the paper or send the TikZ section alone to export and use
 the graphic in a presentation or elsewhere.

 I wondered about what you said re. putting the settings in the latex source
 code block, and I was actually fiddling around with that yesterday. My font
 is simply set like so (present in the examples I posted earlier):

 #+latex_header: \usepackage{lmodern}
 #+latex_header: \renewcommand{\rmdefault}{cmss}

 But I tried putting variations of this in the babel block (without the
 #+latex_header part, of course) with no success.

 These didn't work for me:

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz)) :border 1em
 \usepackage{lmodern}
 \renewcommand{\rmdefault}{cmss}

 or

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
 :border 1em
 \renewcommand{\rmdefault}{cmss}

 or

 #+begin_src latex :file flow-chart.pdf :packages '(( tikz lmodern))
 :border 1em
 \renewcommand{\rmdefault}{cmss}

 I haven't found anything at ob-doc-latex covering how to pass package
 arguments or include LaTeX settings directly in the babel block. My attempts
 at the renewcommand end up with cmss ending up in my TIkZ graphic
 somewhere...


 Thanks for persisting with me!
 John





 --
 Eric S Fraga
 GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org

Re: [Orgmode] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nigel Beck
Eric - thanks.  I'm using 4.4 as well.  Up until today, the gnuplot code
blocks using data from org-mode tables worked fine.  As of today, the
data from the org-mode tables appears to come through to gnuplot in a
format that gnuplot cannot understand.   I guessing thats why gnuplot is
complaining that data, the variable containing the data from the
org-mode table, is a bad file.  Running the aforementioned example
from the worg, the *gnuplot* output is

gnuplot data = ((0.1 0.425 0.375) (0.2 0.3125 0.3375) (0.3 0.2493
 0.2838) (0.4 0.275 0.28125) (0.5 0.26 0.27) (0.6 0.2588
 0.2493) (0.7 0.24642845 0.23928553) (0.8 0.23125 0.2375) (0.9 
 0.2323 0.232) (1 0.2225 0.22))
gnuplot set term png
Terminal type set to 'pngcairo'
Options are ' size 640, 480 '
gnuplot set output basic-plot.png
gnuplot set title Putting it All Together
gnuplot 
gnuplot set xlabel X
gnuplot set xrange [0:1]
gnuplot set xtics 0,0.1,1
gnuplot 
gnuplot 
gnuplot set ylabel Y
gnuplot set yrange [0.2:0.5]
gnuplot set ytics 0.2,0.05,0.5
gnuplot 
gnuplot 
gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 data u 1:3 w lp lw 1 title 'x vx. y2'
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2
 0.3125 0.3375) (0.3 0.2493 0.2838) (0.4 0.275 
 0.28125) (0.5 0.26 0.27) (0.6 0.2588 0.2493) (0.7 
 0.24642845 0.23928553) (0.8 0.23125 0.2375) (0.9 0.2323 
 0.232) (1 0.2225 0.22))
 warning: Skipping unreadable file ((0.1 0.425 0.375) (0.2 
 0.3125 0.3375) (0.3 0.2493 0.2838) (0.4 0.275 0.28125) 
 (0.5 0.26 0.27) (0.6 0.2588 0.2493) (0.7 0.24642845 
 0.23928553) (0.8 0.23125 0.2375) (0.9 0.2323 0.232) 
 (1 0.2225 0.22))
 No data in plot


I've not regenerated the plots for a few days - maybe a week - so I
cannot be confident that only something today broke this. I'm fairly
confident that only org-mode (and as aforementioned emacs-w3m) have
changed in my emacs setup.


Eric Schulte schulte.e...@gmail.com writes:

 Hi Nigel,

 Org-mode gnuplot code blocks do make use of user variables [1] for
 passing arguments into gnuplot.  I believe that this feature may only be
 available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
 and I've had no problems using gnuplot from Org-mode code blocks which I
 do most every day.

 the syntax for defining variables is fairly simple, try the following
 directly in the gnuplot terminal, if your gnuplot does have variable
 support it should graph a straight line of y=10
 #+begin_src gnuplot
   a=10
   plot a
 #+end_src

 Best -- Eric

 Nigel Beck m...@nigelbeck.com writes:

 John - thanks for the quick reply (and, btw, the very useful tutorial).

 I ought to have noted that the example works fine when invoked directly
 from the command line, with the only change being that I move the data
 into a file (mainly because I don't know the correct gnuplot syntax for
 putting table data into a variable!).

 I haven't updated gnuplot since installing it, so I believe the org-mode
 - gnuplot unfriendliness lies in some effect that a recent pull of
 7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
 suppose thats another possible source of error, but it seems unlikely).

 I agree that it appears that the table data being handed to gnuplot
 from org-mode is somehow being formatted in a way that gnuplot does not 
 understand.

 John Hendy jw.he...@gmail.com writes:

 On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:

 I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
 plot anymore: data from a table within the org file is no longer
 digested nicely by gnuplot.

 That's odd. I wrote the tutorial and thus my heart skipped a beat for a 
 moment!
  

 To test, I used the snippet below from the worg
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php:

 ** Data Table Plot

 Plotting data points from a table could look like this:
 #+tblname: basic-plot

  8 
  

 Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  level 1) complains:

 gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \

  8 
  

         No data in plot

 So of course no basic-plot.png is created

 As far as I know, my gnuplots were happy sometime within the past week
 refreshing org-mode from git basically daily...

 That's odd indeed. I copied and pasted your exact table and code from the 
 email and was able to generate the plot. The error is
 quite odd. It almost makes me wonder if something is different about how 
 gnuplot is receiving the data. Like a syntax error or
 something. I would say that at this point it's not the table or code, per 
 se, since I can generate the plot. Hopefully someone will
 chime in with more experience who may have seen this error?

 One thing to try in the 

Re: [Orgmode] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nick Dokos
Eric Schulte schulte.e...@gmail.com wrote:

 Hi Nigel,
 
 Org-mode gnuplot code blocks do make use of user variables [1] for
 passing arguments into gnuplot.  I believe that this feature may only be
 available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
 and I've had no problems using gnuplot from Org-mode code blocks which I
 do most every day.
 

Did you try the example that Nigel posted? I think babel *is* broken.
I tried a bisect and can verify that

commit f16c46c856afbd41b115a6a50306c0c002cdb333 is good 
(release_7.01h-750-gf16c46c)
commit b664510ec4811491e4611791c24591153abdf5f3 is bad  
(release_7.01h-800-gb664510)

but the sequence is not bisectable: when it tries the middle commit
2699f4e9bc7695432cf6aaf1dd48e182b10c2847 (release_7.01h-775-g2699f4e)
it gets Symbol's value as variable is void: result-type and it's
not clear to me how to proceed with the bisection at that point. I tried
skipping a bit, but the results were mixed at best.

So it looks to me as if something in those 50 commits broke it.

HTH,
Nick


 the syntax for defining variables is fairly simple, try the following
 directly in the gnuplot terminal, if your gnuplot does have variable
 support it should graph a straight line of y=3D10
 #+begin_src gnuplot
   a=3D10
   plot a
 #+end_src
 
 Best -- Eric
 
 Nigel Beck m...@nigelbeck.com writes:
 
  John - thanks for the quick reply (and, btw, the very useful tutorial).
 
  I ought to have noted that the example works fine when invoked directly
  from the command line, with the only change being that I move the data
  into a file (mainly because I don't know the correct gnuplot syntax for
  putting table data into a variable!).
 
  I haven't updated gnuplot since installing it, so I believe the org-mode
  - gnuplot unfriendliness lies in some effect that a recent pull of
  7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
  suppose thats another possible source of error, but it seems unlikely).
 
  I agree that it appears that the table data being handed to gnuplot
  from org-mode is somehow being formatted in a way that gnuplot does not u=
 nderstand.
 
  John Hendy jw.he...@gmail.com writes:
 
  On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:
 
  I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
  plot anymore: data from a table within the org file is no longer
  digested nicely by gnuplot.
 
  That's odd. I wrote the tutorial and thus my heart skipped a beat for a =
 moment!
  =C2=A0
 
  To test, I used the snippet below from the worg
  http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.p=
 hp:
 
  ** Data Table Plot
 =20=20=20=20
  Plotting data points from a table could look like this:
  #+tblname: basic-plot
 
   8 
  =C2=A0
 
  Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  =C2=A0level 1) complains:
 =20=20=20=20
  gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 
   8 
  =C2=A0
 
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 No data in plot
 
  So of course no basic-plot.png is created
 =20=20=20=20
  As far as I know, my gnuplots were happy sometime within the past we=
 ek
  refreshing org-mode from git basically daily...
 
  That's odd indeed. I copied and pasted your exact table and code from th=
 e email and was able to generate the plot. The error is
  quite odd. It almost makes me wonder if something is different about how=
  gnuplot is receiving the data. Like a syntax error or
  something. I would say that at this point it's not the table or code, pe=
 r se, since I can generate the plot. Hopefully someone will
  chime in with more experience who may have seen this error?
 
  One thing to try in the meantime... Gather up some gnuplot test data fil=
 e and try to run it from the command line perhaps? It would
  at least be one way to see if it's working outside of org-mode?
 
  Best regards,
  John
  =C2=A0
 
  ___
  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
 
 Footnotes:=20
 [1]  http://www.gnuplot.info/docs/gnuplot.html#x1-3100013.4
 
 
 ___
 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


[Orgmode] Re: [org-babel] Using the power of ESS inside an R source code block

2010-10-26 Thread Bernd Weiss

Am 26.10.2010 10:05, schrieb Dan Davison:

[...]


Am 24.10.2010 05:44, schrieb Bernd Weiss:


[...]


Dear all,

Yesterday, I spent some time (re-)discovering the power of org-babel
and R. Everything works well but there is one issue that I find
somewhat annoying (I apologise if this word is too rude).


Not at all. Good to know what drawbacks users are encountering. I'm
happy to report that all three of the things you mention are now
possible in the Org buffer. You will need to be using a recent version
of Org-mode (i.e. from within the last few weeks).



Hi Dan  Eric,

Again (and now on-list), thanks a lot for your reply and your help!



As a
long-time ESS user I wish that I could use things like ESS syntax
highlighting,


This, as Eric mentioned, is turned on with
`org-src-fontify-natively'. However from your config below it seems you
have set this variable. So that requires some explanation -- please let
us know if syntax highlighting in the Org buffer is working for you or
not.


Yes, syntax highlighting seems to be work as expected.



indentation


Setting `org-src-tab-acts-natively' causes TAB to have the indenting
effect that you would get in an ESS buffer.[2]


That also works.

I only have a very (very) basic knowledge of elips. So, I guess it is 
possible to change the depth of indentation. The current indentation 
behaviour is as follows:


#+BEGIN_SRC R :results output :exports results
  library(MASS)
  plot(1,1)
  for(i in 1:10){
print(i)
  }
[...]

However, I would prefer...

#+BEGIN_SRC R :results output :exports results
library(MASS)
plot(1,1)
for(i in 1:10){
  print(i)
}
[...]



Beyond these two variables, there is a general method that addresses the
issues you are raising. It involves using the function
`org-babel-do-key-sequence-in-edit-buffer'. For example, here is how to
make C-M-\ perform language-specific indentation on the active region in
the source block:

   (defun dan/org-indent-region ()
 (interactive)
 (or (org-babel-do-key-sequence-in-edit-buffer \C-\M-\\)
 (indent-region)))

(define-key org-mode-map \C-\M-\\ 'dan/org-indent-region)



or some keybindings (e.g. for -) inside
an R source code block.


This one can be done with

   (defun dan/org-underscore-command ()
 (interactive)
 (or (org-babel-do-key-sequence-in-edit-buffer _)
 (org-self-insert-command 1)))

(define-key org-mode-map _ 'dan/org-underscore-command)

And another one that you may like is for commenting code:

   (defun dan/org-comment-dwim (optional arg)
 (interactive P)
 (or (org-babel-do-key-sequence-in-edit-buffer \M-;)
 (comment-dwim arg)))

(define-key org-mode-map \M-; 'dan/org-comment-dwim)


I hope the above supplies the missing functionality.

Dan



Puh, as I told you I only have a very basic understanding of elisp... If 
I do a simple copy and paste, I see this error: Symbol's value as 
variable is void: org-mode-map. I also guess that I should change 
dan/org-underscore-command...


However, you should not care about my little elips problems. You were 
really helpful in solving my most important problems!


Thanks,

Bernd


___
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: blorgit build

2010-10-26 Thread Ezequiel Birman
Thanks, it works now though I am not sure about the best way to load
emacs. Nowadays I use 'emacsclient -c' and let it handle the process of
starting the daemon but

1. Should I let org-interaction.el start the server from now on?
(eg. by loading it in my .emacs)

2. Should I start another emacs instance just for blorgit?

3. Would it be convenient to create a new user to run this dedicated
emacs instance and blorgit at system startup?

-- 
Ezequiel Birman


___
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: How to match items with tags and special todo keyword

2010-10-26 Thread Bernt Hansen
bar tomas barto...@gmail.com writes:

 Hi,
 I like to create an agenda view of all items that have a specific tag
 and also a specific TODO keyword.
 I've tried with

 C-c a M

 but this retrieves all TODO items that are not DONE but I would like
 to match only a specific TODO keyword (I've defined my own TODO
 categories with +SEQ_TODO)

Try 

C-c a m TAG/!TODOKW RET

where TAG is the tag you want to match and TODOKW is the todo keyword
you want.

ie.

C-c a m misc/!NEXT RET

to find all tasks with a tag 'misc' and a todo keyword of NEXT.

HTH,
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: Request - capture included in customize browser

2010-10-26 Thread Bernt Hansen
Gez regis...@geekanddiva.com writes:

 I've had my main system in org mode for a couple of weeks now and I'm getting 
 on really well - it's an amazing
 tool.  I'm very grateful for it. And for the support here too.
  
 I want to set up org-capture but cannot find it using M-x customize-apropos.  
 I'm guessing that the customize
 browser is a kind of interface that has to be written and hasn't yet been 
 written for org-capture.  I'll get on
 with making my settings by hand, as it were, in the meantime, but this is a 
 request please, for a customize
 interface for org-capture. 
  
 I've been doing all my configuring with the customize browser recently (after 
 some early false starts copying,
 pasting and editing settings directly into my .emacs file).  I'm avoiding 
 errors and I also find it better
 documented than the manual and really useful to see the context (the 
 customize group). 

C-h v org-capture-templates

and click on the _customize_ link.

HTH,
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] How to match items with tags and special todo keyword

2010-10-26 Thread Juan Pechiar
Hi Bar,

You should use C-c a m, and use a search string of the form

mytag+TODO=WAITING

This matches for a specific TODO state (for example, WAITING).

Check the corresponding  manual section here:

http://orgmode.org/manual/Matching-tags-and-properties.html#Matching-tags-and-properties

BR
.j.

On Tue, Oct 26, 2010 at 04:23:50PM +0100, bar tomas wrote:
 I like to create an agenda view of all items that have a specific tag
 and also a specific TODO keyword.
 I've tried with

 C-c a M

 but this retrieves all TODO items that are not DONE but I would like
 to match only a specific TODO keyword (I've defined my own TODO
 categories with +SEQ_TODO)

___
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: General question on dealing with Latex to word conversion

2010-10-26 Thread Richard Lawrence
Hi Marvin,

 Org mode is now a part of my daily work-flow, not only do I use it for
 teaching, scheduling my time, but I also use it to store my research notes.
 The only snag is several of my collaborators is tied to microsoft word, and
 thus my only work around is to export my notes and draft from Org to plain
 text and then reformat everything in word, which real time sync., especially
 when I have to retype equations in Mathtype.

Hmm.  Given that at least one person in your team must adapt to the
others, might I ask why that person has to be you?  Is there a reason
that your collaborators can't use Org mode and/or LaTeX?  (Or at least
export their work to plain text, so you can incorporate it in your Org
files?)

I'm not trying to be antagonistic, or insensitive to your particular
situation.  But since no one else has said it, I just wanted to point
out that it might be easier or more efficient, in terms of overall
person-hours, to convert from Word to Org, rather than the other way
around.

(I don't know anything about MathType, but it would seem within the
realm of possibility to *automatically* convert a Word document
containing MathType that has been exported as plain text into something
Org and/or LaTeX can understand.  This site, for example, makes it look
like MathType can export to TeX and LaTeX, so maybe that gets you most
of the way there:

http://www.dessci.com/en/products/mathtype/features.htm)

Best,
Richard


___
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] Control loading org-mode

2010-10-26 Thread Nick Dokos
Louis Turk l...@dayspringpublisher.com wrote:

   Is there any way to prevent org-agenda files from loading except when 
 visiting files with the org extension?
 

Care to be a bit more explicit?

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] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Eric Schulte schulte.e...@gmail.com wrote:
 
  Hi Nigel,
  
  Org-mode gnuplot code blocks do make use of user variables [1] for
  passing arguments into gnuplot.  I believe that this feature may only be
  available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
  and I've had no problems using gnuplot from Org-mode code blocks which I
  do most every day.
  
 
 Did you try the example that Nigel posted? I think babel *is* broken.
 I tried a bisect and can verify that
 
 commit f16c46c856afbd41b115a6a50306c0c002cdb333 is good 
 (release_7.01h-750-gf16c46c)
 commit b664510ec4811491e4611791c24591153abdf5f3 is bad  
 (release_7.01h-800-gb664510)
 
 but the sequence is not bisectable: when it tries the middle commit
 2699f4e9bc7695432cf6aaf1dd48e182b10c2847 (release_7.01h-775-g2699f4e)
 it gets Symbol's value as variable is void: result-type and it's
 not clear to me how to proceed with the bisection at that point. I tried
 skipping a bit, but the results were mixed at best.
 
 So it looks to me as if something in those 50 commits broke it.
 

One more data point: the result-type problem was resolved in the following

commit cea9fd742129f74b9ea38d7d9d74ca751271fce2 (release_7.01h-786-gcea9fd7)

and that one still shows the gnuplot problem. So it's down to 36 commits.

HTH,
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] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Eric Schulte
Ah,

My apologies, thank you both for persisting in raising this issue.

It seems there are *two* ways to pass variables into gnuplot.  One uses
user variables [1], and the other directly replaces variables in the
code block [2].  You've been using the former, and I've been using the
latter.  The bug only existed in the former, but I believe I've now
fixed that issue, and in fact I think I'll start using user variables as
in your example below.

Please let me know if the problem persists after a fresh pull of the
repository.

Best -- Eric

Nick Dokos nicholas.do...@hp.com writes:

 Eric Schulte schulte.e...@gmail.com wrote:

 Hi Nigel,
 
 Org-mode gnuplot code blocks do make use of user variables [1] for
 passing arguments into gnuplot.  I believe that this feature may only be
 available in later versions of gnuplot.  I'm using gnuplot 4.4 locally
 and I've had no problems using gnuplot from Org-mode code blocks which I
 do most every day.
 

 Did you try the example that Nigel posted? I think babel *is* broken.
 I tried a bisect and can verify that

 commit f16c46c856afbd41b115a6a50306c0c002cdb333 is good 
 (release_7.01h-750-gf16c46c)
 commit b664510ec4811491e4611791c24591153abdf5f3 is bad  
 (release_7.01h-800-gb664510)

 but the sequence is not bisectable: when it tries the middle commit
 2699f4e9bc7695432cf6aaf1dd48e182b10c2847 (release_7.01h-775-g2699f4e)
 it gets Symbol's value as variable is void: result-type and it's
 not clear to me how to proceed with the bisection at that point. I tried
 skipping a bit, but the results were mixed at best.

 So it looks to me as if something in those 50 commits broke it.

 HTH,
 Nick


 the syntax for defining variables is fairly simple, try the following
 directly in the gnuplot terminal, if your gnuplot does have variable
 support it should graph a straight line of y=3D10
 #+begin_src gnuplot
   a=3D10
   plot a
 #+end_src
 
 Best -- Eric
 
 Nigel Beck m...@nigelbeck.com writes:
 
  John - thanks for the quick reply (and, btw, the very useful tutorial).
 
  I ought to have noted that the example works fine when invoked directly
  from the command line, with the only change being that I move the data
  into a file (mainly because I don't know the correct gnuplot syntax for
  putting table data into a variable!).
 
  I haven't updated gnuplot since installing it, so I believe the org-mode
  - gnuplot unfriendliness lies in some effect that a recent pull of
  7.01trans has had. (I did updated emacs-w3m from cvs the other day, so I
  suppose thats another possible source of error, but it seems unlikely).
 
  I agree that it appears that the table data being handed to gnuplot
  from org-mode is somehow being formatted in a way that gnuplot does not u=
 nderstand.
 
  John Hendy jw.he...@gmail.com writes:
 
  On Tue, Oct 26, 2010 at 3:10 PM, Nigel Beck m...@nigelbeck.com wrote:
 
  I refreshed today 7.01trans and noticed I couldn't get my gnuplots to
  plot anymore: data from a table within the org file is no longer
  digested nicely by gnuplot.
 
  That's odd. I wrote the tutorial and thus my heart skipped a beat for a =
 moment!
  =C2=A0
 
  To test, I used the snippet below from the worg
  http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.p=
 hp:
 
  ** Data Table Plot
 =20=20=20=20
  Plotting data points from a table could look like this:
  #+tblname: basic-plot
 
   8 
  =C2=A0
 
  Exporting or executing the gnuplot piece, Gnuplot (Gnuplot 4.4 patch
  =C2=A0level 1) complains:
 =20=20=20=20
  gnuplot plot data u 1:2 w p lw 2 title 'x vs. y1', \
 
   8 
  =C2=A0
 
  =C2=A0 =C2=A0 =C2=A0 =C2=A0 No data in plot
 
  So of course no basic-plot.png is created
 =20=20=20=20
  As far as I know, my gnuplots were happy sometime within the past we=
 ek
  refreshing org-mode from git basically daily...
 
  That's odd indeed. I copied and pasted your exact table and code from th=
 e email and was able to generate the plot. The error is
  quite odd. It almost makes me wonder if something is different about how=
  gnuplot is receiving the data. Like a syntax error or
  something. I would say that at this point it's not the table or code, pe=
 r se, since I can generate the plot. Hopefully someone will
  chime in with more experience who may have seen this error?
 
  One thing to try in the meantime... Gather up some gnuplot test data fil=
 e and try to run it from the command line perhaps? It would
  at least be one way to see if it's working outside of org-mode?
 
  Best regards,
  John
  =C2=A0
 
  ___
  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.
  

Re: [Orgmode] Re: org-babel-gnuplot broken today?

2010-10-26 Thread Nick Dokos
Eric Schulte schulte.e...@gmail.com wrote:

 It seems there are *two* ways to pass variables into gnuplot.  One uses
 user variables [1], and the other directly replaces variables in the
 code block [2].  You've been using the former, and I've been using the
 latter.  The bug only existed in the former, but I believe I've now
 fixed that issue, and in fact I think I'll start using user variables as
 in your example below.
 
 Please let me know if the problem persists after a fresh pull of the
 repository.
 

Problem gone with Nigel's (actually John's, iiuc) original example. I didn't
try your examples, but somehow I'm pretty sure that those will work
too!

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