[Orgmode] [babel] Tangle multiple sections source blocks into single file without #+source: ...

2010-05-28 Thread Rainer M Krug
Hi

I am using org-babel to write a simulation model and the accompanying
documentation and it works as expected. But I have many source blocks which
I want to tangle into the same source file. At the moment, I am using
#+source: BLOCKNAME (see below). But it is easy to forget to add the block
name to the actual tangle block at the bottom. Is there a way of:

1) tangle all source blocks into the same file? As far as I am aware, a new
tangle to the same file name, overwrites the already existing file --- I
would like to append the new code block to the existing file.

or

2) is there a keyboard shortcut, that I can add the name of the block to the
actual tangle block automatically, when the e.g. block name is selected?

Thanks,

Rainer
* Here I am doing this
#+source: Block1
#+begin_src R
  some code
#+end_src

* Here I am doing that
#+source: Block2
#+begin_src R
  some code
#+end_src

* Creation of Source.R
#+begin_src R :tangle source.R
  cBlock1
  cBlock2
#+end_src

-- 
NEW GERMAN FAX NUMBER!!!

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

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)321 2125 2244
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@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


Re: [Orgmode] New development organization - DRAFT, please comment

2010-05-28 Thread David Maus
Hi Eric,
I just used this file to record a babel change, and I really like the
overall idea and the layout.  A couple of things that occurred to me.

- would it be desirable to have a headline property (e.g. ASSIGNEE or
  somesuch) so that users can take responsibility of issues, and search
  for issues to which they've been assigned.

Sounds reasonable.

- would it be difficult to tag babel files, i.e. messages with the
  [babel] marker in the headline, possibly in some automatic way,
  again to facilitate searching and sorting.

This should be quite easy and I'll look into this.

- regarding the links to gmane articles?
  - this is really minor, but I personally prefer thread.gmane.org
based links as they show the entire thread
  - how do we find the gmane id of a message?
  - is there an easy way to discover/generate gmane links say from
information contained in an email?

I've just found out that it is indeed possible to link to
thread.gmane.org using the resolver:

http://news.gmane.org/find-root.php?message_id=MESSAGE-ID

Where MESSAGE-ID is the content of the message id header field.  I've
changed this here so new issues will link to thread.gmane.org.

This might answer the other two questions: It's the message id of an
email that can (and should) be used to generate a gmane link.

Simply use the URL mentioned above for thread display, or
http://mid.gmane.org/MESSAGE-ID to link to a single message.  In both
cases the message id should be hex-encoded (i.e. turning special chars
into escape sequence, @ - %40 etc.) using `url-hexify-string'.

This function could work for Gnus to push the message id of a message
to kill-ring and clipboard:

,
| (defun dmj/gnus-get-message-id ()
|   Push message id of current message to killring and clipboard.
|   (interactive)
|   (when (memq major-mode '(gnus-summary-mode gnus-article-mode))
| (let* ((header (with-current-buffer gnus-summary-buffer
|(gnus-summary-article-header)))
|  (message-id (url-hexify-string
|   (org-remove-angle-brackets (mail-header-id header)
|   (org-kill-new message-id)
|   (when (fboundp 'x-set-selection)
|   (ignore-errors (x-set-selection 'PRIMARY message-id))
|   (ignore-errors (x-set-selection 'CLIPBOARD message-id))
`

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


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


Re: [Orgmode] bug: remember id agenda

2010-05-28 Thread Carsten Dominik


On May 28, 2010, at 6:47 AM, Samuel Wales wrote:


Same.


Ah, you are right, there is a bug here.  Fixed now.

- Carsten



On 2010-05-27, Carsten Dominik carsten.domi...@gmail.com wrote:

Hi Samuel,

On May 28, 2010, at 5:53 AM, Samuel Wales wrote:


For months, I found ID properties where they didn't belong.
Finally I found that they are added when I do M-x
org-remember in an agenda buffer, to the headline under
point.  Feels like a bug.  Is it?


What is the value of the variable `org-link-to-org-use-id' in your
setup?
The default setting for this variable is `create-if-interactive-and- 
no-
custom-id', and that should not make an ID when Org is creating a  
link

as remember annotation.

- Carsten





--
Q: How many CDC scientists does it take to change a lightbulb?
A: You only think it's dark. [CDC has denied a deadly disease for  
25 years]

==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html


- 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] use of org-export-latex-verbatim-wrap

2010-05-28 Thread Carsten Dominik


On May 26, 2010, at 6:20 PM, Juan Pechiar wrote:


