[Orgmode] How to align tag to the right margin

2010-12-07 Thread Chao LU
Dear all,

Got another question, as titled, how to align tag to the right margin? My
org tag look like below:

*| blablabalblablab
:Book:Doc:EBook:STAR5:*|*
|
|

-

|

There's some blank between the tags and the
right boundary of Emacs.

Thanks in advance.

Chao
___
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 Todo state

2010-12-07 Thread suvayu ali
Hi Chao,

On Tue, Dec 7, 2010 at 8:54 AM, Chao LU looc...@gmail.com wrote:
 Besides, what's the essential difference between TODO and TAG? Since to me,
 TODO is kind of special TAG?


The way I understand it, TODO states have a flow/sequence to it.
Although they need not always be sequential, e.g. a type TODO keyword,
still they have a flow of NOTDONE -- DONE associated with them.
Whereas, a tag is probably more of a concept related to filing or
categorising and don't as such represent a work flow of any kind.

I hope that helps.

PS: If anyone feels they can improve on the above or if I am wrong
about something, please feel free to correct me. :)

-- 
Suvayu

Open source is the future. It sets us free.

___
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: re-importing ascii export

2010-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/06/2010 06:34 PM, Sébastien Mengin wrote:
 Le lun. 06/12/10 (05:49:34 +0100), Erik Butz a écrit :
 any hints at all?
 

Hi Sébastian

 I read this morning that pandoc was now converting into orgmode... might
 worth giving it a try?

Sounds interesting - where did you find this? I can not find anything on
the website of pandoc ( http://johnmacfarlane.net/pandoc/index.html )

Cheers,

Rainer

 
 S.
 
 On Fri, Nov 26, 2010 at 5:54 PM, Erik Butz erik.b...@googlemail.com wrote:
 Hi all,

 I have a possibly stupid question, which is the following: I have a
 txt file which has been exported using org mode and I don't have the
 initial file. Is there any way to convert the ascii export back into a
 native orgmode file so as to have the usual feature as folding etc?
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz97D8ACgkQoYgNqgF2egoe6ACggR1zI6KD9lYtArvcHXxwHlz0
6xkAoIIqFjInOo+DDhmkW8n1c3oeCisf
=8VZr
-END 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: re-importing ascii export

2010-12-07 Thread Jeff Horn
 Sounds interesting - where did you find this? I can not find anything on
 the website of pandoc ( http://johnmacfarlane.net/pandoc/index.html )

Puneeth mentioned this a few days ago on this list. Search the
archives for pandoc maybe?

Jeff

-- 
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] Re: re-importing ascii export

2010-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 12/07/2010 09:30 AM, Jeff Horn wrote:
 Sounds interesting - where did you find this? I can not find anything on
 the website of pandoc ( http://johnmacfarlane.net/pandoc/index.html )
 
 Puneeth mentioned this a few days ago on this list. Search the
 archives for pandoc maybe?

Must have overlooked that - thanks. Found it.

Rainer


 
 Jeff
 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkz99YsACgkQoYgNqgF2egpVwQCYuzx90gvJnAB4V12BT0+8RY3U
UACfRbrw9gYC4TeQz51xTrTuqiYTMHc=
=iA8g
-END 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] MobileOrg and Voice Capturing (Android)

2010-12-07 Thread Sven Bretfeld
Hi Matthew

Matthew Jones bsdmatb...@gmail.com writes:

 Alright guys, I've gotten this to work I've posted an early build of
 MobileOrg that supports this here:

 http://matburt.net/files/mobileorg-debug.apk

 basically, you need to emit the action: com.matburt.mobileorg.CAPTURE

 it takes an extra intent value called txtValue which will pre-populate the
 text display.

I was using the script for some days now and did all my capturing this
way. It is completely stable and reliable on my HTC Magic with Android
1.6. I see no hindrance for a release. 

 import android
 droid = android.Android()
 message = droid.recognizeSpeech(Capture New Note).result
 a = droid.startActivity(com.matburt.mobileorg.CAPTURE, None, None,
 {'txtValue':message}, False)

Is there a way to enlarge the 'extra' intent with some standard string?
It would be nice to have a TODO keyword and a TAG inserted
automatically. If you are like me, you tend to forget refiling the items
of from-mobile.org regularly. An automatic TAG insertion could help to
remind yourself that there is something new that needs to be cared
about. I use to give a TAG :MIT: (Most Important Things [of the day])
and have a respective Agenda View that I review several times a day. If
newly captured items could appear in this list, I would never forget
about the newly captured tasks. To my regret, I don't know anything
about Python and its syntax, but I'm sure that the 'message' variable
can be extended easily (what I have tried did never work).

As a workaround I have written a simple shellscript for a Cronjob that
starts Conky whenever there is something new in from-mobile.org. So my
desktop reminds me to refile the new items. Maybe it is of some interest
for anybody, so I give it below.

Thanks again for your nice work.

Greetings,

Sven


Here is the Script. Some values and paths have to be replaced to fit
your needs:

--8---cut here---start-8---
#!/bin/bash
 
KILLNR=$(ps ax | grep conky -c .*conkyrc-mobile | grep -v grep | sed 's/ 
pts.*//g')
NEWTASK=$(cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v auto-revert 
| grep -v ^$ | grep -v 20[0-9][0-9])

if [ -n $NEWTASK ];
then
if [ -n $KILLNR ];
then
exit
#   echo file is full, conky is running
else
conky -c ~/.conkyrc-mobile 
#   echo file is full, conky is not running
fi
else
if [ -n $KILLNR ];
then
kill $KILLNR
#   echo file is empty, conky is running
else
exit
#   echo file is empty, conky is not running
fi
fi
--8---cut here---end---8---

This script needs a special configuration file .conkyrc-mobile to be
placed in the home folder:

--8---cut here---start-8---
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

use_spacer right

use_xft yes
xftfont DejaVu Sans:size=18
xftalpha 0.8
text_buffer_size 2048
 
update_interval 3.0
 
draw_shades no
 
draw_outline no
draw_borders no
uppercase no
 
stippled_borders 3
 
border_margin 9
 
border_width 10
 
default_color grey
 
own_window_colour brown
own_window_transparent yes
 
alignment top_right
 
gap_x 10
gap_y 10
 
TEXT
$color

${Color green}NEW TASKS
${execi 10 cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v auto-revert 
| grep -v ^$ | grep -v 20[0-9][0-9]}$color
--8---cut here---end---8---

___
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-indent, org-inlinetask: patches on github

2010-12-07 Thread Sébastien Vauban
Hi Nicolas,

Nicolas Goaziou wrote:
 It has been applied to master branch.

 I will keep an eye on reported bugs about it. It shouldn't change
 anything for users not requiring org-inlinetask in their Org
 configuration, though.

Perfect. Thanks!

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: Two issues with :VISIBILITY: property

2010-12-07 Thread Matt Lundin
Cassio Koshikumo ckoshik...@gmail.com writes:

 Thanks a lot, Matt! The patch did correct the second issue.

 About the first one:

 I cannot replicate this. When I move the headlines, they remain folded.

 It's strange that you cannot replicate this behavior. I got today's
 snapshot and disabled all my customizations to try a vanilla install,
 and it's still there.

 Just to make sure we're talking about the same thing: when you move
 the Level 1 tree (the one that has the PROPERTY drawer) it really
 keeps folded? I ask because I noticed that, if I move one of its
 children, everything remains folded. But if I move the parent tree,
 the entire tree gets expanded.

 By the way, it doesn't even take a VISIBILITY setting to cause this. Say I 
 have:

 * Chapter 1
   Text under Chapter 1.

 ** Section A
Text under Section A.

 * Chapter 2
   Text under Chapter 2.

 ** Section B
Text under Section B.

 Using S-TAB, I go to OVERVIEW:

 * Chapter 1...
 * Chapter 2...

 Now I place the cursor on Chapter 1 and press TAB:

 * Chapter 1
   Text under Chapter 1.

 ** Section A...

 * Chapter 2...

 Right now, Section A remains folded, which is what you'd expect
 (because Chapter 1 is only showing its children). But, if I move
 Chapter 1 down, putting it after Chapter 2, Section A gets
 expanded:

 * Chapter 2...

 * Chapter 1
   Text under Chapter 1.

 ** Section A
Text under Section A.

 This behavior is absolutely consistent here... If you really cannot
 replicate it, I wonder what could be causing it in my installation.

You are right. I can replicate this now, following the steps above. I'm
not sure whether this is the intended behavior or not. Perhaps someone
who understands the code better than I do can chime in

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] Orgmode and Unicode characters

2010-12-07 Thread Eric S Fraga
Dov Grobgeld dov.grobg...@gmail.com writes:

 The way I see it, within org-mode you wouldn't have to change
 anything in your input, but C-c C-c or other hot keys would do the
 change automatically. But I really don't mind if the underlying
 buffer stays the same, but only the display changes.

Yes, I think the underlying buffer should remain the same.  Whether you
use fancy utf chars to display headings etc should be similar to
pretty-entities and font-locking, in my view.

 Secondly, typing Unicode characters is pretty easy in emacs through
 its input modes. I have recently working on a special input mode for
 the key-starved N900 keyboard and it is really simple through quail.
 For box characters, you may e.g. use input mode rfc1345 through C-\
 rfc1345, and then type:

rfc1345 is nice; other favourites are =ucs= for the full unicode
character set and =tex= which allows you to use latex commands to type
in specific characters (e.g. \rightarrow will actually put in →).

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.221.gb3e16)

___
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] Sparse tree using regexp

2010-12-07 Thread Juri Artamonov
Hello,

I have aquamacs and I have org file. I would like to leave lines that which
contains only words TODO or INPROGRESS.

