[Orgmode] Request: Slightly different structure mode

2010-02-22 Thread Torsten Wagner

Hi,
beside of the organising part I use org-mode as a lab-notebook for every 
project which involves more thinking and esp. remembering about it.


For that I create a new org-mode file for every project, linked to a 
main-file and I add all this links, infos, mails, deadlines, folder, 
files, data, and all other pieces of infos which I need to access or 
remember when I continue to work on this project (which might be weeks 
or months later). This works really great with org-mode and it help me 
to come quickly inside a particular project even after long time of 
non-processing.


I noticed that I prefer to create outlines like this (stupid example)

+--start--+
* Learn org-mode
  I start to read carefully the manual again. Esp. tables are still 
difficult to use for me.

** Just to remember the most important table commands
   Here I will write down all the table stuff commands a long long long 
text and maybe some tables.


 This text should belong again to outline 1. I just like to continue 
writing since I just write in a chronological order. I read the manual 
again and found some nice features I wasn't aware of ..more text.. .

+stop-+

Thus if I cylcle threw them I like to get the following:

+--start--+
* Learn org-mode
  I start to read carefully the manual again. Esp. tables are still 
difficult to use for me.

** Just to remember the most important table commands
  This text should belong again to outline 1. I just like to continue 
writing since I just write in a chronological order. I read the manual 
again and found some nice features I wasn't aware of ..more text.. .

+stop-+

Thus the last paragraph should belong to the first outline and only 
collapse if with the first outline. At the moment it belongs always to 
the last (in this case second outline) and collapsing result in:


+--start--+
Thus if I cylcle threw them I like to get the following
* Learn org-mode
  I start to read carefully the manual again. Esp. tables are still 
difficult to use for me.

** Just to remember the most important table commands
+stop-+

So I like to use the outline levels more as a measure of importance or 
of detail. I write a generic text of how the project is going on, most 
likely just adding every day a little bit text like in a diary. If there 
is something very special or very detailed I like to encapsulate it in a 
outline and only open it up if I need to read again about it. Thus, it 
will not distract me by reading fast threw the main file and it is 
available if needed.


Any idea how to achieve that ?


Thanks

Torsten



___
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: latex export on mac os x with xelatex

2010-02-22 Thread Christian Wittern
Hi there,

For the benefit of later visitors, here is how I worked around the problem
for the moment:

orgmode seems to ignore the exec-path, so I looked at the result of
(getenv PATH), which was very little. Saying

(setenv PATH (concat /usr/local/texlive/2009/bin/universal-darwin:
(getenv PATH)))

in my .emacs solved the problem, the latex export now happily works its way
to the texlive programs and does what it needs to do.  So I suspect this is
some kind of setup problem that might be specific to my installation.  I
will see if I can find out more once I have a little time.

Thanks for your time:-)

All the best,

Christian


On 2010-02-22 16:34, Christian Wittern wrote:
 Dear Orgmode users,
 
 I am trying to get Latex export working on a Mac OS X system.  I have
 installed MacTex with the whole texlive tree.  I added the path to these
 binaries to exec-path like so:
 
 (if (eq window-system 'mac)
  (add-to-list 'exec-path /usr/local/texlive/2009/bin/universal-darwin)
 )
 
 and can confirm that it is indeed picked up and existing in the exec-path.
 
 However, org-export-as-pdf does not manage to produce a pdf.
 
 Next I customized the variable to include the path so that I have
 
 /usr/local/texlive/2009/bin/universal-darwin/xelatex -interaction
 nonstopmode %s (on one line) as the value of org-latex-to-pdf-process.
 
 Now the xelatex command runs, but the next step fails, since xelatex can not
 convert its intermediate file to a pdf, so I get as the first line in the
 buffer *Org PDF Latex Output* :
 
 sh: xdvipdfmx: command not found
 
 But now I have no idea where to go to tell orgmode how to find the command
 -- someting seems to be seriously wrong (or I am misunderstanding how stuff
 is supposed to work) so any help would be appreciated.
 
 All the best,
 
 Christian


-- 
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN


___
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] @tsubheading command in org texi

2010-02-22 Thread smc
Hello

We are translating all official GNU Emacs documentation into Spanish
for a future i18n/l10n of the program.

We are very advanced translating the Org-mode texi manual, but
there is a @-command which we had never heard: @tsubheading.

This command is not documented in the Texinfo manual and is causing
problems in the provisional generation with texinfo-format-buffer, because
it is not recognized.

Please, can you help with some directions?

Regards

-- 
Suso
http://gnu.manticore.es
___
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] @tsubheading command in org texi

