Re: [Orgmode] Org-mode tutorial in Hungarian

2011-02-25 Thread Bastien
Hi,

PASZTOR Miklos pasz...@iszt.hu writes:

  The Hungarian version of David O'Toole's  tutorial is avilable at
  http://deneb.iszt.hu/~pasztor/orgtutorial/notebook/orgtutorial-hu.html

Nice, thanks.  I added a link to it in Worg/org-tutorials/index.org

-- 
 Bastien

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


[Orgmode] Re: [babel] maxima support?

2011-02-25 Thread Litvinov Sergey
Thanks.
Works like a charm.


___
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] Missing prompt label in capture template expansion

2011-02-25 Thread Puneeth Chaganti
Hi,

Bar has the properties of a LINK associated with it and hence is not
being displayed in the mini-buffer.  Here is a possible fix, but I'm
not sure if it's the best fix.

HTH,
Puneeth

diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index b5711f7..da21e89 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1279,8 +1279,8 @@ The template may still contain \%?\ for cursor
positioning.
   (while (re-search-forward %^\\({\\([^}]*\\)}\\)?\\([gGtTuUCLp]\\)?
nil t)
(unless (org-capture-escaped-%)
- (setq char (if (match-end 3) (match-string 3))
-   prompt (if (match-end 2) (match-string 2)))
+ (setq char (if (match-end 3) (match-string-no-properties 3))
+   prompt (if (match-end 2) (match-string-no-properties 2)))
  (goto-char (match-beginning 0))
  (replace-match )
  (setq completions nil default nil)

On Fri, Feb 25, 2011 at 12:41 PM, Aankhen aank...@gmail.com wrote:
 Remember to cover the basics, that is, what you expected to happen and
 what in fact did happen.  You don't know how to make a good report?  See

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

 Your bug report will be posted to the Org-mode mailing list.
 

 STEPS TO REPRODUCE:
 1. Add this to the list of capture templates:
    (t Test entry (file z:/Temp/t.org)
     *** TODO %^{Foo} [[bar:%^{Bar}][Bar]])
 2. Run org-capture.
 3. Fill in a value for “Foo” when prompted and press Enter.

 EXPECTED RESULTS:
 Prompted for second value, with label “Bar”.

 ACTUAL RESULTS:
 Prompted for second value, with label “ ” (single space).

 NOTES:
 I tried this using org-mode from git (commit id:
 b23d35de06c229db84472d893c8645c63896a6cd) after starting Emacs with
 ‘emacs -Q’ to ensure there was no interference.  A couple of
 variations on the template above work fine, correctly showing the
 label when prompting for a value:

 * No prompts before the one in the link: (t Test entry (file
 z:/Temp/t.org) *** TODO [[bar:%^{Bar}][Bar]])
 * No link description: (t Test entry (file z:/Temp/t.org) ***
 TODO [[bar:%^{Bar}][Bar]])

 Config follows…

 Emacs  : GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7601)
  of 2010-11-10 on SHAN-PC
 Package: Org-mode version 7.4

 current state:
 ==
 (setq
  org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
  org-speed-command-hook '(org-speed-command-default-hook
                          org-babel-speed-command-hook)
  org-metaup-hook '(org-babel-load-in-session-maybe)
  org-capture-templates '((t Test entry (file z:/Temp/t.org Media)
                          *** TODO %^{Foo} [[bar:%^{Bar}][Bar]])
                         )
  org-after-todo-state-change-hook '(org-clock-out-if-current)
  org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup)
  org-export-latex-format-toc-function 'org-export-latex-format-toc-default
  org-tab-first-hook '(org-hide-block-toggle-maybe
                      org-src-native-tab-command-maybe
                      org-babel-hide-result-toggle-maybe)
  org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     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-babel-pre-tangle-hook '(save-buffer)
  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]
                 #[nil \300\301\302\303\304$\207
                   [org-add-hook change-major-mode-hook
                    org-babel-show-result-all append local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
  org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
                          org-babel-execute-safely-maybe)
  org-confirm-elisp-link-function 'yes-or-no-p
  org-export-interblocks '((lob org-babel-exp-lob-one-liners)
                          (src org-babel-exp-inline-src-blocks))
  org-occur-hook '(org-first-headline-recenter)
  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)
  org-metadown-hook '(org-babel-pop-to-session-maybe)
  org-export-blocks '((src org-babel-exp-src-block nil)
                     (comment 

[Orgmode] Exporting to blogspot.com

2011-02-25 Thread Karl Eichwalder
I want to prepare a text ready to be blogged at blogspot.com.

The HTML export is mostly ok.  The rather longish org-export-as-html
function even seems to allow tuning options.  How can I make use of
'body-only'?  How can I pass it to org-export-as-html?

Final goal would be the combination of 'body-only plus table of
contents'.

-- 
Karl Eichwalder


___
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] Exporting to blogspot.com

2011-02-25 Thread Marcel van der Boom

On vr 25-feb-2011 10:53
Karl Eichwalder k...@gnu.franken.de wrote:

 The HTML export is mostly ok.  The rather longish org-export-as-html
 function even seems to allow tuning options.  How can I make use of
 'body-only'?  How can I pass it to org-export-as-html

I have this in my emacs settings file:

; This puts the body inside a buffer called  blog-entry
(defun org-export-body-as-html ()
  (interactive)
  (org-export-as-html 3 nil nil blog-entry t))

marcel

-- 
Marcel van der Boom  -- http://hsdev.com/mvdb.vcf
HS-Development BV-- http://www.hsdev.com
So! web applications -- http://make-it-so.info
Cobra build  -- http://cobra.mrblog.nl

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


[Orgmode] [PATCH] org-macs: store evaluated version of pom

2011-02-25 Thread Julien Danjou
* lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This
fixes a potential bug when using (org-with-point-at (func) …), where (func)
would be evaluated multiple times, therefore might return different results
if a marker was returned and different each time.