Trying to adjust the style for fixed-width sections in LaTeX export
(drawers in particular), I found org-latex.el defines a customizable
wrapper for verbatim sections:

  (defcustom org-export-latex-verbatim-wrap
'(\\begin{verbatim}\n . \\end{verbatim}\n)
Environment to be wrapped around a fixed-width section in LaTeX
export.
  This is a cons with two strings, to be added before and after the
  fixed-with text.

But this variable is _only_ used in org-exp.el in function
org-export-format-source-code-or-example

All other fixed-width latex generation uses explicit \verbatim text
instead of the wrapper variables.

Is this the only intended use for org-export-latex-verbatim-wrap?

If not, then I can look into this and provide a patch for using the
wrapper variable in all appropriate places.


Hi Juan,

I would not want to use this also for drawers - it is really meant for  
example sections.


For formatting drawers, please take a look at the variable org-export- 
format-drawer-function.  You can set it to a function which does the  
formatting of the drawer any way you like.  An example of how such a  
function has to be written is the function org-export-format-drawer.


Greetings

- Carsten



Saludos,
.j.

___
Emacs-orgmode 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] MobileOrg for Android starts to become really usable

2010-05-28 Thread Sven Bretfeld
Hi to all, hi Matthew

I had a look at matburt's Github today and found the new 0.4alpha-build.
Now, MobOrg4And supports the capturing of notes. That's what I was
waiting for all the time. I can say that Note capturing works on my HTC
Magic, albeit I had little time so far to test it more than once or
twice. 

I just wanted to say thank you very much!

Note taking is rudimentary at the moment. As far as I can see, you have
to type todo-keywords, tags and active timestamps manually. But that
doesn't matter too much at the moment. The current alternatives (RTM,
Toodledo) have similar inconveniences. However, in MobOrg4And we are in
our familiar org-syntax, so /everything/ can be done without complex awk/sed
operations after syncing.

@Matthew: Do you have some kind of roadmap published anywhere?

Greetings,

Sven

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


[Orgmode] Improved org-timer-set-timer

2010-05-28 Thread Bastien
Hi all,

I've improved `org-timer-set-timer' again:

,[ `org-timer-set-timer': new prefix argument. ]
| Called with a numeric prefix argument, `org-timer-set-timer' uses
| this numeric value as the duration of the timer.
| 
| Called with a `C-u' prefix argument, use `org-timer-default-timer'
| without prompting the user for a duration.
| 
| With two `C-u' prefix arguments, use `org-timer-default-timer'
| without prompting the user for a duration and automatically
| replace any running timer.
`

The thing we need now is a way to display the timer in the modeline.

Thanks for Frédéric Couchet for ideas in this direction.

-- 
 Bastien

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


[Orgmode] [PATCH] Escape percent character.

2010-05-28 Thread David Maus
* org.el (org-fixup-message-id-for-http): Escape percent
character.
---
 lisp/org.el |6 ++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 33f395b..00de5dc 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8273,6 +8273,12 @@ This is the list that is used before handing over to the 
browser.)
 
 (defun org-fixup-message-id-for-http (s)
   Replace special characters in a message id, so it can be used in an http 
query.
+  (when (string-match % s)
+(setq s (mapconcat (lambda (c)
+(if (eq c ?%)
+%25
+  (char-to-string c)))
+  s )))
   (while (string-match  s)
 (setq s (replace-match %3C t t s)))
   (while (string-match  s)
-- 
1.7.1


___
Emacs-orgmode 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] Escape percent character in `org-fixup-message-id-for-http'

2010-05-28 Thread David Maus
A message id header field can contain the percent sign which must be
escaped in the context of a url.

David Maus (1):
  Escape percent character.


___
Emacs-orgmode 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] [babel] Tangle multiple sections source blocks into single file without #+source: ...

2010-05-28 Thread Eric Schulte
Hi Rainer,

The first option you suggested below should already be supported.  For
example the following org-mode text

--8---cut here---start-8---
* appending tangle
   :PROPERTIES:
   :tangle:   appended.el
   :END:
append all these block

#+begin_src emacs-lisp
  (message block %d 1)
#+end_src

#+begin_src emacs-lisp
  (message block %d 2)
#+end_src

#+begin_src emacs-lisp
  (message block %d 3)
#+end_src
--8---cut here---end---8---

tangles all three blocks to the file append.el.  Please try something
analogous and let me know if it doesn't work.

Best -- Eric