2010-02-22 Thread Bastien
smc s...@manticore.es writes:

 We are translating all official GNU Emacs documentation into Spanish
 for a future i18n/l10n of the program.

Wow.  Good luck!

 We are very advanced translating the Org-mode texi manual, but
 there is a @-command which we had never heard: @tsubheading.

 This command is not documented in the Texinfo manual and is causing
 problems in the provisional generation with texinfo-format-buffer, because
 it is not recognized.

 Please, can you help with some directions?

It's a macro, defined line 36 of latest org.texi file:

,
| @c Subheadings inside a table.
| @macro tsubheading{text}
| @ifinfo
| @subsubheading \text\
| @end ifinfo
| @ifnotinfo
| @item @b{\text\}
| @end ifnotinfo
| @end macro
`

HTH,

-- 
 Bastien


___
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: Bug: (org-attach-dir) doesn't honor ATTACH_DIR_INHERIT

2010-02-22 Thread Matt Lundin
Nicolas Girard nicolas.gir...@nerim.net writes:

 given the following test document, calling (org-attach-dir) when in b
 should give '/tmp' ; currently the result is nil, which breaks C-c C-a
 f.

 Cheers,
 Nicolas

 ===
 * a
 :PROPERTIES:
 :ATTACH_DIR: /tmp
 :END:
 ** b
 :PROPERTIES:
 :ATTACH_DIR_INHERIT: t
 :END:


The :ATTACH_DIR_INHERIT: property needs to be set in the parent tree,
since that is the heading whose attach directory is being inherited.

--8---cut here---start-8---
* a
 :PROPERTIES:
 :ATTACH_DIR: /tmp
 :ATTACH_DIR_INHERIT: t
 :END:
** b
--8---cut here---end---8---

With this structure, calling (org-attach-dir) beneath the b heading
results in /tmp.

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


[Orgmode] Plotting date on xaxis

2010-02-22 Thread Johan Ekh
Hi all,
I try to plot a table looking like this

 |   Date|   Kg |
 |-+|
 | 2010-02-21 | 95.0 |
 | 2010-02-22 | 93.0 |
 | 2010-02-23 | 92.0 |
 | 2010-02-24 | 91.5 |
 | 2010-02-25 | 91.0 |
 | 2010-02-29 | 92.0 |
 |  ||

with the dates on the xaxis using

#+PLOT: title:Weight ind:1 deps:(2) type:2d with:linespo set:xdata time
timefmt:%Y-%m-%d set:yrange [90:]

but no plot is generated. If I remove set:xdata time, the plot is
generated but without interpreting the dates as dates.

Can anyone see what I do wrong?

Thanks in advance,

Johan
___
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] MobileOrg Agenda View link to Org Files

2010-02-22 Thread David A. Gershman

Hi All,

In MobileOrg, I have included the Agenda Views, specifically the
weekly or monthly views.  While in that vew, for a particular date there
are any number of 'headings'. 

Feature Request (unless I'm missing it): Is there a way to have the
ability to link from the agenda view item to the same item in the
actual org file (if its in MobileOrg).

For example, when I look at my agenda view for February 25th, I have an
entry called B-Day Prep.  But the details of B-Day prep are not there.
 It would be nice to tap on an icon or something that takes me to the
org file and heading where B-Day Prep actually resides (allowing me to
view the body text, sub-headings, etc.)

Thanks!



David A. Gershman
gersh...@dagertech.net
http://dagertech.net/gershman/
It's all about the path! --d. gershman


___
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] @tsubheading command in org texi

2010-02-22 Thread smc
Ah!!, Ok, thanks!!




2010/2/22 Bastien bastiengue...@googlemail.com

 smc s...@manticore.es writes:

  We are translating all official GNU Emacs documentation into Spanish
  for a future i18n/l10n of the program.

 Wow.  Good luck!

  We are very advanced translating the Org-mode texi manual, but
  there is a @-command which we had never heard: @tsubheading.
 
  This command is not documented in the Texinfo manual and is causing
  problems in the provisional generation with texinfo-format-buffer,
 because
  it is not recognized.
 
  Please, can you help with some directions?

 It's a macro, defined line 36 of latest org.texi file:

 ,
 | @c Subheadings inside a table.
 | @macro tsubheading{text}
 | @ifinfo
 | @subsubheading \text\
 | @end ifinfo
 | @ifnotinfo
 | @item @b{\text\}
 | @end ifnotinfo
 | @end macro
 `

 HTH,

 --
  Bastien