Signed-off-by: Julien Danjou jul...@danjou.info
---
 lisp/org-macs.el |9 +
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 9c161e3..2090ca7 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -134,11 +134,12 @@ We use a macro so that the test can happen at compilation 
time.
 
 (defmacro org-with-point-at (pom rest body)
   Move to buffer and point of point-or-marker POM for the duration of BODY.
-  `(save-excursion
- (if (markerp ,pom) (set-buffer (marker-buffer ,pom)))
+  `(let ((pom ,pom))
  (save-excursion
-   (goto-char (or ,pom (point)))
-   ,@body)))
+   (if (markerp pom) (set-buffer (marker-buffer pom)))
+   (save-excursion
+(goto-char (or pom (point)))
+,@body
 (put 'org-with-point-at 'lisp-indent-function 1)
 
 (defmacro org-no-warnings (rest body)
-- 
1.7.4.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


Re: [Orgmode] Re: Go to today in Calendar

2011-02-25 Thread Carsten Dominik

On Feb 23, 2011, at 11:14 AM, Sébastien Vauban wrote:

 Hi Nathan,
 
 Nathan Neff wrote:
 I just found that you can press . in the Calendar to jump to today's date.
 
 This saves me a gazillion keypresses, especially when you have a one-key
 mapping to schedule something in agenda mode. I have s mapped in agenda
 mode to schedule, so I just press s . Enter.
 
 I wanted to use your trick, but just remembered that `s' is already mapped to
 `org-save-all-org-buffers', which is a nice keybinding as well... Too bad
 save and schedule share the same letter...

Saving is also on `C-x C-s', which is a very natural key for this task.
so using s for scheduling sounds like a very good user customization to me.

- 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] Go to today in Calendar

2011-02-25 Thread Carsten Dominik

On Feb 11, 2011, at 4:14 PM, Bastien wrote:

 Hi Nathan,
 
 Nathan Neff nathan.n...@gmail.com writes:
 
 I just found that you can press . in the Calendar to jump to today's
 date.
 
 Nice one, I didn't know that!

It is actually in the manual, I just checked.

- 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] [babel] [PATCH]

2011-02-25 Thread Martyn Jago

Hi Babel

I've been working on an exporter and have come across some strange
behaviour regarding 'empty' source blocks with regard to tangling.

If an attempt is made to tangle a block containing two blank (no
white-space) lines, the block is exported as carriage returns (as I
would expect).

If a block contains one or no blank lines, the #+end_src tag appears to
be consumed by the block (along with subsequent text upto the next
#+end_src tag).

I tracked this down to the org-babel-src-block-regexp variable in ob.el
and have modified it to give what appears to be consistent behaviour.

I also found the following unresolved bug report which may be related...

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29992.html

I've included a simple test file, and resultant tangled files before and
after the patch to attempt to convey the problem.

NOTE: Since the patch itself modifies a defvar, and since I'm not clear
on how a patched defvar should be updated downstream, the patch includes a
setq statement to update the defvar org-babel-src-block-regexp for test
purposes. The patch cannot therefore be applied as is.


* Empty Block Tangle Test
** Typical Execution

#+BEGIN_SRC emacs-lisp :tangle no

(org-babel-tangle) ; or org-babel-tangle-file empty-block.org

#+END_SRC

#+results:
| test-out |

** Tests
*** Block 1 (Exports OK)

#+BEGIN_SRC sh :tangle test-out
Block 1
#+END_SRC

*** Block 2 (Exports OK - double blank line no white-space in Block)

#+BEGIN_SRC sh :tangle test-out


#+END_SRC

*** Block 3 (Fails - single blank line no white-space in Block)

#+BEGIN_SRC sh :tangle test-out

#+END_SRC

*** Block 4 (Gets consumed by previous Block)

#+BEGIN_SRC sh :tangle test-out
Block 4
#+END_SRC

*** Block 5 (Fails - no lines in Block)

#+BEGIN_SRC sh :tangle test-out
#+END_SRC

*** Block 6 (Gets consumed by previous Block

#+BEGIN_SRC sh :tangle test-out
Block 6
#+END_SRC

*** Block 7 (Exports OK)

#+BEGIN_SRC sh :tangle test-out
Block 7
#+END_SRC

** List params
#+begin_src emacs-lisp 
  (sort* (mapcar (lambda (x)
   (list (car x) (cdr x)))
 params) 'string-lessp :key 'car)
#+end_src

#+results:
| :cache | no|
| :colname-names | nil   |
| :colnames  | no|
| :comments  |   |
| :exports   | results   |
| :hlines| yes   |
| :noweb | no|
| :result-params | (replace) |
| :result-type   | value |
| :results   | replace   |
| :rowname-names | nil   |
| :session   | none  |
| :shebang   |   |
| :tangle| test-out  |



test-out-pre-patch
Description: test-out-pre-patch


test-out-post-patch
Description: test-out-post-patch
diff --git a/lisp/ob.el b/lisp/ob.el
index 6e98263..6d2f0d0 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -138,9 +138,20 @@ remove code block execution from the C-c C-c keybinding.
;; (4) header arguments
\\([^\n]*\\)\n
;; (5) body
-   \\([^\000]+?\n\\)[ \t]*#\\+end_src)
+   \\([^\000]*?\n*\\)[ \t]*#\\+end_src)
   Regexp used to identify code blocks.)
 
+(setq org-babel-src-block-regexp
+  (concat
+   ;; (1) indentation (2) lang
+   ^\\([ \t]*\\)#\\+begin_src[ \t]+\\([^ \f\t\n\r\v]+\\)[ \t]*
+   ;; (3) switches
+   \\([^\:\n]*\[^\\n*]*\[^\:\n]*\\|[^\:\n]*\\)
+   ;; (4) header arguments
+   \\([^\n]*\\)\n
+   ;; (5) body
+   \\([^\000]*?\n*\\)[ \t]*#\\+end_src))
+
 (defvar org-babel-inline-src-block-regexp
   (concat
;; (1) replacement target (2) lang

Regards

Martyn

---
Org-mode version 7.4 (release_7.4.529.gb23d)
GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.0)
 of 2011-02-25 
___
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] How to kill two birds with one stone?

2011-02-25 Thread Sébastien Vauban
Hi Eric,

First, thanks for answering this open thread!

Eric Schulte wrote:
 I haven't followed this discussion very closely, but I'm not sure why it
 would be necessary to pass data through STDIN rather than through a variable
 or an external file.

I'll comment on the full problem (or solution) later on. But I'd like to share
a first problem with you.

 I took a shot at the dot graph example you proposed, the following works for
 me over a simple example directory.

I've redone (almost) the same file structure as yours, so that our results
must be similar, if not equal.

 directory to search
 #+results: graph-dir
 : graph-dir

 list all files in dir
 #+source: graph-files
 #+begin_src sh :results vector :var dir=graph-dir
   find $dir -type f -exec basename {} \;
 #+end_src

 #+results: graph-files
 | other |
 | dan   |
 | eric  |
 | seb   |

 association of files with mentions
 #+source: graph-associations
 #+begin_src sh :var dir=graph-dir :var files=graph-files
   for i in $files; do
   for j in `grep -l -r $i $dir`;do
   echo $i, `basename $j`
   done
   done
 #+end_src

 #+results: graph-associations
 | other | eric |
 | other | seb  |
 | dan   | eric |
 | eric  | seb  |
 | seb   | dan  |

My adapted version of your first paragraphs:

* Directory to search

#+results: graph-dir
: graph-dir

* List all files in dir (version of Eric)

#+source: graph-files
#+begin_src sh :results vector :var dir=graph-dir
  find $dir -type f -exec basename {} \;
#+end_src

#+results: graph-files
| dan   ||
| eric  ||
| other ||
| seb   | vauban |

* List all files in dir (version of Seb)

My code was a bit more complex... because I need to be able to correctly take
care of filenames containing spaces inside them (I'm on Windows, I never do
such a thing, but there are well spaces on the files I wanna graph).

#+srcname: graph-files-seb
#+begin_src sh :results vector :var dir=graph-dir
  find $dir -type f -print |\
  while read -r name
  do
  echo \${name##*/}\
  done
#+end_src

#+results: graph-files-seb
| dan   | |
| eric  | |
| other | |
| seb  | vauban |

Spaces are used as colon delimiters: they win over my double quotes.

* List all files in dir (version of Seb)

Just to show, this code prints a semi-colon after every filename.

#+srcname: graph-files-seb2
#+begin_src sh :results vector :var dir=graph-dir
  find $dir -type f -print |\
  while read -r name
  do
  echo \${name##*/}\;
  done
#+end_src

#+results: graph-files-seb2
| dan   |  |
| eric  |  |
| other |  |
| seb  | vauban; |

In most cases, these have been eaten as well...

Is it possible to circumvent this problem, and get my filenames (even those
with spaces in them) in one column?

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: Go to today in Calendar

2011-02-25 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
 On Feb 23, 2011, at 11:14 AM, Sébastien Vauban wrote:
 Nathan Neff wrote:
 I just found that you can press . in the Calendar to jump to today's
 date.

 This saves me a gazillion keypresses, especially when you have a one-key
 mapping to schedule something in agenda mode. I have s mapped in agenda
 mode to schedule, so I just press s . Enter.

 I wanted to use your trick, but just remembered that `s' is already mapped
 to `org-save-all-org-buffers', which is a nice keybinding as well... Too
 bad save and schedule share the same letter...

 Saving is also on `C-x C-s', which is a very natural key for this task. so
 using s for scheduling sounds like a very good user customization to me.

Good to know. I did not look far enough in the describe mode key bindings.
Thanks.

Just played with it, and experienced a problem I already saw in the past (but
never reported yet).

In the agenda, because of this entry,

--8---cut here---start-8---
** TODO 2011 !!! (from Thomas):mail:
   [2010-12-24 Fri 21:22]
   SCHEDULED: 2011-02-24 Thu

#+begin_verse
joyeux noel et une bonne année !
#+end_verse

From [[gnus:nnimap%2Bmc:INBOX.mc#4d1500ee.9040...@gmail.com][Email from 
Thomas: 2011 !!!]]
--8---cut here---end---8---

I see (as of today):

--8---cut here---start-8---
  @refile:Sched. 2x:  TODO 2011 !!! (from Thomas) :refile::mail:
--8---cut here---end---8---

Let's say I want to schedule it to today (I should have replied to him 2
months ago, BTW ;-))...

I do `C-c C-s' on the entry, choose today (with `.') and confirm (with RET).
After saving (currently, `s' for me) and refreshing the agenda (`g'), I see:

--8---cut here---start-8---
  @refile:Sched. 2x:  TODO 2011 !!! (from Thomas) :refile::mail:
  @refile:Scheduled:  TODO 2011 !!! (from Thomas) :refile::mail:
--8---cut here---end---8---

... I get the entry *scheduled twice*!

Looking at it, we see that there are now *2 scheduled dates*...

--8---cut here---start-8---
** TODO 2011 !!! (from Thomas):mail:
   SCHEDULED: 2011-02-25 Fri
   [2010-12-24 Fri 21:22]
   SCHEDULED: 2011-02-24 Thu

#+begin_verse
joyeux noel et une bonne année !
#+end_verse

From [[gnus:nnimap%2Bmc:INBOX.mc#4d1500ee.9040...@gmail.com][Email from 
Thomas: 2011 !!!]]
--8---cut here---end---8---

Is it because of some order to respect in the different allowed timestamps
(active, inactive, scheduled, deadline) or a pure bug?

Best regards,
  Seb

-- 
Sébastien Vauban


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


[Orgmode] Re: [PATCH] Missing prompt label in capture template expansion

2011-02-25 Thread Aankhen
Hi Puneeth,

On Fri, Feb 25, 2011 at 15:11, Puneeth Chaganti puncha...@gmail.com wrote:
 Bar has the properties of a LINK associated with it and hence is not
 being displayed in the mini-buffer.  Here is a possible fix, but I'm
 not sure if it's the best fix.

Whether or not it’s the best fix, it seems to be working, so thank you
for that. :-)