Rainer M Krug r.m.k...@gmail.com writes:

 Hi

 I am using org-babel to write a simulation model and the accompanying
 documentation and it works as expected. But I have many source blocks which
 I want to tangle into the same source file. At the moment, I am using
 #+source: BLOCKNAME (see below). But it is easy to forget to add the block
 name to the actual tangle block at the bottom. Is there a way of:

 1) tangle all source blocks into the same file? As far as I am aware, a new
 tangle to the same file name, overwrites the already existing file --- I
 would like to append the new code block to the existing file.

 or

 2) is there a keyboard shortcut, that I can add the name of the block to the
 actual tangle block automatically, when the e.g. block name is selected?

 Thanks,

 Rainer
 * Here I am doing this
 #+source: Block1
 #+begin_src R
   some code
 #+end_src

 * Here I am doing that
 #+source: Block2
 #+begin_src R
   some code
 #+end_src

 * Creation of Source.R
 #+begin_src R :tangle source.R
   cBlock1
   cBlock2
 #+end_src

___
Emacs-orgmode 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] New development organization - DRAFT, please comment

2010-05-28 Thread Eric Schulte
Hi David,

David Maus dm...@ictsoc.de writes:

 Hi Eric,
I just used this file to record a babel change, and I really like the
overall idea and the layout.  A couple of things that occurred to me.

- would it be desirable to have a headline property (e.g. ASSIGNEE or
  somesuch) so that users can take responsibility of issues, and search
  for issues to which they've been assigned.

 Sounds reasonable.


Great,

I will start using this if there are cases when I want to sign up for an
issue, but won't fix it immediately.


- would it be difficult to tag babel files, i.e. messages with the
  [babel] marker in the headline, possibly in some automatic way,
  again to facilitate searching and sorting.

 This should be quite easy and I'll look into this.


Thanks.


- regarding the links to gmane articles?
  - this is really minor, but I personally prefer thread.gmane.org
based links as they show the entire thread
  - how do we find the gmane id of a message?
  - is there an easy way to discover/generate gmane links say from
information contained in an email?

 I've just found out that it is indeed possible to link to
 thread.gmane.org using the resolver:

 http://news.gmane.org/find-root.php?message_id=MESSAGE-ID

 Where MESSAGE-ID is the content of the message id header field.  I've
 changed this here so new issues will link to thread.gmane.org.

 This might answer the other two questions: It's the message id of an
 email that can (and should) be used to generate a gmane link.

 Simply use the URL mentioned above for thread display, or
 http://mid.gmane.org/MESSAGE-ID to link to a single message.  In both
 cases the message id should be hex-encoded (i.e. turning special chars
 into escape sequence, @ - %40 etc.) using `url-hexify-string'.

 This function could work for Gnus to push the message id of a message
 to kill-ring and clipboard:


Thanks David, indeed the function your posted does work, and I was able
to use it with the url you posted above to quickly access the gmane
thread of this email.

Your function below raises the idea that it may be nice to have a single
place to host a small collection of functions related to use of
org-issues.org.  Maybe some form of the following simple functions could
be useful.

--8---cut here---start-8---
(defun org-issues/gmane-browse-message (id)
  Browse the message specified by ID in gmane.
  (org-open-link-from-string
   (format http://news.gmane.org/find-root.php?message_id=%s;
   id)))

(defun org-issue/gmane-browse ()
  Browse the message related to the current org-issues.org
  headline in gmane.
  (interactive)
  (org-issues/gmane-browse-message
   (substring (org-entry-get (point) ID t) 4)))
--8---cut here---end---8---

Much Appreciated -- Eric


 ,
 | (defun dmj/gnus-get-message-id ()
 |   Push message id of current message to killring and clipboard.
 |   (interactive)
 |   (when (memq major-mode '(gnus-summary-mode gnus-article-mode))
 | (let* ((header (with-current-buffer gnus-summary-buffer
 |  (gnus-summary-article-header)))
 |(message-id (url-hexify-string
 | (org-remove-angle-brackets (mail-header-id header)
 |   (org-kill-new message-id)
 |   (when (fboundp 'x-set-selection)
 | (ignore-errors (x-set-selection 'PRIMARY message-id))
 | (ignore-errors (x-set-selection 'CLIPBOARD message-id))
 `

 HTH
   -- David
 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.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


[Orgmode] Re: New development organization - DRAFT, please comment

2010-05-28 Thread Tassilo Horn
David Maus dm...@ictsoc.de writes:

 This function could work for Gnus to push the message id of a message
 to kill-ring and clipboard:

BTW, when you read messages in Gnus, you can simply call
`org-store-link', which will generate a link.  Depending on
`org-gnus-prefer-web-links' and the prefix arg, that will be a web link.

