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

2010-05-31 Thread Rainer M Krug
On Fri, May 28, 2010 at 3:05 PM, Eric Schulte schulte.e...@gmail.comwrote:

 Hi Rainer,

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


Thanks Eric,

this is working as expected.

Cheers,

Rainer


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




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

2010-05-31 Thread Sven Bretfeld
Hi Enrico

Enrico Indiogine hindiog...@gmail.com writes:

 Thanks to the help from you all I managed to install the latest
 development version of org-mobile-android on my Xperia X10.  I set up
 my .emacs for stage push-pull and have a mydisk.se account with an org
 directory.

 M-x push will fail with an ssh timeout.  I think it has to do with the
 fact that Emacs has no way of knowing the mydisk.se password.

Try another approach. You are under Ubuntu, aren't you? I'm also under
Ubuntu and I use mydisk.se. So this should also work for you:

1. sudo apt-get install davfs2

2. sudo adduser enrico davfs (I don't remember if this is really the
   groupname, maybe it's davfs2) 

3. edit the file /etc/fstab - add a line at the end:
   
   https://mydisk.se/yourusername   /home/enrico/webdav   davfs   user,noauto   
0  0

4. edit the file /etc/davfs2/secrets, add the following line:

   /home/enrico/webdavyourmydiskusername   yourmydiskpasswd

5. mkdir ~/webdav

6. sudo dpkg-reconfigure davfs2 -- set the SUID Bit (i.e. just say yes)

7. mount ~/webdav

Now, your folders of mydisk.se should appear under ~/webdav. Then tell
Emacs (org-mobile) to use this folder instead of scp. I just used
customize to set the org-mobile-directory.

 This in in my .emacs:

 (setq org-mobile-files (quote (~/org/agenda.org)))
 (setq org-mobile-directory ~/stage/)

Change this to ~/webdav or use stage in the procedure above.

 (add-hook 'org-mobile-post-push-hook
   (lambda () (shell-command scp -r ~/stage/* hindiog...@mydisk.se:org/)))
 (add-hook ' org-mobile-pre-pull-hook
   (lambda () (shell-command scp hindiog...@mydisk.se:org/mobile.org
 ~/stage )))
 (add-hook 'org-mobile-post-pull-hook
   (lambda () (shell-command scp ~/stage/mobileorg.org
 hindiog...@mydisk.se:org]/)))

I think with the webdav-approach you have to delete these hooks. Comment
them out and restart Emacs.

Good luck

Sven

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


Re: [Orgmode] GitHub

2010-05-31 Thread Carsten Dominik

Hi Matt,

you might want to consider adding support for the Dropbox API to  
MobileOrg Android.  I am currently testing this setup with Richard's  
beta.  It is vastly superior compared to the webdav stuff, at least in  
terms of user setup required and hickups that can cause problems.  In  
the future, I see webdav as the backup solution for people who cannot  
use dropbox for some reason.


I think the implementation is not hard - you might want to ask Richard  
about it.


Thanks for making MobileOrg Android a reality - I see the chatter  
about it picking up!


Cheers


On May 22, 2010, at 7:14 PM, Matthew Jones wrote:

In the Administration panel for projects on Github there is a  
section for Service Hooks which looks like it could be used to  
mirror the changes to another repository.


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


On Sat, May 22, 2010 at 2:24 AM, Carsten Dominik carsten.domi...@gmail.com 
 wrote:

Hi,

since a number of you have voiced a strong preference for Org-mode  
to be hosted on GitHub, I am not considering such a step.


Could someone spell out for me what steps I would have to take to do  
this?

In particular:

- How do I get the entire current repo onto GitHub?
- Can I set up repo.or.cz in a way that it will become an
 automatic mirror, so that old clones will continue to be updated when
 pulling?
- Bastien - I guess on the web server, we would simply make a
 new clone from the new location, right?

Anything else I need to consider?

Thanks.

- Carsten




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



- 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] Problem with pushing to webdav server [6.35g]

2010-05-31 Thread Dietmar Winkler
When trying to push to a webdav server all I got was

 Process *tramp/scp davs* exited abnormally with code 255

Investigating further showed that tramp seems to not call the correct
org-mobile-directory

e.g.,  '(org-mobile-directory /davs:123...@mediacenter.gmx.net)

but actually

Tramp: Sending command `ssh davs   -q -e none  exit || exit'

is used with no adress.

See also my configuration below
Dietmar

Emacs  : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-03-29 on rothera, modified by Debian
Package: Org-mode version 6.35g

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-files '(~/ORGA/GTD/org/mygtd.org
~/ORGA/GTD/org/gtdsample.org)
 org-export-latex-default-packages-alist '((AUTO inputenc) (T1
fontenc) ( fixltx2e) ( graphicx) ( longtable)
   ( float) ( wrapfig) ( 
soul) ( t1enc) (
textcomp) ( marvosym)
   ( wasysym) ( latexsym) ( 
amssymb) ( hyperref)
\\tolerance=1000)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-mobile-inbox-for-pull ~/ORGA/GTD/org/from-mobile.org
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-directory ~/ORGA/GTD/org
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook
change-major-mode-hook org-show-block-all append local] 5])
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-mobile-directory /davs:123...@mediacenter.gmx.net
 org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
 org-export-latex-final-hook '(org-beamer-amend-header
org-beamer-fix-toc org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 )

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

2010-05-31 Thread David Bremner

I would like some more control over how tags are exported to PDF. I
tried both latex and docbook based methods, and as far as I can tell, in
both cases the treatment is hard-coded (at least in the docbook case it
does mark them as being different from the headline).  Is there some
existing trick I should know about?  I'd like the tags e.g. right
justified, or on the next line in a box.  The HTML treatment is almost
OK.

David

___
Emacs-orgmode 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-05-31 Thread Scot Becker
On Mon, May 31, 2010 at 3:56 PM, David Bremner brem...@unb.ca wrote:

 I would like some more control over how tags are exported to PDF. I
 tried both latex and docbook based methods, and as far as I can tell, in
 both cases the treatment is hard-coded (at least in the docbook case it
 does mark them as being different from the headline).  Is there some
 existing trick I should know about?  I'd like the tags e.g. right
 justified, or on the next line in a box.  The HTML treatment is almost
 OK.

David,

I could have sworn I was looking at the relevant variable this
morning, but I can't find it.  (I was looking at
org-export-latex-todo-keyword-markup, but that's of course for TODO
words).  It looks to me like tag markup is hard-coded for LaTeX
export, as a simple substitution in the function
'org-export-latex-keywords-maybe.

I, too, would be glad to do some tricks on tags for LaTeX output.
Would it add to the complexity too much to expand the capabilities of
org-export-latex-classes, so that in the lines where you define the
header markup for each class, you can also define tag markup?

So in the following, %s is just the text of the header and %t is a
(comma-separated, for possible use as LaTeX arguements?) tag list:

 '((mynewclass
 \\documentclass[11pt, a4paper]{article}
 (\\section{%s}\n\taglist{%t} . \\section*{%s}\n\taglist{%t})
 (\\subsection{%s}\n\taglist{%t} . \\subsection*{%s}\n\taglist{%t})
   ... and so on.

 The above example would produce LaTeX code like this:

\section{This is a Title Here}
\taglist{tag1,tag2,tag3}
Section text goes here.

I would then define \taglist{} in my header as a custom latex command
which does the formatting I want on the tags.

Presumably I could also add whatever formatting I want around %t ---at
least whatever formatting LaTeX supports.  David, you might want to
assure yourself that LaTeX is capable of producing the results you
want.  I'm weak on the specifics, but there is some trouble putting
certain kinds of commands in LaTeX header lines.

It may be that in time, org-export-generic will grow into a tool that
can be made to produce a decent LaTeX exporter, (and might now for
certain well-structured and not-too-demanding kinds of documents), but
I suspect that time quite yet.

I'd be glad to hear of any other solutions or hacks.

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


Re: [Orgmode] latex-export + columnview: misinterpretation of section prefixes as emphasis

2010-05-31 Thread Thomas S. Dye

Thanks Juan.

That's an interesting idea.  I can't think of a way to do something  
equivalent, though others on the list might offer some possibilities.


All the best,
Tom

On May 31, 2010, at 3:04 AM, Juan wrote:


On Sun, May 30, 2010 at 09:06:53PM -1000, Thomas S. Dye wrote:

Can I ask why you want headlines inside a table?


Hi Tom,

When producing specifications, I always add a table with modification
time for each section, so that other colleagues can have a quick view
of what has changed recently. I use it thus:

  #+COLUMNS: %ITEM(Section) %TIMESTAMP_IA(Modified)
  #+TODO: NEW(n!) UPDATED(u@/!) FINAL(f@/!)

And each section keeps a LOGBOOK of changes (todo states
NEW/UPDATED/FINAL, with comment added on each update).

Is there any other way I can have something equivalent?

Thanks,  best regards.

.j.


On May 30, 2010, at 5:38 PM, Juan Pechiar wrote:

The test file below contains a columnview table showing section
headers.

Export to HTML works OK: the asterisks inside the table are
transformed into indentation.

Export to LaTeX: asterisk pairs are interpreted as emphasis,  
resulting

in an incorrect renering of asterisks and bold asterisks.




Test file:

#+COLUMNS: %25ITEM

* There comes the table

#+BEGIN: columnview :vlines 1 :id global
|   | ITEM|
|---+-|
|   | * There comes the table |
|   | * first |
|   | ** second   |
|   | *** third   |
|   | *** other third |
|   |  fourth |
|   | ** other second |
| / |   |
#+END:

* first
** second
*** third
*** other third
 fourth
** other second


LaTeX output:

\begin{tabular}{l}
ITEM \\
\hline
* There comes the table  \\
* first  \\
** second\\
*** third\\
\textbf{*} other third   \\
\textbf{**} fourth   \\
** other second  \\
\end{tabular}




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


[Orgmode] Re: Bug with footnote mode + org-mode ?

2010-05-31 Thread Alexandre Billon
The problem disappears when I comment out those two lines


(add-hook 'org-mode-hook 'footnote-mode)



(setq footnote-prefix [[(control c) (f)]])

When I do not comment them out, I get the following backtraces :


1. When I create a new org file testest.org
Debugger entered--Lisp error: (error Key sequence contains invalid event)
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote-set-style)
(114 . Footnote-renumber-footnotes) (103 . Footnote-goto-footnote) (100 .
Footnote-delete-footnote) (99 . Footnote-cycle-style) (98 .
Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code(\303 \304 \n#\210 )\207 [map footnote-prefix
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code \303 \304 \n#\210 )\207
[map footnote-prefix footnote-mode-map make-sparse-keymap define-key] 4)
(/Applications/Aquamacs.app/Contents/Resources/lisp/mail/footnote.elc .
19879))
  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  set-auto-mode-0(org-mode nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(t t)
  find-file-noselect-1(#buffer testestest.org ~/Documents/Textes/org/
testestest.org nil nil ~/Documents/Textes/org/testestest.org nil)
  find-file-noselect(~/Documents/Textes/org/testestest.org nil nil t)
  (let ((value ...)) (if tabbar-mode (if ... ... ...) (if ... ... ...)))
  aquamacs-find-file-2(~/Documents/Textes/org/testestest.org t)
  call-interactively(aquamacs-find-file-2)
  (if filename (aquamacs-find-file-2 filename) (call-interactively (quote
aquamacs-find-file-2)))
  (if (or (not one-buffer-one-frame) filename ( ... 2)) (if filename
(aquamacs-find-file-2 filename) (call-interactively ...)) (new-empty-buffer
nil (quote fundamental-mode)) (let (...) (unwind-protect ... ...)))
  aquamacs-find-file()
  call-interactively(aquamacs-find-file nil nil)
  recursive-edit()
  byte-code(\306 @\307=\203!


2. When I convert to html the fragment JJJ 
Debugger entered--Lisp error: (error Key sequence contains invalid event)
  define-key((keymap) [[(control c) (f)]] (keymap (115 . Footnote-set-style)
(114 . Footnote-renumber-footnotes) (103 . Footnote-goto-footnote) (100 .
Footnote-delete-footnote) (99 . Footnote-cycle-style) (98 .
Footnote-back-to-message) (97 . Footnote-add-footnote)))
  byte-code(\303 \304 \n#\210 )\207 [map footnote-prefix
footnote-mode-map make-sparse-keymap define-key] 4)
  (defvar footnote-minor-mode-map (byte-code \303 \304 \n#\210 )\207
[map footnote-prefix footnote-mode-map make-sparse-keymap define-key] 4)
(/Applications/Aquamacs.app/
Contents/Resources/lisp/mail/footnote.elc . 19879))
  footnote-mode()
  run-hooks(text-mode-hook outline-mode-hook org-mode-hook)
  apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook))
  run-mode-hooks(org-mode-hook)
  org-mode()
  org-export-preprocess-string(#(\n\n 0 1 (fontified t) 1 6 (fontified
t)) :emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil
:todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t
:archived-trees headline :select-tags (export) :exclude-tags (noexport)
:add-text nil :LaTeX-fragments nil)
  org-export-as-html(nil nil nil *Org HTML Export*)
  org-export-as-html-to-buffer(nil)
  call-interactively(org-export-as-html-to-buffer)
  org-export(nil)
  call-interactively(org-export nil nil)








2010/5/30 Alexandre Billon abil...@gmail.com

 Dear list members,
 I updated my org-mode files a month ago and since then, I get the following
 error message

 byte-code: Key sequence contains invalid event 

  when I

 1. Try to export files to other formats (LaTex and html)
 2. Try to use org-remember
 3. create a new .org file

 This makes 1 and 2 unsuccessful. Can anyone help?

 I am currently using org-mode 6-36c on Mac-OS X either with Acquamacs 2 or
 with Emacs 23.2.

 Best regards,

 Alexandre





___
Emacs-orgmode 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] Display inline images patch

2010-05-31 Thread Russell Adams
I got irritated by my point jumping to the end of the buffer every
time I toggled inline image display, so lets save excursion. ;]

$ diff -Narub org.el~ org.el
--- org.el~   2010-05-20 10:12:45.0 -0500
+++ org.el2010-05-31 14:28:21.0 -0500
@@ -15489,6 +15489,7 @@
 is how it will work for export.  When INCLUDE-LINKED is set, also
 links
 with a description part will be inlined.
   (interactive P)
+  (save-excursion 
   (org-remove-inline-images)
   (goto-char (point-min))
   (let ((re (concat \\[\\[\\(file:\\|\\./\\)\\(~?
   [-+./_0-9a-zA-Z]+
@@ -15501,7 +15502,7 @@
   (setq ov (make-overlay (match-beginning 0) (match-end 0)))
   (overlay-put ov 'display (create-image file))
   (overlay-put ov 'face 'default)
-  (push ov org-inline-image-overlays)
+  (push ov org-inline-image-overlays))
 
 (defun org-remove-inline-images ()
   Remove inline display of images.






--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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