Aankhen

___
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] [BUG] Property :exports: both ignored when exporting subtree

2011-02-25 Thread Rainer M Krug
Hi,

When exporting this buffer to pdf, the R code becomes evaluated and
the code and the result becomes exported; but when I export only the
Here it does not work subtree, the :exports: is ignored and only the
code is exported; if I export only the Here it works subtree, the
code and result are exported as :export both is used as a header
argument.

Cheers,

Rainer

* Her it does not work
:PROPERTIES:
:tangle: no
:results: output org
:exports: both
:END:
** R code graph
#+begin_src R
  pdf(pdf1.pdf)
  plot(runif(100))
  dev.off()

  cat(
  \n|--|--|\n,
  |name|[[./pdf1.pdf]]|\n,
  |--|--|\n
  )
#+end_src

* Here it works
:PROPERTIES:
:tangle: no
:results: output org
:exports: both
:END:
** R code graph
#+begin_src R :exports both
  pdf(pdf1.pdf)
  plot(runif(100))
  dev.off()

  cat(
  \n|--|--|\n,
  |name|[[./pdf1.pdf]]|\n,
  |--|--|\n
  )
#+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


[Orgmode] Bug in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.

2011-02-25 Thread Rainer Stengele
Hi all,

I think I found 1 or 2 bugs:

1. Having a text block like this:

** Headline
   SCHEDULED: 2011-02-25 Fr
   CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] =  0:00
   CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] =  0:01
   CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] =  2:15
   CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] =  0:30
   CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] =  1:30
   CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] =  2:30
   CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] =  3:30
   CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] =  4:00
   CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] =  0:45
   CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] =  1:00
   - item1
 * [2011-02-21 Mo] more text
   - item2

...

then clocking in results in

** Headline
   SCHEDULED: 2011-02-25 Fr
   :LOGBOOK:
   CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] =  0:00
   CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] =  0:01
   CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] =  2:15
   CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] =  0:30
   CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] =  1:30
   CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] =  2:30
   CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] =  3:30
   CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] =  4:00
   CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] =  0:45
   CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] =  1:00
   - item1
 * [2011-02-21 Mo] more text
   :END:
   - item2

I assume the date is confusing the regexp to find the end of the drawer section.
Due to the bug I now have a lot of wrong LOGBOOK blocks in my org files...


2. In the Org manual I find:

,
| Visibility cycling (see Visibility cycling) on the headline will
| hide and show the entry, but keep the drawer collapsed to a single line.
| In order to look inside the drawer, you need to move the cursor to the
| drawer line and press TAB there.
`

which does not work for me. I cannot collapse the drawer by pressing TAB.


- Rainer


___
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-toggle-checkbox bug

2011-02-25 Thread Nicolas
Hello,

Patch applied. Thanks for catching this.

Regards,

-- 
Nicolas

___
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] Unable to select source code blocks

2011-02-25 Thread Giorgio Valoti

Il giorno 23/feb/2011, alle ore 08.19, Eric S Fraga ha scritto:

 […]
 
 Hi,
 
 I don’t know if I’m missing something but I can’t get the
 org-babel-goto-named-src-block to work. When I invoke it on the sample
 file below the autocompletion shows nil and nothing else and if insert
 the source code block name I get a no match. I’m using org 7.4 with
 Emacs 23.2.
 
 […]
 
 this works just fine for me; I don't know what you mean by
 autocompletion but I use ido-everywhere and both test and test2 appear
 in the prompt for =org-babel-goto-named-src-block=.
 
 Hi Eric,
 I don’t use ido-mode (maybe I should? Seems cool!). By autocomplete I meant 
 tab completion. 
 
 Right.  I'm surprised that autocompletion doesn't work; if ido can find
 the possible entries, autocompletion should also be able to, I would
 have thought.
 
 Maybe somebody else can chime in, somebody that doesn't use ido?
 
 I do recommend ido in any case!

The problem doesn’t seem related to the autocomplete system, it’s the 
org-babel-src-block-names function that returns an empty list. I don’t know 
why, the org-babel-src-name-w-name-regexp used by that function seems ok at a 
cursory look.




Ciao
--
Giorgio Valoti


___
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 in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.

2011-02-25 Thread Nicolas
Hello,

Rainer Stengele rainer.steng...@diplan.de writes:

 1. Having a text block like this:

 ** Headline
SCHEDULED: 2011-02-25 Fr
CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] =  0:00
CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] =  0:01
CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] =  2:15
CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] =  0:30
CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] =  1:30
CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] =  2:30
CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] =  3:30
CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] =  4:00
CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] =  0:45
CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] =  1:00
- item1
  * [2011-02-21 Mo] more text
- item2

This should be fixed in master now: the whole list will be swallowed by
the drawer (I think it is the intent of the original author of the
function).

 2. In the Org manual I find:

 ,
 | Visibility cycling (see Visibility cycling) on the headline will
 | hide and show the entry, but keep the drawer collapsed to a single line.
 | In order to look inside the drawer, you need to move the cursor to the
 | drawer line and press TAB there.
 `

 which does not work for me. I cannot collapse the drawer by pressing TAB.

May you be more explicit here ? I have no problems collapsing and
expanding drawers here. Is the drawer you want to collapse in
`org-drawers', or after #+DRAWERS: in the buffer ?

Regards,

-- 
Nicolas

___
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 question about fontification and org-emphasis-alist

2011-02-25 Thread Filippo A. Salustri
So,
I really like the emphasis bit that org-emphasis-alist gets me.
But I find that the key characters to do the emphasis, as in /italics/,
remain visible.
It's distracting to me.  I mean, since it's rendered in italics, it's
redundant to show those '/' characters.
I also know that all kinds of things get hidden in org, like the square
parens in links.

So I was wondering if anyone knew of a way to make the emphasis characters
invisible.
EG: /word/ would be rendered as word in italics, without the slashes.

Cheers.
Fil

-- 
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/
___
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 in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.

2011-02-25 Thread Rainer Stengele
Am 25.02.2011 18:54, schrieb Nicolas:
 Hello,

 Rainer Stengele rainer.steng...@diplan.de writes:

 1. Having a text block like this:

 ** Headline
SCHEDULED: 2011-02-25 Fr
CLOCK: [2011-02-25 Fr 17:04]--[2011-02-25 Fr 17:04] =  0:00
CLOCK: [2011-02-25 Fr 17:03]--[2011-02-25 Fr 17:04] =  0:01
CLOCK: [2011-02-25 Fr 14:30]--[2011-02-25 Fr 16:45] =  2:15
CLOCK: [2011-02-24 Do 16:30]--[2011-02-24 Do 17:00] =  0:30
CLOCK: [2011-02-24 Do 14:30]--[2011-02-24 Do 16:00] =  1:30
CLOCK: [2011-02-23 Mi 13:15]--[2011-02-23 Mi 15:45] =  2:30
CLOCK: [2011-02-22 Di 09:00]--[2011-02-22 Di 12:30] =  3:30
CLOCK: [2011-02-21 Mo 13:00]--[2011-02-21 Mo 17:00] =  4:00
CLOCK: [2011-02-21 Mo 11:15]--[2011-02-21 Mo 12:00] =  0:45
CLOCK: [2011-02-21 Mo 09:00]--[2011-02-21 Mo 10:00] =  1:00
- item1
  * [2011-02-21 Mo] more text
- item2
 This should be fixed in master now: the whole list will be swallowed by
 the drawer (I think it is the intent of the original author of the
 function).

 2. In the Org manual I find:

 ,
 | Visibility cycling (see Visibility cycling) on the headline will
 | hide and show the entry, but keep the drawer collapsed to a single line.
 | In order to look inside the drawer, you need to move the cursor to the
 | drawer line and press TAB there.
 `

 which does not work for me. I cannot collapse the drawer by pressing TAB.
 May you be more explicit here ? I have no problems collapsing and
 expanding drawers here. Is the drawer you want to collapse in
 `org-drawers', or after #+DRAWERS: in the buffer ?

 Regards,

Hi Nicolas,

thank you! Unfortunately now the :END: encloses even more lines further
down the block!
Please recheck your patch, it does not close the CLOCK: lines!

Best regards,
Rainer

___
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] date functions in org tables

2011-02-25 Thread Thorsten

Hello,
is there something like a column formula in org that enables me to introduce a
date in the first row and then automatically fills the other rows of
that column with followup dates (+ 1 day or + 1 week i.e.)
like this:

| date| kg |
|-+|
| 2011-02-08 Di | 86 |
| 2011-02-09 Mi | 85 |
| etc.||
 
thanks for any hints
cheers
Thorsten


___
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] date functions in org tables

2011-02-25 Thread Nick Dokos
Thorsten gruenderteam.ber...@googlemail.com wrote:

 
 Hello,
 is there something like a column formula in org that enables me to introduce a
 date in the first row and then automatically fills the other rows of
 that column with followup dates (+ 1 day or + 1 week i.e.)
 like this:
 
 | date| kg |
 |-+|
 | 2011-02-08 Di | 86 |
 | 2011-02-09 Mi | 85 |
 | etc.||
  
 thanks for any hints

Interactively S-RET will insert a row with the next date (i.e. the + 1
day bit), but I don't know of a way to make it skip by larger
steps (i.e. the + 7 days bit).

With a table formula, you can skip by as much as you want:

--8---cut here---start-8---
* Consecutive dates

| Date | Weight |
|--+|
| 2011-02-25 Fri | 71 |
| 2011-03-04 Fri ||
| 2011-03-11 Fri ||
| 2011-03-18 Fri ||
| 2011-03-25 Fri ||
#+TBLFM: @2$1=2011-02-25 Fri::$1=@-1$1+7
--8---cut here---end---8---

using a field formula to set the first entry and a column formula
to calculate the rest, but it just fills up pre-existing rows. IOW,
if you want a bigger table, you have to insert a number of empty
rows and then recalculate.

HTH,
Nick

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


[Orgmode] Org-mode and fill-column value

2011-02-25 Thread John Hendy
Hi,


I would like to set my fill-column variable to a bit higher value since I
have no real need to keep it at 70, however my attempts seem not to be
working.

The relevant section in .emacs looks like this:
,-
| (add-hook 'text-mode-hook 'turn-on-auto-fill)
`-