,[ C-h f org-store-link RET ]
| org-store-link is an interactive compiled Lisp function in `org.el'.
| 
| It is bound to C-c o l.
| 
| (org-store-link ARG)
| 
| Store an org-link to the current location.
| This link is added to `org-stored-links' and can later be inserted
| into an org-buffer with C-c C-l.
| 
| For some link types, a prefix arg is interpreted:
| For links to usenet articles, arg negates `org-gnus-prefer-web-links'.
| For file links, arg negates `org-context-in-file-links'.
`

,[ C-h v org-gnus-prefer-web-links RET ]
| org-gnus-prefer-web-links is a variable defined in `org-gnus.el'.
| Its value is t
| 
| Documentation:
| Non-nil means `org-store-link' will create web links to Google groups.
| When nil, Gnus will be used for such links.
| Using a prefix arg to the command C-c o l (`org-store-link')
| negates this setting for the duration of the command.
| 
| You can customize this variable.
`

Oh, the docs mention only Google groups, but it does the trick also for
Gmane.

Bye,
Tassilo


___
Emacs-orgmode 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] org-gnus.el: Mention also Gmane in org-gnus-prefer-web-links

2010-05-28 Thread Tassilo Horn
* org-gnus.el (org-gnus-prefer-web-links): Mention also Gmane
in the doc string.
---
 lisp/org-gnus.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-gnus.el b/lisp/org-gnus.el
index 7c668ee..a41de2e 100644
--- a/lisp/org-gnus.el
+++ b/lisp/org-gnus.el
@@ -48,7 +48,7 @@
   (defvaralias 'org-usenet-links-prefer-google 'org-gnus-prefer-web-links))
 
 (defcustom org-gnus-prefer-web-links nil
-  Non-nil means `org-store-link' will create web links to Google groups.
+  If non-nil, `org-store-link' creates web links to Google groups or Gmane.
 When nil, Gnus will be used for such links.
 Using a prefix arg to the command \\[org-store-link] (`org-store-link')
 negates this setting for the duration of the command.
-- 
1.7.1


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


[Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Eric Schulte
Hi,

The insertion of automatically generated comments in tangled source code
is now controlled by the new `org-babel-tangle-w-comments' variable.
Setting this variable to non-nil will allow org-babel to insert comments
for those languages with comment support.

This changes the default behavior.  The default value for this variable
is nil -- previously these comments were always inserted, now they are
only inserted after setting `org-babel-tangle-w-comments' to a non-nil
value.

Best -- Eric

,[commit ff58dacc7ca83c07cd6a57eccda3a55e20019d95]
| babel: `org-babel-tangle-w-comments' controls comment insertion in tangled 
code
| 
| * contrib/babel/lisp/org-babel-tangle.el (org-babel-spec-to-string):
|   The insertion of automatically generated comments into tangled code
|   is now customizable through the `org-babel-tangle-w-comments'
|   variable.
`

___
Emacs-orgmode 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] [Musing] Daily stack

2010-05-28 Thread Carsten Dominik


On May 26, 2010, at 9:28 AM, Bastien wrote:


http://www.fubiz.net/2010/05/19/daily-stack/


This is fun!




I like to see this implemented for Org - maybe some code from M-x  
Tetris

could be reused :)

--
Bastien

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


- 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] Giving latex attributes to sections in export

2010-05-28 Thread Carsten Dominik

Hi John,

please check out this thread:

http://thread.gmane.org/gmane.emacs.orgmode/12977/focus=13057

and then use org-special-blocks.el

HTH

- Carsten


On May 22, 2010, at 11:50 PM, John Hendy wrote:


Hi,


I just emailed a similar question about tables... but how can one  
pass latex options inside of sections/subsections? I'd like  
something like this in my report:


* History of experiments
introduction text goes here... blah blah blah. A history of  
experiments and corresponding data tables will follow.


\begin{landscape}

** Date of experiment 1
*** Conditions
*** Data
|table|of|data

** Date of experiment 1
*** Conditions
*** Data
|table|of|data

\end{landscape}

* Conclusion

So... I'd like the report in portrait mode, but my tables are long  
enough that it makes sense to switch entirely to landscape for that  
portion of the report and then switch back for portrait for  
discussion. At present if I do either:


\begin{landscape}

#+BEGIN_LaTeX
\begin{landscape}
#+END_LaTeX

then org-mode ignores the following section. It DOES actually rotate  
the orientation, but the tables are all in ASCII format and in the  
matching .tex file, instead of \subsection{name}, I just get a  
literal export of the subsection asterisks (*** subsection name')  
exactly how it looks in org-mode. Something triggers org-mode to  
stop translating from org-mode structure into LaTeX. I've checked  
possible uses for property drawers and #+ATTR_LATEX seems only to  
apply to images... just not sure how to slip in various latex  
commands as they are needed.



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


- 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] Export literally but convert math equations?

2010-05-28 Thread Uriel Avalos
Is there a way to convert latex equations and math inside of EXAMPLE and HTML 
blocks?

For example, I would like to the following equation to display as an equation 
in the HTML:

#+BEGIN_EXAMPLE
   Hello world
   $2^2+\sqrt(2) = 2$
#+END_EXAMPLE

The current behavior just gives me the literal example. I would use other 
blocks (like BLOCKQUOTE); except that I need to preserve the extra whitespace. 

Alternatively: is there a way to preserve whitespace in the HTML export?-- 
--Thanks!
Uriel

___
Emacs-orgmode 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] Inconsistent names for inserting export options

2010-05-28 Thread Carsten Dominik


On May 20, 2010, at 2:34 PM, Giles Chamberlin wrote:



Org-mode provides the ability to fine tune exported documents  
through a
number of export options and conveniently provides interactive  
functiosn

to insert boilerplate. The names are a little inconsistent though:

org-insert-export-options-template
org-beamer-settings-template

How about renaming org-beamer-settings-template to
org-insert-beamer-options-template?



OK, I did this.

Thanks

- Carsten



--
Giles


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


- Carsten




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


Re: [Orgmode] Export literally but convert math equations?

2010-05-28 Thread Carsten Dominik


On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:

Is there a way to convert latex equations and math inside of EXAMPLE  
and HTML blocks?



Well, the whole idea of example blocks is to *not* do this.  What is  
the application for this?


- Carsten



For example, I would like to the following equation to display as an  
equation in the HTML:


#+BEGIN_EXAMPLE
  Hello world
  $2^2+\sqrt(2) = 2$
#+END_EXAMPLE

The current behavior just gives me the literal example. I would use  
other blocks (like BLOCKQUOTE); except that I need to preserve the  
extra whitespace.


Alternatively: is there a way to preserve whitespace in the HTML  
export?--

--Thanks!
Uriel

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


- Carsten




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


Re: [Orgmode] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson



Eric Schulte wrote:

Hi,

The insertion of automatically generated comments in tangled source code
is now controlled by the new `org-babel-tangle-w-comments' variable.
Setting this variable to non-nil will allow org-babel to insert comments
for those languages with comment support.


Can you briefly elaborate on what this means?  I'm used to seeing, when 
I tangle an R file, something like:


## 
[[file:~/private/R-org-babel/test.org::*cube%20lets%20go%20to%20the][block-2]]


cube - function(x) {
  # a test comment
  x * x * x * x
}
## block-2 ends here

So, you mean that all three of the comments would no longer appear by 
default?  Or you mean that only my inline function comment would not 
appear?


One more idea I had was that it might be interesting to be able to 
maintain properties for headlines that indicate the headline/body should 
be included as a comment in a specific source file.  The reason I say 
this is that even if I write my code in org-mode, and in effect comment 
the code using org-mode constructs like headlines and free text, someone 
who just wants the tangled file might want to see comments, for example, 
function headers or something like that.


Any thoughts on that?

___
Emacs-orgmode 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] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson



## 
[[file:~/private/R-org-babel/test.org::*cube%20lets%20go%20to%20the][block-2]] 



cube - function(x) {
  # a test comment
  x * x * x * x
}
## block-2 ends here

So, you mean that all three of the comments would no longer appear by 
default?  Or you mean that only my inline function comment would not 
appear?


Re-reading your post, I think maybe perhaps only my inline comment would 
*appear*.  If this is true, I like the idea.


___
Emacs-orgmode 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] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Eric Schulte
Hi Erik,

explanation below

Erik Iverson er...@ccbr.umn.edu writes:

 Eric Schulte wrote:
 Hi,

 The insertion of automatically generated comments in tangled source code
 is now controlled by the new `org-babel-tangle-w-comments' variable.
 Setting this variable to non-nil will allow org-babel to insert comments
 for those languages with comment support.

 Can you briefly elaborate on what this means?  I'm used to seeing,
 when I tangle an R file, something like:

 ## 
 [[file:~/private/R-org-babel/test.org::*cube%20lets%20go%20to%20the][block-2]]

 cube - function(x) {
   # a test comment
   x * x * x * x
 }
 ## block-2 ends here


what was previously exported as


will now be exported as

--8---cut here---start-8---
cube - function(x) {
  # a test comment
  x * x * x * x
}
--8---cut here---end---8---

unless the `org-babel-tangle-w-comments' variable is set to a non-nil
value.


 So, you mean that all three of the comments would no longer appear by
 default?  Or you mean that only my inline function comment would not
 appear?