-- 
Suso
http://gnu.manticore.es
___
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] Scheduling an event of uncertain date within a month

2010-02-22 Thread Alan E. Davis
I am beginning to understand how to use scheduling.  However I ran across a
problem I didn't know how to solve: I know that in early March an event will
take place on a Friday, but I don't remember the date.

Can anyone make a suggestion how to handle this?

Thank you, again and again, for org-mode, the swiss-army-toolbox.

Alan Davis
___
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] Scheduling an event of uncertain date within a month

2010-02-22 Thread Carsten Dominik


On Feb 22, 2010, at 10:21 PM, Alan E. Davis wrote:

I am beginning to understand how to use scheduling.  However I ran  
across a problem I didn't know how to solve: I know that in early  
March an event will take place on a Friday, but I don't remember the  
date.


Well, while scheduling, a calendar gets popped up.  Use it! :-)

- Carsten



Can anyone make a suggestion how to handle this?

Thank you, again and again, for org-mode, the swiss-army-toolbox.

Alan Davis

___
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: Remove scheduled date when switch TODO states

2010-02-22 Thread David Maus
Matt Lundin wrote:
Nathaniel Flath flat0...@gmail.com writes:

 I have a todo state, PENDING, that I organize tasks that I cannot
 perform immediately.  Is there a way to configure org-todoconfigure so
 that when a task is switched to PENDING, if it has a scheduled date
 that date is removed?

You could use the hook org-after-todo-state-change-hook. E.g.

--8---cut here---start-8---
(defun my-org-pending-remove-deadline ()
  (when (equal (org-entry-get nil TODO) PENDING)
(org-remove-timestamp-with-keyword org-deadline-string)))

(add-hook 'org-after-todo-state-change-hook 'my-org-pending-remove-deadline)
--8---cut here---end---8---

You can actually skip the `org-entry-get' as The new state (a string
with a TODO keyword, or nil) is available in the Lisp variable
`state'[1].

,
| (defun my-org-pending-remove-deadline ()
|   (when (string= state PENDING)
| (org-remove-timestamp-with-keyword org-deadline-string)))
`

Another solution: use `org-trigger-hook' and `org-schedule':