I then added this line:
,-
| (setq fill-column 85)
`-

I've tried using it before and after the text-mode-hook setting above, but
when I restart emacs and do =C-x f= to set the fill-column variable to 85,
the minibuffer reports:
,-
| Fill column set to 85 (was 70)
`-

Something isn't getting set. I guess this isn't necessarily an org-mode
issue, but I thought someone might know why it's happening here? I can't
find much discussion when searching for org-mode users also using fill and
if they set the fill-column value or not.


Thanks,
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] Org-mode and fill-column value

2011-02-25 Thread Nick Dokos
John Hendy jw.he...@gmail.com wrote:

 Hi,
 
 I would like to set my fill-column variable to a bit higher value since I 
 have no real need to keep it at 70, however my attempts seem not to be 
 working.
 
 The relevant section in .emacs looks like this:
 ,-
 | (add-hook 'text-mode-hook 'turn-on-auto-fill)
 `-
 
 I then added this line:
 ,-
 | (setq fill-column 85)
 `-
 
 I've tried using it before and after the text-mode-hook setting above, but 
 when I restart emacs and do =C-x f= to set the fill-column variable to 85, 
 the minibuffer reports:
 ,-
 | Fill column set to 85 (was 70)
 `-
 
 Something isn't getting set. I guess this isn't necessarily an org-mode 
 issue, but I thought someone might know why it's happening here? I can't find 
 much discussion when searching for org-mode users also using fill and if they 
 set the fill-column value or not.
 

It becomes buffer-local when set in any way. Try

(setq-default fill-column 85)

in your .emacs.

Nick


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


Re: [Orgmode] Uncover bullet points with BEAMER_env: ignoreheading

2011-02-25 Thread Eric S Fraga
Derek Thomas derekctho...@gmail.com writes:

 I've been using BEAMER_env: ignoreheading to generate columns of
 bulleted lists as follows
 #+begin_src org
 * hidden heading 1  :BMCOL:B_ignoreheading:
   :PROPERTIES:
   :BEAMER_col: 0.5
   :BEAMER_env: ignoreheading
   :BEAMER_envargs: [+-]
   :END:
 ** Item 1
 ** Item 2
 * hidden heading 2  :BMCOL:B_ignoreheading:
   :PROPERTIES:
   :BEAMER_col: 0.5
   :BEAMER_env: ignoreheading
   :BEAMER_envargs: [+-]
   :END:
 ** Item 3
 ** Item 4
 #+begin_src org

 But the [+-] is not included in the LaTeX export so the bullets
 are not revealed sequentially.  Is there a way to include this flag in
 the export?  Thanks,

To answer your explicit question, you need to specify either c or C
for a column envargs setting, as in c[+-] or C[+-], the
difference being that with lower case c, the argument applies to the
column and with upper case C, it applies to the columns environment.
You need one of these to get the export to work.

Having said this, I have no idea how to get beam to do automatic
column overlays, as you seem to want.  I have always had to use 1-
etc.  So I would have envargs for the first column set to c1- (note,
no square brackets) and c2- for the second.

HTH,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.532.g7b21.dirty)

___
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: date functions in org tables

2011-02-25 Thread Thorsten

all I needed to know ...
thanks


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


[Orgmode] Re: Bug in creating LOGBOOK drawers and maybe in visibility cycling of drawer contens.

2011-02-25 Thread Nicolas
Rainer Stengele rainer.steng...@diplan.de writes:

 thank you! Unfortunately now the :END: encloses even more lines further
 down the block!

Indeed, the drawer is wrapped around the list. I think this is required
as the list may well be some notes or TODO states to put into the
logbook.

If you don't want to have the list into the drawer, you can skip a line
before it.

Regards,

-- Nicolas

___
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: Automatic noexport tag based on rules?

2011-02-25 Thread John Hendy
Reviving this as I can't believe the following solution was overlooked!

On Tue, Feb 8, 2011 at 6:29 PM, John Hendy jw.he...@gmail.com wrote:

 Hi,


 My apologies if this has been discussed. I couldn't find it. I write
 everything from work in org-mode for several reasons. Primarily, it's my
 documentation system for research in order to properly document Intellectual
 Property (IP) information. It's also for todos and contacts. When it comes
 to exporting my notes into PDF for use in an IP notebook... I dont' want my
 todos in there.

 Is there a way to automatically tag TODOs with :noexport:?


YES! While perusing Bernt Hanson's page (
http://doc.norang.ca/org-mode.html#ToDoStateTriggers) I noticed the
following:
,-
| I have a few triggers that automatically assign tags to tasks based on
| state changes. If a task moves to CANCELLED state then it gets a CANCELLED
 tag.
| Moving a CANCELLED task back to TODO removes the CANCELLED tag.
| These are used for filtering tasks in agenda views which I'll talk about
later.
| ... then he shows the code used to set =org-todo-state-tags-triggers=
`-