The outer two comments of

 ## 
[[file:~/private/R-org-babel/test.org::*cube%20lets%20go%20to%20the][block-2]]

and

 ## block-2 ends here

will not appear.  Your own comments inside of the source-code block will
still appear.  Is that clear?  Thanks for pointing out the insufficient
explanation.


 One more idea I had was that it might be interesting to be able to
 maintain properties for headlines that indicate the headline/body
 should be included as a comment in a specific source file.  The reason
 I say this is that even if I write my code in org-mode, and in effect
 comment the code using org-mode constructs like headlines and free
 text, someone who just wants the tangled file might want to see
 comments, for example, function headers or something like that.

 Any thoughts on that?

Yes, that sounds like a good idea.

Maybe we should allow either exporting just the headlines of the
org-mode file or exporting the entire org-mode file -- possibly after an
ASCII export -- this would have the effect of prefixing every line in
the org-mode file behind a comment *except* for the tangled source-code
blocks.

Implementation wise I'm not sure how easy/difficult this would be, but I
definitely think it's worth looking into.

Have I understood your suggestion?

Best -- Eric

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


Re: [Orgmode] Export literally but convert math equations?

2010-05-28 Thread Uriel Avalos
It would be nice to have that feature available as an option :-) Or is there a 
way to preserve whitespace in other blocks? I set the variable 
org-src-preserve-indentation for SRC blocks but that had no effect.

I'm typing up an HTML doc with lots of (simple) math. However, I'm trying to 
avoid using latex as much as possible. I thus need a way to align equations 
(incidentally, whitespace is good enough). 

Why not use latex/tex? Because I work for a publisher that uses MathType. And 
unfortunately, the current version of MathType is buggy when it comes to 
converting latex/tex, so I need to minimize it's use. 

Thanks for the reply!

--Uriel

On Fri, 28 May 2010 17:36:00 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:

 
 On May 28, 2010, at 5:32 PM, Uriel Avalos wrote:
 
  Is there a way to convert latex equations and math inside of EXAMPLE  
  and HTML blocks?
 
 
 Well, the whole idea of example blocks is to *not* do this.  What is  
 the application for this?
 
 - Carsten
 
 
  For example, I would like to the following equation to display as an  
  equation in the HTML:
 
  #+BEGIN_EXAMPLE
Hello world
$2^2+\sqrt(2) = 2$
  #+END_EXAMPLE
 
  The current behavior just gives me the literal example. I would use  
  other blocks (like BLOCKQUOTE); except that I need to preserve the  
  extra whitespace.
 
  Alternatively: is there a way to preserve whitespace in the HTML  
  export?--
  --Thanks!
  Uriel
 
  ___
  Emacs-orgmode 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
 
 
 


-- 
--Thanks!
Uriel

___
Emacs-orgmode 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] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson



One more idea I had was that it might be interesting to be able to
maintain properties for headlines that indicate the headline/body
should be included as a comment in a specific source file.  The reason
I say this is that even if I write my code in org-mode, and in effect
comment the code using org-mode constructs like headlines and free
text, someone who just wants the tangled file might want to see
comments, for example, function headers or something like that.




Maybe we should allow either exporting just the headlines of the
org-mode file or exporting the entire org-mode file -- possibly after an
ASCII export -- this would have the effect of prefixing every line in
the org-mode file behind a comment *except* for the tangled source-code
blocks.

Implementation wise I'm not sure how easy/difficult this would be, but I
definitely think it's worth looking into.

Have I understood your suggestion?


Yes, your idea about prefixing every line in the org file behind a 
comment except for the tangled code was the initial idea in my head.  I 
then thought that there may be several different languages of code in an 
org-mode file, and even if there is only one language, the tangling of 
that file could be generating multiple source files, for example, one 
per function.  In addition, some of the org-mode material I have in my 
file might not relate to a commented source file, per se.  For example, 
the org-mode file where I maintain my source for a function might have 
links to emails discussing the implementation, or internal dialogs 
relating to alternative approaches that were abandoned.


So, I thought it might be neat to have some way of specifying which 
subtrees would be a part of the comments for a source file, and for 
which tangled file.  My guess as the easiest way to do that would be 
through properties.  That is, you'd set a property for (sub)tree like, 
for example:


:PROPERTIES:
:SrcComment: Yes
:SrcCommentTangleFile: cube.R
:SrcCommentCharacter: ##
:END:

These (sub)trees would then appear as comments in their respective 
tangled source files in whatever order they appear in the org-mode file.


Why am I suggesting this?

People obviously like commented code.  Writing a function in org-babel, 
I am in effect using org-mode as the commenting system.  Giving someone 
who does not use Emacs an org-mode file to see how something was 
implemented is not going to fly, to say the least :).  Giving them the 
tangled version of the code along with, say, an HTML export of the 
org-mode buffer is a good start.  But if they're used to reviewing code 
in the typical, just send me the source file manner, they would 
appreciate comments in the code. This is one way they could be 
automatically generated from org-mode/org-babel, which is, in my mind, 
the ideal.


As I'm sure you have plenty to do, I would be happy to take a look at 
this.  I'll give the requisite I'm just getting started with elisp ... 
warning though. :)


Thanks!
Erik


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


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-05-28 Thread Enrico Indiogine
Greetings!

2010/5/28 Sven Bretfeld sven.bretf...@gmx.ch:
 I had a look at matburt's Github today and found the new 0.4alpha-build.
 Now, MobOrg4And supports the capturing of notes. That's what I was
 waiting for all the time. I can say that Note capturing works on my HTC
 Magic, albeit I had little time so far to test it more than once or
 twice.

I am a new Android user.  I have a Sony-Ericsson Xperia X10 from
Rogers.  I do not really like the interface, but that is off-topic,
but sure I would love to put a recent generic version of android on
it.

Anyway, I would like to install MobileOrg for Android.  I know how to
install apps from the Android Market using the phone directly.  I do
not know how to install apps using Github.  I have looked for
instructions but have not been able to find them.

I use Linux Ubuntu 10.04 as computer OS.

Thanks,

Henri-Paul


Mathematics Education
Texas AM University

Email: hindiog...@gmail.com
Skype: hindiogine
Website: http://www.coe.tamu.edu/~enrico

Rien ne va de soi.  Rien n'est donné. Tous est construit.   Gaston
Bachelard, 1934

___
Emacs-orgmode 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] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Thomas S. Dye

Hi Erik,

If the proposed functionality places comments in the source code in  
whatever order they appear in the org-mode file, then the result will  
likely frustrate literate programming efforts that rearrange code  
blocks on tangling.


Another way to get pieces of the org-mode file into the source file as  
comments might be with a little helper function, org-babel-copy- 
subtree-to-commented-code.  The source blocks could be named so the  
literate programming facilities of org-babel could work with them.


All the best,
Tom

On May 28, 2010, at 6:24 AM, Erik Iverson wrote:




One more idea I had was that it might be interesting to be able to
maintain properties for headlines that indicate the headline/body
should be included as a comment in a specific source file.  The  
reason
I say this is that even if I write my code in org-mode, and in  
effect

comment the code using org-mode constructs like headlines and free
text, someone who just wants the tangled file might want to see
comments, for example, function headers or something like that.




Maybe we should allow either exporting just the headlines of the
org-mode file or exporting the entire org-mode file -- possibly  
after an

ASCII export -- this would have the effect of prefixing every line in
the org-mode file behind a comment *except* for the tangled source- 
code

blocks.
Implementation wise I'm not sure how easy/difficult this would be,  
but I

definitely think it's worth looking into.
Have I understood your suggestion?


Yes, your idea about prefixing every line in the org file behind a  
comment except for the tangled code was the initial idea in my  
head.  I then thought that there may be several different languages  
of code in an org-mode file, and even if there is only one language,  
the tangling of that file could be generating multiple source files,  
for example, one per function.  In addition, some of the org-mode  
material I have in my file might not relate to a commented source  
file, per se.  For example, the org-mode file where I maintain my  
source for a function might have links to emails discussing the  
implementation, or internal dialogs relating to alternative  
approaches that were abandoned.


So, I thought it might be neat to have some way of specifying which  
subtrees would be a part of the comments for a source file, and for  
which tangled file.  My guess as the easiest way to do that would be  
through properties.  That is, you'd set a property for (sub)tree  
like, for example:


:PROPERTIES:
:SrcComment: Yes
:SrcCommentTangleFile: cube.R
:SrcCommentCharacter: ##
:END:

These (sub)trees would then appear as comments in their respective  
tangled source files in whatever order they appear in the org-mode  
file.


Why am I suggesting this?