,
| (defvar dmj/org-pending-keywords '(PENDING)
|   List of keywords denoting pending state of an headline.)
| 
| (defun dmj/org-remove-schedule-when-pending (plist)
|   Remove schedule when todo state changes to pending.
|   (let ((type (plist-get plist :type))
|   (to (plist-get plist :to)))
| (when (and (eq type 'todo-state-change)
|  (member to dmj/org-pending-keywords))
|   (org-schedule 'remove
`

HTH
 -- David

[1] http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.13
-- 
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. maus.da...@gmail.com


pgpCkH2A7cVcH.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] Re: Remove scheduled date when switch TODO states

2010-02-22 Thread Matthew Lundin
David Maus maus.da...@gmail.com writes:

 Matt Lundin wrote:
Nathaniel Flath flat0...@gmail.com writes:

 I have a todo state, PENDING, that I organize tasks that I cannot
 perform immediately.  Is there a way to configure org-todoconfigure so
 that when a task is switched to PENDING, if it has a scheduled date
 that date is removed?

You could use the hook org-after-todo-state-change-hook. E.g.

--8---cut here---start-8---
(defun my-org-pending-remove-deadline ()
  (when (equal (org-entry-get nil TODO) PENDING)
(org-remove-timestamp-with-keyword org-deadline-string)))

(add-hook 'org-after-todo-state-change-hook 'my-org-pending-remove-deadline)
--8---cut here---end---8---

 You can actually skip the `org-entry-get' as The new state (a string
 with a TODO keyword, or nil) is available in the Lisp variable
 `state'[1].

 ,
 | (defun my-org-pending-remove-deadline ()
 |   (when (string= state PENDING)
 | (org-remove-timestamp-with-keyword org-deadline-string)))
 `

Good to know. Thanks!

- 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


[Orgmode] using gnuplot dumb terminal

2010-02-22 Thread Erik Butz
Hi all,

thanks for this extremely versatile emacs mode. I am only beginning to
discover all the features available.

When using the org-plot/gnuplot interface, a possible use-case came to
my mind. In gnuplot one can have a primitive ascii dump of the plot,
using

set terminal dump

with or without an output file. I was wondering if it would be
possible to include the output of this as plot into an org document.

I can achieve basically this, by having something like

#+PLOT: set:term dumb file:plot.plt
|   a |   b |   c |
|-+-+-|
| 200 | 100 | 300 |
| 200 | 200 | 400 |

#+TBLFM: $3=$1+$2

and then simply input 'plot.plt' into the document which looks
something like this in this case (don't know if the ascii art will
survive)

400 +++-++-+-$
+ + ++ $a$** +
|$$ b ## |
350 ++ $$   c $$++
|$$  |
|  $$|
|$$  |
300 $   ++
||
||
250 ++  ++
||
||
200 **
|  ##|
|##  |
|  ##|
150 ++   ## ++
|  ##|
+## ++ + +
100 #-+-++-+++
00.2   0.4  0.6   0.81

More complicated things would then of course be to link the plot to
the table, and to be able to issue update commands if the table data
have changed etc.
Also when exporting to latex, one could simply change the mode of
gnuplot to eps/jpg and include the graphics in the exported document.

I have not found the 'dumb' mode mentioned anywhere in the forum, so I
was curious if anybody possibly thought about something like this (or
has done it already??), or had ideas on how to implement it (don't
know lisp myself, unfortunately).

Should this not be possible it is not really a problem, since there is
a way to do this as described above, but I found this a possibly nice
feature, as it would allow for simple plots while keeping the org
document to be overhead-free ascii.

Cheers and thanks,

Erik


___
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] Scheduling an event of uncertain date within a month

2010-02-22 Thread Ryan Thompson
Also, if you type in both a date and a day of the week, you'll get the
first day after the specified date that falls on the specified day of
the week.

For example, if you Type in Fri 2 Feb, you'll get the first Friday
on or after Feb. 2nd. Or something like that.

On Mon, Feb 22, 2010 at 2:10 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Feb 22, 2010, at 10:21 PM, Alan E. Davis wrote:

 I am beginning to understand how to use scheduling.  However I ran across
 a problem I didn't know how to solve: I know that in early March an event
 will take place on a Friday, but I don't remember the date.

 Well, while scheduling, a calendar gets popped up.  Use it! :-)

 - Carsten


 Can anyone make a suggestion how to handle this?

 Thank you, again and again, for org-mode, the swiss-army-toolbox.

 Alan Davis

 ___
 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



___
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] Tables - Multiple Row and Column span

2010-02-22 Thread srinivas
Hi,

I realize that orgmode tables do not allow multiple row and column spanning in 
HTML (export). I also read that orgmode allows one to use table.el for 
specifying tables and table.el allows multiple row and column span.

I haven't figured out how to combine orgmode content with table.el for tables.

Is it possible to do the following?

* Org mode table

| Header 1 | Header 2 |
|--+--|
| R1 C1| R1 C2|
| R2 C1| R2 C2|
| R3 C1| R3 C2|

* table.el table

Following table has 1 multi column cell and 1 multi row cell.

| Header 1 | Header 2 |
|--+--|
| R1 C1-2 |
| R2 C1| R2-3 C2  |
| R3 C1|  |

Can anyone please post a working example?

Thanks.



___
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: Footnotes in headings results in strange entries in the table of contens of the latex - pdf export

2010-02-22 Thread Carsten Dominik

Hi Gerald,

the LaTeX exporter does indeed have some problems with footnotes in  
headlines.


I have now fixed it so that the footnote will be preceded by \protect,  
which already makes things nicer.  However, to use the format you  
propose (which is good LaTeX), Org would have to know which macros  
exactly work like that.  For example, headlines from Org-mode  
sometimes get transformed into \item blocks, where an optional  
argument would have completely different effects.


A way out for you would be to add a function to `org-export-latex- 
final-hook' which would go through, find and fix the corresponding  
headlines.


If you make a good solutions, please share it - I might want to use it  
in Org after all.


- Carsten

On Feb 20, 2010, at 2:39 PM, Geralt wrote:


Hi,

I tracked down the problem to latex itself, the generated code looks  
like this:

\section{This is a simple heading \footnote{A footnote }}
\label{sec-1}

But to get a correct table of contents entry when a section title
contains a footnote it should look like this:

\section[This is a simple heading]{This is a simple heading
\footnote{A footnote }}
\label{sec-1}


The solution was not found by me, I took it from
http://www.mathlinks.ro/Forum/viewtopic.php?t=243820



But I don't want to edit the tex-file manually, how can I fix the
renderer? I looked into it but I don't really understand how the
export (and the latex backend) do their work.



Geralt.


___
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-publish-validate-link

2010-02-22 Thread Carsten Dominik


On Feb 21, 2010, at 2:53 PM, Thomas S. Dye wrote:


Hi Carsten,

Thanks for this.

I add a new file that is the target for the link.  It is copied to  
its correct publication place.  The exported html file contains a  
new description of the file link, but with no active link.


I force publishing using C-u prefix and the link is still not active.

I shut down emacs, re-start, force publishing, and the link is now  
active.


Hmm, strange that restarting Emacs was required.

Ah, I see now.  Please pull again.  From now on, when forcing  
publishing with a prefix argument, the validation list will also be  
recreated.


- Carsten



All the best,
Tom

On Feb 20, 2010, at 9:34 PM, Carsten Dominik wrote:


Hi THomas,

org-publish-validate-link validate links to files that show up in  
the list
`org-publish-files-alist'.  THis list contains all file names that  
are considered part of a project and should be published.  It is  
updated each time you issue

a command to publish a project.

Are you sure that you are republishing the document that should  
contain the link?  If that document has not changed, it will not  
republish it, so the ink will also not be fixed.


You can force republishing by calling your publish command with a C- 
u prefix.  Have you tried that?


- Carsten

On Feb 17, 2010, at 9:50 PM, Thomas S. Dye wrote:


Aloha all,

org-publish-validate-link rejects a valid link to a file when the  
file is created during an editing session.


With ./test.org and ./support/test.pdf present at the start of a  
session, the first link in test.org (below) is validated.  When ./ 
support/test-copy.pdf is added during the session, the second link  
is not validated and only the description of the link is output to  
test.html.


- test.org
* A test
- link to [[file:support/test.pdf][test.pdf]]
- link to [[file:support/test-copy.pdf][test-copy.pdf]]
-

If org-publish-validate-link is not used, then the link is placed  
correctly in the html output.


I have read the org-mode manual, briefly searched the list  
archive, and read the function's documentation string, but didn't  
find anything that might alert me to this behavior.


My expectation was that org-publish-validate-link would understand  
the org-mode publishing process and would validate links in the  
production environment that were correctly established in the  
publication location.


I'm using Org-mode version 6.34trans (release_6.34c.89.g0c39) on  
emacs 23.


All the best,
Tom


Thomas S. Dye, Ph.D.
T. S. Dye  Colleagues, Archaeologists, Inc.
Phone: (808) 529-0866 Fax: (808) 529-0884
http://www.tsdye.com


___
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







- 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