I do Ctrl-C + / + / and then enter regular expression. If I enter TODO or
just INPROGRESS then it works but when I try to enter TODO|INPROGRESS or
TODO\|INPROGRESS in order to see records containing one of these words then
no records are shown.

Could you please advice how to use regexp here for orgmode?

Thank you,
Juri.
___
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: Sparse tree using regexp

2010-12-07 Thread Marco (m) Wahl
Juri Artamonov jartamo...@gmail.com writes:

 Hello,

 I have aquamacs and I have org file. I would like to leave lines that
 which contains only words TODO or INPROGRESS.

 I do Ctrl-C + / + / and then enter regular expression. If I enter TODO
 or just INPROGRESS then it works but when I try to enter
 TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing
 one of these words then no records are shown.

 Could you please advice how to use regexp here for orgmode?

what about '\(TODO\)\|\(INPROGRESS\)'?

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


[Orgmode] Re: Coding systems in Babel

2010-12-07 Thread Vincent Beffara

Hello,

 So, the instance of python spawned by C-c C-c receives the text as
 latin-1 encoded. Somewhere a conversion from UTF8 to latin-1
 happens. But I don't want that, I want everything to stay in UTF8 from
 the beginning to the end. I guess I have two questions:

 At what point in the process is the convertion performed ?

 How do I prevent it / how do I specify UTF8 as the exchange format
 between Org-Babel and outside processes spawned by C-c C-c ?

Mmmmkay, answering to myself (you never know, maybe it will be useful to
someone else later ...): the answer to that is in the general
interprocess comunication in Emacs. I ended up doing this:

--8---cut here---start-8---
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))
--8---cut here---end---8---

and everything works fine now.

Having to set this by hand is a bit counter-intuitive though - would it
make sense to have babel set =coding-system-for-read= and
=coding-system-for-write= when running a subprocess ? From what I
understand, =shell-command-on-region= does that automatically but
=org-babel-eval= uses a temporary buffer which loses the encoding choice
for the .org file buffer.

Sorry for the noise, and thanks to all for this excellent tool ! I am
getting addicted to org and babel by the minute ...

Cheers,

/v


___
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: Sparse tree using regexp

2010-12-07 Thread suvayu ali
On Tue, Dec 7, 2010 at 1:29 PM, Marco (m) Wahl marcow...@gmail.com wrote:
 Juri Artamonov jartamo...@gmail.com writes:

 Hello,

 I have aquamacs and I have org file. I would like to leave lines that
 which contains only words TODO or INPROGRESS.

 I do Ctrl-C + / + / and then enter regular expression. If I enter TODO
 or just INPROGRESS then it works but when I try to enter
 TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing
 one of these words then no records are shown.

 Could you please advice how to use regexp here for orgmode?

 what about '\(TODO\)\|\(INPROGRESS\)'?


But shouldn't it be possible to get the sparse tree with the simpler
TODO\|INPROGRESS regex anyway? I tried it and it worked as expected
(with GNU Emacs on Linux). The OP could also try using the Todo kwd
option, `C-c / T'. When prompted, a simple expression like
TODO|INPROGRESS should work. (note the absence of backslash).

Maybe some variable setting is interfering with the matching, or maybe
its an Aquamacs bug. Just a few thoughts.

-- 
Suvayu

Open source is the future. It sets us free.

___
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: Sparse tree using regexp

2010-12-07 Thread Juri Artamonov
Hello Marco,

this way it's working. Do you know why it's required additional brackets and
it's handling?

Thank you,
  Juri.

On Tue, Dec 7, 2010 at 12:29 PM, Marco (m) Wahl marcow...@gmail.com wrote:

 Juri Artamonov jartamo...@gmail.com writes:

  Hello,
 
  I have aquamacs and I have org file. I would like to leave lines that
  which contains only words TODO or INPROGRESS.
 
  I do Ctrl-C + / + / and then enter regular expression. If I enter TODO
  or just INPROGRESS then it works but when I try to enter
  TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing
  one of these words then no records are shown.
 
  Could you please advice how to use regexp here for orgmode?

 what about '\(TODO\)\|\(INPROGRESS\)'?

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

___
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: Sparse tree using regexp

2010-12-07 Thread Marco (m) Wahl
hi Juri,

  I do Ctrl-C + / + / and then enter regular expression. If I enter TODO
  or just INPROGRESS then it works but when I try to enter
  TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing
  one of these words then no records are shown.
 
  Could you please advice how to use regexp here for orgmode?

 what about '\(TODO\)\|\(INPROGRESS\)'?
 this way it's working.

that's good.

 Do you know why it's required additional brackets and it's handling?

i just reactivated my regexp-brain-cells and saw the brackets. ;)
possibly you want to dive into regexps.  then you will get aquainted
with the brackets for grouping.

but ali noticed that you don't need brackets on his box.  maybe it's a
bug (or inconvenience) in aquamacs.  see his post and hopefully some
follow-ups.

ciao



___
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] [Babel] Tangling ignores LOB file?

2010-12-07 Thread Sébastien Vauban
#+TITLE: Tangling process ignores LOB?
#+DATE:  2010-12-07
#+LANGUAGE:  en_US

#+BABEL: :cmdline -S server -U user -P password -d database -n -w 700 :results 
output :exports both

* Abstract

References to named code blocks located in a LOB file seem to be ignored by
the tangling process.

* Example

** Common code

These 2 SQL code blocks are, and will be, reused all over the place:

#+srcname: set-count-off
#+begin_src sql :eval never
-- no longer display the count message
SET NOCOUNT ON
#+end_src

#+srcname: defvar-now
#+begin_src sql :eval never
DECLARE @now smalldatetime
SET @now = CONVERT(smalldatetime,
   CAST(YEAR(GETDATE()) AS char(4)) + '-' +
   CAST(MONTH(GETDATE()) AS char(2)) + '-' +
   CAST(DAY(GETDATE()) AS char(2)) + ' ' +
   CAST(DATEPART(hh, GETDATE()) AS char(2)) + ':' +
   CAST(DATEPART(mi, GETDATE()) AS char(2)) + ':' +
   '00',
   120) -- ODBC canonical
#+end_src

** Specific code

For example, I use them here:

#+begin_src sql :engine msosql :noweb yes
set-count-off
defvar-now
SELECT TOP 5 @now AS now
FROM table
#+end_src

#+results:
| now |
| --- |
| 2010-12-07 15:14:00 |
| 2010-12-07 15:14:00 |
| 2010-12-07 15:14:00 |
| 2010-12-07 15:14:00 |
| 2010-12-07 15:14:00 |
| |

And it works (see the /results/ table). But...

* Problem

If I put the *common code blocks* into some LOB file (i.e., I move them out of
this file) and ingest it, then the specific code does not properly run
anymore.

In other words, it seems that the tangle process does not take into account
the code blocks located in the LOB.

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] Re: Org-mode Code Blocks Manuscript: Request For Comments

2010-12-07 Thread Thomas S. Dye

Aloha Chuck,
On Dec 6, 2010, at 6:48 PM, Charles C. Berry wrote:


On Mon, 6 Dec 2010, Sunny Srivastava wrote:


Hello Chuck:

Your idea is very interesting. I am curious to make use of your  
ideas. If it
is not too much trouble, can you please share an example org file  
that you
use for package development? I completely understand if you can't  
share the

file.



Sunny,

I posted the vanilla version of the file at

http://famprevmed.ucsd.edu/faculty/cberry/org-mode/RpkgExample.org

It has the src blocks I use in each package.

To use it, you set up a minimal package directory structure:

myPackage/
myPackage/DESCRIPTION
myPackage/man/
myPackage/R/

say, and (optionally) put it under version control.

Or use an existing package you are already working on.

Or download one from CRAN, and untar it.

Then copy RpkgExample.org to myPackage/

(or whatever the equivalent directory is)

and you are ready to start.

FWIW, if I have a good idea of what I am doing at the outset, I will
write functions in R/*.R files and create man/*.Rd files using
prompt() and then edit them, and then get around to checking,
installing, and trying out the package from the org file.

But usually, I have only a fuzzy idea of what how to organize the
code, so I start by writing a snippet of code in an R :session src
block that sets up some objects of the sort I would want my package to
work on. I run that block. Then I might write a script in  
another :session

src block to do some of the work I want the package to do, and
try it out. Once it works I wrap it into a function, and write another
:session src block to call the function. Once that works, I kill the
src block with the function in it and yank it into a fresh buffer
where it is saved as R/whatever.R. After using prompt() to make the
man/whatever.Rd and editting it, I am ready to run the package check,
install the package, restart my R session and load the package. Then I
can stitch together tests, examples, and more functions in the org
file, and test them and migrate them to the right places.


Comments welcome.



Thanks for sharing this.  It looks useful.  Would you consider putting  
it on Worg with the other babel source block examples?


Have you thought about tangling the .R files directly from the Org- 
mode buffer?  With :tangle R/whatever.R you might save yourself having  
to kill the source block, yanking it to a fresh buffer, and saving.


My goal when designing these things, which might or might not appeal  
to you, is to hold the entire project in the Org-mode file.  In the  
end, exporting the Org-mode file to html or pdf can yield a rich  
description of the project, independent of its product, man files,  
etc.  Later, when I want to make changes, I know exactly where to go.


All the best,
Tom


Best,

Chuck



Your help is highly appreciated.

Thank you in advance.

Best Regards,
S.

On Mon, Dec 6, 2010 at 2:52 PM, Charles C. Berry cbe...@tajo.ucsd.edu 
wrote:



On Sat, 4 Dec 2010, Thomas S. Dye wrote:

Aloha Detlef


On Dec 2, 2010, at 9:58 PM, Detlef Steuer wrote:

Hi!


[rest deleted]


Charles C. BerryDept of Family/ 
Preventive Medicine

cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego  
92093-0901






___
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] [Babel] (Don't) recenter buffer after evaluating code block

2010-12-07 Thread Sébastien Vauban
Hi,

I've noticed that, after every (single) code block evaluation, the buffer is
getting re-centered around point.

I personally find this annoying, and tried to get rid of it. So I've searched
all `ob-*.el' files for the string `recenter', but I did not find any.

