[Orgmode] multicolumn figures in latex

2010-05-06 Thread Chris Gray
Hi,

I wanted to make a figure that spanned multiple lines in LaTeX.  The
way to do that is via the figure* environment.  Since org-mode didn't
seem to support that, I hacked it in.  The patch is attached.

Cheers,
Chris

commit 4cb1a153245189aa062db4545dad76bdf413a1e1
Author: Chris Gray 
Date:   Thu May 6 12:58:00 2010 +0200

Add support for multicolumn figures in LaTeX.

Modified lisp/ChangeLog
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7f1a507..74ee48d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-06  Chris Gray  
+
+   * org-latex.el (org-export-latex-format-image): Add support
+   for multicolumn figures in LaTeX.  
+
 2010-05-02  Dan Davison  
 
* org-src.el (org-edit-src-code): allow-write-back-p had
Modified lisp/org-latex.el
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 2051de1..22833b2 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1881,14 +1881,17 @@ The conversion is made depending of STRING-BEFORE and 
STRING-AFTER."
 
 (defun org-export-latex-format-image (path caption label attr)
   "Format the image element, depending on user settings."
-  (let (ind floatp wrapp placement figenv)
+  (let (ind floatp wrapp multicolumnp placement figenv)
 (setq floatp (or caption label))
 (setq ind (org-get-text-property-any 0 'original-indentation path))
 (when (and attr (stringp attr))
   (if (string-match "[ \t]*\\" attr)
  (setq wrapp t floatp nil attr (replace-match "" t t attr)))
   (if (string-match "[ \t]*\\" attr)
- (setq wrapp nil floatp t attr (replace-match "" t t attr
+ (setq wrapp nil floatp t attr (replace-match "" t t attr)))
+  (if (string-match "[ \t]*\\" attr)
+ (setq multicolumnp t attr (replace-match "" t t attr
+
 
 (setq placement
  (cond
@@ -1912,6 +1915,11 @@ The conversion is made depending of STRING-BEFORE and 
STRING-AFTER."
 \\includegraphics[%attr]{%path}
 \\caption{%labelcmd%caption}
 \\end{wrapfigure}")
+  (multicolumnp "\\begin{figure*}%placement
+\\centering
+\\includegraphics[%attr]{%path}
+\\caption{%labelcmd%caption}
+\\end{figure*}")
   (floatp "\\begin{figure}%placement
 \\centering
 \\includegraphics[%attr]{%path}




___
Emacs-orgmode 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: add priority

2010-05-06 Thread Leo
On 2010-05-05 16:43 +0100, henry atting wrote:
> How can I add a priority to the default priorities (not only per file)
> I would like to have a priority, let's say like 'T' which refers to
> something that I have to do only when inspiration comes (e.g. write a
> certain text).

You can set the range of chars you want to use by org-highest-priority
and org-lowest-priority.

>
>
> henry

Leo

-- 
CCL-USER> _



___
Emacs-orgmode 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] Iterate many tables

2010-05-06 Thread T Helms

Thanks for bringing this up, it would be a useful tool.

I get an error using the functions as well

org-recalculate-all-tables:
org-recalculate-all-tables: Wrong number of arguments: (lambda 
(function) "Apply FUNCTION to the start of all tables in the buffer." 
(save-excursion (save-restriction (widen) (goto-char (point-min)) (while 
(re-search-forward org-table-any-line-regexp nil t) (message "Mapping 
tables: %d%%" (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) 
(when (looking-at org-table-line-regexp) (save-excursion (funcall 
function)) (or (looking-at org-table-line-regexp) (forward-char 1))) 
(re-search-forward org-table-any-border-regexp nil 1 (message 
"Mapping tables: done")), 2


org-iterate-all-tables:
while: Wrong number of arguments: (lambda (function) "Apply FUNCTION to 
the start of all tables in the buffer." (save-excursion 
(save-restriction (widen) (goto-char (point-min)) (while 
(re-search-forward org-table-any-line-regexp nil t) (message "Mapping 
tables: %d%%" (/ (* 100.0 (point)) (buffer-size))) (beginning-of-line 1) 
(when (looking-at org-table-line-regexp) (save-excursion (funcall 
function)) (or (looking-at org-table-line-regexp) (forward-char 1))) 
(re-search-forward org-table-any-border-regexp nil 1 (message 
"Mapping tables: done")), 2



On 05/05/2010 03:37 PM, Johan Ekh wrote:



Any idea what could be wrong?



Error meassage:

org-recalculate-all-tables: Wrong number of arguments: #[(function) 
"S(OE~^eb^ÄÅÆ#f:



Best regards,
Johan






On Fri, Apr 30, 2010 at 5:03 PM, Carsten Dominik 
mailto:carsten.domi...@gmail.com>> wrote:



On Apr 30, 2010, at 4:07 PM, Johan Ekh wrote:

Hi all,
I have a series of tables in a single file. Each table have
some fields that depends on fields
in the previous table. Thus, if I change something in the
first table, I must go down manually
and recalculate (or iterate) each table. Is there a way to
recalculate all tables in a file simultaneously?



Hi Johan,

This should work if the dependence is only backwards.

(defun org-recalculate-all-tables ()
  (interactive)
  (org-table-map-tables (lambda () (org-table-recalculate t)) t))

If you have dependencies in both directions, this might work
(untested):

(defun org-iterate-all-tables ()
 (interactive)
 (let* ((imax 10)
(checksum (md5 (buffer-string)))
c1
(i imax))
   (catch 'exit
 (while (> i 0)
   (setq i (1- i))
   (org-table-map-tables (lambda () (org-table-recalculate t)) t)
   (if (equal checksum (setq c1 (md5 (buffer-string
   (progn
 (message "Convergence after %d iterations" (- imax i))
 (throw 'exit t))
 (setq checksum c1)))
 (error "No convergence after %d iterations" imax

If it does, this could be added to org-hacks on Worg.

HTH

- 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
   
___
Emacs-orgmode 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] Future of Org-babel?

2010-05-06 Thread Xiao-Yong Jin
On Wed, 5 May 2010 17:35:18 -0500, Nathan Neff wrote:

> Guys,
> Is there a project/TODO/Wish list for Org-babel?

> I'd like to give a presentation on Org-babel at the Strange Loop
> conference in St. Louis
> in October.

> http://strangeloop2010.com/

> The Strange Loop conference attracted a lot of very smart people that
> I think would
> be interested in contributing to Org-babel, particularly because it's
> a young project.

> There's plenty more languages that Org-babel could support, so that's
> one area that
> I could mention needs help.

> But, I'd like to point out some of the advanced/aim-for-the-sky ideas
> that you guys have
> for Org-babel -- that would really spark some interest in the crowd.

> What would you say are the most aggressive / cool features that you're
> considering for Org-babel?

I am thinking of something similar to the 'notebook'
interface in Mathematica.  We can present data, code and
analysis results in a consistent and structured way, thanks
to org-mode.  And in addition, we can use all kinds of
different languages that org-babel supports, automatically
generates tables and graphs on the fly as we execute
different code blocks.  This requires a clean and easy way
to propagating information through different languages in
org-babel.  In this sense, org-babel can be an advanced
interface of comint-mode, or even replace it.  Imagine
running several different inferior interpreters, like shell,
python, haskell, gnuplot, (i)maxima, octave and etc, but
variables can be shared between these processes, and all the
code and extra texts are stored in one org-mode file, which
is also the only file you have to work on.

This is my dream about org-babel.  Hope it comes true,
someday.

> Thanks,
> --Nate

Thanks,
Xiao-Yong

-- 
Jc/*__o/*
X<\ * (__
Y*/\  <


___
Emacs-orgmode 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] Persistent filters in Org mode

2010-05-06 Thread Thomas Morgan
Hello, Org mode hackers,

This patch defines a variable `org-agenda-persistent-filters'.
When it is set, filters persist from one agenda view to the next.

I've found this convenient when using tags for contexts like @home,
@net, etc., some of which commonly remain applicable for a while.

Thanks,
Thomas

>From 052ef9205845c78cb24d6fea8f89484bbe12a528 Mon Sep 17 00:00:00 2001
From: Thomas Morgan 
Date: Fri, 23 Apr 2010 11:48:03 +0200
Subject: [PATCH] New option `org-agenda-persistent-filters'.
 When set, keep filters from one agenda view to the next.

---
 lisp/org-agenda.el |   10 --
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 93ef921..c8fd731 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -197,6 +197,11 @@ you can \"misuse\" it to also add other text to the 
header.  However,
   :group 'org-export-html
   :type 'string)
 
+(defcustom org-agenda-persistent-filters nil
+  "When set, keep filters from one agenda view to the next."
+  :group 'org-agenda
+  :type 'boolean)
+
 (defgroup org-agenda-custom-commands nil
  "Options concerning agenda views in Org-mode."
  :tag "Org Agenda Custom Commands"
@@ -2713,7 +2718,8 @@ bind it in the options section.")
   (setq org-todo-keywords-for-agenda nil)
   (setq org-done-keywords-for-agenda nil)
   (setq org-drawers-for-agenda nil)
-  (setq org-agenda-filter nil)
+  (unless org-agenda-persistent-filters
+(setq org-agenda-filter nil))
   (put 'org-agenda-filter :preset-filter org-agenda-filter-preset)
   (if org-agenda-multi
   (progn
@@ -2788,7 +2794,7 @@ bind it in the options section.")
  (org-habit-insert-consistency-graphs))
   (run-hooks 'org-finalize-agenda-hook)
   (setq org-agenda-type (org-get-at-bol 'org-agenda-type))
-  (when (get 'org-agenda-filter :preset-filter)
+  (when (or org-agenda-filter (get 'org-agenda-filter :preset-filter))
(org-agenda-filter-apply org-agenda-filter))
   )))
 
-- 
1.6.3.3



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


Re: [Orgmode] Re: org-mode color schemes with white or light background and black foregroung

2010-05-06 Thread Bastien
"Eric Schulte"  writes:

> Maybe this would make a good Worg page, a collection of org-mode
> screenshots along with the required color-theme.el file?

I started something like this long ago:

  http://lumiere.ens.fr/~guerry/org-color-themes.php

But the right place is in Worg, maybe as a section in the
org-screenshots.org page.

  http://orgmode.org/worg/org-screenshots.php

> If we get such a page going, I'd be happy to add my own dark color
> theme.

Please edit Worg or send me your screenshots/color-themes and I'll put
this online.

Thanks!

-- 
 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: Frequently used files/headings

2010-05-06 Thread Nathan Neff
On Thu, Apr 29, 2010 at 10:47 AM, Nathan Neff  wrote:
> Currently, I'm using org-id-get-create to generate a unique ID
> for headings that I frequently go to in org-mode.
>
> * Foo
> :PROPERTIES:
> :ID: F3B14102-A66D-408C-8833-1F9CF7E5047C
> :END:
>
> Then, I copy the newly created ID to the kill-ring,
> and paste it into a block like this:
>
> (global-set-key (kbd " f") (lambda () "Goto Foo Org File"
>    (interactive)
>    (org-id-goto "F3B14102-A66D-408C-8833-1F9CF7E5047C")))
>
> This will map F6-f to jump to Foo.
>
> I know that there are many ways to navigate org-files, but using the
> ID is great because it requires only two keystrokes.
>
> This works pretty good, except I'd like to improve three things:
>
> 1)  I'd like to be able to see a menu of where I've mapped my shortcuts
> 2)  I'd like to simplify the creation of these IDs and shortcut keys.
> 3)  I have about 10 quick-keys now, so I have 30 lines of very similar code
>
> I'm sensing an org-babel type approach where I could define an org-mode
> table like this:
>
> | Name | Key       | ID |
> | Foo    | " f"  | 123456779 |
>
> Then, I could loop through the table, and for each row, I could
> run this code:
>
> (global-set-key (kbd ) (lambda () 
>    (interactive)
>    (org-id-goto )))
>

I've made some progress on this, and I've defined a table like this:

#+tblname:navigation-shortcuts
| Foo Org File|| 733BD03F-0938-432F-B59A-BE235A2DE7E2 |
| Bar Org File||  123456 |

I would like to map a function that iterates over the items in the
table, and maps
the keyboard string in column 2 to the ID in column 3.

I tried something like this, but all I get is "Wrong type argument:
integer-or-marker-p, (quote (second shortcut-def))"

#+srcname: map-nav(navigation-shortcuts=navigation-shortcuts)
#+begin_src emacs-lisp
 (defun map-navigation-shortcuts (shortcut-def)
(global-set-key (kbd (second shortcut-def)) (lambda () "Goto Foo Org File"
(interactive)
(org-id-goto '(third shortcut-def)

(mapcar #'map-navigation-shortcuts navigation-shortcuts)

#+end_src

Can anyone point out where I'm going wrong?

Thanks,
--Nate


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


Re: [Orgmode] Removing one filter of several

2010-05-06 Thread Carsten Dominik


On May 1, 2010, at 9:29 PM, Thomas Morgan wrote:


Hello, Org mode hackers,

Having added several filters to an agenda view,
is there a way to remove just one of them?



No.

- Carsten



Thanks,
Thomas



___
Emacs-orgmode 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] pdflayout.sty missing in orgmode distribution?

2010-05-06 Thread Bruce Hackett
I update my orgmode installation by downloading the latest tarball org.tar.gz 
from time to time. For the last couple of months I have been having a problem 
with the makefile asking me for the file pdflayout.sty. The make process gets 
stuck at this point. It appears to me that this file should be in the doc/ 
subdirectory of the tarball, but it isn't there (or anywhere else) in any of 
the recent distributions. An oversight? 

I checked the Digest archive and couldn't find any threads dealing with this. 

Best regards, 
Bruce 

___
Emacs-orgmode 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-check-for-hidden breaks promote/demote in region

2010-05-06 Thread Matt Lundin
Hi Carsten,

I find that commit 11baa7cf77245cc2a5f44dd55e034157896ad08d (which
changes the behavior of M-left and M-right) makes it impossible to
promote and demote headlines in a region.[1]

In the past, if I marked a region of folded headlines and used M-left or
M-right, org-mode would promote/demote all the headlines in the region.
Now, it simply throws the following error:

"Hidden subtree, open with TAB or use subtree command
M-S-/" 

The problem: When the region is active, M-S-/ (as in the
past) only moves a single subtree, so AFAICT there is currently no way
to promote/demote all headings in a region.

While I appreciate the new safeguard for single outline headings, IMO
the check is irrelevant when attempting to act on headlines in a region,
since (1) the user chooses to move an entire region and (2) the hidden
headlines are normally included in the region.

Here's a patch that skips the check if the region is active:

--8<---cut here---start->8---
diff --git a/lisp/org.el b/lisp/org.el
index 0385383..463a0eb 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16146,20 +16146,19 @@ this fucntion returns t, nil otherwise."
beg end)
 (save-excursion
   (catch 'exit
-   (if (org-region-active-p)
-   (setq beg (region-beginning) end (region-end))
+   (unless (org-region-active-p)
  (setq beg (point-at-bol))
  (beginning-of-line 2)
  (while (and (not (eobp)) ;; this is like `next-line'
  (get-char-property (1- (point)) 'invisible))
(beginning-of-line 2))
- (setq end (point)))
-   (goto-char beg)
-   (goto-char (point-at-eol))
-   (setq end (max end (point)))
-   (while (re-search-forward re end t)
- (if (get-char-property (match-beginning 0) 'invisible)
- (throw 'exit t)))
+ (setq end (point))
+ (goto-char beg)
+ (goto-char (point-at-eol))
+ (setq end (max end (point)))
+ (while (re-search-forward re end t)
+   (if (get-char-property (match-beginning 0) 'invisible)
+   (throw 'exit t
nil
 
 (defun org-metaup (&optional arg)
--8<---cut here---end--->8---

Thanks,
Matt

Footnotes:

[1] The change was discussed in this thread: 
http://mid.gmane.org/l2me4f0b2511004191529s16b84452kb4feea51f0635...@mail.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] [babel] Future of Org-babel?

2010-05-06 Thread Eric Schulte
Thanks for the idea!

Xiao-Yong Jin  writes:

[...]

> I am thinking of something similar to the 'notebook'
> interface in Mathematica.  We can present data, code and
> analysis results in a consistent and structured way, thanks
> to org-mode.

Yes, this is a great idea.  This has been voiced before in reference to
Sage[1] a python mathematical "notebook" which allows for interactive
editing.  I think of it as the interactive alternative to static code
blocks in Org-mode files, sort of a REPL for Org-babel.  I'm not sure
what the actual interface would look like or feel like, and I'd love to
hear suggestions.

> And in addition, we can use all kinds of different languages that
> org-babel supports, automatically generates tables and graphs on the
> fly as we execute different code blocks.  This requires a clean and
> easy way to propagating information through different languages in
> org-babel.

Org-babel does have a means for moving information and variables between
different languages (with emacs-lisp as the lowest common denominator).
I agree this would be exciting.

My pie-in-the-sky extension of this dream would be to have Org-babel
firmly ground in some virtual machine (maybe Guile's if Emacs is ported
to Guile), in such a way that the byte-code of the VM becomes the lowest
common denominator of all Org-babel languages.  This would allow for
seamless integration of languages which compile to run on the VM, and
for all other languages this would provide a great speed/efficiency
boost over Emacs Lisp.  I should disclaim that without having given this
much serious though I could be missing some critical road blocks.

Cheers -- Eric

> In this sense, org-babel can be an advanced interface of comint-mode,
> or even replace it.  Imagine running several different inferior
> interpreters, like shell, python, haskell, gnuplot, (i)maxima, octave
> and etc, but variables can be shared between these processes, and all
> the code and extra texts are stored in one org-mode file, which is
> also the only file you have to work on.
>
> This is my dream about org-babel.  Hope it comes true,
> someday.
>
>> Thanks,
>> --Nate
>
> Thanks,
> Xiao-Yong

Footnotes: 
[1]  http://www.sagemath.org/



___
Emacs-orgmode 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] Future of Org-babel?

2010-05-06 Thread Erik Iverson



My pie-in-the-sky extension of this dream would be to have Org-babel
firmly ground in some virtual machine (maybe Guile's if Emacs is ported
to Guile), in such a way that the byte-code of the VM becomes the lowest
common denominator of all Org-babel languages.  This would allow for
seamless integration of languages which compile to run on the VM, and
for all other languages this would provide a great speed/efficiency
boost over Emacs Lisp.  I should disclaim that without having given this
much serious though I could be missing some critical road blocks.


Regardless, the technology will have to be called ".ORG". :)


___
Emacs-orgmode 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] pdflayout.sty missing in orgmode distribution?

2010-05-06 Thread Carsten Dominik


On May 6, 2010, at 10:30 AM, Bruce Hackett wrote:

I update my orgmode installation by downloading the latest tarball  
org.tar.gz from time to time. For the last couple of months I have  
been having a problem with the makefile asking me for the file  
pdflayout.sty. The make process gets stuck at this point. It appears  
to me that this file should be in the doc/ subdirectory of the  
tarball, but it isn't there (or anywhere else) in any of the recent  
distributions. An oversight?


Yes, this is an oversight.  Most people seem to use the git clone, where
this file is included.  I have modified the Makefile, so the file will  
be distributed with the next distribution again.  In the mean time,  
get it here


http://repo.or.cz/w/org-mode.git/blob_plain/HEAD:/doc/pdflayout.sty

- Carsten



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


Re: [Orgmode] [babel] Future of Org-babel?

2010-05-06 Thread Eric Schulte
Hi Nathan,

Nathan Neff  writes:

> Guys,
>
> Is there a project/TODO/Wish list for Org-babel?
>

Yes, see the babel development page [1] where we keep all pending TODOs
and BUGs for Org-babel.  It may be easier to view the underlying
Org-mode file -- development.org our development repository [2].

>
> I'd like to give a presentation on Org-babel at the Strange Loop
> conference in St. Louis
> in October.
>
> http://strangeloop2010.com/
>
> The Strange Loop conference attracted a lot of very smart people that
> I think would be interested in contributing to Org-babel, particularly
> because it's a young project.
>

That's great, the more the merrier.

>
> There's plenty more languages that Org-babel could support, so that's
> one area that I could mention needs help.
>

Certainly true.

>
> But, I'd like to point out some of the advanced/aim-for-the-sky ideas
> that you guys have for Org-babel -- that would really spark some
> interest in the crowd.
>
> What would you say are the most aggressive / cool features that you're
> considering for Org-babel?
>

The first things that come to mind would be allowing for processing of
Org-babel files from outside of Emacs.  It would be nice to provide
external commands which would allow for the tangling and/or execution of
code from Org-babel files.  I think this could ease the collaboration of
babel and non-babel users.  This has recently come up in relation to
Org-mode export in the form of external tools which approximate Org-mode
export allowing these processes to take place without 'Emacs --batch'
commands.  It would be a big task, but maybe Org-mode and Org-babel
could think about externalizing some of their exportation tasks.

This would be helped by the possible (hopeful) conversion of Emacs to
run on the Guile VM in the next year or two [3].

I'd love to hear more ideas from Org-babel users on this list, as you've
proven to be the most adept at driving Org-babel development.

Thanks for bringing this up -- Eric

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

Footnotes: 
[1]  http://eschulte.github.com/babel-dev/

[2]  http://github.com/eschulte/babel-dev

[3]  http://thread.gmane.org/gmane.emacs.devel/123666



___
Emacs-orgmode 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] Wow -- adding images to an org file

2010-05-06 Thread Nathan Neff
I just saw Andreas's screenshot here:

http://orgmode.org/worg/org-screenshots.php

If you zoom in to his screenshot,
http://orgmode.org/img/screenshots/org_andreas.jpg

You can see how he adds images to his org files.
All that I had to do was put this into my emacs init file:

(defun org-dblock-write:image (params)
  (let ((file (plist-get params :file)))
 (clear-image-cache file)
 (insert-image (create-image file) )))

Then, put this in an org-file:

#+BEGIN: image :file "~/Documents/personal/foo.png"
#+END

And run C-c C-c (or is it C-c C-x C-u)?

Anyway, Cool stuff!

--Nate


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


[Orgmode] Re: Wow -- adding images to an org file

2010-05-06 Thread Chris Thompson
Nathan Neff  gmail.com> writes:

> 
> I just saw Andreas's screenshot here:
> 
> http://orgmode.org/worg/org-screenshots.php
> 
> If you zoom in to his screenshot,
> http://orgmode.org/img/screenshots/org_andreas.jpg
> 
> You can see how he adds images to his org files.
> All that I had to do was put this into my emacs init file:
> 
> (defun org-dblock-write:image (params)
>   (let ((file (plist-get params :file)))
>  (clear-image-cache file)
>  (insert-image (create-image file) )))
> 
> Then, put this in an org-file:
> 
> #+BEGIN: image :file "~/Documents/personal/foo.png"
> #+END
> 
> And run C-c C-c (or is it C-c C-x C-u)?
> 
> Anyway, Cool stuff!
> 
> --Nate
> 


Another way to have images in org-mode documents is to use the "iimage"
minor mode, which handles  inline images:
http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html

For additional documentation:
http://orgmode.org/worg/org-configs/org-config-examples.php#sec-2_2

It's pretty nifty.

-- Chris






___
Emacs-orgmode 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-show-following-heading shows even when nil

2010-05-06 Thread Samuel Wales
When I go to a location from the agenda, the next headline
is revealed if it was hidden, even if it is a child.

Setting org-show-following-heading to nil or leaving it at
its default value does not prevent this.  Should it?  The
documentation seems to suggest that it should.  What I want
is for hidden children to remain hidden.

Rationale: I like the buffer to be in a form that can be
obtained by navigation and cycling.  For lack of a better
term, I call that "canonical visibility".

Thanks.

Samuel

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly disease for 25 years]
==
Retrovirus: http://www.wpinstitute.org/xmrv/index.html


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