People obviously like commented code.  Writing a function in org- 
babel, I am in effect using org-mode as the commenting system.   
Giving someone who does not use Emacs an org-mode file to see how  
something was implemented is not going to fly, to say the least :).   
Giving them the tangled version of the code along with, say, an HTML  
export of the org-mode buffer is a good start.  But if they're used  
to reviewing code in the typical, just send me the source file  
manner, they would appreciate comments in the code. This is one way  
they could be automatically generated from org-mode/org-babel, which  
is, in my mind, the ideal.


As I'm sure you have plenty to do, I would be happy to take a look  
at this.  I'll give the requisite I'm just getting started with  
elisp ... warning though. :)


Thanks!
Erik


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



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


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-05-28 Thread julien cubizolles
Le vendredi 28 mai 2010 à 11:05 -0700, Enrico Indiogine a écrit :
 Greetings!

 
 Anyway, I would like to install MobileOrg for Android.  I know how to
 install apps from the Android Market using the phone directly.  I do
 not know how to install apps using Github.  I have looked for
 instructions but have not been able to find them.

You first need to install, from the market, apkInstaller.
You then download a .apk file from
http://wiki.github.com/matburt/mobileorg-android/ and copy it on the
phone, and choose it from apkInstaller.

Julien.


___
Emacs-orgmode 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] [babel] `org-babel-tangle-w-comments' controls comment insertion in tangled code

2010-05-28 Thread Erik Iverson



Thomas S. Dye wrote:

Hi Erik,

If the proposed functionality places comments in the source code in 
whatever order they appear in the org-mode file, then the result will 
likely frustrate literate programming efforts that rearrange code blocks 
on tangling.


Yes, thank you for pointing that out.



Another way to get pieces of the org-mode file into the source file as 
comments might be with a little helper function, 
org-babel-copy-subtree-to-commented-code.  The source blocks could be 
named so the literate programming facilities of org-babel could work 
with them.


I'm not following this; could you provide a minimal pseudo-example of 
how you see this working in practice?


Thanks!
Erik

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


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-05-28 Thread julien cubizolles
Le vendredi 28 mai 2010 à 11:05 +0200, Sven Bretfeld a écrit :
 Hi to all, hi Matthew
 
 I can say that Note capturing works on my HTC
 Magic,
Working also on my LG GW620, however the SAVE Button gets hidden by the 
on-screen keyboard.
I think I've seen other android apps keeping some buttons visible
whether the keyboard is or isn't displayed.

 I just wanted to say thank you very much!
So do I, this project is progressing nicely !

Julien.


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


Re: [Orgmode] MobileOrg for Android starts to become really usable

2010-05-28 Thread Matthew Jones
Go to:  Settings - Applications - Application settings - check allow
installation of non-Market applications

then browse to the github wiki page with your phone's browser, click on and
download the apk, when it is through downloading just tap the file and it
should start the install.

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


On Fri, May 28, 2010 at 2:05 PM, Enrico Indiogine hindiog...@gmail.comwrote:

 Greetings!

 2010/5/28 Sven Bretfeld sven.bretf...@gmx.ch:
  I had a look at matburt's Github today and found the new 0.4alpha-build.
  Now, MobOrg4And supports the capturing of notes. That's what I was
  waiting for all the time. I can say that Note capturing works on my HTC
  Magic, albeit I had little time so far to test it more than once or
  twice.

 I am a new Android user.  I have a Sony-Ericsson Xperia X10 from
 Rogers.  I do not really like the interface, but that is off-topic,
 but sure I would love to put a recent generic version of android on
 it.

 Anyway, I would like to install MobileOrg for Android.  I know how to
 install apps from the Android Market using the phone directly.  I do
 not know how to install apps using Github.  I have looked for
 instructions but have not been able to find them.

 I use Linux Ubuntu 10.04 as computer OS.

 Thanks,

 Henri-Paul

 
 Mathematics Education
 Texas AM University

 Email: hindiog...@gmail.com
 Skype: hindiogine
 Website: http://www.coe.tamu.edu/~enrico

 Rien ne va de soi.  Rien n'est donné. Tous est construit.   Gaston
 Bachelard, 1934

 ___
 Emacs-orgmode 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] orgmode and ebib

2010-05-28 Thread Ali Tofigh
hi,

i use ebib to manage my bibtex references. it would be really cool if
orgmode could follow links to bibtex entries using ebib. what i would
like is to be able to follow a link such as [[bib:bibentry]] and end
up in ebib, with my standard bibtex database opened, and entry
positioned at the bibentry. can this be achieved without adding
functionality to orgmode?

/ali

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