Any idea on how to turn this off?

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: Sparse tree using regexp

2010-12-07 Thread Matt Lundin
marcow...@gmail.com (Marco (m) Wahl) writes:

 hi Juri,

  I do Ctrl-C + / + / and then enter regular expression. If I enter TODO
  or just INPROGRESS then it works but when I try to enter
  TODO|INPROGRESS or TODO\|INPROGRESS in order to see records containing
  one of these words then no records are shown.
 
  Could you please advice how to use regexp here for orgmode?

 what about '\(TODO\)\|\(INPROGRESS\)'?
 this way it's working.

 that's good.

 Do you know why it's required additional brackets and it's handling?

 i just reactivated my regexp-brain-cells and saw the brackets. ;)
 possibly you want to dive into regexps.  then you will get aquainted
 with the brackets for grouping.

 but ali noticed that you don't need brackets on his box.  maybe it's a
 bug (or inconvenience) in aquamacs.  see his post and hopefully some
 follow-ups.


The parentheses are redundant. Perhaps it is an Aquamacs issue. With
GnuEmacs 24 on Linux, the following search works fine:

C-c / / TODO\|STARTED

That said, for this use, a TODO keyword search will be quicker and more
accurate, as the regexp search above will match todo or started
anywhere in the buffer. Here's the todo search:

C-c / T TODO|STARTED

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] Latex preview - working directory

2010-12-07 Thread Maximilian Matthé
Hi guys,

I just wanted to try out the latex snippet preview. There is a problem
with that since I have in my org-document the following preamble:

#+LATEX_HEADER: \input{../vlstyle}

which refers to a .tex-file relative to the location of my document. The
file contains some definitions for math. symbols I need in many
documents, so I extracted them into an external file.

Since the preview-snippets are compiled in /tmp/ Latex cannot find the
vlstyle.tex and the compilation fails. 

Is there another way to get previews except specifying an absolute path
to the vlstyle.tex? Maybe sth. with org-babel? But it shouldn't be too
long since I would have to add that to every new document I write.

Regards, Max


___
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] MobileOrg and Voice Capturing (Android)

2010-12-07 Thread Matthew Jones
Hi Sven... that's a nice one, you might could add that to the scripts
section of the MobileOrg wiki.

Pretty soon the Capture interface will be extended to allow settings tags
and other things on captured notes... once these are in place I will extend
the CAPTURE action to also take these values as intent params.

http://matburt.net


On Tue, Dec 7, 2010 at 5:05 AM, Sven Bretfeld sven.bretf...@gmx.ch wrote:

 Hi Matthew

 Matthew Jones bsdmatb...@gmail.com writes:

  Alright guys, I've gotten this to work I've posted an early build of
  MobileOrg that supports this here:
 
  http://matburt.net/files/mobileorg-debug.apk
 
  basically, you need to emit the action: com.matburt.mobileorg.CAPTURE
 
  it takes an extra intent value called txtValue which will
 pre-populate the
  text display.

 I was using the script for some days now and did all my capturing this
 way. It is completely stable and reliable on my HTC Magic with Android
 1.6. I see no hindrance for a release.

  import android
  droid = android.Android()
  message = droid.recognizeSpeech(Capture New Note).result
  a = droid.startActivity(com.matburt.mobileorg.CAPTURE, None, None,
  {'txtValue':message}, False)

 Is there a way to enlarge the 'extra' intent with some standard string?
 It would be nice to have a TODO keyword and a TAG inserted
 automatically. If you are like me, you tend to forget refiling the items
 of from-mobile.org regularly. An automatic TAG insertion could help to
 remind yourself that there is something new that needs to be cared
 about. I use to give a TAG :MIT: (Most Important Things [of the day])
 and have a respective Agenda View that I review several times a day. If
 newly captured items could appear in this list, I would never forget
 about the newly captured tasks. To my regret, I don't know anything
 about Python and its syntax, but I'm sure that the 'message' variable
 can be extended easily (what I have tried did never work).

 As a workaround I have written a simple shellscript for a Cronjob that
 starts Conky whenever there is something new in from-mobile.org. So my
 desktop reminds me to refile the new items. Maybe it is of some interest
 for anybody, so I give it below.

 Thanks again for your nice work.

 Greetings,

 Sven


 Here is the Script. Some values and paths have to be replaced to fit
 your needs:

 --8---cut here---start-8---
 #!/bin/bash

 KILLNR=$(ps ax | grep conky -c .*conkyrc-mobile | grep -v grep | sed 's/
 pts.*//g')
 NEWTASK=$(cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v
 auto-revert | grep -v ^$ | grep -v 20[0-9][0-9])

 if [ -n $NEWTASK ];
 then
if [ -n $KILLNR ];
then
exit
 #   echo file is full, conky is running
else
conky -c ~/.conkyrc-mobile 
 #   echo file is full, conky is not running
fi
 else
if [ -n $KILLNR ];
then
kill $KILLNR
 #   echo file is empty, conky is running
else
exit
 #   echo file is empty, conky is not running
fi
 fi
 --8---cut here---end---8---

 This script needs a special configuration file .conkyrc-mobile to be
 placed in the home folder:

 --8---cut here---start-8---
 own_window yes
 own_window_type override
 own_window_transparent yes
 own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

 use_spacer right

 use_xft yes
 xftfont DejaVu Sans:size=18
 xftalpha 0.8
 text_buffer_size 2048

 update_interval 3.0

 draw_shades no

 draw_outline no
 draw_borders no
 uppercase no

 stippled_borders 3

 border_margin 9

 border_width 10

 default_color grey

 own_window_colour brown
 own_window_transparent yes

 alignment top_right

 gap_x 10
 gap_y 10

 TEXT
 $color

 ${Color green}NEW TASKS
 ${execi 10 cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v
 auto-revert | grep -v ^$ | grep -v 20[0-9][0-9]}$color
 --8---cut here---end---8---

___
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 Todo state

2010-12-07 Thread Eric S Fraga
suvayu ali fatkasuvayu+li...@gmail.com writes:

 Hi Chao,

 On Tue, Dec 7, 2010 at 8:54 AM, Chao LU looc...@gmail.com wrote:
 Besides, what's the essential difference between TODO and TAG? Since to me,
 TODO is kind of special TAG?


 The way I understand it, TODO states have a flow/sequence to it.
 Although they need not always be sequential, e.g. a type TODO keyword,
 still they have a flow of NOTDONE -- DONE associated with them.
 Whereas, a tag is probably more of a concept related to filing or
 categorising and don't as such represent a work flow of any kind.

and, for the OP, don't forget that there are two other pieces of
information associated with any item: a CATEGORY and the file name.
This gives a total of 4 data that can be used to /label/ items of
interest, not counting the headline itself, of course.

Agenda views will easily display 3 of the 4 data (default is category,
todo state and tags, IRC).

I use categories for projects, tags for individuals and TODO states for
state information.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.221.gb3e16)

___
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 align tag to the right margin

2010-12-07 Thread Eric S Fraga
Chao LU looc...@gmail.com writes:

 Dear all,

 Got another question, as titled, how to align tag to the right
 margin? My org tag look like below:

check out the variable =org-tags-column= (C-h v org-tags-column RET).
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.221.gb3e16)

___
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-mode Code Blocks Manuscript: Request For Comments

2010-12-07 Thread Charles C. Berry

On Tue, 7 Dec 2010, Thomas S. Dye wrote:


Aloha Chuck,
On Dec 6, 2010, at 6:48 PM, Charles C. Berry wrote:


On Mon, 6 Dec 2010, Sunny Srivastava wrote:


{snip]



I posted the vanilla version of the file at

http://famprevmed.ucsd.edu/faculty/cberry/org-mode/RpkgExample.org

It has the src blocks I use in each package.

To use it, you set up a minimal package directory structure:

 myPackage/
 myPackage/DESCRIPTION
 myPackage/man/
 myPackage/R/

say, and (optionally) put it under version control.

Or use an existing package you are already working on.

Or download one from CRAN, and untar it.

Then copy RpkgExample.org to myPackage/

(or whatever the equivalent directory is)

and you are ready to start.

