[Orgmode] Re: omitting done TODOs from custom agenda

2010-09-14 Thread Eric Abrahamsen
On Tue, Sep 14 2010, Eric Abrahamsen wrote:

> On Tue, Sep 14 2010, Matt Lundin wrote:
>
>> Eric Abrahamsen  writes:
>>
>>> I'm having a bit of confusion: I've created my own TODO sequences with
>>> org-todo-keywords, in this case (sequence "CONTACT(n)" "REPLY(r)" "|"
>>> "CONTACTED(e@)"). Then I've got a custom agenda defined using
>>> org-agenda-custom-commands, where there's a weekly view on top and some
>>> TODO items below. When I start this agenda view, and mark one of the
>>> TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
>>> very clearly marked as done in the original org file, but it stays in
>>> agenda. I've looked at all the extra variables for a custom agenda
>>> command, and there doesn't seem to be one that say "don't show completed
>>> items".
>>
>> A simple question: Are you refreshing the agenda after marking the item
>> done (i.e., CONTACTED)? Similarly, do the inactive items (i.e.,
>> CONTACTED) remain when you invoke the agenda view the again.
>>
>> Inactive todos do not disappear from the agenda until it is refreshed
>> (r).
>
> Hi Matt,
>
> Yup, I am refreshing the agenda with r, or usually g. In the agenda,
> when I first mark the item as done, the text of the heading turns green,
> but when I next refresh, the text turns back to black. These completed
> todos are still there even if I close the agenda and re-invoke it.
>
>>
>>> These items are part of a tag-todo statment, where the selecting regexp
>>> is a tag, not a particular todo keyword, so I wouldn't think I've done
>>> anything to force it to display these todo keywords.
>>
>> Would you mind sharing your custom agenda command?
>
> Of course:
>
> '(org-agenda-custom-commands (quote (("c" "Agenda plus contacts"
> ((agenda "" nil) (tags-todo "TODO=\"CONTACT\"" nil) (tags-todo
> "TODO=\"REPLY\"" nil)) nil nil) ("g" "Get It Louder" ((agenda "" nil)
> (tags-todo "Gil" nil)) nil
>
> The problem occurs in both my "Agenda plus contacts" and "Get It
> Louder", so maybe it's something with my custom todos?
>
> (org-todo-keywords (quote ((sequence "TODO(t)" "WAITING(w@)" "|"
> "DONE(d)" "CANCELLED(c@)") (sequence "CONTACT(n)" "REPLY(r)" "|"
> "CONTACTED(e@)"

Looks like the problem here was that CONTACT is a substring of
CONTACTED—whatever function decides if a todo keyword is pending or
completed apparently just reads the string until it finds the first
match (?). I changed it to SENT and everything worked fine. Dunno if
that's worth considering a bug, but it's certainly surprising behavior.

E

>
> But I don't see how that could be interpreted as anything but CONTACTED
> = done...
>
> Thanks!
>
>>
>> Best,
>> Matt
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] Re: Repeating tasks on specific days of the week

2010-09-14 Thread Jeff Horn
Matt,

Thanks for confirming that separate repeating tasks is the best solution.

Best,
Jeff

On Mon, Sep 13, 2010 at 2:13 PM, Matt Lundin  wrote:
> Jeff Horn  writes:
>
>> Hi everyone!
>>
>> I was wondering how to create repeating tasks for, say, Tuesday and
>> Thursday at noon. I found this on stack overflow: http://cl.ly/2K8c
>>
>> Is that really the best answer? Can this not be accomplished with
>> symbolic expressions?
>>
>> Seems like a great feature for academics and students. Surely, I'm
>> ignorant, and someone has a better solution than creating multiple
>> repeating tasks?
>
> AFAIK, one cannot use complex symbolic expressions with repeating tasks;
> the moment a headline with such an expression is marked done, it is
> removed from the agenda. The only solution, at the moment, is to create
> different entries for each desired day of the week:
>
> --8<---cut here---start->8---
> * Tuesday task
>  SCHEDULED: <2010-09-14 Tue +1w>
>
> * Thursday task
>  SCHEDULED: <2010-09-16 Thu +1w>
> --8<---cut here---end--->8---
>
> Best,
> Matt
>



-- 
Jeffrey Horn
PhD Student in Economics
George Mason University

(704) 271-4797
jh...@gmu.edu
jrhorn...@gmail.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


[Orgmode] org-scan-tags

2010-09-14 Thread Ilya Shlyakhter
In org-scan-tags, if todo-only is t, would it be possible to speed
things up by changingthe regexp go to just the lines with a TODO
keyword?
I.e. in

  (let* ((re (concat "^" outline-regexp " *\\(\\<\\("
 (mapconcat 'regexp-quote org-todo-keywords-1 "\\|")
 (org-re
  "\\>\\)\\)? *\\(.*?\\)\\(:[[:alnum:]_@:]+:\\)?[ \t]*$")))

remove the first "?" if todo-only is t.   Also, regexp-opt might make
a more efficient regexp than mapconcat with regexp-quote.

Reason for request:  I'm writing an extension of org for setting &
checking goals, and want to quickly find entries with headlines of the
form
GOAL 
of which there may be relatively few in a large file.   So, stepping
through all entries and then checking them for the GOAL keyword is
very inefficient.
It would be much faster if the regexp included the GOAL as a keyword.

It would be good if the parameter todo-only could be a list of
strings, and org-scan-tags would return only the headlines where the
todo keyword is from this list.
It could use regexp-opt to make an efficient regexp for this.

There also seem to be other opportunities for speeding up
org-scan-tags in this way: e.g. if the match string includes +mytag,
the regexp for the headline could include this as well.
Similarly for properties.  Maybe, org-make-tags-matcher could return a
list of tags and properties that must appear in any matching entry.

It would also help if the tags matcher expression could refer to text
properties stored on the headline -- perhaps, with conditions such as
:myprop=X  (i.e. same as for org properties, but property name must be
a keyword).   It already does this for the 'org-category text
property.
 Then one can e.g. mark entries representing unmet goals with text
properties, and then use a regular org-tags-view to browse them in a
sparsetree
or an agenda.

Thanks,

ilya

___
Emacs-orgmode 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] Add org-goto-first-child

2010-09-14 Thread Jambunathan K

Add org-goto-first-child. Completes existing set of org tree traversal
functions.

>From ee430632f0d5088ed71f0d8ae48bac43f4d6208c Mon Sep 17 00:00:00 2001
From: Jambunathan K 
Date: Wed, 15 Sep 2010 08:00:41 +0530
Subject: [PATCH] Add org-goto-first-child

* lisp/org.el (org-goto-first-child): New

Completes existing set of org tree traversal functions.

TINYCHANGE.
---
 lisp/org.el |   12 
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 70dd482..c2e6253 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -19200,6 +19200,18 @@ move point."
 (while (org-goto-sibling 'previous)
   (org-flag-heading nil
 
+(defun org-goto-first-child ()
+  "Goto the first child, even if it is invisible.
+Return t when a child was found. Otherwise don't move point and
+return nil."
+  (let (level (pos (point)) (re (concat "^" outline-regexp)))
+(when (condition-case nil (org-back-to-heading t) (error nil))
+  (setq level (outline-level))
+  (forward-char 1)
+  (if (and (re-search-forward re nil t) (> (outline-level) level))
+ (progn (goto-char (match-beginning 0)) t)
+   (goto-char pos) nil
+
 (defun org-show-hidden-entry ()
   "Show an entry where even the heading is hidden."
   (save-excursion
-- 
1.7.0.4


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


[Orgmode] org-googlecl : enhancements - replace existing blog entries.

2010-09-14 Thread Richard Riley

The org-googlecl package has been extended a little.

http://splash-of-open-sauce.blogspot.com/2010/09/now-org-googlecl-supports-deleting-of_14.html

It now detects if you try to blog an entry with the same title as an
existing one and prompts you to view and/or remove one or more entries
with the same name. Obviously very useful for just updating an entry (NB
the url will change unfortunately). There is also a footer option and
default labels (tags) if none are specified on the org entry you are
blogging. It's working pretty cleanly now but any feedback appreciated -
its a pretty handy complement to org-mode if you maintain a
blogger/blogspot account. The elisp snippets you will see above were all
blogged from my dotemacs files which are all in org files using this
function.

regards

r.


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


[Orgmode] [bug] small problem with tags in HTML export with H:1 option set

2010-09-14 Thread Erik Iverson

See the following .org file for an explanation, I think it's a
small bug...

==

#+TITLE: HTML Export with #+OPTIONS: H:1 set
#+STYLE:  p {color: red; font-family:sans-serif;} 

#+OPTIONS: h:1 toc:nil
* Here is a headline, no space between it and subsequent text
This text is red.

New paragraph, also red.
** A second-level headline, no space between headline and subsequent
Oops? This line not in any HTML tag, not red.

But this is red.


** A second-level headline, one space between headline and subsequent text

Now it's red.

And so is this.


___
Emacs-orgmode 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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Matthew Jones
On my phone if something bad happens and the app is going to force close it
will give me the option to "Report" with the force close and send a stack
trace as well as some other information.   It does not always do this,
however.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Tue, Sep 14, 2010 at 2:12 PM, Eric S Fraga  wrote:

> On Tue, 14 Sep 2010 12:58:23 -0400, Matthew Jones 
> wrote:
> >
> > [1  ]
> > Hey Eric, if you find some issues please open bugs here:
> > http://github.com/matburt/mobileorg-android/issues
> >
> > I've found some force closes related to SD Card Synchronization but
> > appreciate any bug report you can provide.
> >
> > Also, if the app gives you the change to submit a report after a crash
> then
> > please do that... as it will give me a stack trace to work with when
> trying
> > to resolve the problem.
>
> I'd be happy to.  Is there some way to ask the phone to generate the
> report?  I've never seen such an option.
>
> Anyway, the first problem was that I had introduced, by mistake, a
> space (0x20) in the URL for the source of org files and deleting that
> appears to have fixed the force close I had.  Seems to work so far.
> I'll play with it over the next few days and will feed back any
> problems via the github bugs page.
>
> Thanks!
> eric
>
> --
> Eric S Fraga
> GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] A LaTeX class for Org-mode export

2010-09-14 Thread Thomas S. Dye

Aloha Scot,

Thanks for catching my errors.  I've made the changes you indicated.

If microtype is messing with cut and paste, you can remove it from the  
#+LaTeX_CLASS_OPTIONS: line and generate new pdf's (at least you can  
after everything is straight in .emacs).  Alternatively, you can cut  
and paste from the Org file, or (if you're looking to cut and paste  
from one of the sections full of noweb references) you can tangle the  
file to create the class file and cut and paste from it.


All the best,
Tom

On Sep 14, 2010, at 11:36 AM, Scot Becker wrote:


Well this is very cool.  A whole new paradigm for org-LaTeX
integration.  Well done.  I was especially glad for the introduction
to the 'paralist' package.

Could it be that the line to clone the git repo should be this:

git clone git://github.com/tsdye/org-article.git

instead of what I find in the document:

git clone g...@github.com:tsdye/org-article.git

(which didn't work for me)?


And I think 'org-export-packages-alist'  should be
org-export-latex-packages-alist
in the section entitled: Org-Mode LaTeX Export Setup (1.4).

Also the code windows of the resulting PDFs dont' work that well for
pasting the the code blocks to the command line or into Emacs, but
don't know how to fix that. (Is 'microtype' meddling too much in the
code blocks?)

Anyway, many thanks for this.  I look forward to experimenting in the
days to come.

Scot
(resent to the whole list, whoops!)



___
Emacs-orgmode 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] Modify time entry from agenda?

2010-09-14 Thread Nathan Neff
I think it would be really cool to be able to modify clock-in/clock-out times
from the agenda.

I realize I can press TAB and jump to a clocked entry and modify the times, but
if I could press a key and move the start/stop time back and forth by
10 min, that would be
awesome.

At the end of the day there's always 30-40 minute gaps between
items where I was too busy to correct the clock using org-resolve.

I think that a boatload of keypresses could be saved if there was a way to move
the start/end time of an item forward/backward by 10 minutes from the agenda.

Am I missing some existing functionality?  I've read Bernt's workflow,
and realize I can
define a 'default' activity which would reduce these gaps.  But, I
would still like to
allocate more time to specific tasks if that's where I really spent the time.

For example, from the agenda:

organization: 13:40-14:00
specific_task:14:00-14:50 (50 min)
organization: 14:50-15:05

I would put the cursor on the 1st organization task and move the end
time back by 10 min.
Then I would put the cursor on the specific task and move its start
time back by 10 min.

Thanks,
--Nate

___
Emacs-orgmode 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] A LaTeX class for Org-mode export

2010-09-14 Thread Scot Becker
Well this is very cool.  A whole new paradigm for org-LaTeX
integration.  Well done.  I was especially glad for the introduction
to the 'paralist' package.

Could it be that the line to clone the git repo should be this:

git clone git://github.com/tsdye/org-article.git

instead of what I find in the document:

git clone g...@github.com:tsdye/org-article.git

(which didn't work for me)?


And I think 'org-export-packages-alist'  should be
org-export-latex-packages-alist
in the section entitled: Org-Mode LaTeX Export Setup (1.4).

Also the code windows of the resulting PDFs dont' work that well for
pasting the the code blocks to the command line or into Emacs, but
don't know how to fix that. (Is 'microtype' meddling too much in the
code blocks?)

Anyway, many thanks for this.  I look forward to experimenting in the
days to come.

Scot
(resent to the whole list, whoops!)

___
Emacs-orgmode 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] A LaTeX class for Org-mode export

2010-09-14 Thread Thomas S. Dye

Aloha all,

I'd like to draw your attention to a LaTeX class that I put together  
in response to posts here about configuring the output of the LaTeX  
exporter.  The class supports all of the Org-mode LaTeX default  
packages.  It supports the standard LaTeX article class and the KOMA- 
script scrartcl class and provides several choices of fonts.  In  
addition, it  includes facilities to apply microtypographic  
adjustments to suitable fonts, set the line spacing of the document to  
double space, set lists more compactly than the standard LaTeX  
article.cls, and typeset source code listings, optionally with color.


The documentation that should appear shortly in the Babel/Uses section  
of Worg includes two examples that illustrate use of the class.  The  
first uses the standard LaTeX article class and Times, Helvetica, and  
Courier fonts with a 12 point base size to typeset the literate  
program on 8.5 x 11 in. paper, with colored source code listings and  
microtypographic adjustments.



#+LaTeX_CLASS: org-article-subsubsection
#+LaTeX_CLASS_OPTIONS: [article,letterpaper,times, 
12pt,listings,color,microtype]


The second uses the KOMA-script scrartcl class and Utopia, Bera, and  
Inconsolata fonts with a 10 point base size to typeset the literate  
program on 5.8 x 8.3 in. paper in landscape mode, also with colored  
source code listings and microtypographic adjustments.  In addition,  
lists are set tighter than with the standard LaTeX article class.



#+LaTeX_CLASS: org-article-subsubsection
#+LaTeX_CLASS_OPTIONS: [koma,a5paper,landscape,utopia, 
10pt,listings,color,microtype,paralist]


The project is hosted at GitHub:
http://github.com/tsdye/org-article

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


[Orgmode] Bug: org-feed customization group is called org-id (can't customize org-id)

2010-09-14 Thread Scot Becker
In org-feed.el (line 105), the 'defgroup' entry for org-feed has the
tag "Org ID", which is the same tag as the group org-id (in
'org-id.el'). This has the result that you are unable to get to the
real org-ID variables from the M-x customize-group RET org RET top
level menu.

The culprit:

(defgroup org-feed  nil
  "Options concerning RSS feeds as inputs for Org files."
  :tag "Org ID"
  :group 'org)


Scot

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


[Orgmode] Re: org-babel matlab example

2010-09-14 Thread Achim Gratz
Achim Gratz  writes:
> : {%s};ans{size(ans,1)}

That would have been too easy... if whitespace is in the wrong place,
Octave tries to parse the code block as a multi-dimensional structure
and falls onto it's own sword.  Sigh.


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs


___
Emacs-orgmode 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: Proposed New Syntax For Calling Code Blocks was: Problem with Babel and sessions

2010-09-14 Thread Sébastien Vauban
Hi Eric,

"Eric Schulte" wrote:
>
> #+begin_src emacs-lisp :var results=chartPolAngle(pol=tableTestBabel) 
> :session testBabel:file
>   results
> #+end_src
>
> [...] That said, I think that we should provide a mechanism for passing
> header arguments through to called code blocks making the original
> functionality you described possible. I'm not sure how best to do that, but
> currently I think we should expand the syntax used to call code blocks to be
> more similar to inline code blocks, s.t. header arguments can be placed
> inside of an optional square bracket section between the name of the code
> block and the arguments. Using this new proposed syntax your example below
> would be written as
>
> #+call: chartPolAngle[:session testBabel :file 
> testBabel.pdf](pol=tableTestBabel)
>
> I'd be interested to hear what the community thinks of this new syntax.

Why not stay as closely as possible to the syntax of the blocks?

Something like:

#+call: chartPolAngle :session testBabel :file testBabel.pdf :var 
pol=tableTestBabel

Though, I'm almost sure I don't understand the real point and implications of
this discussion, hence...

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] Nested exports - Exporting a "sub.org" file while exporting "main.org"

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 18:21, Sebastian Rose wrote:
> Rainer M Krug  writes:
>> Hi
>>
>> I want to export a subdocument (sub.org) while exporting a main document
>> (main.org), but I am getting an
>> "Args out of range: 0,0"
>> error message after the sub.org document is exported.
>>
>> Am I doing something wrong or is it not possible to have nested exports?
> 
> Hi Rainer,
> 
> 
> in Org mode you would rather set up a special publishing project for
> such a task:
> 
> (setq org-publish-project-alist
>   '(("main-and-sub"
>  :base-directory "~/org/"
>  :auto-sitemap nil  ; NO sitemap for this project !!
>  :recursive t
>  :base-extension "org"
>  :publishing-directory "~/public_html/org/"
>  :publishing-function org-publish-org-to-html
>  )
> ("one-more-project"
>  ;;...
>  )))
> 
> See also:
> 
> http://orgmode.org/manual/Publishing.html#Publishing
> 
> This describes my publishing setup:
> 
> http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php

Hi Sebastian

yes - I guess that is exactly what I am looking for.

Thanks a lot,

Rainer

> 
> 
> 
> 
> Best wishes
> 
>Sebastian


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

iEYEARECAAYFAkyPxcMACgkQoYgNqgF2ego9nACggsb1l9mzEKkxdzwzSvoykt4c
0W8AnRyz94+13XIsKxlRbJ5lF6Bxl+SO
=IPjA
-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] Change color in fontified html export for strings

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 18:25, Sebastian Rose wrote:
> Rainer M Krug  writes:
>> On 14/09/10 13:41, Sebastian Rose wrote:
>>> Eric S Fraga  writes:
 Thanks Sebastian.  I think that will definitely help the OP.  However,
 at least on my system, I believe the variable is actually
 org-export-htmlize-output-type (type, not style).
>>>
>>>
>>> Yes, sorry Eric, right: org-export-htmlize-output-type
>>
>> I found the variable - but then all the highlighting is gone. I assume,
>> I have to use CSS sylesheet for that. That is an overkill for me at the
>> moment.
>>
>> Is there really no way, just to change the color of one entity in the
>> htmlization of code?
>
>
> Ahhh, sorry, yes, there is one:
>
>M-x customize-variable RET org-export-html-style RET
>
> You should leave your `org-export-htmlize-output-type' setting as
> discussed before.
>
> Set `org-export-html-style' to, e.g.,
>
>.string { color:#006600; } 

Thanks - that looks more like it. But I don't get it as I want it - so I
just leave it as it is for the moment.

Thanks a lot for your help,

Rainer

>
>
>
> HTH
>
>Sebastian


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

iEYEARECAAYFAkyPxXkACgkQoYgNqgF2egqHKgCdE4onbiHrkMpQCYuwPlOeK9Hs
UT4An0ucD4LCAJGj+D5rHn508NmzLzT6
=f/xF
-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


[Orgmode] Re: Nested exports - Exporting a "sub.org" file while exporting "main.org"

2010-09-14 Thread Sébastien Vauban
Hi Sebastian,

Sebastian Rose wrote:
> Rainer M Krug  writes:
>>
>> I want to export a subdocument (sub.org) while exporting a main document
>> (main.org), but I am getting an
>> "Args out of range: 0,0"
>> error message after the sub.org document is exported.
>>
>> Am I doing something wrong or is it not possible to have nested exports?
>
> in Org mode you would rather set up a special publishing project for
> such a task:
>
> (setq org-publish-project-alist [...]

Rainer talks of exporting, hence the PDFLaTeX route, if he uses the right
vocabulary.

I have a serious impression that it's related to what I experience myself
since a couple of days with LaTeX. Exactly the same message, in any case. See
my post on http://www.mail-archive.com/emacs-orgmode@gnu.org/msg30148.html.

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-babel matlab example

2010-09-14 Thread Darlan Cavalcante Moreira

Hello Dan,

I wasn't sure if I had suggested this before or not, but now I remember
that it was in a thread about python.

I have only used org babel with python and octave and I don't know how this
would translate to other languages, but I think it makes sense in languages
that you can work with scripts. Let me elaborate.

Suppose I have the two code snippets below:
--8<---cut here---start->8---
#+begin_src python :results value
  from numpy import arange
  print "I don't want to see this"
  a=arange(1,10)
  a+2 # Only this as the last statement is not enough
  return a+2 # We need to add return a+2
#+end_src
--8<---cut here---end--->8---
--8<---cut here---start->8---
#+begin_src octave :results value
  disp 'I dont want to see this'
  a=1:10
  b=a+2 # Only this is not enough because ans was never set
  ans = b
#+end_src
--8<---cut here---end--->8---

In both cases I want to see the value of a variable after executing a
script and not what the script prints to the screen. From babel
documentation I can see that I need the "functional mode" with the header
argument :results value. However, in the python example I need to add a
"return" statement even though I didn't declare a python function in the
code (this is invalid code if I tangle it).

Also, in the octave example if the 'ans' variable was set before to some
value, babel would show it after execution, instead of the value of the
last statement as one could think.

Therefore, the suggestion is that since babel is implicitly declaring a
function (with a def in python, for example), it is more natural that it
also "write" the return statement which I could set with a ":return" header
argument and not in the language code.

The two snippets would become
--8<---cut here---start->8---
#+begin_src python :return b
  from numpy import arange
  print "I don't want to see this"
  a=arange(1,10)
  b=a+2
#+end_src
--8<---cut here---end--->8---
--8<---cut here---start->8---
#+begin_src octave :return b
  disp 'I dont want to see this'
  a=1:10
  b=a+2
#+end_src
--8<---cut here---end--->8---
where the ":results" argument would not be necessary to specify "functional
mode".

--
Darlan

At Tue, 14 Sep 2010 16:40:48 +0100,
Dan Davison wrote:
> 
> Darlan Cavalcante Moreira  writes:
> 
> > Can I leave a suggestion here?
> > Maybe a header argument
> > ,
> > | :return variableName
> > `
> > could be interesting in org babel. This would make babel behavior more
> > uniform in all supported languages and avoid the necessity of adding code
> > "only to make babel work".
> 
> Hi Darlan,
> 
> Thanks (and sorry if you've made this suggestion previously, which I
> seem to recall). I can see that this would be particularly natural for
> matlab/octave in which (aIui) function definitions require specifying
> the name of the variable whose value is to be returned. In other
> languages which I've encountered, return values are determined by either
> "return" statements, or the value of the last statement in the function,
> or both of these mechanisms. So if we were to apply your suggestion to
> all languages, one could argue that it would permit un-natural code in
> languages other than matlab/octave. As you say, we do want things to be
> uniform across languages, but perhaps there is an argument for
> restricting your suggestion to matlab/octave?
> 
> Dan
> 
> >
> > --
> > Darlan
> >
> > At Sun, 12 Sep 2010 08:45:40 +0100 (BST),
> > etimecowboy  wrote:
> >> 
> >> From: Dan Davison 
> >> Subject: Re: org-babel matlab example
> >> Date: Sat, 11 Sep 2010 12:23:17 -0400
> >> 
> >> > Dan Davison  writes:
> >> > 
> >> >> etimecowboy  writes:
> >> >>
> >> >>> Hi everybody,
> >> >>>
> >> >>> I am learning to use org-babel to evaluate in-line Matlab code block,
> >> >>> but I cannot make it works when I press the "C-c C-c", nor "C-c C-v
> >> >>> e".
> >> >>
> >> >> What happens when you try C-c C-c or C-c C-v e ? There is an issue with
> >> >> matlab and octave: they return the value of the last /unassigned/
> >> >> computation
> >> > 
> >> > A better way to say this is: they return the value of the special
> >> > variable "ans". So whatever you do, at the end of the block you need to
> >> > ensure that "ans" has the value that you want returned.
> >> > 
> >> > I've updated the Worg page on Matlab and Octave:
> >> > 
> >> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.php
> >> > 
> >> > Dan
> >> > 
> >> > 
> >> >>, so simply ending the code block with a variable name "x" is
> >> >> not enough. Could you try one of the following schemes please, and let
> >> >> us know if that solves it:
> >> >>
> >> >> #+begin_src matlab :exports results
> >> >> n = [1:10];
> >> >> x = 5

[Orgmode] Re: org-babel matlab example

2010-09-14 Thread Achim Gratz
Dan Davison  writes:
> I can see that this would be particularly natural for
> matlab/octave in which (aIui) function definitions require specifying
> the name of the variable whose value is to be returned.

I can't say I fully understand what's going on and possibly I'm off my
rocker; but it seems to me that it is only the wrapper function from
ob-octave that requires the result to be anonymous so it can pick up on
"ans" without having to either parse the input or the output of Octave.
This is an artefact of how Octave handles things and a convention to
make things click with the wrapper in babel.  If for instance you'd wrap
the Octave script into an anonymous structure, you could get at the last
evaluation without knowing the name, like this:

: {%s};ans{size(ans,1)}

That'd remove the requirement of delivering the result in any particular
form as long as it is produced by the last evaluation in the code block.
I'm not sure it works when code sprinkled across several blocks is
supposed to be in a single session, however.

> In other languages which I've encountered, return values are
> determined by either "return" statements, or the value of the last
> statement in the function, or both of these mechanisms. So if we were
> to apply your suggestion to all languages, one could argue that it
> would permit un-natural code in languages other than matlab/octave. As
> you say, we do want things to be uniform across languages, but perhaps
> there is an argument for restricting your suggestion to matlab/octave?

A more interesting question is what should happen if the language in
question is capable of delivering multiple results on return...


Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds


___
Emacs-orgmode 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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:58:23 -0400, Matthew Jones  wrote:
> 
> [1  ]
> Hey Eric, if you find some issues please open bugs here:
> http://github.com/matburt/mobileorg-android/issues
> 
> I've found some force closes related to SD Card Synchronization but
> appreciate any bug report you can provide.
> 
> Also, if the app gives you the change to submit a report after a crash then
> please do that... as it will give me a stack trace to work with when trying
> to resolve the problem.

I'd be happy to.  Is there some way to ask the phone to generate the
report?  I've never seen such an option.

Anyway, the first problem was that I had introduced, by mistake, a
space (0x20) in the URL for the source of org files and deleting that
appears to have fixed the force close I had.  Seems to work so far.
I'll play with it over the next few days and will feed back any
problems via the github bugs page.

Thanks!
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Customizing agenda line format

2010-09-14 Thread Norbert Zeh
Matt Lundin [2010.09.13 1916 -0400]:
> Norbert Zeh  writes:
> 
> > Matt Lundin [2010.09.13 1512 -0400]:
> >> Norbert Zeh  writes:
> >> 
> >> > Is there a way to freely customize the format of lines in the weekly
> >> > agenda or todo list.  
> >> ...
> >> > I have a bunch of todo items that have a special todo state, say SPECIAL.
> >> > I don't want those included in my weekly agenda, but rather have a block
> >> > agenda where one of the blocks lists all todo items with todo state
> >> > SPECIAL.  Clearly, since this block includes only items that are
> >> > SPECIAL, listing this tag at the beginning of each entry's line is
> >> > redundant information.  So I'd like to remove the TODO state.  For
> >> > example, the org file entry
> >> >
> >> > * SPECIAL Call mom
> >> >
> >> > should appear simply as
> >> >
> >> > Call mom
> >> >
> >> > in that block of my agenda.  Can this be done?  
> >> 
> >> Check out the variable org-agenda-todo-keyword-format. 
> >> 
> >> E.g.,
> >> 
> >> --8<---cut here---start->8---
> >> (setq org-agenda-custom-commands
> >>   '(("x" "Special" todo "SPECIAL"
> >>  ((org-agenda-todo-keyword-format "")
> >> --8<---cut here---end--->8---
> >> 
> >> The variable org-agenda-prefix-format might also be of interest.
> >
> > Well, I tried setting org-agenda-todo-keyword-format to "%0s", which
> > didn't work, but I didn't think about the above.  So I tried this now.
> > It does remove the todo keyword, but it does only that.  In particular,
> > there is now a space at the beginning of each line, which I assume is
> > simply the space in the headline that succeeds the todo keyword.  Any
> > way of getting rid of that?  Thanks for the pointer so far.
> >
> 
> The information at the beginning of the line is controlled by
> org-agenda-prefix-format. What is the value of org-agenda-prefix-format
> on your machine?

It seems to be more complicated than that.  Here's what I found out by
tinkering around with settings a little.  Setting
org-agenda-prefix-format to "" (as I already did before) correctly
removes the prefix *before* the TODO keyword.  The formatting function
for everything starting with the TODO keyword, however, seems to
unconditionally insert a space between the TODO keyword and the rest of
the line.  Thus, even if the TODO keyword is empty (by setting
org-agenda-todo-keyword-format to ""), there is still a space after the
now empty TODO keyword.  Hence, the extra space at the beginning of the
line. To me it seems like there's no way around this with the standard
org mode settings.

Cheers,
Norbert

___
Emacs-orgmode 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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Matthew Jones
Hey Eric, if you find some issues please open bugs here:
http://github.com/matburt/mobileorg-android/issues

I've found some force closes related to SD Card Synchronization but
appreciate any bug report you can provide.

Also, if the app gives you the change to submit a report after a crash then
please do that... as it will give me a stack trace to work with when trying
to resolve the problem.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Tue, Sep 14, 2010 at 12:43 PM, Eric S Fraga  wrote:

> On Tue, 14 Sep 2010 12:02:46 -0400, Matthew Jones 
> wrote:
> >
> > Hey Eric... did you already have MobileOrg installed on your phone via
> the
> > APK downloaded from my site?  If so, could you uninstall that and then
> try
> > installing the app from the market?
> >
> > 73,
> > Matthew W. Jones (KI4ZIB)
> > http://matburt.net
>
> Thanks.  That did the trick, in terms of being able to download and
> install.  I've just tried configuring and it gave me a force close
> dialogue but let me play some with it to see what is going on...
>
> --
> Eric S Fraga
> GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:02:46 -0400, Matthew Jones  wrote:
> 
> Hey Eric... did you already have MobileOrg installed on your phone via the
> APK downloaded from my site?  If so, could you uninstall that and then try
> installing the app from the market?
> 
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net

Thanks.  That did the trick, in terms of being able to download and
install.  I've just tried configuring and it gave me a force close
dialogue but let me play some with it to see what is going on...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Sebastian Rose
Rainer M Krug  writes:
> On 14/09/10 13:41, Sebastian Rose wrote:
>> Eric S Fraga  writes:
>>> Thanks Sebastian.  I think that will definitely help the OP.  However,
>>> at least on my system, I believe the variable is actually
>>> org-export-htmlize-output-type (type, not style).
>> 
>> 
>> Yes, sorry Eric, right: org-export-htmlize-output-type
>
> I found the variable - but then all the highlighting is gone. I assume,
> I have to use CSS sylesheet for that. That is an overkill for me at the
> moment.
>
> Is there really no way, just to change the color of one entity in the
> htmlization of code?


Ahhh, sorry, yes, there is one:

   M-x customize-variable RET org-export-html-style RET

You should leave your `org-export-htmlize-output-type' setting as
discussed before.

Set `org-export-html-style' to, e.g., 

   .string { color:#006600; } 



HTH

   Sebastian

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


Re: [Orgmode] Nested exports - Exporting a "sub.org" file while exporting "main.org"

2010-09-14 Thread Sebastian Rose
Rainer M Krug  writes:
> Hi
>
> I want to export a subdocument (sub.org) while exporting a main document
> (main.org), but I am getting an
> "Args out of range: 0,0"
> error message after the sub.org document is exported.
>
> Am I doing something wrong or is it not possible to have nested exports?

Hi Rainer,


in Org mode you would rather set up a special publishing project for
such a task:

(setq org-publish-project-alist
  '(("main-and-sub"
 :base-directory "~/org/"
 :auto-sitemap nil  ; NO sitemap for this project !!
 :recursive t
 :base-extension "org"
 :publishing-directory "~/public_html/org/"
 :publishing-function org-publish-org-to-html
 )
("one-more-project"
 ;;...
 )))

See also:

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

This describes my publishing setup:

http://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.php




Best wishes

   Sebastian

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


Re: [Orgmode] Templates - newline in string?

2010-09-14 Thread Sebastian Rose
Marco Alberti  writes:
> Hi all,
> when customizing org-capture-templates, how do I insert newlines in the 
> template
> string? I tried RET, C-RET and such, but nothing works,  and I couldn't find
> documentation.
> Thanks,
> Marco

Hi Marco,


just type

   `C-q C-j'

as you would do when searching for a string containing a newline and
similar.


   Sebastian

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


Re: [Orgmode] Re: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Matthew Jones
Hey Eric... did you already have MobileOrg installed on your phone via the
APK downloaded from my site?  If so, could you uninstall that and then try
installing the app from the market?

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Tue, Sep 14, 2010 at 3:10 AM, Eric S Fraga  wrote:

> On Mon, 13 Sep 2010 13:46:30 -0400, Matthew Jones 
> wrote:
> >
> > There was one other thing that I forgot to mention... I've re-enabled
> > installing this application for Android 1.5 phones, you should be able to
> > see it in the Market now.
> >
> > 73,
> > Matthew W. Jones (KI4ZIB)
> > http://matburt.net
>
> Thanks Matthew.  I have just tried to download this from the Market
> but, after unloading, it then fails to install: "Installation
> error. Package was not signed correctly."  I have no further
> information other than this was on a Samsung Galaxy Portal which is
> running Android 1.5.  Sorry if this is not of much help...
>
> --
> Eric S Fraga
> GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
>
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Search files in a folder

2010-09-14 Thread 노정태
Wow, It works like a magic! Thank you so much.

I wrote it to my .emacs. Thank you.

Sincerely, Jeongtae



2010/9/14 Matt Lundin 

> 노정태  writes:
>
> > Suvayu, I read your comment, and googled about what I can't understand.
> >
> > In Emacs, M-x grep  Filename *  does what I want. Thank you.
> >
> > And now, I want to make it as one elisp command.
> >
> > What should I do? Can anybody write a simple script?
>
> FWIW, here's my elisp function to search all my org files with lgrep:
>
> --8<---cut here---start->8---
>  (defun my-org-grep (search &optional context)
>"Search for word in org files.
>
> Prefix argument determines number of lines."
>(interactive "sSearch for: \nP")
>(let ((grep-find-ignored-files '("#*" ".#*"))
>  (grep-template (concat "grep  -i -nH "
> (when context
>   (concat "-C" (number-to-string context)))
> " -e  ")))
>  (lgrep search "*org*" "/home/matt/org/")))
>
>  (global-set-key (kbd "") 'my-org-grep)
> --8<---cut here---end--->8---
>
> A prefix argument (e.g., C-u 3 ) will change the number of
> contextual lines pulled up by the search.
>
> 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] Templates - newline in string?

2010-09-14 Thread Marco Alberti

On Sep 14, 2010, at 4:58 PM, Giovanni Ridolfi wrote:


C-j ?



Great! Thanks.

Marco




___
Emacs-orgmode 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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread John Ogle
On Tue, Sep 14, 2010 at 12:10 AM, Eric S Fraga  wrote:

> On Mon, 13 Sep 2010 13:46:30 -0400, Matthew Jones 
> wrote:
> >
> > There was one other thing that I forgot to mention... I've re-enabled
> > installing this application for Android 1.5 phones, you should be able to
> > see it in the Market now.
> >
> > 73,
> > Matthew W. Jones (KI4ZIB)
> > http://matburt.net
>
> Thanks Matthew.  I have just tried to download this from the Market
> but, after unloading, it then fails to install: "Installation
> error. Package was not signed correctly."  I have no further
> information other than this was on a Samsung Galaxy Portal which is
> running Android 1.5.  Sorry if this is not of much help...
>
> --
> Eric S Fraga
> GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
>

Eric,

If you installed one of the versions of MobileOrg posted on the website you
will need to uninstall that first before installing the one found on the
market.

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


Re: [Orgmode] Templates - newline in string?

2010-09-14 Thread Giovanni Ridolfi
Marco Alberti  writes:

Hi, Marco,

> when customizing org-capture-templates, how do I insert newlines in
> the template string? I tried RET, C-RET and such, but nothing works,
> and I couldn't find documentation.

C-j ?

Giovanni

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


Re: [Orgmode] Re: org-babel matlab example

2010-09-14 Thread Dan Davison
Darlan Cavalcante Moreira  writes:

> Can I leave a suggestion here?
> Maybe a header argument
> ,
> | :return variableName
> `
> could be interesting in org babel. This would make babel behavior more
> uniform in all supported languages and avoid the necessity of adding code
> "only to make babel work".

Hi Darlan,

Thanks (and sorry if you've made this suggestion previously, which I
seem to recall). I can see that this would be particularly natural for
matlab/octave in which (aIui) function definitions require specifying
the name of the variable whose value is to be returned. In other
languages which I've encountered, return values are determined by either
"return" statements, or the value of the last statement in the function,
or both of these mechanisms. So if we were to apply your suggestion to
all languages, one could argue that it would permit un-natural code in
languages other than matlab/octave. As you say, we do want things to be
uniform across languages, but perhaps there is an argument for
restricting your suggestion to matlab/octave?

Dan

>
> --
> Darlan
>
> At Sun, 12 Sep 2010 08:45:40 +0100 (BST),
> etimecowboy  wrote:
>> 
>> From: Dan Davison 
>> Subject: Re: org-babel matlab example
>> Date: Sat, 11 Sep 2010 12:23:17 -0400
>> 
>> > Dan Davison  writes:
>> > 
>> >> etimecowboy  writes:
>> >>
>> >>> Hi everybody,
>> >>>
>> >>> I am learning to use org-babel to evaluate in-line Matlab code block,
>> >>> but I cannot make it works when I press the "C-c C-c", nor "C-c C-v
>> >>> e".
>> >>
>> >> What happens when you try C-c C-c or C-c C-v e ? There is an issue with
>> >> matlab and octave: they return the value of the last /unassigned/
>> >> computation
>> > 
>> > A better way to say this is: they return the value of the special
>> > variable "ans". So whatever you do, at the end of the block you need to
>> > ensure that "ans" has the value that you want returned.
>> > 
>> > I've updated the Worg page on Matlab and Octave:
>> > 
>> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.php
>> > 
>> > Dan
>> > 
>> > 
>> >>, so simply ending the code block with a variable name "x" is
>> >> not enough. Could you try one of the following schemes please, and let
>> >> us know if that solves it:
>> >>
>> >> #+begin_src matlab :exports results
>> >> n = [1:10];
>> >> x = 5*n+4;
>> >> ans = x
>> >> #+end_src
>> >>
>> >> #+begin_src matlab :exports results
>> >> n = [1:10];
>> >> x = 5*n+4;
>> >> x + 0
>> >> #+end_src
>> >>
>> >>
>> >>> The export of code works, but the results was not there. My in-line code 
>> >>> is like this:
>> >>
>> >> There was a little typo in your original block: the keyword is
>> >> ":exports" with an s.
>> >>
>> >> Dan
>> >>
>> >>>
>> >>> #+begin_src matlab :export results
>> >>> n = [1:10];
>> >>> x = 5*n+4;
>> >>> x
>> >>> #+end_src
>> >>>
>> >>> Is there someone can provide me a working example? Thanks a lot.
>> >>>
>> >>>
>> >>> -
>> >>>
>> >>> etimecow...@gmail.com
>> >>>
>> >>>   _.,,._
>> >>> .:'`:.
>> >>>   .'  `.
>> >>>  .'`.
>> >>>  :  :
>> >>>  `.'`':'`'`/'
>> >>>   `.   \  |   /   ,'
>> >>> \   \ |  /   /
>> >>>  `\_..,,.._/'
>> >>>   {`'-,_`'-}
>> >>>   {`'-,_`'-}
>> >>>   {`'-,_`'-}
>> >>>`YY'
>> >>>  ~^^~
>> >>>
>> >>> ___
>> >>> Emacs-orgmode 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
>> 
>> Dear Dan,
>> 
>> I have checked the Worg page you updated and tried your example. It works! 
>> The ans variable is the secret! Thanks a lot. I suggest org should provide 
>> some examples in its user's guide, not only on the topic of Babel but also 
>> Table, Hyperlink, Picture, and etc.
>> 
>> -
>> 
>> etimecow...@gmail.com
>> 
>>   _.,,._
>> .:'`:.
>>   .'  `.
>>  .'`.
>>  :  :
>>  `.'`':'`'`/'
>>   `.   \  |   /   ,'
>> \   \ |  /   /
>>  `\_..,,.._/'
>>   {`'-,_`'-}
>>   {`'-,_`'-}
>>   {`'-,_`'-}
>>`YY'
>>  ~^^~
>> 
>> ___
>> Emacs-orgmode 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: omitting done TODOs from custom agenda

2010-09-14 Thread Eric Abrahamsen
On Tue, Sep 14 2010, Matt Lundin wrote:

> Eric Abrahamsen  writes:
>
>> I'm having a bit of confusion: I've created my own TODO sequences with
>> org-todo-keywords, in this case (sequence "CONTACT(n)" "REPLY(r)" "|"
>> "CONTACTED(e@)"). Then I've got a custom agenda defined using
>> org-agenda-custom-commands, where there's a weekly view on top and some
>> TODO items below. When I start this agenda view, and mark one of the
>> TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
>> very clearly marked as done in the original org file, but it stays in
>> agenda. I've looked at all the extra variables for a custom agenda
>> command, and there doesn't seem to be one that say "don't show completed
>> items".
>
> A simple question: Are you refreshing the agenda after marking the item
> done (i.e., CONTACTED)? Similarly, do the inactive items (i.e.,
> CONTACTED) remain when you invoke the agenda view the again.
>
> Inactive todos do not disappear from the agenda until it is refreshed
> (r).

I should add that the regular todo series still works properly, (TODO
--> DONE gets removed from the agenda), so it must be something to do
with my custom todo keywords...

>
>> These items are part of a tag-todo statment, where the selecting regexp
>> is a tag, not a particular todo keyword, so I wouldn't think I've done
>> anything to force it to display these todo keywords.
>
> Would you mind sharing your custom agenda command?
>
> 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] Templates - newline in string?

2010-09-14 Thread Marco Alberti

Hi all,
when customizing org-capture-templates, how do I insert newlines in  
the template string? I tried RET, C-RET and such, but nothing works,  
and I couldn't find documentation.

Thanks,
Marco




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


[Orgmode] org-open-at-point misses org headlines with statistics cookies

2010-09-14 Thread Antti Kaihola
In an .org file, I have headlines like this:

* example 1 [1/2]
* example 2 [5%]

org-store-link/org-insert-link creates the following markup for them:

[[file:test.org::*example%201%201%202][example 1]]
[[file:test.org::*example%202%205][example 2]]

When I invoke org-open-at-point on those links, Emacs switches to the
correct buffer but displays this in the minibuffer:

No match - create this as a new heading? (y or n)

If I create a non-org (e.g. .txt) file with lines which are identical
to the headlines above, linking to them works correctly.

___
Emacs-orgmode 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: omitting done TODOs from custom agenda

2010-09-14 Thread Eric Abrahamsen
On Tue, Sep 14 2010, Matt Lundin wrote:

> Eric Abrahamsen  writes:
>
>> I'm having a bit of confusion: I've created my own TODO sequences with
>> org-todo-keywords, in this case (sequence "CONTACT(n)" "REPLY(r)" "|"
>> "CONTACTED(e@)"). Then I've got a custom agenda defined using
>> org-agenda-custom-commands, where there's a weekly view on top and some
>> TODO items below. When I start this agenda view, and mark one of the
>> TODO items as CONTACTED, it doesn't disappear from the agenda view. It's
>> very clearly marked as done in the original org file, but it stays in
>> agenda. I've looked at all the extra variables for a custom agenda
>> command, and there doesn't seem to be one that say "don't show completed
>> items".
>
> A simple question: Are you refreshing the agenda after marking the item
> done (i.e., CONTACTED)? Similarly, do the inactive items (i.e.,
> CONTACTED) remain when you invoke the agenda view the again.
>
> Inactive todos do not disappear from the agenda until it is refreshed
> (r).

Hi Matt,

Yup, I am refreshing the agenda with r, or usually g. In the agenda,
when I first mark the item as done, the text of the heading turns green,
but when I next refresh, the text turns back to black. These completed
todos are still there even if I close the agenda and re-invoke it.

>
>> These items are part of a tag-todo statment, where the selecting regexp
>> is a tag, not a particular todo keyword, so I wouldn't think I've done
>> anything to force it to display these todo keywords.
>
> Would you mind sharing your custom agenda command?

Of course:

'(org-agenda-custom-commands (quote (("c" "Agenda plus contacts"
((agenda "" nil) (tags-todo "TODO=\"CONTACT\"" nil) (tags-todo
"TODO=\"REPLY\"" nil)) nil nil) ("g" "Get It Louder" ((agenda "" nil)
(tags-todo "Gil" nil)) nil

The problem occurs in both my "Agenda plus contacts" and "Get It
Louder", so maybe it's something with my custom todos?

(org-todo-keywords (quote ((sequence "TODO(t)" "WAITING(w@)" "|"
"DONE(d)" "CANCELLED(c@)") (sequence "CONTACT(n)" "REPLY(r)" "|"
"CONTACTED(e@)"

But I don't see how that could be interpreted as anything but CONTACTED
= done...

Thanks!

>
> Best,
> Matt

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


Re: [Orgmode] Re: Babel+gnuplot on Worg

2010-09-14 Thread John Hendy
Working on it... if you notice there are broken-linked images right now. The
images are pushed to Worg git repo but for some reason are not actually on
Worg itself. A fresh git clone reveals that my files are there, but they are
not showing up. I wondered if it was just a delay but it's now been two
nights.

Working on it but be assured that this is my vision too! Hope to work things
out swiftly.


John

2010/9/14 Sébastien Vauban 

> Hi John,
>
> John Hendy wrote:
> > [...] My decision to do that resulted in some discussion about putting up
> a
> > more formal page on Worg for gnuplot's babel language page.
> >
> > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php
> >
> > [...] Feel free to let me know your thoughts and/or suggestions. I'm sure
> > I'll end up tweaking things many more times (I already saw some goof-ups
> :)
>
> I greet such initiatives. My only comment would be that it'd be nice to see
> graphics as well on the Worg, so that we can easily make our shop, and see
> if
> something looks similar to what we try to achieve.
>
> 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
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-14 Thread Dan Davison
Dan Davison  writes:

> If we allow the current region to be inherited by the code edit buffer
> (patch below), then language major mode commands that operate on the
> region can be called remotely from the org buffer. For example
>
> C-c C-v C-x M-;   comment region according to language
> C-c C-v C-x C-M-\ indent region according to language
>
> Users can make these more convenient, e.g.
>
> (defun my/org-comment-dwim (&optional arg)
> (interactive "P")
> (or (org-babel-do-key-sequence-in-edit-buffer "\M-;")
> (comment-dwim arg)))
>
> (define-key org-mode-map "\M-;" 'my/org-comment-dwim)
>
> Dan
>
> Proposed patch:
> ~~~

I would like to make one addition to this patch: adding

(setq deactivate-mark nil)

towards the end means that if the region is contained within the src
block, then it will be active (and highlighted) in the edit buffer.

Dan

>
> commit 6e14f016cdfe92357092461058def5d4073541e2
> Author: Dan Davison 
> Date:   Sat Sep 4 13:43:56 2010 -0400
>
> Transmit active region from Org buffer to code edit buffer
> 
>   * org-src.el (org-edit-src-code): If mark was inside code
>   block then code edit buffer inherits mark with active region.
>
> diff --git a/lisp/org-src.el b/lisp/org-src.el
> index d1948cc..d0a9729 100644
> --- a/lisp/org-src.el
> +++ b/lisp/org-src.el
> @@ -209,6 +209,7 @@ buffer."
>  (setq org-edit-src-saved-temp-window-config 
> (current-window-configuration)))
>(let ((line (org-current-line))
>   (col (current-column))
> + (mark (and (use-region-p) (mark)))
>   (case-fold-search t)
>   (info (org-edit-src-find-region-and-lang))
>   (babel-info (org-babel-get-src-block-info))
> @@ -217,7 +218,8 @@ buffer."
>   (end (make-marker))
>   (preserve-indentation org-src-preserve-indentation)
>   (allow-write-back-p (null code))
> - block-nindent total-nindent ovl lang lang-f single lfmt begline buffer 
> msg)
> + block-nindent total-nindent ovl lang lang-f single lfmt buffer msg
> + begline markline markcol)
>  (if (not info)
>   nil
>(setq beg (move-marker beg (nth 0 info))
> @@ -235,6 +237,10 @@ buffer."
>   block-nindent (nth 5 info)
>   lang-f (intern (concat lang "-mode"))
>   begline (save-excursion (goto-char beg) (org-current-line)))
> +  (if (and mark (>= mark beg) (<= mark end))
> +   (save-excursion (goto-char mark)
> +   (setq markline (org-current-line)
> + markcol (current-column
>(if (equal lang-f 'table.el-mode)
> (setq lang-f (lambda ()
>(text-mode)
> @@ -290,6 +296,11 @@ buffer."
> (while (re-search-forward "^," nil t)
>   (if (eq (org-current-line) line) (setq total-nindent (1+ 
> total-nindent)))
>   (replace-match "")))
> + (when markline
> +   (org-goto-line (1+ (- markline begline)))
> +   (org-move-to-column
> +(if preserve-indentation markcol (max 0 (- markcol total-nindent
> +   (push-mark (point) 'no-message t))
>   (org-goto-line (1+ (- line begline)))
>   (org-move-to-column
>(if preserve-indentation col (max 0 (- col total-nindent
>
> ___
> Emacs-orgmode 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] send mail without starting gnus first

2010-09-14 Thread Eraldo Helal
How can I send Mail without starting gnus beforehand.
I noticed that once I had started gnus at least once and then quit gnus...
I can send mail. However after rebooting and starting emacs...
I can not send any mail getting some error instead.
message-send-mail-with-sendmail: Sending...failed with exit value 1

Greetings from Austria,
Eraldo

___
Emacs-orgmode 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] pretty export of tags

2010-09-14 Thread Carsten Dominik


On Sep 14, 2010, at 12:00 PM, Scot Becker wrote:

Would it not be more consistent if I just make the command for the  
taglist
be specified in a variable, similar to org-export-latex-todo- 
keyword-markup.

This seems the more logical solution to me.  You could still use a
non-existing command and define it in the header


Not sure how I missed your last email, so long ago... but:  Yes.  That
seems great solution.


Hi Scot,

there is now org-export-latex-tag-format

Cheers.

- Carsten


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


Re: [Orgmode] different result in spreadsheet tutorial

2010-09-14 Thread Carsten Dominik


On Sep 14, 2010, at 2:15 PM, Stuart McLean wrote:


Hello,

I am just beginning to learn org-mode's spreadsheet with the tutorial
here: http://orgmode.org/worg/org-tutorials/org-spreadsheet-intro.php

However, when I type C-c C-c on the TBLFM line below




| Student  | Maths | Physics | Mean |
|--+---+-+--|
| Bertrand |13 |  09 |   11 |
| Henri|15 |  14 | 14.5 |
| Arnold   |17 |  13 |   15 |
|--+---+-+--|
| Means|15 |  12 |  |
#+TBLFM:  
$4=vmean($2..$3)::@5$2=vmean(@2$...@4$2)::@5$3=vmean(@2$...@4$3)



I get 13.5 in D5. I assume $4=vmean($2..$3) is being computed for this
row as well.


Yes, this is how column formulas work.

You can either use field formulas for the three fields, or you can  
overwrite the corner field with


   @5$4=string("")

HTH

- Carsten


Am I doing something wrong?

Please excuse if this has been covered earlier in the newsgroup

Thanks,

Stuart



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


- Carsten




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


[Orgmode] different result in spreadsheet tutorial

2010-09-14 Thread Stuart McLean
Hello,

I am just beginning to learn org-mode's spreadsheet with the tutorial
here: http://orgmode.org/worg/org-tutorials/org-spreadsheet-intro.php

However, when I type C-c C-c on the TBLFM line below




| Student  | Maths | Physics | Mean |
|--+---+-+--|
| Bertrand |13 |  09 |   11 |
| Henri|15 |  14 | 14.5 |
| Arnold   |17 |  13 |   15 |
|--+---+-+--|
| Means|15 |  12 |  |
#+TBLFM: $4=vmean($2..$3)::@5$2=vmean(@2$...@4$2)::@5$3=vmean(@2$...@4$3)


I get 13.5 in D5. I assume $4=vmean($2..$3) is being computed for this
row as well. Am I doing something wrong?

Please excuse if this has been covered earlier in the newsgroup

Thanks,

Stuart



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


[Accepted] [Orgmode] Explicitly mention when a language-mode throws an error

2010-09-14 Thread Carsten Dominik
Patch 263 (http://patchwork.newartisans.com/patch/263/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87sk1luntu.fsf%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Explicitly mention when a language-mode throws an error
> Date: Wed, 08 Sep 2010 04:38:05 -
> From: Eric Schulte 
> X-Patchwork-Id: 263
> Message-Id: <87sk1luntu@gmail.com>
> To: Org Mode 
> 
> Hi,
> 
> The attached patch makes it clear when a language mode has thrown an
> error.  This can clear up confusion whether an error is originating from
> Org-mode or form the language-mode in question.
> 
> Should this be committed?
> 
> Best -- Eric
> 
> 
> diff --git a/lisp/org-src.el b/lisp/org-src.el
> index d1948cc..233058a 100644
> --- a/lisp/org-src.el
> +++ b/lisp/org-src.el
> @@ -276,7 +276,10 @@ buffer."
>   (unless preserve-indentation
> (setq total-nindent (or (org-do-remove-indentation) 0)))
>   (let ((org-inhibit-startup t))
> -   (funcall lang-f))
> +   (condition-case e
> +   (funcall lang-f)
> + (error
> +  (error "Language mode `%s' fails with: %S" lang-f (nth 1 e)
>   (set (make-local-variable 'org-edit-src-force-single-line) single)
>   (set (make-local-variable 'org-edit-src-from-org-mode) org-mode-p)
>   (set (make-local-variable 'org-edit-src-allow-write-back-p) 
> allow-write-back-p)
> 

___
Emacs-orgmode 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] Change color in fontified html export for strings

2010-09-14 Thread Sebastian Rose
Eric S Fraga  writes:
> Thanks Sebastian.  I think that will definitely help the OP.  However,
> at least on my system, I believe the variable is actually
> org-export-htmlize-output-type (type, not style).


Yes, sorry Eric, right: org-export-htmlize-output-type


Sebastian

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


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 13:41, Sebastian Rose wrote:
> Eric S Fraga  writes:
>> Thanks Sebastian.  I think that will definitely help the OP.  However,
>> at least on my system, I believe the variable is actually
>> org-export-htmlize-output-type (type, not style).
> 
> 
> Yes, sorry Eric, right: org-export-htmlize-output-type

I found the variable - but then all the highlighting is gone. I assume,
I have to use CSS sylesheet for that. That is an overkill for me at the
moment.

Is there really no way, just to change the color of one entity in the
htmlization of code?

Thanks a lot,

Rainer

> 
> 
> Sebastian


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

iEYEARECAAYFAkyPYnMACgkQoYgNqgF2egqWygCfYGPjAlIwJczE4PBgPF7Ge6RO
PhcAn3cTxJZ7d/oDHOdk87rhgu9dhuOq
=rrpG
-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


[Orgmode] Nested exports - Exporting a "sub.org" file while exporting "main.org"

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I want to export a subdocument (sub.org) while exporting a main document
(main.org), but I am getting an
"Args out of range: 0,0"
error message after the sub.org document is exported.

Am I doing something wrong or is it not possible to have nested exports?

Example:
- -begin-main.org--
* Generate Report
#+begin_src emacs-lisp :exports results :results output silent
  (switch-to-buffer (find-file-noselect "sub.org"))
  (org-export-as-html nil)
#+end_src
- ---end-main.org--

- --begin-sub.org--
* This is a test report
- end-sub.org--


org-mode version: Org-mode version 7.01trans (release_7.01h.502.gc464)
emacs version:GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1)
Ubuntu - Lucid



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

iEYEARECAAYFAkyPXdQACgkQoYgNqgF2egrF9wCbBfx8xrlaQrkhyssnl2V9kxrX
NdcAnjbz2m5W0/xNPbKDDnK8RuJ8lVFQ
=ZD2Y
-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


[Orgmode] Query: Nested sort in table?

2010-09-14 Thread Christian Moe

Hi,

Is there a technique or strategy to get nested sorts in Org tables, i. 
e. sorting first by column B, then by column A, ...?


e.g. a list of publications sorted by title:

| Author| Year | Title| Type|
|---+--+--+-|
| Smith, J. | 2006 | Mazes for mice   | Article |
| Jones, S. | 2003 | Mice for Dummies | Book|
| Smith, J. | 2002 | Rodents  | Book|
| Jones, S. | 2007 | Say 'Cheese'!| Article |
| Jones, S. | 2000 | Pet care | Book|

For bibliographical order you would want to sort first by author, then 
by year (ascending or sometimes adecending). In other circumstances 
you might also want to sort by type first of all, to have separate 
lists of books and articles. You can sort by author


| Author| Year | Title| Type|
|---+--+--+-|
| Jones, S. | 2003 | Mice for Dummies | Book|
| Jones, S. | 2007 | Say 'Cheese'!| Article |
| Jones, S. | 2000 | Pet care | Book|
| Smith, J. | 2006 | Mazes for mice   | Article |
| Smith, J. | 2002 | Rodents  | Book|

but how to get the works of each author sorted by date? Manually 
selecting a region from "2003" to the end of the "Jones" lines, 
sorting, and then selecting a region from "2006" to the end of the 
"Smith" lines, and sorting again, works:


| Author| Year | Title| Type|
|---+--+--+-|
| Jones, S. | 2000 | Pet care | Book|
| Jones, S. | 2003 | Mice for Dummies | Book|
| Jones, S. | 2007 | Say 'Cheese'!| Article |
| Smith, J. | 2002 | Rodents  | Book|
| Smith, J. | 2006 | Mazes for mice   | Article |

-- but is there a shortcut?

Yours,
CM

___
Emacs-orgmode 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] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 12:13:12 +0200, Sebastian Rose  
wrote:
> 
> Rainer M Krug  writes:
> > On 14/09/10 10:16, Eric S Fraga wrote:
> >> On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  
> >> wrote:
> >> 
> >> [...]
> >> 
> >>> The string
> >>>
> >>>  .string {color: #ff4500;}
> >>>
> >>> is in the html file, but it is not used - the color is hardcoded as
> >>> #00:
> >> 
> >> so this has nothing to do with CSS as style specifications can only
> >> affect specific tags, not hard-coded style information.
> >
> > Agreed.
> 
> 
> M-x customize-variable RET org-export-htmlize-output-style
> 
> and set it to 'css'
> 
> HTH
> 
>   Sebastian

Thanks Sebastian.  I think that will definitely help the OP.  However,
at least on my system, I believe the variable is actually
org-export-htmlize-output-type (type, not style).

cheers,
eric
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] export of .org file from within a different .org file

2010-09-14 Thread Sebastian Rose
Rainer M Krug  writes:
> Hi
>
> I have an org file (report.org) which creates a report.
>
> Now I want to do a few things with the resulting report, before I create
> it to run a simulation, and afterwards copy it into a directory with a
> name linked to some parameter of the simulation. I am now using a
> seperate .org file (sim.org) which essentially looks as follow:
>
> --
> * Simulate
> #+begin_src R
>   ...
> #+end_src
>
> * Create Report
> #+begin_src sh :exports results
>   emacs --batch --visit=rep.sim.org
> --execute='(org-export-as-html-and-open nil)'
> #+end_src
>
> * Do some copying
> #+begin_src sh
>   cp rep.sim.html DifferentName.html
>   ...
> #+end_src
> --
>
> As you can see, I am using sh to do a task in emacs - which is quite
> ridiculous, but I don't know how to do it in elisp. So:
>
> how can I translate
> emacs --batch --visit=rep.sim.org
> --execute='(org-export-as-html-and-open nil)'
>
> into elisp?


Could be done better maybe, but this works:

(let ((buf (find-file-noselect "~/path/to/file.org")))
  (with-current-buffer buf
(org-export-as-html-and-open nil)
(kill-buffer buf)))



Sebastian

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


Re: [Orgmode] export of .org file from within a different .org file

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 12:17, Sebastian Rose wrote:
> Rainer M Krug  writes:
>> Hi
>>
>> I have an org file (report.org) which creates a report.
>>
>> Now I want to do a few things with the resulting report, before I create
>> it to run a simulation, and afterwards copy it into a directory with a
>> name linked to some parameter of the simulation. I am now using a
>> seperate .org file (sim.org) which essentially looks as follow:
>>
>> --
>> * Simulate
>> #+begin_src R
>>   ...
>> #+end_src
>>
>> * Create Report
>> #+begin_src sh :exports results
>>   emacs --batch --visit=rep.sim.org
>> --execute='(org-export-as-html-and-open nil)'
>> #+end_src
>>
>> * Do some copying
>> #+begin_src sh
>>   cp rep.sim.html DifferentName.html
>>   ...
>> #+end_src
>> --
>>
>> As you can see, I am using sh to do a task in emacs - which is quite
>> ridiculous, but I don't know how to do it in elisp. So:
>>
>> how can I translate
>> emacs --batch --visit=rep.sim.org
>> --execute='(org-export-as-html-and-open nil)'
>>
>> into elisp?
> 
> 
> Could be done better maybe, but this works:
> 
> (let ((buf (find-file-noselect "~/path/to/file.org")))
>   (with-current-buffer buf
> (org-export-as-html-and-open nil)
> (kill-buffer buf)))

Thanks - the kill-buffer is definitely a good idea

Rainer

> 
> 
> 
> Sebastian


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

iEYEARECAAYFAkyPTU8ACgkQoYgNqgF2egqzMwCeJg7MEQwJh0voZfysNrvOHVhG
3LAAn25sgD1yod8JnquufgXi/BRTZT5O
=o6+0
-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] Change color in fontified html export for strings

2010-09-14 Thread Sebastian Rose
Rainer M Krug  writes:
> On 14/09/10 10:16, Eric S Fraga wrote:
>> On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  wrote:
>> 
>> [...]
>> 
>>> The string
>>>
>>>  .string {color: #ff4500;}
>>>
>>> is in the html file, but it is not used - the color is hardcoded as
>>> #00:
>> 
>> so this has nothing to do with CSS as style specifications can only
>> affect specific tags, not hard-coded style information.
>
> Agreed.


M-x customize-variable RET org-export-htmlize-output-style

and set it to 'css'

HTH

  Sebastian

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


[Orgmode] SOLVED: export of .org file from within a different .org file

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 11:44, Rainer M Krug wrote:

Found the solution:

#+begin_src emacs-lisp
  (switch-to-buffer (find-file-noselect "report.org"))
  (org-export-as-html-and-open nil)
#+end_src

Cheers,

Rainer


> Hi
> 
> I have an org file (report.org) which creates a report.
> 
> Now I want to do a few things with the resulting report, before I create
> it to run a simulation, and afterwards copy it into a directory with a
> name linked to some parameter of the simulation. I am now using a
> seperate .org file (sim.org) which essentially looks as follow:
> 
> --
> * Simulate
> #+begin_src R
>   ...
> #+end_src
> 
> * Create Report
> #+begin_src sh :exports results
>   emacs --batch --visit=rep.sim.org
> --execute='(org-export-as-html-and-open nil)'
> #+end_src
> 
> * Do some copying
> #+begin_src sh
>   cp rep.sim.html DifferentName.html
>   ...
> #+end_src
> --
> 
> As you can see, I am using sh to do a task in emacs - which is quite
> ridiculous, but I don't know how to do it in elisp. So:
> 
> how can I translate
> emacs --batch --visit=rep.sim.org
> --execute='(org-export-as-html-and-open nil)'
> 
> into elisp?
> The (org-export-as-html-and-open nil) is clear - but the visit= ??
> 
> Thanks,
> 
> Rainer
> 

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

iEYEARECAAYFAkyPSkgACgkQoYgNqgF2egrl8wCeL+DABEKJJ4SIXfm1oC3ivs1P
YagAni6wPtICzlXjINI7BDPQj9SkiPWs
=x+zA
-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


[Orgmode] Re: todos without timestamp in agenda

2010-09-14 Thread henry atting
On Di, Sep 14 2010, Eric S Fraga wrote:

> On Tue, 14 Sep 2010 08:27:48 +0200, henry atting  wrote:
>> 
>> When I have some kind of todo items in an *.org file without timestamp they
>> do not show up in the agenda. I can start the agenda with the
>> appropriate shortcut then only these items are diplayed. 
>> But if I am already in org-agenda I have to quit then start again
>> with the speacial agenda view.
>> Is there a more comfortable way to simply switch the view when in
>> org-agenda, or let these todo items show up in the first place (e.g. at
>> the bottom of the agenda)?
>
> You don't have to "quit" the current view; simply ask for a new view
> by "C-c a X" where X is the particular short-cut.  If you have your
> agenda in a separate frame, that frame will be updated.

That simple?, great. I did not find it in the manual...

Thanks
henry 

-- 
http://literaturlatenight.de

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


Re: [Orgmode] pretty export of tags

2010-09-14 Thread Scot Becker
> Would it not be more consistent if I just make the command for the taglist
> be specified in a variable, similar to org-export-latex-todo-keyword-markup.
> This seems the more logical solution to me.  You could still use a
> non-existing command and define it in the header

Not sure how I missed your last email, so long ago... but:  Yes.  That
seems great solution.

Scot

___
Emacs-orgmode 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: Babel+gnuplot on Worg

2010-09-14 Thread Sébastien Vauban
Hi John,

John Hendy wrote:
> [...] My decision to do that resulted in some discussion about putting up a
> more formal page on Worg for gnuplot's babel language page.
>
> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.php
>
> [...] Feel free to let me know your thoughts and/or suggestions. I'm sure
> I'll end up tweaking things many more times (I already saw some goof-ups :)

I greet such initiatives. My only comment would be that it'd be nice to see
graphics as well on the Worg, so that we can easily make our shop, and see if
something looks similar to what we try to achieve.

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] export of .org file from within a different .org file

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have an org file (report.org) which creates a report.

Now I want to do a few things with the resulting report, before I create
it to run a simulation, and afterwards copy it into a directory with a
name linked to some parameter of the simulation. I am now using a
seperate .org file (sim.org) which essentially looks as follow:

- --
* Simulate
#+begin_src R
  ...
#+end_src

* Create Report
#+begin_src sh :exports results
  emacs --batch --visit=rep.sim.org
- --execute='(org-export-as-html-and-open nil)'
#+end_src

* Do some copying
#+begin_src sh
  cp rep.sim.html DifferentName.html
  ...
#+end_src
- --

As you can see, I am using sh to do a task in emacs - which is quite
ridiculous, but I don't know how to do it in elisp. So:

how can I translate
emacs --batch --visit=rep.sim.org
- --execute='(org-export-as-html-and-open nil)'

into elisp?
The (org-export-as-html-and-open nil) is clear - but the visit= ??

Thanks,

Rainer

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

iEYEARECAAYFAkyPRBIACgkQoYgNqgF2egoUAgCffRw7w3oYflb6IAOyNoASAw8F
ZpcAn2JRj7bWIuYBckiK+8UNxjfPd3dp
=V5Qm
-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: Freemind conversion and Notes

2010-09-14 Thread Lennart Borgman
Thanks, I have noticed this and will look into it, but I have a lack
of time so I can't do it right now. But please send me an example.

On Tue, Sep 14, 2010 at 9:29 AM, Carsten Dominik
 wrote:
>
> On Sep 14, 2010, at 9:25 AM, Charles Cave wrote:
>
>>> org-freemind.el suggests that notes from a Freemind mindmap become
>>> converted to org by org-freemind-to-org-mode. However, all I get is the
>>> nodes and subnodes structure as orgmode's headings. My various notes
>>> (including many draft sentences of the article I'm about to write, so
>>> the most important thing) are ignored.
>>
>> Sven,
>>
>> I encountered this problem as well which makes the conversion quite
>> useless. I am not sure who owns the freemind package or who would
>> be willing to fix it up!
>
> Lennart Borgman wrote the org-freemind converter.  May be you
> can talk him into looking into this problem?  I am
> CCing him on this mail.
>
> Cheers
>
> - Carsten
>
>

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


[Orgmode] Re: image alt text for HTML export

2010-09-14 Thread Aidan Gauland
Christian Moe  christianmoe.com> writes:
> Yes, like so:
> 
> : #+attr_html: alt="Picture of a foo"
> : [[./foo.png]]
> 
> See the manual section on exporting to HTML.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

That's exactly what I was looking for.  Thank you!  I never would have
thought to look under "Links in HTML export" for how to set HTML
attributes. :P

Thanks,
Aidan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkyPORAACgkQjyzTRvYJmaUq2wCggZ1/iNnbnlva25pAKFm4knb2
j2AAn3wUM9uK6CGSNHo3ApPloyi4UZrM
=dG3w
-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] Change color in fontified html export for strings

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 10:16, Eric S Fraga wrote:
> On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  wrote:
> 
> [...]
> 
>> The string
>>
>>  .string {color: #ff4500;}
>>
>> is in the html file, but it is not used - the color is hardcoded as
>> #00:
> 
> so this has nothing to do with CSS as style specifications can only
> affect specific tags, not hard-coded style information.

Agreed.

> 
> The question then becomes one of which particular tool in the chain is
> generating hard-coded colours and can that tool be configured to do
> this in a different more general manner?

Exactly.

> 
> [...]
> 
>> plot(
>>  res,
>>  stages=c(
>>"flower",
>>"parFlower",
>>"gall",
>>"midgeAdult",
>>"grePod",
>>"weavilAdult",
>>"seed"
>>),
>>  plot.type="multiple"
>>  )
>> 
> 
> Which tool generates this pre-formatted code snippet?  I'm not up to
> speed on the whole export tool chain for org unfortunately.
> 

Me neither. Probably somebody can help?

Rainer

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

iEYEARECAAYFAkyPMnMACgkQoYgNqgF2egrbWwCgjI1cOQrUbg4othy6VLX+YJqf
JccAnAyo89M1BL5c+cQnMT43j/GnMsJp
=GLS1
-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] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 10:05:32 +0200, Rainer M Krug  wrote:

[...]

> The string
> 
>  .string {color: #ff4500;}
> 
> is in the html file, but it is not used - the color is hardcoded as
> #00:

so this has nothing to do with CSS as style specifications can only
affect specific tags, not hard-coded style information.

The question then becomes one of which particular tool in the chain is
generating hard-coded colours and can that tool be configured to do
this in a different more general manner?

[...]

> plot(
>  res,
>  stages=c(
>"flower",
>"parFlower",
>"gall",
>"midgeAdult",
>"grePod",
>"weavilAdult",
>"seed"
>),
>  plot.type="multiple"
>  )
> 

Which tool generates this pre-formatted code snippet?  I'm not up to
speed on the whole export tool chain for org unfortunately.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 09:41, Eric S Fraga wrote:
> On Tue, 14 Sep 2010 09:11:07 +0200, Rainer M Krug  wrote:
>>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On 14/09/10 02:36, Sebastian Rose wrote:
>>> Rainer M Krug  writes:
 Hi

 when exporting code blocks to html, strings are exported as yellow
 (#00), which is really difficult to read. Is there a possibility to
 customize the colors (specifically the one used for strings) used for
 the fontification when exporting to html?

 Thanks,

 Rainer
>>>
>>>
>> Hi Sebastian,
>>
>>> Change the CSS styles for strings using a stylesheet. 
>>
>> I must admit, I know nerly nothing about html, and even less about CSS
>> stylesheets. So what do I have o do with the code you gave below?
>>
>> I found the following statement in the org manual:
>>
>> 
>> To set the latter variable individually for each file, you can
>> use
>> #+STYLE: 
>> For longer style definitions, you can use several such lines. You could
>> also directly write a
>>   section in this way, without referring to an external file.
>> ###
>>
>> As I only want to change the color for .string (right?), I am thinking
>> about specifying it in the properties - but
>>
>> #+STYLE:  .string {color: #ff4500;}
>>
>> failed.
>>
>> Any suggestions or CSS stylesheets?
> 
> Did you C-c C-c after adding that line so that org setup is reset?  

Yes

> Is there actually any HTML code in the exported file that has the
> sequence
> 
> : 
> 
> where XXX might be SPAN or DIV?  That is, is there any HTML code that
> is actually using the string class?  Maybe try a very small example
> and post the html file that results?
> 

The string

 .string {color: #ff4500;}

is in the html file, but it is not used - the color is hardcoded as
#00:

"seed"

Here is an example .org file:

- ---
#+STYLE:  .string {color: #ff4500;}
* Results
#+begin_src R :exports code
plot(
 res,
 stages=c(
   "flower",
   "parFlower",
   "gall",
   "midgeAdult",
   "grePod",
   "weavilAdult",
   "seed"
   ),
 plot.type="multiple"
 )
#+end_src
- ---

and the resulting html file:

- ---

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";
lang="en" xml:lang="en">

test







 

 .string {color: #ff4500;}








test



Table of Contents


1 Results 





1 Results 





plot(
 res,
 stages=c(
   "flower",
   "parFlower",
   "gall",
   "midgeAdult",
   "grePod",
   "weavilAdult",
   "seed"
   ),
 plot.type="multiple"
 )








 Author: Rainer M Krug

 Date: 2010-09-14 10:00:53 CEST
HTML generated by org-mode 7.01trans in emacs 23




- ---

The question is: how can I change the  "color: #00;" for the
strings, e.g. in

"seed"

to any other color?

Cheers,

Rainer



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

Re: [Orgmode] image alt text for HTML export

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 19:01:12 +1200, Aidan Gauland  
wrote:
> 
> [1  ]
> [1.1  ]
> Is it possible to set the alt attribute of an image for HTML export?
> If I insert an inline image into an Org buffer like so...
> 
> [[./foo.png]]
> 
> ...and export it to HTML, I get something like this...
> 
> 
> 
> But I want the alt attribute to be "foo" (or something else), not the
> filename.
> 
> I know this is an HTML-specific setting, but I still want the image be
> exported to other formats, so inserting literal HTML (see below) isn't
> really suitable.
> 
> #+HTML: 
> 
> If there is no way to do this, should I file a feature request?

The following works for me:

: #+attr_html: width="50%" alt="This is a test image"
: [[file:image.png]]

(without the : obviously) and with

: Org-mode version 7.01trans (release_7.01h.501.gc19a0)
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] image alt text for HTML export

2010-09-14 Thread Christian Moe

On 9/14/10 9:01 AM, Aidan Gauland wrote:

Is it possible to set the alt attribute of an image for HTML export?


Yes, like so:

: #+attr_html: alt="Picture of a foo"
: [[./foo.png]]

See the manual section on exporting to HTML.

Cheers,
CM



If I insert an inline image into an Org buffer like so...

[[./foo.png]]

...and export it to HTML, I get something like this...



But I want the alt attribute to be "foo" (or something else), not the
filename.

I know this is an HTML-specific setting, but I still want the image be
exported to other formats, so inserting literal HTML (see below) isn't
really suitable.

#+HTML:

If there is no way to do this, should I file a feature request?

--Aidan



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



--

Christian Moe
E-mail:  m...@christianmoe.com
Website: http://christianmoe.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


Re: [Orgmode] todos without timestamp in agenda

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 08:27:48 +0200, henry atting  wrote:
> 
> When I have some kind of todo items in an *.org file without timestamp they
> do not show up in the agenda. I can start the agenda with the
> appropriate shortcut then only these items are diplayed. 
> But if I am already in org-agenda I have to quit then start again
> with the speacial agenda view.
> Is there a more comfortable way to simply switch the view when in
> org-agenda, or let these todo items show up in the first place (e.g. at
> the bottom of the agenda)?

You don't have to "quit" the current view; simply ask for a new view
by "C-c a X" where X is the particular short-cut.  If you have your
agenda in a separate frame, that frame will be updated.
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Change color in fontified html export for strings

2010-09-14 Thread Eric S Fraga
On Tue, 14 Sep 2010 09:11:07 +0200, Rainer M Krug  wrote:
> 
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> On 14/09/10 02:36, Sebastian Rose wrote:
> > Rainer M Krug  writes:
> >> Hi
> >>
> >> when exporting code blocks to html, strings are exported as yellow
> >> (#00), which is really difficult to read. Is there a possibility to
> >> customize the colors (specifically the one used for strings) used for
> >> the fontification when exporting to html?
> >>
> >> Thanks,
> >>
> >> Rainer
> > 
> > 
> Hi Sebastian,
> 
> > Change the CSS styles for strings using a stylesheet. 
> 
> I must admit, I know nerly nothing about html, and even less about CSS
> stylesheets. So what do I have o do with the code you gave below?
> 
> I found the following statement in the org manual:
> 
> 
> To set the latter variable individually for each file, you can
> use
> #+STYLE: 
> For longer style definitions, you can use several such lines. You could
> also directly write a
>   section in this way, without referring to an external file.
> ###
> 
> As I only want to change the color for .string (right?), I am thinking
> about specifying it in the properties - but
> 
> #+STYLE:  .string {color: #ff4500;}
> 
> failed.
> 
> Any suggestions or CSS stylesheets?

Did you C-c C-c after adding that line so that org setup is reset?  Is
there actually any HTML code in the exported file that has the
sequence

: 

where XXX might be SPAN or DIV?  That is, is there any HTML code that
is actually using the string class?  Maybe try a very small example
and post the html file that results?
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [PATCH] Removed unecessary invocations of org-agenda-show.

2010-09-14 Thread Carsten Dominik


On Sep 13, 2010, at 6:48 PM, Matt Lundin wrote:



lisp/org-agenda.el (org-agenda-set-tags): Remove org-agenda-show to  
prevent

disrupting windows and changing point in original buffer.
(org-agenda-set-property): Same
(org-agenda-set-effort): Same
(org-agenda-toggle-archive-tag): Same

When setting a tag in the agenda, org-mode displays the corresponding
entry in the original org buffer by calling org-agenda-show. This has
the unwelcome side-effect of disrupting the current window arrangement
and changing the position of the point in the original buffer. This
behavior is inconsistent with the that of org-agenda-todo, which makes
all its changes "silently."


I agree, but I am sure I used to have problems with something
which is why this was added.
Have you been running this patch for some time already?
Without any problems like the agenda jumping to a wrong place in a org  
file or so?

That would be great.

- Carsten




Here is the offending line (6799) in org-agenda-set-tags:

--8<---cut here---start->8---
(org-agenda-show)   ;;; FIXME This is a stupid hack and should not  
be needed

--8<---cut here---end--->8---

The same line occurs in org-agenda-set-property, org-agenda-set- 
effort,

and org-agenda-toggle-archive tag.
---
lisp/org-agenda.el |4 
1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 32c65db..784ba6a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6796,7 +6796,6 @@ the same tree node, and the headline of the  
tree node in the Org-mode file."

  (org-agenda-check-no-diary)
  (if (and (org-region-active-p) (interactive-p))
  (call-interactively 'org-change-tag-in-region)
-(org-agenda-show)   ;;; FIXME This is a stupid hack and should  
not be needed

(let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
 (org-agenda-error)))
   (buffer (marker-buffer hdmarker))
@@ -6825,7 +6824,6 @@ the same tree node, and the headline of the  
tree node in the Org-mode file."

  "Set a property for the current headline."
  (interactive)
  (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should  
not be needed

  (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6848,7 +6846,6 @@ the same tree node, and the headline of the  
tree node in the Org-mode file."

  "Set the effort property for the current headline."
  (interactive)
  (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should  
not be needed

  (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
@@ -6872,7 +6869,6 @@ the same tree node, and the headline of the  
tree node in the Org-mode file."

  "Toggle the archive tag for the current entry."
  (interactive)
  (org-agenda-check-no-diary)
-  (org-agenda-show)   ;;; FIXME This is a stupid hack and should  
not be needed

  (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
   (org-agenda-error)))
 (buffer (marker-buffer hdmarker))
--
1.7.2.3


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


- Carsten




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


[Accepted] [Orgmode] silence byte compiler warnings about european-calendar-style

2010-09-14 Thread Carsten Dominik
Patch 272 (http://patchwork.newartisans.com/patch/272/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87aanlzejg.fsf_-_%40Rainer.invalid%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] silence byte compiler warnings about 
> european-calendar-style
> Date: Mon, 13 Sep 2010 23:25:39 -
> From: Achim Gratz 
> X-Patchwork-Id: 272
> Message-Id: <87aanlzejg.fsf...@rainer.invalid>
> To: emacs-orgmode@gnu.org
> 
> I've investigated further and defvaralias doesn't silence the warnings,
> but "with-no-warnings" does.
> 
> ---
> lisp/org-agenda.el |3 ++-
>  lisp/org.el|7 ---
>  2 files changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 32c65db..9f94fa6 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -7279,7 +7279,8 @@ the resulting entry will not be shown.  When TEXT is 
> empty, switch to
>(let ((calendar-date-display-form
>(if (if (boundp 'calendar-date-style)
>(eq calendar-date-style 'european)
> -(org-bound-and-true-p european-calendar-style)) ; Emacs 22
> +(with-no-warnings ;; european-calendar-style is obsolete as 
> of version 23.1
> +  (org-bound-and-true-p european-calendar-style))) ; Emacs 22
>'(day " " month " " year)
>  '(month " " day " " year
>  
> diff --git a/lisp/org.el b/lisp/org.el
> index 668d469..70dd482 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -14604,9 +14604,10 @@ user function argument order change dependent on 
> argument order."
>   (list arg2 arg1 arg3))
> ((eq calendar-date-style 'iso)
>   (list arg2 arg3 arg1)))
> -(if (org-bound-and-true-p european-calendar-style)
> - (list arg2 arg1 arg3)
> -  (list arg1 arg2 arg3
> +(with-no-warnings ;; european-calendar-style is obsolete as of version 
> 23.1
> +  (if (org-bound-and-true-p european-calendar-style)
> +   (list arg2 arg1 arg3)
> + (list arg1 arg2 arg3)
>  
>  (defun org-eval-in-calendar (form &optional keepdate)
>"Eval FORM in the calendar window and return to current window.
> 

___
Emacs-orgmode 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: Freemind conversion and Notes

2010-09-14 Thread Carsten Dominik


On Sep 14, 2010, at 9:25 AM, Charles Cave wrote:


org-freemind.el suggests that notes from a Freemind mindmap become
converted to org by org-freemind-to-org-mode. However, all I get is  
the

nodes and subnodes structure as orgmode's headings. My various notes
(including many draft sentences of the article I'm about to write, so
the most important thing) are ignored.


Sven,

I encountered this problem as well which makes the conversion quite
useless. I am not sure who owns the freemind package or who would
be willing to fix it up!


Lennart Borgman wrote the org-freemind converter.  May be you
can talk him into looking into this problem?  I am
CCing him on this mail.

Cheers

- Carsten


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


[Orgmode] Re: Freemind conversion and Notes

2010-09-14 Thread Charles Cave
> org-freemind.el suggests that notes from a Freemind mindmap become
> converted to org by org-freemind-to-org-mode. However, all I get is the
> nodes and subnodes structure as orgmode's headings. My various notes
> (including many draft sentences of the article I'm about to write, so
> the most important thing) are ignored.

Sven,

I encountered this problem as well which makes the conversion quite
useless. I am not sure who owns the freemind package or who would
be willing to fix it up!

Charles




___
Emacs-orgmode 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] Change color in fontified html export for strings

2010-09-14 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 14/09/10 02:36, Sebastian Rose wrote:
> Rainer M Krug  writes:
>> Hi
>>
>> when exporting code blocks to html, strings are exported as yellow
>> (#00), which is really difficult to read. Is there a possibility to
>> customize the colors (specifically the one used for strings) used for
>> the fontification when exporting to html?
>>
>> Thanks,
>>
>> Rainer
> 
> 
Hi Sebastian,

> Change the CSS styles for strings using a stylesheet. 

I must admit, I know nerly nothing about html, and even less about CSS
stylesheets. So what do I have o do with the code you gave below?

I found the following statement in the org manual:


To set the latter variable individually for each file, you can
use
#+STYLE: 
For longer style definitions, you can use several such lines. You could
also directly write a
  section in this way, without referring to an external file.
###

As I only want to change the color for .string (right?), I am thinking
about specifying it in the properties - but

#+STYLE:  .string {color: #ff4500;}

failed.

Any suggestions or CSS stylesheets?

Rainer

> 
> This is the htmlize-related section of my CSS stylesheet:
> 
> 
> pre.src .comment {
>   color: #77;
>   font-style: italic;
> }
> pre.src .comment-delimiter {
>   color: #77;
>   font-style: italic;
> }
> .constant {
>   color: #ff4500;
> }
> .default {
>   color: #00;
> }
> .builtin {
>   color: #ff;
> }
> .function-name {
>   color:#ff;
> }
> .html-tag {
>   color: #ff;
> }
> .keyword {
>   color: #a52a2a;
>   font-weight: bold;
> }
> .string {
>   color: #006400;
> }
> .type {
>   font-weight:bold;
>   color:#238b8b;
> }
> .preprocessor {
>   color:#FF;
> }
> .variable-name {
>   color: #4d4d4d;
>   font-weight:bold;
> }
> .org-meta-line {
>   color: #99;
> }
> .css-selector {
>   color: #ff;
>   font-weight:bold;
> }
> .css-property {
>   color: #00;
>   font-weight:bold;
> }
> .makefile-targets {
>   font-weight:bold;
>   color: #ff;
> }
> pre.src .doc {
>   color:#77;
> }
> /* ENDE htmlize.el */
> 
> 
> 
>   Sebastian


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

iEYEARECAAYFAkyPIAsACgkQoYgNqgF2egqo/QCcDJhu8+/rx79XUAO64k1PAybh
vIMAnRTCqNYtejI0xo7wciLr4f4NzBw7
=sDxV
-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: MobileOrg Android 0.4.1 - Initial support for Dropbox and SDCard Synchronization

2010-09-14 Thread Eric S Fraga
On Mon, 13 Sep 2010 13:46:30 -0400, Matthew Jones  wrote:
> 
> There was one other thing that I forgot to mention... I've re-enabled
> installing this application for Android 1.5 phones, you should be able to
> see it in the Market now.
> 
> 73,
> Matthew W. Jones (KI4ZIB)
> http://matburt.net

Thanks Matthew.  I have just tried to download this from the Market
but, after unloading, it then fails to install: "Installation
error. Package was not signed correctly."  I have no further
information other than this was on a Samsung Galaxy Portal which is
running Android 1.5.  Sorry if this is not of much help...
-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] image alt text for HTML export

2010-09-14 Thread Aidan Gauland
Is it possible to set the alt attribute of an image for HTML export?
If I insert an inline image into an Org buffer like so...

[[./foo.png]]

...and export it to HTML, I get something like this...



But I want the alt attribute to be "foo" (or something else), not the
filename.

I know this is an HTML-specific setting, but I still want the image be
exported to other formats, so inserting literal HTML (see below) isn't
really suitable.

#+HTML: 

If there is no way to do this, should I file a feature request?

--Aidan


signature.asc
Description: Digital 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