Sweetness, I thought. In experimenting:
,-
| (setq org-todo-state-tags-triggers
|  (quote ((TODO (noexport . t)
`-

works *perfectly*. Well, that is in my 0.2 seconds of experimentation, it
worked. New headline - C-c C-t - ** TODO whatever :noexport:

I'm a happy camper.  I had resolved to arranging my file with a separate =*
Tasks= top level item at the top of each file to store all todos (I may
still do this) and then I could just tag the whole headline with :noexport:
to keep all the todos out of the export since I'm often typing notes or
something and the TODO seems to fit better in the context of the notes
rather than having to stuff it into a bucket at the top with TODOs from all
kinds of other stuff.. At least if I don't do this, I have some options.
Adding a todo in place will keep it from being exported when I print out my
reports.

The world is safe again...


Best regards,
John

Or simply add the TODO category to the noexport category altogether?

 I haven't turned up anything quite along these lines. One post suggested
 using TODO keyword COMMENT [1], but that just seems to perhaps exclude
 from export (didn't try) but I know for sure it removes it from agenda view.
 I want TODOs in agenda but don't want them showing up with my LaTeX export.
 I typically print out my work to-date each month or so and have to comb
 through my org file for that month, manually adding :noexport: to my TODOs.
 Even if I still do this for a few things here and there... it will save me a
 lot of time.

 I suppose I could keep a separate TODO.org file, but I really like the
 process of being able to add them anywhere -- it seems more natural to do
 that in the flow, particularly in meetings, than to constantly switch
 buffers or even use remember to keep sending things related to the current
 topic away to their own island.

 I'm 80% confident that the answer is ridiculously simply and I just haven't
 searched the right thing. Thanks for enlightening me!


 Thanks,
 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] Org-mode and fill-column value

2011-02-25 Thread John Hendy
Fantastic.

Many thanks,
John

On Fri, Feb 25, 2011 at 4:07 PM, Nick Dokos nicholas.do...@hp.com wrote:

 John Hendy jw.he...@gmail.com wrote:

  Hi,
 
  I would like to set my fill-column variable to a bit higher value since I
 have no real need to keep it at 70, however my attempts seem not to be
 working.
 
  The relevant section in .emacs looks like this:
  ,-
  | (add-hook 'text-mode-hook 'turn-on-auto-fill)
  `-
 
  I then added this line:
  ,-
  | (setq fill-column 85)
  `-
 
  I've tried using it before and after the text-mode-hook setting above,
 but when I restart emacs and do =C-x f= to set the fill-column variable to
 85, the minibuffer reports:
  ,-
  | Fill column set to 85 (was 70)
  `-
 
  Something isn't getting set. I guess this isn't necessarily an org-mode
 issue, but I thought someone might know why it's happening here? I can't
 find much discussion when searching for org-mode users also using fill and
 if they set the fill-column value or not.
 

 It becomes buffer-local when set in any way. Try

 (setq-default fill-column 85)

 in your .emacs.

 Nick


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


Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Nick Dokos
Sébastien Vauban wxhgmqzgw...@spammotel.com wrote:

 ... 
 * List all files in dir (version of Seb)
 
 My code was a bit more complex... because I need to be able to correctly take
 care of filenames containing spaces inside them (I'm on Windows, I never do
 such a thing, but there are well spaces on the files I wanna graph).
 
 #+srcname: graph-files-seb
 #+begin_src sh :results vector :var dir=graph-dir
   find $dir -type f -print |\
   while read -r name
   do
   echo \${name##*/}\
   done
 #+end_src
 
 #+results: graph-files-seb
 | dan   | |
 | eric  | |
 | other | |
 | seb  | vauban |
 

I suspect that this is a losing battle: spaces in filenames are legal,
they are common on Windows systems, but they are a PITA. The main reason
is that a *lot* of tools (particularly Unix tools of a certain age)
assume that spaces in filenames will not occur and break in mysterious
and unexpected ways when presented with a directory structure that
contains such.

There are various workarounds (the most important of which, practically 
speaking,
is the idiom

   find ... -print0 | xargs -0 

which causes ``find'' to use a null byte as a separator and ``xargs'' to
search for same in order to split the list into its constituent
components - null bytes being illegal in filenames), and there is a
long, fairly exhaustive discusssion of such matters in David Wheeler's
enlightening essay:

   http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html

but none of these would help in this case, because the culprit here
turns out to be org-table-convert-region:

,
| org-table-convert-region is an interactive Lisp function in
| `org-table.el'.
| 
| (org-table-convert-region BEG0 END0 optional SEPARATOR)
| 
| Convert region to a table.
| The region goes from BEG0 to END0, but these borders will be moved
| slightly, to make sure a beginning of line in the first line is included.
| 
| SEPARATOR specifies the field separator in the lines.  It can have the
| following values:
| 
| '(4) Use the comma as a field separator
| '(16)Use a TAB as field separator
| integer  When a number, use that many spaces as field separator
| nil  When nil, the command tries to be smart and figure out the
|  separator in the following way:
|  - when each line contains a TAB, assume TAB-separated material
|  - when each line contains a comma, assume CSV material
|  - else, assume one or more SPACE characters as separator.
| 
`

It is called with a nil separator so it uses its smart mode and counts
one or more whitespace characters as the separator (I wonder
what would happen with a filename that contains a comma :-)

In any case, the region has the filenames one per line, so if
org-table-convert-region could parse a newline-separated list (and if
there was a way to specify the newline separator from higher levels)
everything would be hunky dory; there might be a way to specify the
separator using dynamic scoping, but org-table-convert-region would
require some changes to take advantage of it.

Nick

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


Re: [Orgmode] a question about fontification and org-emphasis-alist

2011-02-25 Thread Carsten Dominik


On 25.2.2011, at 19:22, Filippo A. Salustri wrote:


So,
I really like the emphasis bit that org-emphasis-alist gets me.
But I find that the key characters to do the emphasis, as in / 
italics/, remain visible.
It's distracting to me.  I mean, since it's rendered in italics,  
it's redundant to show those '/' characters.
I also know that all kinds of things get hidden in org, like the  
square parens in links.


So I was wondering if anyone knew of a way to make the emphasis  
characters invisible.
EG: /word/ would be rendered as word in italics, without the  
slashes.


What have you done to find the answer?

Google: org hide emphasis

is already good enough!

Cheers

- Carsten



Cheers.
Fil

--
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/
___
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] customising org-latex-to-pdf-process for bibtex

2011-02-25 Thread suvayu ali
Hi everyone,

I am trying to use bibtex with pdf export for my thesis. So I tried
customising =org-latex-to-pdf-process= so that bibtex is run before
pdflatex. So from the customise buffer I set it to something like this:

pdflatex -interaction nonstopmode -output-directory %o %f
bibtex %b
pdflatex -interaction nonstopmode -output-directory %o %f
pdflatex -interaction nonstopmode -output-directory %o %f

I also tried these,

pdflatex -interaction nonstopmode -output-directory %o %b
bibtex %b
pdflatex -interaction nonstopmode -output-directory %o %b
pdflatex -interaction nonstopmode -output-directory %o %b

But none of these run bibtex properly. For now I am exporting to latex
everytime I change the bibliography and run bibtex from the terminal.
For subsequent pdf exports the default values then give me a proper pdf
with all the citations displayed correctly.

Any thoughts on what I am doing wrong?

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 ...
 It is called with a nil separator so it uses its smart mode and counts
 one or more whitespace characters as the separator (I wonder
 what would happen with a filename that contains a comma :-)
 
Answer: nothing much.

Please disregard the comma comment: flippant stupidity on my part...

Nick


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


Re: [Orgmode] a question about fontification and org-emphasis-alist

2011-02-25 Thread Filippo A. Salustri
I did try to google a few things, but hide was never one of my keywords.
 Sigh.
Google is great IFF you know what keywords to use.

Thanks for the pointer.
Cheers.
Fil

On 25 February 2011 18:11, Carsten Dominik carsten.domi...@gmail.comwrote:


 On 25.2.2011, at 19:22, Filippo A. Salustri wrote:

  So,
 I really like the emphasis bit that org-emphasis-alist gets me.
 But I find that the key characters to do the emphasis, as in /italics/,
 remain visible.
 It's distracting to me.  I mean, since it's rendered in italics, it's
 redundant to show those '/' characters.
 I also know that all kinds of things get hidden in org, like the square
 parens in links.

 So I was wondering if anyone knew of a way to make the emphasis characters
 invisible.
 EG: /word/ would be rendered as word in italics, without the slashes.


 What have you done to find the answer?

 Google: org hide emphasis

 is already good enough!

 Cheers

 - Carsten


 Cheers.
 Fil

 --
 Filippo A. Salustri, Ph.D., P.Eng.
 Mechanical and Industrial Engineering
 Ryerson University
 350 Victoria St, Toronto, ON
 M5B 2K3, Canada
 Tel: 416/979-5000 ext 7749
 Fax: 416/979-5265
 Email: salus...@ryerson.ca
 http://deseng.ryerson.ca/~fil/
 ___
 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





-- 
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/
___
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] customising org-latex-to-pdf-process for bibtex

2011-02-25 Thread Eric S Fraga
suvayu ali fatkasuvayu+li...@gmail.com writes:

 Hi everyone,

 I am trying to use bibtex with pdf export for my thesis. So I tried
 customising =org-latex-to-pdf-process= so that bibtex is run before
 pdflatex. So from the customise buffer I set it to something like
 this:

I have 

#+begin_src emacs-lisp
(setq org-latex-to-pdf-process 
  '(pdflatex %f bibtex %b pdflatex %f pdflatex %f))
#+end_src

which seems to work just fine for me.  You may wish (for security) to
add the fully qualified paths for these executables, of course.
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.532.g7b21.dirty)

___
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] maxima support?

2011-02-25 Thread Eric Schulte
Great, Thanks for sharing!

Why don't we replace the shell-script munging with some elisp munging
and add this to the core?

I can help with the translation to elisp (although I may be busy through
the weekend/week).

Best -- Eric

Eric S Fraga e.fr...@ucl.ac.uk writes:

 Litvinov Sergey slitvi...@gmail.com writes:

 I have not found (i)maxima on this page.
 http://orgmode.org/worg/org-contrib/babel/languages.html
 (Babel: Languages)

 Has someone implemented it?

 I have implemented a very basic interface (attached).  Example:

 #+begin-src org
 * maxima test
 *** simple test
 #+begin_src maxima
 programmode: false;
 eq: x**2-1 = 0;
 solution: solve(eq, x);
 print(solution);
 #+end_src

 #+results:
 : [x = - 1, x = 1] 
 #+end_src

 However, please note that this is rather linux (maybe Unix) specific in
 that it post-processes the output of maxima using a sequence of shell
 commands to get rid of unnecessary (to my mind) output.  Maxima is a bit
 verbose...

___
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] Exporting COMMENT blocks?

2011-02-25 Thread Eric Schulte
Hi Karl,

Thanks for the bug report, I've just pushed up a fix for this issue.

Please let me know if the problem continues.

Best -- Eric

Karl Eichwalder k...@gnu.franken.de writes:

 There seems to be a general problem with exporting commented blocks.
 From the docs:

 Finally, regions surrounded by `#+BEGIN_COMMENT' ... `#+END_COMMENT'
 will not be exported.

 But the git version from earlier this weeks exports COMMENTs:

 * Testing BEGIN_COMMENT Block

 #+BEGIN_COMMENT
 #done
 a href=http://www.flickr.com/photos/keichwa/5053024831/;
 title=IMG_1071 Schachen mit den Schachenhusern by keichwaimg
 src=http://farm5.static.flickr.com/4133/5053024831_0ea1ecf083.jpg;
 width=500 height=375 alt=IMG_1071 Schachen mit den
 Schachenhusern //a
 #+END_COMMENT
 #+CAPTION: IMG_1071 Schachen mit den Schachenhusern by keichwa
 #+ATTR_HTML: alt=IMG_1071 Schachen mit den Schachenhusern by keichwa
 #+ATTR_HTML: title=IMG_1071 Schachen mit den Schachenhäusern by keichwa
 #+ATTR_HTML: width=500 height=375
 [[http://www.flickr.com/photos/keichwa/5053024831/][http://farm5.static.flickr.com/4133/5053024831_0ea1ecf083.jpg]]

 HTML export:

 test

 Table of Contents

   * 1 Testing BEGIN[COMMENT] Block

 1 Testing BEGIN[COMMENT] Block

 a href=http://www.flickr.com/photos/keichwa/5053024831/; title=IMG[1071]
 Schachen mit den Schachenhäusern by keichwaimg src=[505302] width=500
 height=375 alt=IMG[1071] Schachen mit den Schachenhäusern //a#+BEGIN
 [HTML] /p /div

 [505302]

 Author: Karl Eichwalder (k...@suse.de)

 Date: 2011-02-24 10:56:13 CET

 Generated by Org version 7.4 with Emacs version 23

 Validate XHTML 1.0


 There is also a problem with the #+CAPTION line; I think org-mode
 exports CAPTIONs only, if you use simple [[links]].


 This is the ASCII output (COMMENT block is just indented):


   Testing BEGIN_COMMENT Block
   ===

 Author: Karl Eichwalder
 Date: 2011-02-24 11:05:53 CET



   #done
   a href=http://www.flickr.com/photos/keichwa/5053024831/;
   title=IMG_1071 Schachen mit den Schachenhäusern by keichwaimg
   src=http://farm5.static.flickr.com/4133/5053024831_0ea1ecf083.jpg;
   width=500 height=375 alt=IMG_1071 Schachen mit den
   Schachenhäusern //a

 [http://farm5.static.flickr.com/4133/5053024831_0ea1ecf083.jpg]

 [http://farm5.static.flickr.com/4133/5053024831_0ea1ecf083.jpg]: 
 http://www.flickr.com/photos/keichwa/5053024831/

___
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] Unable to select source code blocks

2011-02-25 Thread Eric Schulte
Giorgio Valoti giorgi...@me.com writes:

 Il giorno 23/feb/2011, alle ore 08.19, Eric S Fraga ha scritto:

 […]
 
 Hi,
 
 I don’t know if I’m missing something but I can’t get the
 org-babel-goto-named-src-block to work. When I invoke it on the sample
 file below the autocompletion shows nil and nothing else and if insert
 the source code block name I get a no match. I’m using org 7.4 with
 Emacs 23.2.
 
 […]
 
 this works just fine for me; I don't know what you mean by
 autocompletion but I use ido-everywhere and both test and test2 appear
 in the prompt for =org-babel-goto-named-src-block=.
 
 Hi Eric,
 I don’t use ido-mode (maybe I should? Seems cool!). By autocomplete I meant 
 tab completion. 
 
 Right.  I'm surprised that autocompletion doesn't work; if ido can find
 the possible entries, autocompletion should also be able to, I would
 have thought.
 
 Maybe somebody else can chime in, somebody that doesn't use ido?
 
 I do recommend ido in any case!

 The problem doesn’t seem related to the autocomplete system, it’s the
 org-babel-src-block-names function that returns an empty list. I don’t
 know why, the org-babel-src-name-w-name-regexp used by that function
 seems ok at a cursory look.


Could you attach a small file with named code blocks which aren't caught
by this function?  I just ran the following in by file of scraps of
code examples and got 60 names returned

#+begin_src emacs-lisp
  (length (org-babel-src-block-names))
#+end_src

Thanks -- 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] [PATCH] new babel latex feature :imagemagick

2011-02-25 Thread Eric Schulte
Hi Andreas,

This patch looks like a great idea and a clean implementation.  Thanks
for sharing.  Would you be willing to sign the FSF copyright assignment
papers?  If not I probably can not apply your patch as it changes over
10 lines -- which I'm pretty sure is the copyright assignment cutoff.

For more information on contributing to Org-mode see the following
http://orgmode.org/worg/org-contribute.html

Thanks! -- Eric

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 Just a small patch that might make life easier for
 LaTeX (and esp. tikz) users.  It enables the output of graphics in a
 lot of formats using imagemagick.  See below for an example.

 This is my first patch, I have never programmed emacs lisp before, and
 my common lisp experiences have been short and a while ago.  So please
 excuse a (possibly) bad patch.

 Details:
 LaTeX source blocks now have three new options:
 - :imagemagick
   When not nil the source block is processed to pdf and the pdf is
   converted with imagemagick to whatever is given as :file
   Thus, the format is not limited to png.
 - :iminoptions
   This is passed to imagemagick before the pdf file
 - :imoutoptions
   This is passed to imagemagick before the output file

 Small Example:
 #+begin_src latex ... :file test.jpg :imagemagick yes :iminoptions
 -density 300 :imoutoptions -geometry 400 ...
 will use this command for conversion:
 convert -density 300 tmp-pdf -geometry 400 test.jpg

 Full example:
 Export this to pdf and to html to see the effect.
 ===
 * Test
   #+begin_src R :session :exports both :results silent
 library(tikzDevice)
   #+end_src
   #+srcname: test_plot
   #+begin_src R :session :exports code :results output latex
 tikz(console=TRUE, width=4, height=4)
 plot(rnorm(100), rnorm(100))
 dummy - dev.off()
   #+end_src

   #+srcname: test_plot_png
   #+begin_src latex :exports (if (and (boundp 'backend) (eq backend
 'latex)) none results) :file test.png :imagemagick yes :iminoptions
 -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers
 '(\\usepackage{tikz})
 test_plot()
   #+end_src

   #+srcname: test_plot_tikz
   #+begin_src latex :noweb yes
 test_plot()
   #+end_src

 * Latex Options   :noexport:
 #+LATEX_HEADER: \usepackage{tikz}
 ===

 Regards,
 Andreas

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

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


Re: [Orgmode] [PATCH] new babel latex feature :imagemagick

2011-02-25 Thread Eric Schulte
 #+begin_src org

 * tikz with image magick
   The following is a simple figure generated using tikz:

   #+begin_src latex :exports results :results (if (and (boundp 'backend) (eq 
 backend 'latex)) latex file) :file test.png :imagemagick yes :iminoptions 
 -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers 
 '(\\usepackage{tikz})
 \begin{tikzpicture}
   \node[red!50!black] (a) {A};
   \node (b) [right of=a] {B};
   \draw[-] (a) -- (b);
 \end{tikzpicture}
   #+end_src

 #+end_src

Very nice, are you aware of the option to split header arguments among
multiple lines?

the above could be written as...

#+headers:  :file test.png :fit yes
#+headers: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 
400
#+headers: :results (if (and (boundp 'backend) (eq backend 'latex)) latex 
file)
#+begin_src latex :exports results :noweb yes :headers '(\\usepackage{tikz})
  \begin{tikzpicture}
\node[red!50!black] (a) {A};
\node (b) [right of=a] {B};
\draw[-] (a) -- (b);
  \end{tikzpicture}
#+end_src

which is (possibly) easier to write/read

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] [babel] Bug? :cache yes ignored when :noweb yes

2011-02-25 Thread Eric Schulte
Hi Andreas,

This exact example worked for me -- that is the results were returned
without executing the sleep 5 code.

Maybe you are using an old version of Org, or you have non-standard
default header argument values?

Best -- Eric

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 When ':noweb yes' is in the header, ':cache yes' is ignored during
 export.  (At least when I export the sample file below.)

 To me this seems to be a bug.  Or am I missing something?

 Regards,
 Andreas

 PS: Example:
 
 * Test
   #+srcname: test_sleep
   #+begin_src R :session :exports code
 Sys.sleep(time=5)
 1:10
   #+end_src

   #+srcname: test_sleep
   #+begin_src R :session :exports results :noweb yes :cache yes
 test_sleep
   #+end_src

   #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep
   |  1 |
   |  2 |
   |  3 |
   |  4 |
   |  5 |
   |  6 |
   |  7 |
   |  8 |
   |  9 |
   | 10 |
 ==


 ___
 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][babel] How-to realise a simplified usage scenario?