FWIW, if I have a good idea of what I am doing at the outset, I will
write functions in R/*.R files and create man/*.Rd files using
prompt() and then edit them, and then get around to checking,
installing, and trying out the package from the org file.

But usually, I have only a fuzzy idea of what how to organize the
code, so I start by writing a snippet of code in an R :session src
block that sets up some objects of the sort I would want my package to
work on. I run that block. Then I might write a script in another :session
src block to do some of the work I want the package to do, and
try it out. Once it works I wrap it into a function, and write another
: session src block to call the function. Once that works, I kill the
src block with the function in it and yank it into a fresh buffer
where it is saved as R/whatever.R. After using prompt() to make the
man/whatever.Rd and editting it, I am ready to run the package check,
install the package, restart my R session and load the package. Then I
can stitch together tests, examples, and more functions in the org
file, and test them and migrate them to the right places.


Comments welcome.



Thanks for sharing this.  It looks useful.  Would you consider putting it on 
Worg with the other babel source block examples?




Yes. I will clean it up a bit in the coming days and post it.


Have you thought about tangling the .R files directly from the Org-mode 
buffer?  With :tangle R/whatever.R you might save yourself having to kill the 
source block, yanking it to a fresh buffer, and saving.


Well, yes and no. (There was a brief discussion of just his issue here
a couple of months back.)

I kinda assumed that the workflow would be a bit more awkward with the
package files all held in the org file:

  - run a test, find a bug
  - move to find src block with relevant .R or .Rd code
  - edit the .R or .Rd
  - tangle all the src blocks containing package code or files
  - check and/or install and then load the package
  - move back to the test src block
  - repeat

I was thinking that navigating thru the org file to find the .R or .Rd
src block and later back to the test src block would be slower than
jumping between a few code buffers, but maybe I overlooked the power
of folding, TODO's, and other org-built functionality. The speedbar
makes navigating the package directory pretty easy, but I suppose that
it could be used exclusively on the org file. I'll think a bit more
about this.

Also, I was thinking that tangling the whole package every time I
change a line of code is a bit over the top, but again maybe I should
just try it and see. Also, I suppose I could mark blocks that are not
under revision as ':tangle no' to suppress tangling them. If there is
an easy way to set the tangle arg to a filename if point is in the src
block or subtree and 'no' otherwise, that might make tangling just a
newly changed block easier.


Chuck



My goal when designing these things, which might or might not appeal to you, 
is to hold the entire project in the Org-mode file.  In the end, exporting 
the Org-mode file to html or pdf can yield a rich description of the project, 
independent of its product, man files, etc.  Later, when I want to make 
changes, I know exactly where to go.


All the best,
Tom


Best,

Chuck


 Your help is highly appreciated.
 
 Thank you in advance.
 
 Best Regards,

 S.
 
 On Mon, Dec 6, 2010 at 2:52 PM, Charles C. Berry 
 cbe...@tajo.ucsd.eduwrote:
 
  On Sat, 4 Dec 2010, Thomas S. Dye wrote:
  
  Aloha Detlef
   
   On Dec 2, 2010, at 9:58 PM, Detlef Steuer wrote:
   
   Hi!


[rest deleted]


Charles C. BerryDept of Family/Preventive 
Medicine

cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901







Charles C. BerryDept of Family/Preventive Medicine
cbe...@tajo.ucsd.eduUC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



___
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] source code block export no expansion

2010-12-07 Thread Andreas Leha
Hi all,

I have a question about exporting source code blocks.  Say, I have
several modules (mod1, mod2), that build a bigger part (part1) of my
program, e.g.:


  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb yes :tangle yes :export code :session *R*
mod1
mod2
  #+end_src

 
Now during the tangling I would like to tangle just the full part1 -
with noweb links being expanded.  Also during execution the noweb links
should be expanded.  This is not a problem.

But at the same time, during the export I'd like to export all three
code snippets, but I'd prefer the noweb links not to be expanded.  Is
that possible?

Thanks in advance,
Andreas



smime.p7s
Description: S/MIME Cryptographic 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] [PATCH] displaymath environment and MathJax

2010-12-07 Thread Łukasz Stelmach
Greetings All.

The following patch makes MathJax consider \begin{displaymath} and
\end{displaymath} as math environmetn boundaries. For someone who, like
me, keeps The not so short introduction to LaTeX2e alway around, the
displaymath environment is the default way to introduce a block of math.

In fact '\[' and '\]' are also mentioned there but the environment is
used in every single example so the patch minimizes the surprise.

--8---cut here---start-8---
diff --git a/lisp/org-html.el b/lisp/org-html.el
index d1fe06d..2380c12 100644
--- a/lisp/org-html.el
+++ b/lisp/org-html.el
@@ -290,7 +290,7 @@ You can also customize this for each buffer, using 
something like
  \TeX/noUndefined.js\],
 tex2jax: {
 inlineMath: [ [\(\,\)\] ],
-displayMath: [ ['$$','$$'], [\[\,\]\] ],
+displayMath: [ ['$$','$$'], [\[\,\]\], 
[\begin{displaymath}\,\end{displaymath}\] ],
 skipTags: 
[\script\,\noscript\,\style\,\textarea\,\pre\,\code\],
 ignoreClass: \tex2jax_ignore\,
 processEscapes: false,
--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


Re: [Orgmode] source code block export no expansion

2010-12-07 Thread Thomas S. Dye

Aloha Andreas,

Perhaps :noweb tangle will do what you want.

hth,
Tom

On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:


Hi all,

I have a question about exporting source code blocks.  Say, I have
several modules (mod1, mod2), that build a bigger part (part1) of my
program, e.g.:


 #+srcname: mod1
 #+begin_src R :tangle no :export code
   print(mod1)
 #+end_src

 #+srcname: mod2
 #+begin_src R :tangle no :export code
   print(mod2)
 #+end_src

 #+srcname: part1
 #+begin_src R :noweb yes :tangle yes :export code :session *R*
   mod1
   mod2
 #+end_src


Now during the tangling I would like to tangle just the full part1 -
with noweb links being expanded.  Also during execution the noweb  
links

should be expanded.  This is not a problem.

But at the same time, during the export I'd like to export all three
code snippets, but I'd prefer the noweb links not to be expanded.  Is
that possible?

Thanks in advance,
Andreas

___
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] calling to Emacs server to export to PDF

2010-12-07 Thread Herbert Sitz
I'm trying to call a function in an Emacs server to export a file to PDF using
the following command:

c:\program files (x86)\emacs\emacs\bin\emacs.exe -batch --visit=[myfile]
--funcall org-export-as-pdf

It works okay but it doesn't seem to use the default latex class that I've
defined in my .emacs.  I can alter the LaTeX output by embedding #+LATEX_HEAD
lines in my file, but those come after the \documentclass command and all the
other default preamble lines Emacs is inserting.

Printing from the same Emacs instance directly does seem to use the .emacs
configuration for LaTeX-related variables.

So I have a couple of questions.

(1)  Is behavior I'm seeing expected?  That is, when I call org-export-as-pdf
remotely it ignores settings in the .emacs file?

(2)  Is best workaround to just alter the default LaTeX class definitions in
org-latex.el?

Thanks for any help.

-- Herb
  


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


[Orgmode] [PATCH] Place Footnotes section before signature in all message-mode derived modes.

2010-12-07 Thread Tassilo Horn
* org-footnote.el (org-footnote-create-definition): Place Footnotes
  section before message-signature-separator also in modes derived
  from message-mode.
---
 lisp/org-footnote.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 2a97b54..8cb4bbc 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -303,7 +303,7 @@ or new, let the user edit the definition of the footnote.
  (t
   (setq re (concat ^ org-footnote-tag-for-non-org-mode-files [ \t]*$))
   (unless (re-search-forward re nil t)
-   (let ((max (if (and (eq major-mode 'message-mode)
+   (let ((max (if (and (derived-mode-p 'message-mode)
(re-search-forward message-signature-separator nil 
t))
   (progn (beginning-of-line) (point))
 (goto-char (point-max)
-- 
1.7.3.2

This patch makes the place Footnotes section before message signature
separator also work in modes that derive from message-mode.  For
example, I have a derived mode for editing mails from KMail with the
usual message-mode magic.

--8---cut here---start-8---
(defvar th-kmail-tmp-file-regexp \\(kontact\\|kmail\\).*\\.tmp$
  Regexp that matches the file names of kmail's temporary files.)

(defun kmail-save-message-and-exit ()
  (interactive)
  (goto-char 0)
  (forward-line 1)
  (delete-region 1 (point))
  (save-buffer)
  (server-edit))

(define-derived-mode kmail-mode message-mode KMail
  Major mode for mails from kmail.
\\{kmail-mode-map}
  (goto-char 0)
  (insert --text follows this line--\n)
  (define-key kmail-mode-map (kbd C-c C-c) 'kmail-save-message-and-exit)
  (define-key kmail-mode-map (kbd C-c #)   'kmail-save-message-and-exit))

(add-to-list 'auto-mode-alist
 (cons th-kmail-tmp-file-regexp 'kmail-mode))

(add-to-list 'recentf-exclude th-kmail-tmp-file-regexp)
--8---cut here---end---8---


___
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] source code block export no expansion

2010-12-07 Thread Andreas Leha
Hi Tom,

thanks for this answer.  This indeed comes closer to what I want.

But, some comments:

(1) There seems to be an error in the manual:
In the manual the :noweb tangle header argument is given as :noweb yes,
which is why I missed that option.

(2) The noweb link are expanded *always* (i.e. execution, export,
tangle) even with the :noweb tangle option:
  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb tangle :tangle yes :export code :session *R*
mod1
mod2
  #+end_src


(3) I am looking for an option to disable the noweb link expansion
during *export* only.  However, as I understand it, the :noweb tangle
header option is supposed to disable the expansion also for *execution*.


So, is this not possible right now?

Cheers,
Andreas



Am 07.12.2010 19:37, schrieb Thomas S. Dye:
 Aloha Andreas,

 Perhaps :noweb tangle will do what you want.

 hth,
 Tom

 On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:

 Hi all,

 I have a question about exporting source code blocks.  Say, I have
 several modules (mod1, mod2), that build a bigger part (part1) of my
 program, e.g.:


  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb yes :tangle yes :export code :session *R*
mod1
mod2
  #+end_src


 Now during the tangling I would like to tangle just the full part1 -
 with noweb links being expanded.  Also during execution the noweb links
 should be expanded.  This is not a problem.

 But at the same time, during the export I'd like to export all three
 code snippets, but I'd prefer the noweb links not to be expanded.  Is
 that possible?

 Thanks in advance,
 Andreas

 ___
 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

-- 
Andreas Leha

Universitätsmedizin Göttingen
Abteilung Medizinische Statistik
Humboldtallee 32
37073 Göttingen

Tel: +49 (0)551 39-10710
Fax: +49 (0)551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha.html



University Medical Center Göttingen
Department for Medical Statistics
Humboldtallee 32
37073 Göttingen
Germany

Phone: +49 (0) 551 39-10710
Fax: +49 (0) 551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html




smime.p7s
Description: S/MIME Cryptographic 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] Elsevier's Executable Paper Grand Challenge

2010-12-07 Thread Bill White
In light of recent paper by Davison, Dominik, Dye and Schulte, this
sounds like something org-mode could address:
http://www.executablepapers.com

There is a USD 1 first-place award.

   Executable Paper Grand Challenge is a contest created to improve the
   way scientific information is communicated and used.

   It asks:

   How can we develop a model for executable files that is compatible
   with the user’s operating system and architecture and adaptable to
   future systems?

   How do we manage very large file sizes?

   How do we validate data and code, and decrease the reviewer’s
   workload?

   How to support registering and tracking of actions taken on the
   ‘executable paper?’

   The purpose of the Executable Paper Challenge is to invite scientists
   to put forth their ideas pertaining to these pressing and unsolved
   questions.

See http://www.executablepapers.com for more information, deadlines, etc.

Cheers -

bw
-- 
Bill White . bi...@wolfram.com . http://members.wolfram.com/billw
No ma'am, we're musicians.

___
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] calling to Emacs server to export to PDF

2010-12-07 Thread Nick Dokos
[Resending to the list: I got bitten by my old server verification nemesis.
 Hope this makes it. Apologies to Herb for the duplicates.]

Herbert Sitz hs...@nwlink.com wrote:

 I'm trying to call a function in an Emacs server to export a file to PDF usin
g
 the following command:
 
 c:\program files (x86)\emacs\emacs\bin\emacs.exe -batch --visit=[myfile]
 --funcall org-export-as-pdf
 
 It works okay but it doesn't seem to use the default latex class that I've
 defined in my .emacs.  I can alter the LaTeX output by embedding #+LATEX_HEAD
 lines in my file, but those come after the \documentclass command and all the
 other default preamble lines Emacs is inserting.
 
 Printing from the same Emacs instance directly does seem to use the .emacs
 configuration for LaTeX-related variables.
 
 So I have a couple of questions.
 
 (1)  Is behavior I'm seeing expected?  That is, when I call org-export-as-pdf
 remotely it ignores settings in the .emacs file?
 

Yes, --batch implies -q, so you have to load your .emacs explicitly (or perhaps
strip it down to its essentials and create a minimal .emacs for such a use).

See appendix C.2 of the emacs manual:

  (info (emacs)Initial Options)


 (2)  Is best workaround to just alter the default LaTeX class definitions in
 org-latex.el?
 

Probably not: try

  emacs --batch --load $HOME/minimal.emacs --visit file --funcall 
org-export-as-pdf

(well, translated into whatever Windows needs).

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: Questions about org-capture templates and usage

2010-12-07 Thread Nick Dokos
[Resending to the list, after fixing a mail problem. I badly wanted to
 correct my mistake, but my mail to the list kept disappearing.
 Apologies to Alan for the multiple copies.]


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

 Alan E. Davis lngn...@gmail.com wrote:
 
  I have org-capture assigned to C-c, so C-u C-u C-c c goes straight
  to the last stored item.  Perfect.  
 

 I presume the first `C-c' above is a typo and that the bindind is `C-c
 c', as the second instance indicates. Rebinding C-c to a command would
 be a disaster,

True so far, but the following is nonsense: please disregard...

 but even C-c c is generally not a good idea:

C-c letter should not be usurped by programs, *exactly* because
it is reserved for users.

Going-for-some-caffeine-ly yours,
Nick

 see the Key Binding Conventions in the Emacs Lisp manual - if you have
 the manual locally, evaluate the following
 
 (info (elisp)Key Binding Conventions)
 
 otherwise it's available online at
 
 
 http://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html#Key-Binding-Conventions
 
 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


[Orgmode] Re: calling to Emacs server to export to PDF

2010-12-07 Thread Herbert Sitz
Nick Dokos nicholas.dokos at hp.com writes:

 Yes, --batch implies -q, so you have to load your .emacs explicitly (or 
 perhaps
 strip it down to its essentials and create a minimal .emacs for such a use).
 
 Probably not: try
 
   emacs --batch --load $HOME/minimal.emacs --visit file --funcall
org-export-as-pdf

Nick -- Beautiful, thanks.  -- Herb


___
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] source code block export no expansion

2010-12-07 Thread Andreas Leha
Hi Tom,

thanks for the answer and thanks for spotting the typo.  But even with
the typo corrected during export the noweb links are still exported.
  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb tangle :tangle yes :exports code :session *R*
mod1
mod2
  #+end_src

Result:
...
\lstset{language=R}
\begin{lstlisting}
print(mod1)
print(mod2)
\end{lstlisting}
...



Am 07.12.2010 20:33, schrieb Thomas S. Dye:
 Aloha Andreas,

 On Dec 7, 2010, at 8:49 AM, Andreas Leha wrote:

 Hi Tom,

 thanks for this answer.  This indeed comes closer to what I want.

 But, some comments:

 (1) There seems to be an error in the manual:
 In the manual the :noweb tangle header argument is given as :noweb yes,
 which is why I missed that option.

 I believe this is fixed at the
 source now, but am not sure how long it will take to propagate to the
 distributed documentation.

 (2) The noweb link are expanded *always* (i.e. execution, export,
 tangle) even with the :noweb tangle option:
  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb tangle :tangle yes :export code :session *R*
mod1
mod2
  #+end_src



 Perhaps this has to do with using :export instead of the correct
 header argument, :exports?

 (3) I am looking for an option to disable the noweb link expansion
 during *export* only.  However, as I understand it, the :noweb tangle
 header option is supposed to disable the expansion also for *execution*.

 This isn't how it works for me.  :noweb tangle inhibits noweb expansion 
 during export only.


 So, is this not possible right now?


 It is possible now.  If the :exports header argument doesn't fix your
 problem, come back to the list.

 All the best,
 Tom

 Cheers,
 Andreas



 Am 07.12.2010 19:37, schrieb Thomas S. Dye:
 Aloha Andreas,

 Perhaps :noweb tangle will do what you want.

 hth,
 Tom

 On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:

 Hi all,

 I have a question about exporting source code blocks.  Say, I have
 several modules (mod1, mod2), that build a bigger part (part1) of my
 program, e.g.:


 #+srcname: mod1
 #+begin_src R :tangle no :export code
   print(mod1)
 #+end_src

 #+srcname: mod2
 #+begin_src R :tangle no :export code
   print(mod2)
 #+end_src

 #+srcname: part1
 #+begin_src R :noweb yes :tangle yes :export code :session *R*
   mod1
   mod2
 #+end_src


 Now during the tangling I would like to tangle just the full part1 -
 with noweb links being expanded.  Also during execution the noweb links
 should be expanded.  This is not a problem.

 But at the same time, during the export I'd like to export all three
 code snippets, but I'd prefer the noweb links not to be expanded.  Is
 that possible?

 Thanks in advance,
 Andreas

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

 -- 
 Andreas Leha

 Universitätsmedizin Göttingen
 Abteilung Medizinische Statistik
 Humboldtallee 32
 37073 Göttingen

 Tel: +49 (0)551 39-10710
 Fax: +49 (0)551 39-4995

 http://www.ams.med.uni-goettingen.de/amsneu/leha.html



 University Medical Center Göttingen
 Department for Medical Statistics
 Humboldtallee 32
 37073 Göttingen
 Germany

 Phone: +49 (0) 551 39-10710
 Fax: +49 (0) 551 39-4995

 http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html


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


-- 
Andreas Leha

Universitätsmedizin Göttingen
Abteilung Medizinische Statistik
Humboldtallee 32
37073 Göttingen

Tel: +49 (0)551 39-10710
Fax: +49 (0)551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha.html



University Medical Center Göttingen
Department for Medical Statistics
Humboldtallee 32
37073 Göttingen
Germany

Phone: +49 (0) 551 39-10710
Fax: +49 (0) 551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html



smime.p7s
Description: S/MIME Cryptographic 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] Export of quoted region to HTML

2010-12-07 Thread Vincent Belaïche
Hello,

In the following:

---
* grmag,

#+begin_quote
flkan  mvrj:
+ vfdeovndeq vdQ GV DRGB RGH RF HR H RH TR HTR HTZNTS FEZ GFE GEGERBGER EGAGEG
  FEZ AGG ERG R GHRA
+ fe zf el eaglv erg rbg ergnr brpa bgrek bgrekbg rekbg er gver^gn EMGF
  EMERGVJ DEKM ERE GVBV VGLEELER
#+end_quote
---

The quoted part get exported to HTML as:

---
blockquote

pflkan  mvrj:
/pul
li
vfdeovndeq vdQ GV DRGB RGH RF HR H RH TR HTR HTZNTS FEZ GFE GEGERBGER EGAGEG
FEZ AGG ERG R GHRA
/li
li
fe zf el eaglv erg rbg ergnr brpa bgrek bgrekbg rekbg er gversupgn/sup EMGF
EMERGVJ DEKM ERE GVBV VGLEELER

/blockquote
---

The /li/ul closure is missing.

Is that a bug?

   Vincent.

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


Re: [Orgmode] Export of quoted region to HTML

2010-12-07 Thread Jeff Horn
What happens if you add two blank lines after your last list item,
before closing the quote?

On Tue, Dec 7, 2010 at 3:06 PM, Vincent Belaïche vincent@hotmail.fr wrote:
 Hello,

 In the following:

 ---
 * grmag,

 #+begin_quote
 flkan  mvrj:
 + vfdeovndeq vdQ GV DRGB RGH RF HR H RH TR HTR HTZNTS FEZ GFE GEGERBGER EGAGEG
  FEZ AGG ERG R GHRA
 + fe zf el eaglv erg rbg ergnr brpa bgrek bgrekbg rekbg er gver^gn EMGF
  EMERGVJ DEKM ERE GVBV VGLEELER
 #+end_quote
 ---

 The quoted part get exported to HTML as:

 ---
 blockquote

 pflkan  mvrj:
 /pul
 li
 vfdeovndeq vdQ GV DRGB RGH RF HR H RH TR HTR HTZNTS FEZ GFE GEGERBGER EGAGEG
 FEZ AGG ERG R GHRA
 /li
 li
 fe zf el eaglv erg rbg ergnr brpa bgrek bgrekbg rekbg er gversupgn/sup 
 EMGF
 EMERGVJ DEKM ERE GVBV VGLEELER

 /blockquote
 ---

 The /li/ul closure is missing.

 Is that a bug?

   Vincent.

 ___
 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




-- 
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] source code block export no expansion

2010-12-07 Thread Thomas S. Dye

Aloha Andreas,

Thanks for your patience and persistence.  I think this might qualify  
as a bug.  Using your code, if I don't run R in a session, or if I run  
R in a session but don't name the session, everything works as  
expected.  The behavior changes for me when the session gets a name.


All the best,
Tom


On Dec 7, 2010, at 9:46 AM, Andreas Leha wrote:


Hi Tom,

thanks for the answer and thanks for spotting the typo.  But even  
with the typo corrected during export the noweb links are still  
exported.

  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb tangle :tangle yes :exports code :session *R*
mod1
mod2
  #+end_src

Result:
...
\lstset{language=R}
\begin{lstlisting}
print(mod1)
print(mod2)
\end{lstlisting}
...



Am 07.12.2010 20:33, schrieb Thomas S. Dye:


Aloha Andreas,

On Dec 7, 2010, at 8:49 AM, Andreas Leha wrote:


Hi Tom,

thanks for this answer.  This indeed comes closer to what I want.

But, some comments:

(1) There seems to be an error in the manual:
In the manual the :noweb tangle header argument is given as :noweb  
yes,

which is why I missed that option.


I believe this is fixed at the source now, but am not sure how long  
it will take to propagate to the distributed documentation.



(2) The noweb link are expanded *always* (i.e. execution, export,
tangle) even with the :noweb tangle option:
 #+srcname: mod1
 #+begin_src R :tangle no :export code
   print(mod1)
 #+end_src

 #+srcname: mod2
 #+begin_src R :tangle no :export code
   print(mod2)
 #+end_src

 #+srcname: part1
 #+begin_src R :noweb tangle :tangle yes :export code :session *R*
   mod1
   mod2
 #+end_src




Perhaps this has to do with using :export instead of the correct  
header argument, :exports?



(3) I am looking for an option to disable the noweb link expansion
during *export* only.  However, as I understand it, the :noweb  
tangle
header option is supposed to disable the expansion also for  
*execution*.


This isn't how it works for me.  :noweb tangle inhibits noweb  
expansion during export only.




So, is this not possible right now?



It is possible now.  If the :exports header argument doesn't fix  
your problem, come back to the list.


All the best,
Tom


Cheers,
Andreas



Am 07.12.2010 19:37, schrieb Thomas S. Dye:

Aloha Andreas,

Perhaps :noweb tangle will do what you want.

hth,
Tom

On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:


Hi all,

I have a question about exporting source code blocks.  Say, I have
several modules (mod1, mod2), that build a bigger part (part1)  
of my

program, e.g.:


#+srcname: mod1
#+begin_src R :tangle no :export code
  print(mod1)
#+end_src

#+srcname: mod2
#+begin_src R :tangle no :export code
  print(mod2)
#+end_src

#+srcname: part1
#+begin_src R :noweb yes :tangle yes :export code :session *R*
  mod1
  mod2
#+end_src


Now during the tangling I would like to tangle just the full  
part1 -
with noweb links being expanded.  Also during execution the  
noweb links

should be expanded.  This is not a problem.

But at the same time, during the export I'd like to export all  
three
code snippets, but I'd prefer the noweb links not to be  
expanded.  Is

that possible?

Thanks in advance,
Andreas

___
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


--
Andreas Leha

Universitätsmedizin Göttingen
Abteilung Medizinische Statistik
Humboldtallee 32
37073 Göttingen

Tel: +49 (0)551 39-10710
Fax: +49 (0)551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha.html



University Medical Center Göttingen
Department for Medical Statistics
Humboldtallee 32
37073 Göttingen
Germany

Phone: +49 (0) 551 39-10710
Fax: +49 (0) 551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html


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




--
Andreas Leha

Universitätsmedizin Göttingen
Abteilung Medizinische Statistik
Humboldtallee 32
37073 Göttingen

Tel: +49 (0)551 39-10710
Fax: +49 (0)551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha.html



University Medical Center Göttingen
Department for Medical Statistics
Humboldtallee 32
37073 Göttingen
Germany

Phone: +49 (0) 551 39-10710
Fax: +49 (0) 551 39-4995

http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to 

[Orgmode] (org-log-done 'time) and the subsequent line

2010-12-07 Thread Rob Moss
Greetings,

I've just started using org-mode. I began with a tutorial
(http://dto.github.com/notebook/orgtutorial.html) and have also read
bits of the Compact Org-mode Guide and the org-mode manual. But after
an hour or two of fruitless searching, I am stuck with a
problem/question concerning the logging of TODO items. I want to know
how I can add a trailing newline to the CLOSED: [DATE] line that
gets inserted when I press C-c C-t. To illustrate what I mean, say I
have a file such as the following paragraph:

* Tasks for today
** TODO Task 1
** TODO Task 2

If I put my cursor on line 2 (** TODO Task 1) and press C-c C-t, I get:

* Tasks for today
** DONE Task 1
   CLOSED: [2010-12-07 Tue XX:YY] ** TODO Task 2

And now, Task 2 is on the same line as the CLOSED: [DATE] that logs
the completion of Task 1. Likewise, say I instead have a file such as
the following two paragraphs:

* Tasks for today
** TODO Task 1
** TODO Task 2

* Tasks for tomorrow

If I put my cursor on line 3 (** TODO Task 2) and press C-c C-t, I get:

* Tasks for today
** TODO Task 1
** TODO Task 2
   CLOSED: [2010-12-07 Tue XX:YY]
* Tasks for tomorrow

And I have lost the empty line between the tasks for today and the
tasks for tomorrow. Granted, this doesn't bother me nearly as much as
the first case.

Can anyone suggest how to solve this? I've searched through forums,
public .emacs files and the org-mode manual, but I can't find an
answer. I've dabbled a very little in elisp, but since 'time doesn't
appear to be a function, I can't see how to override it easily. I
really hope that I haven't missed something obvious here.

Many thanks in advance for any suggestions,
Rob

___
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 align tag to the right margin

2010-12-07 Thread Chao LU
Hi Eric,

Yes, it works, by (setq org-tags-column 90). But new question arise, it does
not apply to the tags which have already been there (only new tags after the
modification of the alignment number), so how could I get all the tags
updated?

Thanks and best,

Chao

On Tue, Dec 7, 2010 at 10:24 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 Chao LU looc...@gmail.com writes:

  Dear all,
 
  Got another question, as titled, how to align tag to the right
  margin? My org tag look like below:

 check out the variable =org-tags-column= (C-h v org-tags-column RET).
 --
 : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
 : using Org-mode version 7.3 (release_7.3.221.gb3e16)

___
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 align tag to the right margin

2010-12-07 Thread Martin Pohlack
On 07.12.2010 21:48, Chao LU wrote:
 Hi Eric,
 
 Yes, it works, by (setq org-tags-column 90). But new question arise, it does
 not apply to the tags which have already been there (only new tags after the
 modification of the alignment number), so how could I get all the tags
 updated?

org-align-all-tags, should be bound to c-u c-u c-c c-c.

HTH,
Martin

___
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] Elsevier's Executable Paper Grand Challenge

2010-12-07 Thread Thomas S. Dye

Aloha Bill,
On Dec 7, 2010, at 9:26 AM, Bill White wrote:


In light of recent paper by Davison, Dominik, Dye and Schulte, this
sounds like something org-mode could address:
http://www.executablepapers.com

There is a USD 1 first-place award.

  Executable Paper Grand Challenge is a contest created to improve the
  way scientific information is communicated and used.

  It asks:

  How can we develop a model for executable files that is compatible
  with the user’s operating system and architecture and adaptable to
  future systems?

  How do we manage very large file sizes?

  How do we validate data and code, and decrease the reviewer’s
  workload?

  How to support registering and tracking of actions taken on the
  ‘executable paper?’

  The purpose of the Executable Paper Challenge is to invite  
scientists

  to put forth their ideas pertaining to these pressing and unsolved
  questions.

See http://www.executablepapers.com for more information, deadlines,  
etc.


Cheers -


I come up with the same answer to all four questions --- Org-mode!

All the best,
Tom
___
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] Elsevier's Executable Paper Grand Challenge

2010-12-07 Thread Erik Iverson



  The purpose of the Executable Paper Challenge is to invite scientists
  to put forth their ideas pertaining to these pressing and unsolved
  questions.


I come up with the same answer to all four questions --- Org-mode!


Yes, these are only unsolved questions to those who haven't
discovered the answer yet.

It does seem like an interesting challenge though, it will be
good to see what the entries look like.

___
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-log-done 'time) and the subsequent line

2010-12-07 Thread Rob Moss
Hi Joost,

I'm running Emacs 23.2.1 (with orgmode 6.33 bundled) on OS X 10.6 and
I have also tested this with orgmode 7.3.

Thanks for the emacs -q tip. The symptoms don't appear when I do
this, and it only took a minute or two to discover that turning off
longlines-mode in my regular emacs session also fixed this problem.
Boy, do I feel stupid not to have thought of that.

Sorry for the noise and thanks again for your help!

Sincerely,
Rob

On 7 December 2010 21:45, Joost Helberg jo...@snow.nl wrote:
 Rob,

 what's the version of your software. With an emacs -q which only loads
 (require 'org) and sets  (set 'org-log-done t) your symptoms don't
 appear.

 regards,

 Joost

 Rob == Rob Moss rob@gmail.com writes:
   Subject: [Orgmode] (org-log-done 'time) and the subsequent line
   From: Rob Moss rob@gmail.com
   To: emacs-orgmode@gnu.org
   Date: Tue, 7 Dec 2010 00:58:34 +0100

   Greetings,

   I've just started using org-mode. I began with a tutorial
   (http://dto.github.com/notebook/orgtutorial.html) and have also read
   bits of the Compact Org-mode Guide and the org-mode manual. But after
   an hour or two of fruitless searching, I am stuck with a
   problem/question concerning the logging of TODO items. I want to know
   how I can add a trailing newline to the CLOSED: [DATE] line that
   gets inserted when I press C-c C-t. To illustrate what I mean, say I
   have a file such as the following paragraph:

   * Tasks for today
   ** TODO Task 1
   ** TODO Task 2

   If I put my cursor on line 2 (** TODO Task 1) and press C-c C-t, I get:

   * Tasks for today
   ** DONE Task 1
      CLOSED: [2010-12-07 Tue XX:YY] ** TODO Task 2

   And now, Task 2 is on the same line as the CLOSED: [DATE] that logs
   the completion of Task 1. Likewise, say I instead have a file such as
   the following two paragraphs:

   * Tasks for today
   ** TODO Task 1
   ** TODO Task 2

   * Tasks for tomorrow

   If I put my cursor on line 3 (** TODO Task 2) and press C-c C-t, I get:

   * Tasks for today
   ** TODO Task 1
   ** TODO Task 2
      CLOSED: [2010-12-07 Tue XX:YY]
   * Tasks for tomorrow

   And I have lost the empty line between the tasks for today and the
   tasks for tomorrow. Granted, this doesn't bother me nearly as much as
   the first case.

   Can anyone suggest how to solve this? I've searched through forums,
   public .emacs files and the org-mode manual, but I can't find an
   answer. I've dabbled a very little in elisp, but since 'time doesn't
   appear to be a function, I can't see how to override it easily. I
   really hope that I haven't missed something obvious here.

   Many thanks in advance for any suggestions,
   Rob

   ___
   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


 --
 Snow B.V.        http://snow.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


[Orgmode] Babel sh Windows

2010-12-07 Thread Srinivas
Hi

I am trying to learn how to use Babel on a Windows system and need some help.

I would like to produce the directory tree for a given directory (/bin in this 
example).

I tried the following:

#+srcname: directory-tree
#+BEGIN_SRC sh :dir /bin :results output org replace :exports results
tree
#+END_SRC

The output is as given below:

#+results: directory-tree
c:\binMore? 

My org-babel-sh-command setting is:

(setq org-babel-sh-command cmd /k)

What do I need to do see some output in the #+results section?

Thanks in advance for you help.
- Srinivas



___
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 align tag to the right margin

2010-12-07 Thread Rodney Price

C-u C-c C-q works for me.

I switch between machines with different monitors, and I find that in
the agenda view, the tags can intrude on the headline space.  That is,
an entry I make on one machine puts the tag in a different place than an
entry I make on another machine.  The following snippet lines up the
tags in the agenda view.

;; Place tags close to the right-hand side of the window
(add-hook 'org-finalize-agenda-hook 'place-agenda-tags)
(defun place-agenda-tags ()
  Put the agenda tags by the right border of the agenda window.
  (setq org-agenda-tags-column (- 4 (window-width)))
  (org-agenda-align-tags))

-Rod


Martin Pohlack m...@os.inf.tu-dresden.de writes:

 On 07.12.2010 21:48, Chao LU wrote:
 Hi Eric,
 
 Yes, it works, by (setq org-tags-column 90). But new question arise, it does
 not apply to the tags which have already been there (only new tags after the
 modification of the alignment number), so how could I get all the tags
 updated?

 org-align-all-tags, should be bound to c-u c-u c-c c-c.

 HTH,
 Martin

 ___
 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-mode Code Blocks Manuscript: Request For Comments

2010-12-07 Thread Sébastien Vauban
Hi Eric,

Let's see if I'm a good proof-reader. Here are my comments, looking at things
not already said by others:

Page 1 -- ... desirable to mix prose, (add input data?,) code, and
computational results.

Page 3 -- It'd be better not to have commas in front of the Org-mode block in
Figure 1.

Page 9 -- You say that tags and properties of a node are inherited by its
sub-nodes. I agree for tags, not for properties (at least, by default).

Page 10 -- Active code blocks are marked with a source line, followed by a
name unique within the document. Why don't you call such named code blocks
as in Babel's code base?

BTW, what happens if there is a name clash with other code blocks (in the same
document, or in the LOB)?  Though, this is not for your paper...

Page 12 -- When results is set to output, what do you mean by collected from
STDOUT incrementally?  Not sure about the added value of incrementally...

Page 16 -- I find the name of the code block ps-to-dot very badly chosen. PS
makes me think of PostScript, while you mean here Pascal's triangle...

Page 17 -- In the LaTeX ATTR, better use linewidth instead of textwidth. This
is a more secure setting.

Page 18 -- Is the default value of var (1 2 1) compliant with the pass table
beneath it?

Side comment -- Wouldn't you use a standard way of handling the acronyms in
LaTeX, so that they're expanded when required, and listed at the end of the
document?  Example of such acro: ESS.

For the rest, an excellent document, but not that good (IMHO) for publishing
to a statistics journal. For doing so, I find you'd have to only include R
examples, and show that you can do everything Sweave can do, and even much
more. But I would focus on stats a lot more than it is here.

But, the way it is written, it is much more general, and offers a much widen
view. So, this is excellent, but for another audience.

Best regards,
  Seb

-- 
Sébastien Vauban


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


Re: [Orgmode] MobileOrg and Voice Capturing (Android)

2010-12-07 Thread Sven Bretfeld
Hi Matthew

Matthew Jones bsdmatb...@gmail.com writes:

 Hi Sven... that's a nice one, you might could add that to the scripts section 
 of
 the MobileOrg wiki.

Did it.

 Pretty soon the Capture interface will be extended to allow settings tags and
 other things on captured notes... once these are in place I will extend the
 CAPTURE action to also take these values as intent params.

This is really nice.

Greetings,

Sven

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


Re: [Orgmode] Latex preview - working directory

2010-12-07 Thread Matthew Leifer
One solution would be to put you math definitions into a .sty file instead
of a .tex file so that you can use \usepackage{vlstyle} instead of \input.
 If you put (or symlink) the file in your local texmf path it should work.
 I do this for my math shortcuts and it works fine with org-mode.  To make
it into a .sty file you just have to put \ProvidesPackage{vlstyle} on the
first line of the file, import any dependencies, e.g. amsmath, with a
\RequirePackage declaration and end the file with \endinput. If it is just a
bunch of \newcommand, \renewcommand, \def and \DeclareMathOperator
declarations then there shouldn't be any problem.

Matt

On 7 December 2010 16:26, Maximilian Matthé maxi.mat...@googlemail.comwrote:

 Hi guys,

 I just wanted to try out the latex snippet preview. There is a problem
 with that since I have in my org-document the following preamble:

 #+LATEX_HEADER: \input{../vlstyle}

 which refers to a .tex-file relative to the location of my document. The
 file contains some definitions for math. symbols I need in many
 documents, so I extracted them into an external file.

 Since the preview-snippets are compiled in /tmp/ Latex cannot find the
 vlstyle.tex and the compilation fails.

 Is there another way to get previews except specifying an absolute path
 to the vlstyle.tex? Maybe sth. with org-babel? But it shouldn't be too
 long since I would have to add that to every new document I write.

 Regards, Max


 ___
 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] Automatically insert inactive timestamps

2010-12-07 Thread Julian Burgos
Dear list,

This is the newbie question of the day.  I would like to get an inactive
time stamp automatically in each new entry in org mode. Could somebody
explain me how to do this?

Many thanks,

Julian

-- 
Julian Mariano Burgos
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is, jmbur...@uw.edu
___
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] Clock report: ignore empty entries (7.3)

2010-12-07 Thread Markus Heller
Hello everybody,

I also like the new looks of the clock report, but I have one question.

My scope is set to agenda-with-archives, and I'm wondering if it is
possible to ignore files with no clock info for the tstart tend
interval.

Thanks and Cheers!
Markus


___
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] Specify files to be sync'ed

2010-12-07 Thread Markus Heller
Hello list,

I'm wondering if it is possible to specify a list of files for use with
MobileOrg, as opposed to having all agenda files sync'ed.

In case you're wondering why I would like to do this:  I'm working for a
company, and I cannot put confidential information on a public webserver
(I know Dropbox is encrypted and I can encrypt my org files).  I'd like
to be able to just have one file with appointments etc. and one file
with TODO items, nothing else.

Is this possible?  From looking at the org manual, it doesn't seem like
it.

Thanks and Cheers
Markus


___
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] Automatically insert inactive timestamps

2010-12-07 Thread Russell Adams
On Wed, Dec 08, 2010 at 12:24:33AM +, Julian Burgos wrote:
 Dear list,

 This is the newbie question of the day.  I would like to get an inactive
 time stamp automatically in each new entry in org mode. Could somebody
 explain me how to do this?

 Many thanks,

 Julian

If you are using org-capture, you can include a timestamp with %U.

Alternatively, I don't know about automatically, but I use a
one-touch timestamp via F9 with the following in my .emacs file. Every
time I switch tasks I hit F9

;;
;; Insert immediate timestamp
(setq org-agenda-skip-additional-timestamps nil)
(define-key global-map (kbd f9)
  '(lambda () (interactive)
  (when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert \n

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


[Orgmode] Re: Automatically insert inactive timestamps

2010-12-07 Thread Bernt Hansen
Julian Burgos jmbur...@uw.edu writes:

 This is the newbie question of the day.  I would like to get an inactive time 
 stamp automatically in each new
 entry in org mode. Could somebody explain me how to do this?

Hi Julian,

Here is what I use in my setup:

Creating new headlines insert inactive timestamps automatically:

--8---cut here---start-8---
(defun bh/insert-inactive-timestamp ()
(interactive)
(org-insert-time-stamp nil t t nil nil nil))

(defun bh/insert-heading-inactive-timestamp ()
(save-excursion
(org-return)
(org-cycle)
(bh/insert-inactive-timestamp)))

(add-hook 'org-insert-heading-hook 'bh/insert-heading-inactive-timestamp)
--8---cut here---end---8---

Manually add an inactive timestamp anywhere with f9-t

--8---cut here---start-8---
(global-set-key (kbd f9 t) 'bh/insert-inactive-timestamp)
--8---cut here---end---8---

and my Capture templates insert inactive timestamps when capture tasks
are created (using %U)

--8---cut here---start-8---
(setq org-capture-templates (quote ((t todo entry (file 
~/git/org/refile.org) * TODO %?
%U
%a :clock-in t :clock-resume t
--8---cut here---end---8---

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: Clock report: ignore empty entries (7.3)

2010-12-07 Thread Bernt Hansen
Markus Heller helle...@gmail.com writes:

 Hello everybody,

 I also like the new looks of the clock report, but I have one question.

 My scope is set to agenda-with-archives, and I'm wondering if it is
 possible to ignore files with no clock info for the tstart tend
 interval.

Yes it's possible.

Add :fileskip0 t and :stepskip0 t

#+BEGIN: clocktable :maxlevel 2 :scope agenda :tstart 2010-10-30 Sat :tend 
2010-11-05 Fri :step day :fileskip0 t :stepskip0 t
#+END:

___
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] Feature request [7.3]

2010-12-07 Thread Jeff Horn
I don't know about others, but I just put note text below everything
else, but before the next headline

On Tue, Dec 7, 2010 at 3:59 PM, Dave Abrahams d...@boostpro.com wrote:

 When using Org for planning, I often find myself corrupting my Org
 files.  All kinds of things can go wrong, but the basic issue is that
 agenda items have a syntax, and it's easy to violate, especially when
 I'm going *fast*, which after all is what Org is supposed to enable!

 For example, a typical captured item looks like:

 ** TODO Set up yasnippet
   SCHEDULED: 2010-11-22 Mon
   :PROPERTIES:
   :Link: [[some-nasty-link]]
   :ID:       A0B4159C-D796-40DF-9ADD-93DF03577B68
   :END:
   [2010-11-20 Sat 20:17]

 Now, suppose I'm looking at this in the agenda and I want to add some
 commentary.  Where should I open the new line?  If I choose wrongly, my
 agenda will start to misbehave (e.g. items will appear to be
 un-reschedulable because they'll acquire a second SCHEDULED date).

 So I'm requesting some more help from Org in maintaining proper Org
 syntax.  Could Org have a mode that prevents things from being modified
 incorrectly?  For example, it'd be awesome if dates were smart (TAB into
 one, hit return, get a smart date editor).  It'd be great if there were
 a way to make the ID property read-only (or really really hard to
 change).  I'd love it if there were a way to create a link to an org
 item that narrows the view to just that item, so I don't inadvertently
 mess anything else up.  Do you get the idea?

 Thanks for listening,

 --
 Dave Abrahams
 BoostPro Computing
 http://www.boostpro.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




-- 
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] [MobileOrg] Specify files to be sync'ed

2010-12-07 Thread Matthew Jones
Hey Markus,

http://orgmode.org/manual/Pushing-to-MobileOrg.html#Pushing-to-MobileOrg

If you configure org-mobile-files to contain just the files you want copied
over, then that is all that will be synced during an org-mobile-push

http://matburt.net


On Tue, Dec 7, 2010 at 7:43 PM, Markus Heller helle...@gmail.com wrote:

 Hello list,

 I'm wondering if it is possible to specify a list of files for use with
 MobileOrg, as opposed to having all agenda files sync'ed.

 In case you're wondering why I would like to do this:  I'm working for a
 company, and I cannot put confidential information on a public webserver
 (I know Dropbox is encrypted and I can encrypt my org files).  I'd like
 to be able to just have one file with appointments etc. and one file
 with TODO items, nothing else.

 Is this possible?  From looking at the org manual, it doesn't seem like
 it.

 Thanks and Cheers
 Markus


 ___
 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] source code block export no expansion

2010-12-07 Thread Andreas Leha
Hi Tom,

thanks a lot for looking into it!  Fixing this is unfortunately off my
limits.

But for me the unnamed session is a valid work-around for me, since I do
not need several sessions right now.  Thanks for this hint.

Cheers,
Andreas



Am 07.12.2010 21:14, schrieb Thomas S. Dye:
 Aloha Andreas,

 Thanks for your patience and persistence.  I think this might qualify
 as a bug.  Using your code, if I don't run R in a session, or if I run
 R in a session but don't name the session,
 everything works as expected.  The behavior changes for me when the
 session gets a name.

 All the best,
 Tom


 On Dec 7, 2010, at 9:46 AM, Andreas Leha wrote:

 Hi Tom,

 thanks for the answer and thanks for spotting the typo.  But even
 with the typo corrected during export the noweb links are still exported.
   #+srcname: mod1
   #+begin_src R :tangle no :export code
 print(mod1)
   #+end_src

   #+srcname: mod2
   #+begin_src R :tangle no :export code
 print(mod2)
   #+end_src

   #+srcname: part1
   #+begin_src R :noweb tangle :tangle yes :exports code :session *R*
 mod1
 mod2
   #+end_src

 Result:
 ...
 \lstset{language=R}
 \begin{lstlisting}
 print(mod1)
 print(mod2)
 \end{lstlisting}
 ...



 Am 07.12.2010 20:33, schrieb Thomas S. Dye:
 Aloha Andreas,

 On Dec 7, 2010, at 8:49 AM, Andreas Leha wrote:

 Hi Tom,

 thanks for this answer.  This indeed comes closer to what I want.

 But, some comments:

 (1) There seems to be an error in the manual:
 In the manual the :noweb tangle header argument is given as :noweb yes,
 which is why I missed that option.

 I believe this is fixed at the
 source now, but am not sure how long it will take to propagate to
 the distributed documentation.

 (2) The noweb link are expanded *always* (i.e. execution, export,
 tangle) even with the :noweb tangle option:
  #+srcname: mod1
  #+begin_src R :tangle no :export code
print(mod1)
  #+end_src

  #+srcname: mod2
  #+begin_src R :tangle no :export code
print(mod2)
  #+end_src

  #+srcname: part1
  #+begin_src R :noweb tangle :tangle yes :export code :session *R*
mod1
mod2
  #+end_src



 Perhaps this has to do with using :export instead of the correct
 header argument, :exports?

 (3) I am looking for an option to disable the noweb link expansion
 during *export* only.  However, as I understand it, the :noweb tangle
 header option is supposed to disable the expansion also for
 *execution*.

 This isn't how it works for me.  :noweb tangle inhibits noweb expansion 
 during export only.


 So, is this not possible right now?


 It is possible now.  If the :exports header argument doesn't fix
 your problem, come back to the list.

 All the best,
 Tom

 Cheers,
 Andreas



 Am 07.12.2010 19:37, schrieb Thomas S. Dye:
 Aloha Andreas,

 Perhaps :noweb tangle will do what you want.

 hth,
 Tom

 On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:

 Hi all,

 I have a question about exporting source code blocks.  Say, I have
 several modules (mod1, mod2), that build a bigger part (part1) of my
 program, e.g.:


 #+srcname: mod1
 #+begin_src R :tangle no :export code
   print(mod1)
 #+end_src

 #+srcname: mod2
 #+begin_src R :tangle no :export code
   print(mod2)
 #+end_src

 #+srcname: part1
 #+begin_src R :noweb yes :tangle yes :export code :session *R*
   mod1
   mod2
 #+end_src


 Now during the tangling I would like to tangle just the full part1 -
 with noweb links being expanded.  Also during execution the noweb
 links
 should be expanded.  This is not a problem.

 But at the same time, during the export I'd like to export all three
 code snippets, but I'd prefer the noweb links not to be expanded.  Is
 that possible?

 Thanks in advance,
 Andreas

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

 -- 
 Andreas Leha

 Universitätsmedizin Göttingen
 Abteilung Medizinische Statistik
 Humboldtallee 32
 37073 Göttingen

 Tel: +49 (0)551 39-10710
 Fax: +49 (0)551 39-4995

 http://www.ams.med.uni-goettingen.de/amsneu/leha.html



 University Medical Center Göttingen
 Department for Medical Statistics
 Humboldtallee 32
 37073 Göttingen
 Germany

 Phone: +49 (0) 551 39-10710
 Fax: +49 (0) 551 39-4995

 http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html


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


 -- 
 Andreas Leha

 Universitätsmedizin Göttingen
 Abteilung Medizinische Statistik
 Humboldtallee 32
 37073 Göttingen

 Tel: +49 (0)551 

[Orgmode] Another LaTeX export corner case...

2010-12-07 Thread Richard Lawrence
This evening, I noticed that the footnote syntax breaks if you use LaTeX
commands with an optional argument inside a footnote, e.g.:

* Some headline
Blah blah blah blah[fn:: This enlightened message brought to you by
\cite[p. 100]{SomeBibKey}]

The internal square brackets in the \cite command cause the whole
footnote to be escaped/exported literally (i.e., [fn:: ... appears in
the text of the document).

Is this a bug, or something that I must learn an Org incantation to work
around?

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