2011-02-25 Thread Eric Schulte
Hi Torsten,

I found this email extremely hard to parse.  Perhaps it would be easier
if you first read through the relevant section of the Org-mode manual
http://orgmode.org/manual/Working-With-Source-Code.html so that you are
aware of what features are already provided by Babel.  Then you could
share how your suggestions are different from the existing Babel
functionality, rather than as a brand new and largely overlapping set of
syntax and functionality.

I hope this request makes sense and is not unreasonable.

Thanks -- Eric

Torsten Wagner torsten.wag...@gmail.com writes:

 Hi,

 I tried to use org-babel (particular with python) several times. 
 However, I always struggled with the amount of options and it take me 
 long time to get it right.
 I would like to describe my personal perfect scenario and hope that some 
 of those points could find a way into babel.

 Basically, I would like to use org-babel for some kind of literate 
 programming. It has not to produce publishing ready manuscripts (maybe, 
 this might be a final goal). Basically, I would like to keep my more 
 technically notes together with my calculations. Basically I want 
 something like this

  Example--

 * My problem
 This is my problem description and I might use all kind of org-madness 
 to describe it, add todos, deadlines, tag it, add tables and links, etc.
 At the beginning I might call some initialisation code

 #+begin_src sessionname
#!/usr/bin/env python
#import modules
import numpy as py
from myreadfile import *
# global variables
constant1 = 5
loaddata(data)
y=5
 #+end_src

 After even more org-mode text, I come to the point to do some calculus

 #+begin_src sessionname :export
def myfunction(x=1):
# x is a parameter
c1 = 1e-4
c2 = 3
c3 = 1e6
 b  = 3
return  c1*x**3+c2*x**2+c3*x**x+b
 #+end_src

 I just continue writing to say what I just did. Now I want to state that 
 myfunction result in var_sessioname[%2.3g]{myfunction(10)}. Which 
 gives me the return value of myfunction for x = 10 and formats it into 
 scientific notation. I also could write var_sessionname{y} which 
 would be replaced by the standard integer representation 5.
 Sure I could write var_sessionname[%2.3g]{myfunction(y)} as well to 
 get the result of my function for the variable y which I defined in the 
 first code block. I could even create a new variable on the fly 
 src_sessionname{z=5} print it z= var_sessionname{z} and show the 
 result for myfunction: var_sessionname{myfunction(z)}.
 I could even switch to another language (however, I doubt that this is 
 often the case). Either by direct replacement and taking care of the 
 formatting manually

 #+begin_src elisp_session
#!/usr/bin/emacs --script
(setq a 3)
(setq b var_sessioname{y})
(message %+3.5f (* a b))
 #+end_src

 or (esp. for more complex inputs) by additional use of helper functions 
 defined for the target language

 #+begin_src elisp_session
#!/usr/bin/emacs --script
(setq a 3)
(setq b (var_sessioname[elisp:integer]{y}))
(message %+3.5f (* a b))
 #+end_src

 which would take care to place it in the source code block with the 
 correct target syntax.

 End Example---

 The key-points are:
 * All code blocks belong to a session to allow sharing namespace
 * The entire code is still written in a way to execute it stand-alone 
 if tangled, the tangle operation could replace var_sessionname commands 
 by appropriate print commands in the target language. Functions are real 
 valid functions of the target language.
 * no need to specify the language over and over again since it can be 
 found by reading the shebang for each session
 * var_sessionname commands define were to place output of the target 
 language and how to format it. Formatting and output could be realized 
 in the native target language which then returns an appropriate 
 raw-orgmode string. This would even allow complex scenarios like 
 embedding a plot created in the target language without the need for the 
 user to know about that.
 * C-c C-c somewhere in a code block refresh the entire session. 
 Honestly, I had to much problems with python errors due to old running 
 sessions which were only partially updated and a confused python 
 interpreter. Keep it simple, close any old session, open a new, rerun 
 the code. If source code gets to long and computation takes to much time 
 people might consider to split it into different sessions.
 * Tangeling the code could be a org-export function with options to save 
 it in a file, open it in a buffer or execute it e.g., in ipython
 In a similar way like for other exports C-c C-e 1 c (c for code export) 
 would tangle only the session to which the code under the pointer 
 belongs and C-c 

Re: [Orgmode] [PATCH] new babel latex feature :imagemagick

2011-02-25 Thread Eric Schulte
Hi Andreas,

This patch looks like a great idea and a clean implementation.  Thanks
for sharing.  Would you be willing to sign the FSF copyright assignment
papers?  If not I probably can not apply your patch as it changes over
10 lines -- which I'm pretty sure is the copyright assignment cutoff.

For more information on contributing to Org-mode see the following
http://orgmode.org/worg/org-contribute.html

Thanks! -- Eric

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 Just a small patch that might make life easier for
 LaTeX (and esp. tikz) users.  It enables the output of graphics in a
 lot of formats using imagemagick.  See below for an example.

 This is my first patch, I have never programmed emacs lisp before, and
 my common lisp experiences have been short and a while ago.  So please
 excuse a (possibly) bad patch.

 Details:
 LaTeX source blocks now have three new options:
 - :imagemagick
   When not nil the source block is processed to pdf and the pdf is
   converted with imagemagick to whatever is given as :file
   Thus, the format is not limited to png.
 - :iminoptions
   This is passed to imagemagick before the pdf file
 - :imoutoptions
   This is passed to imagemagick before the output file

 Small Example:
 #+begin_src latex ... :file test.jpg :imagemagick yes :iminoptions
 -density 300 :imoutoptions -geometry 400 ...
 will use this command for conversion:
 convert -density 300 tmp-pdf -geometry 400 test.jpg

 Full example:
 Export this to pdf and to html to see the effect.
 ===
 * Test
   #+begin_src R :session :exports both :results silent
 library(tikzDevice)
   #+end_src
   #+srcname: test_plot
   #+begin_src R :session :exports code :results output latex
 tikz(console=TRUE, width=4, height=4)
 plot(rnorm(100), rnorm(100))
 dummy - dev.off()
   #+end_src

   #+srcname: test_plot_png
   #+begin_src latex :exports (if (and (boundp 'backend) (eq backend
 'latex)) none results) :file test.png :imagemagick yes :iminoptions
 -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers
 '(\\usepackage{tikz})
 test_plot()
   #+end_src

   #+srcname: test_plot_tikz
   #+begin_src latex :noweb yes
 test_plot()
   #+end_src

 * Latex Options   :noexport:
 #+LATEX_HEADER: \usepackage{tikz}
 ===

 Regards,
 Andreas

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

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


Re: [Orgmode] Re: [babel] How to kill two birds with one stone?

2011-02-25 Thread Eric Schulte
 * List all files in dir (version of Seb)

 Just to show, this code prints a semi-colon after every filename.

 #+srcname: graph-files-seb2
 #+begin_src sh :results vector :var dir=graph-dir
   find $dir -type f -print |\
   while read -r name
   do
   echo \${name##*/}\;
   done
 #+end_src

 #+results: graph-files-seb2
 | dan   |  |
 | eric  |  |
 | other |  |
 | seb  | vauban; |

 In most cases, these have been eaten as well...

 Is it possible to circumvent this problem, and get my filenames (even those
 with spaces in them) in one column?


Hi Seb,

My first idea was to use the :results list header argument, to return
a simple list (rather than a table in which the last element has two
columns)

#+begin_src sh :results list
  echo eric schulte
  echo dan davison
  echo seb vauban
#+end_src

#+results:
- (eric schulte)
- (dan davison)
- (seb vauban)

But that didn't work out quite as well as expected.  Perhaps list
results should be made smarter by concatenating list elements that
happen to be lists themselves into strings...

I then tried the following, which should work, enabling you to split the
raw results on newline in subsequent code blocks.  Note this approach
will also preserve things like ;'s which may have been eaten by org
table import.

#+begin_src sh :results scalar
  echo eric schulte
  echo dan davison
  echo seb vauban
#+end_src

#+results:
: eric schulte
: dan davison
: seb vauban

Hope this helps -- 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


[Orgmode] Re: _..._ does not seem to export correctly

2011-02-25 Thread Cássio Koshikumo
Yes, I've also noticed this. The same thing happens with radio targets.

Best,

-- 
Cássio Koshikumo

At Wed, 23 Feb 2011 10:43:21 -0700,
Samuel Wales wrote:
 
 Lately in latest git, I have been getting the following in
 HTML region export.
 
 Input:
 
   * _Confusion_
 
 Export (leaving in context):
 
   ...
   div id=outline-container-1_4_10 class=outline-5
   h5 id=sec-1_4_10_@lt;span class=targetConfusion/span _/h5
   div class=outline-text-5 id=text-1_4_10
   ...
 
 Rendered in emacs-w3m and Firefox like this:
 
   _@span class=targetConfusion _
 
 Thanks.
 
 -- 
 The Kafka Pandemic:
 http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
 I support the Whittemore-Peterson Institute (WPI)
 ===
 I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV 
 paper.
 
 ___
 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] HTML export options are being ignored

2011-02-25 Thread Cássio Koshikumo
Hi all,

I think there's a bug with the html exporter. With this OPTIONS line:

#+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil

I get rid of the numbering and the TOC, but still get the creator, the
timestamp and the author lines at the end of the page. Exporting to ASCII seem
to exclude them properly.

Does anyone else experience this?

Best,

-- 
Cássio Koshikumo

___
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] customising org-latex-to-pdf-process for bibtex

2011-02-25 Thread Suvayu Ali
Hey Thomas,

Thanks for your response. I have outlined what I tried and found below.

On Fri, 25 Feb 2011 14:08:31 -1000
Thomas S. Dye t...@tsdye.com wrote:

 Aloha Suvayu,
 
 I had what sounds like a similar problem.  You don't say why bibtex  
 fails, but in my case it wasn't able to find the .aux file.  When I
 do this:
 
(setq org-export-pdf-remove-logfiles nil)
 
 then I'm able to run bibtex without problems.
 

I tried that after your post, didn't seem to make a difference. I don't
know how to find how bibtex fails. All I see are these lines in the
*Org PDF LaTeX Output* buffer:

 No file msthesis.bbl.
 [5] (/home/jallad/org/masters-thesis//msthesis.aux)
 
 LaTeX Warning: There were undefined references.

Does that say anything to you? How do I capture the output from bibtex?
I presumed it is being overwritten by subsequent pdflatex runs. So I
removed the later pdflatex runs from the variable and that gives me
this output in the *Org PDF LaTeX Output* buffer.

 bibtex: Not writing to /home/user/org/masters-thesis/msthesis.blg
 (openout_any = p). I couldn't open file name
 `/home/user/org/masters-thesis/msthesis.blg'

However with the same tex file, after I run bibtex msthesis from the
terminal everything is fine! I even tried specifying the %b.aux in the
org-latex-to-pdf-process variable with no luck.

 I haven't tested your org-latex-to-pdf-process setups, so can't say  
 whether or not there is a problem with them.

I use the TeXLive distributed by CTAN in isos. I setup my path so it
finds the right binaries whenever I'm working with latex. I am sure my
setup is fine as things are as expected when run from the teminal.

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] customising org-latex-to-pdf-process for bibtex

2011-02-25 Thread Suvayu Ali
Hi Eric,

On Sat, 26 Feb 2011 00:23:15 +
Eric S Fraga e.fr...@ucl.ac.uk wrote:

 suvayu ali fatkasuvayu+li...@gmail.com writes:
 
  Hi everyone,
 
  I am trying to use bibtex with pdf export for my thesis. So I tried
  customising =org-latex-to-pdf-process= so that bibtex is run before
  pdflatex. So from the customise buffer I set it to something like
  this:
 
 I have 
 
 #+begin_src emacs-lisp
 (setq org-latex-to-pdf-process 
   '(pdflatex %f bibtex %b pdflatex %f pdflatex %f))
 #+end_src
 

I tried that, no luck. It gets stuck at some line and fails. I think
there is some problem with one of the packages I am using for
equations. Putting back -interactionmode nonstop makes the pdflatex
process continue to the end and produce the pdf.

 which seems to work just fine for me.  You may wish (for security) to
 add the fully qualified paths for these executables, of course.

Its my private desktop and laptop, and I can be quite paranoid about
security usually so that part is somewhat covered. :) Maybe I'll
consider it later.

If you are otherwise worried about whether I'm picking up the correct
version of pdflatex, I see the following version information in the
*Org PDF LaTeX output* buffer:

 This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)

So its as expected.

Thank you for your thoughts about my issue, appreciate it. 

-- 
Suvayu

Open source is the future. It sets us free.

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


Re: [Orgmode] Re: _..._ does not seem to export correctly

2011-02-25 Thread Samuel Wales
Is there a workaround other than creating custom links?

On 2011-02-25, Cássio Koshikumo ckoshik...@gmail.com wrote:
 Yes, I've also noticed this. The same thing happens with radio targets.

 Best,

 --
 Cássio Koshikumo

 At Wed, 23 Feb 2011 10:43:21 -0700,
 Samuel Wales wrote:

 Lately in latest git, I have been getting the following in
 HTML region export.

 Input:

   * _Confusion_

 Export (leaving in context):

   ...
   div id=outline-container-1_4_10 class=outline-5
   h5 id=sec-1_4_10_@lt;span class=targetConfusion/span _/h5
   div class=outline-text-5 id=text-1_4_10
   ...

 Rendered in emacs-w3m and Firefox like this:

   _@span class=targetConfusion _

 Thanks.

 --
 The Kafka Pandemic:
 http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
 I support the Whittemore-Peterson Institute (WPI)
 ===
 I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV
 paper.

 ___
 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



-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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] customising org-latex-to-pdf-process for bibtex

2011-02-25 Thread Suvayu Ali
Hi Tom,

On Fri, 25 Feb 2011 16:39:35 -1000
Thomas S. Dye t...@tsdye.com wrote:

 Aloha Suvayu,
 
 it sounds like you have a different problem than the one I  
 experienced.  Your error message seems to indicate the the .aux file  
 is present, but that it points to a missing .bbl file.
 

I am not very familiar with pdflatex/bibtex. I don't know when bibtex
looks for that particular file.

 I noticed that the output you sent has different
 paths: /home/jallad/ vs. /home/user/
 Not sure if that is an issue or not, but it might explain why
 the .aux file would point to an absent file.
 

Sorry that was a typo on my part. They are the same. Is there anything
else I could try to better understand what is going wrong?

 All the best,
 Tom

Thanks a lot.

-- 
Suvayu

Open source is the future. It sets us free.

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


[Orgmode] Re: HTML export options are being ignored

2011-02-25 Thread Jambunathan K
Cássio Koshikumo ckoshik...@gmail.com writes:

 Hi all,

 I think there's a bug with the html exporter. With this OPTIONS line:

 #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil

 I get rid of the numbering and the TOC, but still get the creator, the
 timestamp and the author lines at the end of the page. Exporting to ASCII seem
 to exclude them properly.

May be you need to fiddle with postamble related options ...

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


Re: [Orgmode] a question about fontification and org-emphasis-alist

2011-02-25 Thread Nick Dokos
Filippo A. Salustri salus...@ryerson.ca wrote:

 I did try to google a few things, but hide was never one of my keywords.
  Sigh.
 Google is great IFF you know what keywords to use.
 
 Thanks for the pointer.
 Cheers.
 Fil
 
 On 25 February 2011 18:11, Carsten Dominik carsten.domi...@gmail.comwrote:
 
 
  So I was wondering if anyone knew of a way to make the emphasis characters
  invisible.
  EG: /word/ would be rendered as word in italics, without the slashes.
 
 
  What have you done to find the answer?
 
  Google: org hide emphasis
 
  is already good enough!
 

This is with hindsight 20/20 but here is a method for finding such
things, using only emacs: C-h v org-TAB then switch to the
*Completions* buffer and search for ``emphasis''. The third hit is
org-hide-emphasis-markers - and you don't have to guess the hide
part...

Nick

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


Re: [Orgmode] a question about fontification and org-emphasis-alist

2011-02-25 Thread Filippo A. Salustri
yeah, right, make me feel even dumber
...wait, let me just wipe the egg off my face  :-)
Cheers.
Fil

On 25 February 2011 22:11, Nick Dokos nicholas.do...@hp.com wrote:

 Filippo A. Salustri salus...@ryerson.ca wrote:

  I did try to google a few things, but hide was never one of my
 keywords.
   Sigh.
  Google is great IFF you know what keywords to use.
 
  Thanks for the pointer.
  Cheers.
  Fil
 
  On 25 February 2011 18:11, Carsten Dominik carsten.domi...@gmail.com
 wrote:
 
  
   So I was wondering if anyone knew of a way to make the emphasis
 characters
   invisible.
   EG: /word/ would be rendered as word in italics, without the
 slashes.
  
  
   What have you done to find the answer?
  
   Google: org hide emphasis
  
   is already good enough!
  

 This is with hindsight 20/20 but here is a method for finding such
 things, using only emacs: C-h v org-TAB then switch to the
 *Completions* buffer and search for ``emphasis''. The third hit is
 org-hide-emphasis-markers - and you don't have to guess the hide
 part...

 Nick




-- 
Filippo A. Salustri, Ph.D., P.Eng.
Mechanical and Industrial Engineering
Ryerson University
350 Victoria St, Toronto, ON
M5B 2K3, Canada
Tel: 416/979-5000 ext 7749
Fax: 416/979-5265
Email: salus...@ryerson.ca
http://deseng.ryerson.ca/~fil/
___
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