Re: [Orgmode] Eliminate line breaks in html

2010-07-28 Thread Giovanni Ridolfi
John Hendy  writes:

> Hi,
> I use org for exporting to html and then pasting into blogger... but
> every time I do I need to delete line breaks. 
> Is there a way to get org to just publish the blob without breaking
> lines every time? 

#+OPTIONS:   \n:nil

?

cheers,
Giovanni

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


[Orgmode] Re: [BABEL] org-babel-post-tangle-hook problems

2010-07-28 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/07/10 15:32, Rainer M Krug wrote:
> Hi Eric
> 
> I relized the following problems today:
> 
> After setting the org-babel-post-tangle-hook (e.g.
> (add-hook 'org-babel-post-tangle-hook
> (lambda () (message "I'm in %s" (buffer-file-name)) ))
> )
> 
> the .org file closes, and the .R file is opened.
> If I tangle a second time, emacs tells me that the .R file has changed
> on disk, and if it should be re-read.
> I don't know what happened, but it would be nice to have the working
> behavior back.
> 
> I haven't used org for a few days, so I don't know when it happened.


One addition: it works with org-7.01g, but not any more with
Org-mode version 7.01trans (release_7.01g.31.g95212)

Example org file:

#
** tangle R and load
  #:PROPERTIES:
  #:tangle:   to-load.r
  #:END:

evaluate this
#+begin_src emacs-lisp :results silent :tangle no
(add-hook 'org-babel-post-tangle-hook
(lambda () (ess-load-file (buffer-file-name
#+end_src

then tangle

#+begin_src R :comments yes
x <- 8
#+end_src
t
#+begin_src R
 y <- 9
#+end_src

#+begin_src R :tangle file2.R
 y <- 9
#+end_src
#

Cheers,

Rainer


> 
> Cheers,
> 
> Rainer
> 

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxP2cUACgkQoYgNqgF2egqCtQCfUmO1nDdTlyHNyxpFtr5xpvQI
g7MAn1duHEB9ezE2v1/39dR/ovambwOR
=uK2G
-END PGP SIGNATURE-

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


Re: [Orgmode] row and col spaning in table?

2010-07-28 Thread Giovanni Ridolfi
David Hajage  writes:

> and I was wondering if row and col spaning was possible?
Currently not. 
But, if this is your case, you should use the table.el package.

> If not, is there any plan to add this feature in a future release? 
I don't think so. There's already the table.el package.
 Please see the manual (emphasis is mine) 

(Packages that Org cooperates with):

`table.el' by Takaaki Ota
 Complex ASCII tables with automatic line wrapping, column- and
 row-spanning, and alignment can be created using the Emacs table
 package by Takaaki Ota (`http://sourceforge.net/projects/table',
 and also part of Emacs 22).  

 *Org-mode will recognize these tables and export them properly.*

 Because of interference with other
 Org-mode functionality, you unfortunately cannot edit these tables
 directly in the buffer.  Instead, you need to use the command `C-c
 '' to edit them, similar to source code snippets.

`C-c ''
  Edit a `table.el' table.  Works when the cursor is in a
  table.el table.

`C-c ~'
  Insert a `table.el' table.  If there is already a table at
  point, this command converts it between the `table.el' format
  and the Org-mode format.  See the documentation string of the
  command `org-convert-table' for the restrictions under which
  this is possible.  `table.el' is part of Emacs since Emacs 22.

cheers,
Giovanni


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


[Orgmode] insert .org file into other .org file by link

2010-07-28 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

I have a .org file (lets call it basic.org), which creates me a report
from a simulation (of a variable x, saved from R) - it works fine for
export to html and pdf.

Now I want to create a report (all.org), which should include the report
from basic.org 10 times, but basic.report should be created from
different simulations (X1, X2, X3, ..., X10).

How can I acieve this, without having to copy - paste the .org file in
10 times? I would like to have a kind of dynamic lining, so that I can

a) specify the name of the variable to be analysed
b) the all.org is using basic.org to create the "all" report, so that
when I change basic.org, the report based on all.org is also changed.

I am sure, that there is a way of achieving this,

Cheers,

Rainer

- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxP8IMACgkQoYgNqgF2egquLQCeJyQvGtng1NQmUsJitlc1ECZ/
SNcAn0gtIBJyE512zLkdn1No0i2rPDNW
=UtIZ
-END PGP SIGNATURE-

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


Re: [Orgmode] Eliminate line breaks in html

2010-07-28 Thread Tim Burt
John Hendy  writes:

> I use org for exporting to html and then pasting into blogger
I use this process also for Blogger
> ... but every time I do I need to delete line breaks.
... but I do not need to delete line breaks.  See
http://naturallogofx.rketburt.org/2010/07/linebreaks-blogger-and-org-mode.html
for an article that describes what I do.  The fix for me was in the
Blogger settings, not anything in emacs.

> Is there a way to get org to just publish the blob without breaking
> lines every time?
I do not know how to prevent line breaks in the export, but nor have I
needed to do that.

> I'm guessing it has to do with my minor fill mode as the line breaks
> tend to be the same as they are in org.

>
> In typical export, everything is surrounded by  tags but in blogger on
> doesn't have these and thus line breaks are line breaks. 
The article reference above indicates how to stop Blogger from
presenting an input linebreak (e.g. newline character) as an output
linebreak.  

> I could resort to explicit html every time I post (requiring 
> for every line break) but this would also require fixing all
> pre-existing posts which is pretty much not an option.
>
> Any idea what I could do?
Let me know if the article reference does not help solve the issue.

Tim


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

___
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: Installation - no way

2010-07-28 Thread Jason McBrayer
On Tue, Jul 27, 2010 at 4:58 PM, Andrea Crotti
 wrote:
> Have a look also here
> http://www.ourcomments.org/Emacs/EmacsW32Util.html
> It looks a bit old and I'm not sure it contains org-mode but it should
> be a bit easier for beginners.

I'd also recommend this for Emacs beginners on Windows. EmacsW32 does
have org-mode, just a little out of date.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

___
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] Eliminate line breaks in html

2010-07-28 Thread John Hendy
@ Giovanni: the manual says \n:nil does not work. I played around with it
anyway but was unsuccessful. Bummer as it seemed like it would have been
perfect...

@ TIm, I am aware of this option and it's what I was referencing in the
original note with:

> I could resort to explicit html every time I post (requiring 
> for every line break) but this would also require fixing all
> pre-existing posts which is pretty much not an option.

But what about my point that currently all my posts do not use this? When I
experimented with this option yesterday it turned old posts into huge run-on
paragraphs with no structure, hence I don't really think it's an option
unless I re-edit every post. Going forward, it'd be easier to somehow get
rid of line breaks... though maybe I should just write my own template or
something. I don't really use  in my posts anyway but prefer the single
line space created by just on .

I dunno -- any thoughts? Should I re-do like 30 posts for this? Is there any
other way?


Thanks for the help, all.
John

On Wed, Jul 28, 2010 at 5:30 AM, Tim Burt  wrote:

> John Hendy  writes:
>
> > I use org for exporting to html and then pasting into blogger
> I use this process also for Blogger
> > ... but every time I do I need to delete line breaks.
> ... but I do not need to delete line breaks.  See
>
> http://naturallogofx.rketburt.org/2010/07/linebreaks-blogger-and-org-mode.html
> for an article that describes what I do.  The fix for me was in the
> Blogger settings, not anything in emacs.
>
> > Is there a way to get org to just publish the blob without breaking
> > lines every time?
> I do not know how to prevent line breaks in the export, but nor have I
> needed to do that.
>
> > I'm guessing it has to do with my minor fill mode as the line breaks
> > tend to be the same as they are in org.
>
> >
> > In typical export, everything is surrounded by  tags but in blogger
> on
> > doesn't have these and thus line breaks are line breaks.
> The article reference above indicates how to stop Blogger from
> presenting an input linebreak (e.g. newline character) as an output
> linebreak.
>
> > I could resort to explicit html every time I post (requiring 
> > for every line break) but this would also require fixing all
> > pre-existing posts which is pretty much not an option.
> >
> > Any idea what I could do?
> Let me know if the article reference does not help solve the issue.
>
> Tim
>
>
> >
> >
> > 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
>
___
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 org-mode-export-as-latex

2010-07-28 Thread Neil Hepburn


The latest version (7.01g) seems to have a bug when exporting to PDF (and 
LaTeX) with tables with labels.  The export does not label the table in 
the LaTeX file although it is labeled in the .org file.  The following 
code in an org-mode file


#+CAPTION: A Simple Table
#+LABEL:  tbl:ATbl
|--+--|
| column 1 | column 2 |
|--+--|
| thing| one  |
| thing| two  |
|--+--|

leads to this in the LaTeX file

\begin{table}[htb]
\caption{A Simple Table}
\begin{center}
\begin{tabular}{ll}
\hline
 column 1  &  column 2  \\
\hline
 thing &  one   \\
 thing &  two   \\
\hline
\end{tabular}
\end{center}
\end{table}

Note the missing \label{} command in the LaTeX version. I rolled back to 
version 6.34c and everything works.


Cheers,
Neil


==
Neil Hepburn, Economics Lecturer
Department of Social Sciences, Augustana Faculty
the University of Alberta
Camrose, Alberta

Phone: 780.679.1588
email: nhepb...@ualberta.ca

___
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] org-babel-post-tangle-hook problems

2010-07-28 Thread Eric Schulte
Hi Rainer,

Thanks for catching this, I've just pushed up a fix.

Best -- Eric

Rainer M Krug  writes:

> On 27/07/10 15:32, Rainer M Krug wrote:
>> Hi Eric
>> 
>> I relized the following problems today:
>> 
>> After setting the org-babel-post-tangle-hook (e.g.
>> (add-hook 'org-babel-post-tangle-hook
>> (lambda () (message "I'm in %s" (buffer-file-name)) ))
>> )
>> 
>> the .org file closes, and the .R file is opened.
>> If I tangle a second time, emacs tells me that the .R file has changed
>> on disk, and if it should be re-read.
>> I don't know what happened, but it would be nice to have the working
>> behavior back.
>> 
>> I haven't used org for a few days, so I don't know when it happened.
>
>
> One addition: it works with org-7.01g, but not any more with
> Org-mode version 7.01trans (release_7.01g.31.g95212)
>
> Example org file:
>
> #
> ** tangle R and load
>   #:PROPERTIES:
>   #:tangle:   to-load.r
>   #:END:
>
> evaluate this
> #+begin_src emacs-lisp :results silent :tangle no
> (add-hook 'org-babel-post-tangle-hook
> (lambda () (ess-load-file (buffer-file-name
> #+end_src
>
> then tangle
>
> #+begin_src R :comments yes
> x <- 8
> #+end_src
> t
> #+begin_src R
>  y <- 9
> #+end_src
>
> #+begin_src R :tangle file2.R
>  y <- 9
> #+end_src
> #
>
> Cheers,
>
> Rainer
>
>
>> 
>> Cheers,
>> 
>> 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: [BABEL] evaluation of R code in export

2010-07-28 Thread Eric Schulte
Rainer M Krug  writes:

> Hi Eric,
>
> On 23/07/2010 19:45, Eric Schulte wrote:
>> Hi Rainer,
>> 
>> I general it is useful to have the results of Babel-evaluated code
>> appear in the session history as it can help for debugging.
>
> Ok - agreed. The results are quite useful - but I would prefer the
> history of the commands in the R session which is accessible by C-up to
> not include the commands issued - but I can live with it as it is now.
>

Hi Rainer,

I have found no good answer for sending commands to an inferior process
w/o adding them to the history ring.  There is one possible way forward,
the investigation of which is now on the task stack for babel
development but probably won't happen in the near future.

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] R Babel Example

2010-07-28 Thread Eric Schulte
Hi Russell,

This is really great!  Would you mind if we made this slightly more
"official" and linked to it from the Babel documentation on Worg?

Cheers -- Eric

Russell Adams  writes:

> I just did a sample of R with Babel in dual formats, png for viewing
> inline and PDF for latex importing of smooth graphics.
>
> Nothing official, but open to all. I borrowed a free sample graph with
> credit to the original URL, thanks Paul Murrel!
>
> http://adamsinfoserv.com/RExample/RBabelExample.org
> http://adamsinfoserv.com/RExample/RBabelExample_screenshot.png
> http://adamsinfoserv.com/RExample/RBabelExample.pdf
>
> I was trying to demonstrate why its so easy to write complex reports
> in Org, with viewing my R code results inline, and publishing to great
> PDF output.
>
> Enjoy.
>
>
> --
> Russell Adamsrlad...@adamsinfoserv.com
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

___
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: Composing letters using org-mode and scrlttr2

2010-07-28 Thread Eric Schulte
Hi Jambunathan,

This looks very useful, and the output of scrlttr2 looks great.  I think
two things can be done to make this more accessible to the wider
Org-mode community.

First it seems (as you mentioned) like the bulk of your changes can be
implemented without any change to the Org-mode core, but rather by using
existing hooks (e.g. removing newlines in `org-export-latex-final-hook'
and defining a scrlttr2 class in `org-export-latex-classes').

Second, a set of step-by-step instructions documenting how to generate a
letter from an Org-mode file using your patch would make this much more
approachable and would make a good addition to Worg.

I look forward to trying this out.

Thanks -- Eric

Jambunathan K  writes:

> With reference to my earlier post,
> (http://lists.gnu.org/archive/html/emacs-orgmode/2010-07/msg01060.html)
>
> I would like to add the following clarification.
>
>
>> #+LaTeX_CLASS_OPTIONS: 
>> [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu]
>
> All the styling and context-specific information comes from 'jambu' in
> the LaTeX_CLASS_OPTIONS line. In this case, jambu is 'an lco file'
> that in turn loads DIN.lco. (The later file comes with the standard
> distribution)
>
> The patch as such doesn't bother with the styling elements but merely
> transforms content from org to scrlttr2 form. To illustrate,
>
> * subject
>   Composing letters using org-mode and scrlttr2
>   
> section in org gets transformed in the final letter into the following
> TeX form.
>
> \setkomavar{subject} {
> \label{sec-2}
>   Sub:- Composing letters using org-mode and scrlttr2
>   
> }
>
> This is done as part of org-scrlttr2-sectioning defun in my earlier
> patch.
>
> Jambunathan K.
>
> ---> Input Org file <---
>
> #+TITLE: 
> #+AUTHOR:
> #+EMAIL:
> #+LANGUAGE:
> #+TEXT:
>
> #+LaTeX_CLASS_OPTIONS: 
> [a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]
>
> #+OPTIONS: toc:nil 
> #+LaTeX_CLASS: scrlttr2
>
> * letter
>   Org Mode User Group \\
>   World Wide Web
>   
> * subject
>   Sub:- Composing letters using org-mode and scrlttr2
>   
> * opening
>   Dear Org Mode Users
>
> * body
>   Lately, I have been composing formal letters using KOMA script's
>   sscrlttr2. I found it convenient to have them composed from within
>   org-mode. 
>   
>   I am enclosing the initial set of changes needed to compose some
>   simple letters as this one.
>   
>   The only change that is too 'intrusive' seems to be an extra newline
>   which gets added immediately after the emission of labels. These
>   extra newlines trigger syntax errors in the closing{} and encl{}
>   directives.
>   
>   I think rest of the changes could be squeeed in through existing
>   hooks.
>
> #+BEGIN_EXAMPLE
> -   (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> -  label-list "\n") "\n"))
> + (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> +label-list "\n")))
> #+END_EXAMPLE 
>   
>   If there is some general interest, I could work on making a formal
>   patch available.
>
> * closing
>   Yours Truly
>
> * encl
>   Patch from my work-area.
>
> ---> Output Tex file <---  
>
> % Created 2010-07-26 Mon 23:19
> \documentclass[a4paper,fromalign=right,pagenumber=headmiddle,parskip=full,fromphone=true,fromfax=false,fromrule=false,fromemail=true,subject=afteropening,backaddress=off,foldmarks=off,jambu]{scrlttr2}
> \usepackage[latin1]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage{fixltx2e}
> \usepackage{graphicx}
> \usepackage{longtable}
> \usepackage{float}
> \usepackage{wrapfig}
> \usepackage{soul}
> \usepackage{t1enc}
> \usepackage{textcomp}
> \usepackage{amssymb}
> \usepackage{hyperref}
> \tolerance=1000
> \usepackage{pdfpages}
> \providecommand{\alert}[1]{\textbf{#1}}
>
> \title{}
> \author{}
> \date{26 July 2010}
>
> \begin{document}
>
> \begin{letter} {
> \label{sec-1}
>   Org Mode User Group \\
>   World Wide Web
>   
> }
>
> \setkomavar{subject} {
> \label{sec-2}
>   Sub:- Composing letters using org-mode and scrlttr2
>   
> }
>
> \opening {
> \label{sec-3}
>   Dear Org Mode Users
> }
>
>
> \label{sec-4}
>   Lately, I have been composing formal letters using KOMA script's
>   sscrlttr2. I found it convenient to have them composed from within
>   org-mode. 
>   
>   I am enclosing the initial set of changes needed to compose some
>   simple letters as this one.
>   
>   The only change that is too `intrusive' seems to be an extra newline
>   which gets added immediately after the emission of labels. These
>   extra newlines trigger syntax errors in the closing\{\} and encl\{\}
>   directives.
>   
>   I think rest of the changes could be squeeed in through existing
>   hooks.
>
> \begin{verbatim}
> - (insert (mapconcat (lambda (l) (format "\\label{%s}" l))
> -label-list "\n") "\n"))
> +   (

Re: Prompts again WAS Re: [Orgmode] avoiding source block prompts

2010-07-28 Thread Eric Schulte
Thanks Chuck,

I've just swapped in your new and improved regexp.

I share your concern both that there could be cases where prompts aren't
matched, or more seriously where the actual output looks like a prompt
(e.g. user returns a prompt-like string).

Before taking this explicit prompt removal approach I tried
automatically removing comment lines from the input before passing it to
the inferior R process, however that ran into similar problems of users
potentially inputting valid strings which look like comments -- which
would be hard to catch without implementing a fairly sophisticated R
parser as part of Babel.

This new regexp looks like the best option for now.

Thanks! -- Eric

"Charles C. Berry"  writes:

> Eric,
>
> In ob-R.el, changing this
>
> (if (string-match "^\\([ >]+\\)\\[[0-9]+\\]" line)
>
> to this
>
> (if (string-match "^\\([ ]*[>+][ ]?\\)+\\([[0-9]+\\|[ ]\\)" line)
>
> seems to fix things (note I added plus sign which is the continuation
> prompt in R).
>
> I tried it on a bunch of varied source blocks and it seems to work OK,
> but I worry that there may be case where it will fail.
>
> Chuck
>
>
> On Tue, 27 Jul 2010, Charles C. Berry wrote:
>
>>
>> Eric,
>>
>> I spoke too soon.
>>
>> Have a look at the following. You'll see that the prompts show up there. :-(
>>
>> Chuck
>>
>> #+begin_src R :session :results output
>> ### create x
>> x <- data.frame(a=rnorm(2),b=rnorm(2))
>> ### now print the result
>> x
>> #+end_src
>>
>> #+results:
>> :
>> : > >a  b
>> :  1 0.2702748 -0.2938296
>> :  2 1.1095136  0.1769425
>>
>>
>>
>> On Tue, 27 Jul 2010, Charles C. Berry wrote:
>>
>>>  On Tue, 27 Jul 2010, Eric Schulte wrote:
>>>
>>> >   Hi Charles,
>>> > >   I just pushed up a fix for the extra prompts in your output.
>>> You will
>>> >   still have a blank line (the output from "x <- rnorm(1)"), however you
>>> >   can suppress that line by placing the "x <- rnorm(1)" command in a
>>> >   previous code block in the same session.
>>>
>>>  Eric,
>>>
>>>  Thanks. That works for me.
>>>
>>>  Chuck
>>>
>>> > >   Best -- Eric
>>> > >   "Charles C. Berry"  writes:
>>> > > >   I think this is a new feature or perhaps a bug, which I
>>> noticed when
>>> > >   upgrading to version 7.01.
>>> > > > >   The newline and the two prompts '> >' in the results
>>> block below did
>>> > >   not show up in the earlier versions I used.
>>> > > > >   If this is a 'feature', is there a clean way to change
>>> this behavior?
>>> > > > >   If this is a bug, is there a simple patch to fix it?
>>> > > > >   #+begin_src R :session :results output
>>> > >   ### create x
>>> > >   x <- rnorm(1)
>>> > >   ### now print the result
>>> > >   x
>>> > >   #+end_src
>>> > > > >   #+results:
>>> > >   :
>>> > > : > >   [1] 2.186783
>>> > > > > > >   What I would have liked is to have something that
>>> looks like this:
>>> > > > >   #+results:
>>> > > :   [1] 2.186783
>>> > > > >   Thanks,
>>> > > > >   Chuck
>>> > > > > > >   Charles C. Berry(858)
>>> 534-2098
>>> > >   Dept of
>>> Family/Preventive > >   Medicine
>>> > >   E mailto:cbe...@tajo.ucsd.edu UC San Diego
>>> > >   http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San
>>> Diego > >   92093-0901
>>> > > > > > > > >   ___
>>> > >   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
>>> > 
>>>
>>>  Charles C. Berry(858) 534-2098
>>> Dept of Family/Preventive
>>>  Medicine
>>>  E mailto:cbe...@tajo.ucsd.edu  UC San Diego
>>>  http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>>
>>>
>>>
>>>  ___
>>>  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
>>>
>>>
>>
>> Charles C. Berry(858) 534-2098
>>Dept of Family/Preventive
>> Medicine
>> E mailto:cbe...@tajo.ucsd.eduUC San Diego
>> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901
>>
>>
>>
>> ___
>> 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
>>
>
> Charles C. Berry(858) 534-2098
> Dept of Family/Preventive Medicine
> E mailto:cbe...@tajo.ucsd.edu UC San Diego
> http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

___
Emacs-orgmode mailing l

Re: [Orgmode] R Babel Example

2010-07-28 Thread Russell Adams
Eric,

I'd suggest moving it into Worg completely, that's why I made it
openly available.

I was hoping someone would snatch it up as a sample. ;]

Let me know when its moved and I'll take down my temporary copy.

Thanks.

On Wed, Jul 28, 2010 at 07:57:44AM -0600, Eric Schulte wrote:
> Hi Russell,
> 
> This is really great!  Would you mind if we made this slightly more
> "official" and linked to it from the Babel documentation on Worg?
> 
> Cheers -- Eric
> 
> Russell Adams  writes:
> 
> > I just did a sample of R with Babel in dual formats, png for viewing
> > inline and PDF for latex importing of smooth graphics.
> >
> > Nothing official, but open to all. I borrowed a free sample graph with
> > credit to the original URL, thanks Paul Murrel!
> >
> > http://adamsinfoserv.com/RExample/RBabelExample.org
> > http://adamsinfoserv.com/RExample/RBabelExample_screenshot.png
> > http://adamsinfoserv.com/RExample/RBabelExample.pdf
> >
> > I was trying to demonstrate why its so easy to write complex reports
> > in Org, with viewing my R code results inline, and publishing to great
> > PDF output.
> >
> > Enjoy.
> >
> >
> > --
> > Russell Adamsrlad...@adamsinfoserv.com
> >
> > PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
> >
> > Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
> >
> > ___
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 
> ___
> 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
> 


--
Russell Adamsrlad...@adamsinfoserv.com

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

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

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


[Orgmode] Re: firefox problem with org-protocol

2010-07-28 Thread Robert Goldman
For a very, very long time this has not worked on Mac OSX (this may relate to
the OS and Firefox disagreeing over who handles protocols).  Does anyone know if
this has finally been fixed?


___
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] Mobile-org crash --- same error?

2010-07-28 Thread Robert Goldman
I just got an error in doing this after an update:

 (void-function ps-header-footer-string)

I don't have any way of knowing if this is the same bug as yours.

This happens because org-write-agenda calls ps-print-buffer-with-faces on
"/Volumes/rpgoldman/org/agendas.org"

As far as I can tell, this should /not/ happen.  ps-print-buffer-with-faces is
only called by org-write-agenda when one of these two conditions matches:

(string-match "\\.ps\\'" file)

or

(string-match "\\.pdf\\'" file)

but file (as far as the emacs debugger can tell me) is bound to
"/Volumes/rpgoldman/org/agendas.org"

Any idea why this might be happening?


___
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 file rendering/manipulation too slow

2010-07-28 Thread Marcelo de Moraes Serpa
Hi list,

I've got a plenty of very big org files (~50KB). When it reaches
~30KB, org struggles to handle it -- it becomes very slow to navigate
through the file, the response time is far from smooth.

release_7.01g-20-gdd484 and GNU Emacs 23.2.1 (x86_64-apple-darwin, NS
apple-appkit-1038.29) of 2010-05-08 on black.local

OSX Snow Leopard, 10.6

Any ideas?

Marcelo.

___
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] Wiki-like creating links on the fly for org

2010-07-28 Thread Marcelo de Moraes Serpa
Would it be hard to create an extension (not sure where, elisp skills
still very limited) that highlights camel-cased words and, when
clicking on it, would create or open a file with the name of the word
+ .org?

For "dynamic" reference data (data you want to keep, and that you want
to keep editing and improving over time) the concept of a wiki (even
if its collaboration aspect is not being used) is perfect, in my
opinion. If you try wikidpad, you'll see how organic and pragmatic it
is, allowing you to just input new data and constructing an overview
tree dynamically. Pretty cool.

Whenever I have time, I will check the algorithm WikiDPad uses to
create the visualization tree (which is also one of its greates
features, in my opinion).

Cheers,

Marcelo.

On Mon, Jul 12, 2010 at 4:36 PM, Russell Adams
 wrote:
> Actually, the idea of CamelCase linking to a headline in the same file
> is an interesting idea, using RadioTarges for external links.
>
> ** MyTopic
>
> ** Another topic
>
> Those people who like MyTopic are totally cool.
>
> Naysayers live in file:~/doc/Woopie.org:NaySayers
>
>
>
> On Mon, Jul 12, 2010 at 01:09:00PM -0500, Marcelo de Moraes Serpa wrote:
>> This doesn't seem to apply to what I want. It only links to org items
>> inside the org file.
>>
>> Thanks for the hint, though!
>>
>> On Mon, Jul 12, 2010 at 12:57 PM, Erik Iverson  wrote:
>> > Perhaps I am confused, but have you tried radio targets?
>> >
>> > http://orgmode.org/org.html#Radio-targets
>> >
>> >
>> > Marcelo de Moraes Serpa wrote:
>> >>
>> >> Hey all!
>> >>
>> >> I used to be an avid user of WikiDPad, and I loved the way it
>> >> automatically (or manually, using [ ]) created links and files to
>> >> these links (CamelCase) for me. The way it provided a visual tree of
>> >> the wiki was also pretty cool.
>> >>
>> >> This was awesome for reference kind of data, to build your own
>> >> knowledge base. I've been trying to test different approaches with
>> >> org, but none of them work as smoothly as it worked for me when using
>> >> wikidpad.
>> >>
>> >> I divide reference data in two main categories: Dynamic and Static.
>> >> Static are the notes and stuff that youl want to keep somewhere and
>> >> that you'll eventually refer to later. Dynamic are the kind of that
>> >> you'll be editing often, but does not fit in any other category
>> >> GTD-wise. It is reference, you want to keep it somewhere, not take
>> >> action on it per se (other than editing it), but you want to expand
>> >> and modify it often.
>> >>
>> >> How difficult would it be to implement a small system that would index
>> >> the files of directory, get the names (camel-case) and automatically
>> >> link to these names if written on an org buffer? My elisp skills are
>> >> very weak as of now.
>> >>
>> >> I know some of you might list a number of points against implementing
>> >> this, but I really loved the way Wikdpad created links on the fly.
>> >>
>> >> Thanks,
>> >>
>> >> Marcelo
>> >>
>> >> ___
>> >> 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
>>
>
>
> --
> Russell Adams                            rlad...@adamsinfoserv.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

___
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] Migrating from zim to org-mode ?

2010-07-28 Thread Marcelo de Moraes Serpa
Beware that, out-of-the-box, org doesn't provide any wiki
functionality. Sure you can link documents, but it doesn't
automatically infer links from already existing documents / camelcased
words. I don't think it would be hard for a seasoned elisp developer
to come up with an extension, but little interested has been shown. I
will eventually do it when my elisp skills reach the required level,
though, for me it's the only thing missing.

Marcelo.

On Wed, Jul 28, 2010 at 1:00 AM, Olivier Berger
 wrote:
> Hi.
>
> Is there docs already compiled by someone having "migrated" from Zim, a
> desktop wiki [0], to Emacs + org-mode ?
>
> Zim also uses text files, so I guess a few conversion scripts wouldn't
> be so hard, but of course if someone already tried it, it would save me
> time and effort.
>
> Some useability / convenience comparison betw Zim and Org-Mode would be
> interesting to me too.
>
> Thanks in advance.
>
> Best regards,
>
> [0] http://zim-wiki.org/
> --
> Olivier BERGER 
> http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
> Ingénieur Recherche - Dept INF
> Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)
>
>
> ___
> 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] Wiki-like creating links on the fly for org

2010-07-28 Thread John Hendy
I migrated to orgmode from TiddlyWiki and understand the ease of simply
writing [[PageName]] during edits.

I don't think, however, that this is all that far from what org already
provides with links:

http://www.gnu.org/software/emacs/manual/html_node/org/Handling-links.html

I
just tried this out and while admittedly it's not as easy as writing
CamelCase, it's pretty straightforward:

- Write along and decide to link somewhere
- C-u C-c C-l
- Minibuffer starts with a relative location to your current working
directory, e.g. ~/org/ for me
- Pressing tab brings up a list of possible files in this directory
- Editing the location to point to a different dir would allow for linking
elsewhere
- Enter when file name is found (or suggest a brand new .org file that
doesn't exist)
- Enter the description

Once the link is created:
- With cursor on it, do C-c C-o to open the existing file or create a blank
one if it didn't exist
- C-x C-o to bounce back and forth between buffers or C-c & to close opened
link and just return to original file

I'm sure others will chime in with ways to perhaps alter this existing
functionality for automated detection, but the system as-is is also pretty
nice.

Oh, you can link to specific headlines as well.
- Go to the headline you want and do C-c l
- Go back where you want the link and do C-c C-l + up/down arrows to pull up
the stored link
- Enter the description (or press enter to accept the headline title)

That simple.


John

On Wed, Jul 28, 2010 at 11:47 AM, Marcelo de Moraes Serpa <
celose...@gmail.com> wrote:

> Would it be hard to create an extension (not sure where, elisp skills
> still very limited) that highlights camel-cased words and, when
> clicking on it, would create or open a file with the name of the word
> + .org?
>
> For "dynamic" reference data (data you want to keep, and that you want
> to keep editing and improving over time) the concept of a wiki (even
> if its collaboration aspect is not being used) is perfect, in my
> opinion. If you try wikidpad, you'll see how organic and pragmatic it
> is, allowing you to just input new data and constructing an overview
> tree dynamically. Pretty cool.
>
> Whenever I have time, I will check the algorithm WikiDPad uses to
> create the visualization tree (which is also one of its greates
> features, in my opinion).
>
> Cheers,
>
> Marcelo.
>
> On Mon, Jul 12, 2010 at 4:36 PM, Russell Adams
>  wrote:
> > Actually, the idea of CamelCase linking to a headline in the same file
> > is an interesting idea, using RadioTarges for external links.
> >
> > ** MyTopic
> >
> > ** Another topic
> >
> > Those people who like MyTopic are totally cool.
> >
> > Naysayers live in file:~/doc/Woopie.org:NaySayers
> >
> >
> >
> > On Mon, Jul 12, 2010 at 01:09:00PM -0500, Marcelo de Moraes Serpa wrote:
> >> This doesn't seem to apply to what I want. It only links to org items
> >> inside the org file.
> >>
> >> Thanks for the hint, though!
> >>
> >> On Mon, Jul 12, 2010 at 12:57 PM, Erik Iverson 
> wrote:
> >> > Perhaps I am confused, but have you tried radio targets?
> >> >
> >> > http://orgmode.org/org.html#Radio-targets
> >> >
> >> >
> >> > Marcelo de Moraes Serpa wrote:
> >> >>
> >> >> Hey all!
> >> >>
> >> >> I used to be an avid user of WikiDPad, and I loved the way it
> >> >> automatically (or manually, using [ ]) created links and files to
> >> >> these links (CamelCase) for me. The way it provided a visual tree of
> >> >> the wiki was also pretty cool.
> >> >>
> >> >> This was awesome for reference kind of data, to build your own
> >> >> knowledge base. I've been trying to test different approaches with
> >> >> org, but none of them work as smoothly as it worked for me when using
> >> >> wikidpad.
> >> >>
> >> >> I divide reference data in two main categories: Dynamic and Static.
> >> >> Static are the notes and stuff that youl want to keep somewhere and
> >> >> that you'll eventually refer to later. Dynamic are the kind of that
> >> >> you'll be editing often, but does not fit in any other category
> >> >> GTD-wise. It is reference, you want to keep it somewhere, not take
> >> >> action on it per se (other than editing it), but you want to expand
> >> >> and modify it often.
> >> >>
> >> >> How difficult would it be to implement a small system that would
> index
> >> >> the files of directory, get the names (camel-case) and automatically
> >> >> link to these names if written on an org buffer? My elisp skills are
> >> >> very weak as of now.
> >> >>
> >> >> I know some of you might list a number of points against implementing
> >> >> this, but I really loved the way Wikdpad created links on the fly.
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Marcelo
> >> >>
> >> >> ___
> >> >> Emacs-orgmode mailing list
> >> >> Please use `Reply All' to send replies to the list.
> >> >> Emacs-orgmode@gnu.org
> >> >> http://lists.gnu.org

Re: [Orgmode] Org file rendering/manipulation too slow

2010-07-28 Thread Nick Dokos
Marcelo de Moraes Serpa  wrote:


> I've got a plenty of very big org files (~50KB). When it reaches
> ~30KB, org struggles to handle it -- it becomes very slow to navigate
> through the file, the response time is far from smooth.
> 
> release_7.01g-20-gdd484 and GNU Emacs 23.2.1 (x86_64-apple-darwin, NS
> apple-appkit-1038.29) of 2010-05-08 on black.local
> 
> OSX Snow Leopard, 10.6
> 
> Any ideas?
> 

o Do you compile the .el files? A lot of people don't and don't have
  any problems (Bernt in particular), but your circumstances might be
  such that compilation might be a win (although you will have a slightly
  harder time at (re)installation and you will need to watch out for
  outdated .elc files.)

o If that doesn't produce the desired results, then profiling the code
  should be your next step:

  M-x elp-instrument-package  org 

  then run your slow command, then M-x elp-results.

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] Re: row and col spaning in table?

2010-07-28 Thread Srinivas
Giovanni Ridolfi  yahoo.it> writes:

> 
> David Hajage  gmail.com> writes:
> 
> > and I was wondering if row and col spaning was possible?
> Currently not. 
> But, if this is your case, you should use the table.el package.
> 

For some reason, I haven't been able to get table.el to work properly during 
the org-mode publish operation.

Carsten had mentioned that this functionality had been fixed in the 6.36x 
builds but I still haven't been able to get it to work. I would like to see a 
work example, if you have one.

Here is my sample file:

 begin snip

* sample table

+ --++
+---++
|   | file   |
+---++
+ --++
|   |  file  |
+ --+|
|  test |  test  |
+ --++
* Org mode table

| Header 1 | Header 2 |
|--+--|
| R1 C1| R1 C2|
| R2 C1| R2 C2|
| R3 C1| R3 C2|

* table.el table

Following table has 1 multi column cell and 1 multi row cell.

+--+--+
| Header 1 | Header 2 |
+--+--+
| R1 C1-2 |
+-+
| R2 C1| R2-3 C2  |
+--+--+
| R3 C1|  |
+--+--+


--- end snip


___
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: include value of single table cell in text?

2010-07-28 Thread Austin Frank
On Tue, Jul 27 2010, Eric Schulte wrote:

> The following should work.  It uses an inline code block
>
> #+TBLNAME:  test-table
> | key | value |
> |-+---|
> | a   | 1 |
> | b   | 2 |
>
> Is there any way to refer to cell @2$2 within the text of an org-mode
> document, and have that reference converted to the value
> src_emacs-lisp[:var d=test-table[3,1]]{d} during export?

Eric--

This is great!  Thanks very much.  If you're accepting feature requests,
I'd still love to have a way to use org-table reference syntax to embed
cell values inline.  I don't know whether this is better thought of as a
core or babel feature, though.

Looking at the source of org-table-fix-formulas and
org-table-eval-formula in org-table.el, there may be some room for
refactoring the reference resolution procedure into a standalone
function.  I'm in the middle of wrapping up my thesis and moving, so I
definitely won't look at this any time soon.  If this itch still needs
scratching in September I may revisit it then.  If a talented soul
addresses it before then, even better!

Thanks again,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


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


[Orgmode] Re: insert .org file into other .org file by link

2010-07-28 Thread Austin Frank
On Wed, Jul 28 2010, Rainer M Krug wrote:

> I have a .org file (lets call it basic.org), which creates me a report
> from a simulation (of a variable x, saved from R) - it works fine for
> export to html and pdf.
>
> Now I want to create a report (all.org), which should include the report
> from basic.org 10 times, but basic.report should be created from
> different simulations (X1, X2, X3, ..., X10).
>
> How can I acieve this, without having to copy - paste the .org file in
> 10 times? I would like to have a kind of dynamic lining, so that I can
>
> a) specify the name of the variable to be analysed
> b) the all.org is using basic.org to create the "all" report, so that
> when I change basic.org, the report based on all.org is also changed.

To start, you probably want to use the #+SETUPFILE and #+INCLUDE
directives [fn:1] [fn:2].  An untested Babel-based dynamic solution
might look something like

--8<---cut here---start->8---
#+BEGIN_SRC perl :results value org :var $n=10 $file=basic.org
# I've never actually used per with babel,
# so don't know how the :var headers work exactly
for (my $i = 0; $i < $n; $i++) {
  print "#+INCLUDE:  $file\n";
}
#+END_SRC
--8<---cut here---end--->8---

Hope that helps!  Let me know what you come up with.

/au

Footnotes:

[fn:1] [[info:org:Export%20options][Export options]]

[fn:2] [[info:org:Include%20files][Include files]]

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


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


[Orgmode] Re: [PATCH] bug in org-mode-export-as-latex

2010-07-28 Thread Nicolas Goaziou
Hello,

> Neil Hepburn writes:
> The latest version (7.01g) seems to have a bug when exporting to PDF
> (and LaTeX) with tables with labels.  The export does not label the
> table in the LaTeX file although it is labeled in the .org file.

Curiously, it looks like \label code was removed at some time.

This quick fix should put labels back.

Regards,

-- Nicolas

>From 64855c52b20766db9898ce82316fac11d51de72d Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou 
Date: Wed, 28 Jul 2010 20:54:40 +0200
Subject: [PATCH] Add labels to tables.

* org-latex.el (org-export-latex-tables): add label if any
* org-latex.el (org-export-latex-convert-table.el-table): fix little
  mistake when inserting label
---
 lisp/org-latex.el |7 ---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index f3a55ee..b9255c1 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -1675,9 +1675,10 @@ The conversion is made depending of STRING-BEFORE and 
STRING-AFTER."
   (if floatp "\\begin{table}[htb]\n"))
 (if floatp
 (format
- "\\caption%s{%s}"
+ "\\caption%s{%s} %s"
  (if shortn (concat "[" shortn "]") "")
- (or caption "")))
+ (or caption "")
+(when label (format "\\label{%s}" label
 (if (and longtblp caption) "\n" "\n")
 (if (and org-export-latex-tables-centered (not 
longtblp))
 "\\begin{center}\n")
@@ -1749,7 +1750,7 @@ The conversion is made depending of STRING-BEFORE and 
STRING-AFTER."
   (setq tbl (concat "\\begin{center}\n" tbl "\\end{center}")))
 (when floatp
   (setq tbl (concat "\\begin{table}\n"
-   (format "\\caption%s{%s%s}\n"
+   (format "\\caption%s{%s}%s\n"
(if shortn (format "[%s]" shortn) "")
(if label (format "\\label{%s}" label) "")
(or caption ""))
-- 
1.7.2

___
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] keys and command name info

2010-07-28 Thread Andreas Röhler


Hi,

what about delivering mnemonic command names alongside
with its keys in org-info?

For example

8.1. Agenda files

[ ... ]
`C-c ['
 Add current file to the list of agenda files.  The file is added to
 the front of the list.  If it was already in the list, it is moved
 to the front.  With prefix arg, file is added/moved to the end.

might be provided as

8.1. Agenda files

[ ... ]
`C-c [', org-agenda-file-to-front
 Add current file to the list of agenda files.  The file is added to
 the front of the list.  If it was already in the list, it is moved
 to the front.  With prefix arg, file is added/moved to the end.


IMHO it's useful for emacs-beginners, but for hackers
too, as remembering function names may precede
remembering keys - which are to change individually
anyway.

Should you be interested, I'll consider to take action
with texi-files.


Andreas

--
https://code.launchpad.net/~a-roehler/python-mode
https://code.launchpad.net/s-x-emacs-werkstatt/

___
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: Email from org?

2010-07-28 Thread Ethan Ligon
Eric Schulte  gmail.com> writes:
> 
> See http://orgmode.org/worg/org-contrib/org-mime.php for information on
> exporting Org-mode documents to email, and on using Org-mode syntax to
> compose email.
> 

Thanks for the suggestions regarding org-mime.  I can see that it
would be very useful for composing complicated email.  But I have what
I think is actually a much simpler problem: *sending* email from an
org-file. 

I have in mind something like:

#+TYP_TODO: EMAIL SENT WAITING | DONE

* Broadcasting project
** EMAIL What is the optimal frequency?
   :PROPERTIES:
   :To:   kenn...@example.com
   :END:
   Dear Ken-

   Could you please let me know when you've made progress on computing
   the optimal frequency?

   Thanks,
   -Ethan

Then a transition in workflow state from EMAIL to WAITING would cause
(perhaps via org-mime) the construction of an email

  From: li...@are.berkeley.edu
  To: kenn...@example.com
  Subject: What is the optimal frequency?
  Date: Wed, 28 Jul 2010 13:36:14 -0700

  Dear Ken-

  Could you please let me know when you've made progress on computing
  the optimal frequency?

  Thanks,
  -Ethan

which would then be automagically fed into an SMTP client for
delivery.  Critically, one would *not* need to interrupt one's work
flow in order to go mess around with a mail client; a simple \C-c\C-t
or similar would send the email on its way.

Or very possibly there's an obvious way to accomplish a similar end
that hasn't occurred to me.  Maybe the act of composing an email in a
mail buffer could also format and re-file the message in an org-file,
leading to a workflow similar to what one gets with org-capture?

Any further thoughts welcome!

Thanks,
-Ethan






___
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: keys and command name info

2010-07-28 Thread Tassilo Horn
Andreas Röhler  writes:

Hi Andreas,

> what about delivering mnemonic command names alongside with its keys
> in org-info?

That would be good practice, and I think it's more or less standard for
emacs packages.  For example, that is from Gnus:

,[ (info "(gnus)Summary Post Commands") ]
| `S p'
| `a'
|  Prepare for posting an article (`gnus-summary-post-news').  By
|  default, post to the current group.  If given a prefix, disable
|  that.  If the prefix is 1, prompt for another group instead.
| 
| `S f'
| `f'
|  Post a followup to the current article (`gnus-summary-followup').
`

> 8.1. Agenda files
>
> [ ... ]
> `C-c ['
>  Add current file to the list of agenda files.  The file is added to
>  the front of the list.  If it was already in the list, it is moved
>  to the front.  With prefix arg, file is added/moved to the end.
>
> might be provided as
>
> 8.1. Agenda files
>
> [ ... ]
> `C-c [', org-agenda-file-to-front
>  Add current file to the list of agenda files.  The file is added to
>  the front of the list.  If it was already in the list, it is moved
>  to the front.  With prefix arg, file is added/moved to the end.

I'd write it in parens with the usual function markup at the end of the
first sentence, just like it's done in Gnus.  The 2 Gnus entries above
have this definition:

--8<---cut here---start->8---
@table @kbd
@item S p
@itemx a
@kindex a (Summary)
@kindex S p (Summary)
@findex gnus-summary-post-news
@c @icon{gnus-summary-post-news}
Prepare for posting an article (@code{gnus-summary-post-news}).  By
default, post to the current group.  If given a prefix, disable that.
If the prefix is 1, prompt for another group instead.

@item S f
@itemx f
@kindex f (Summary)
@kindex S f (Summary)
@findex gnus-summary-followup
@c @icon{gnus-summary-followup}
Post a followup to the current article (@code{gnus-summary-followup}).
--8<---cut here---end--->8---

So basically, you only have to add the command name with @code{} at the
appropriate place and add an index item to the function index with
@findex{}.

> IMHO it's useful for emacs-beginners, but for hackers too, as
> remembering function names may precede remembering keys - which are to
> change individually anyway.

Exactly, and using `C-h f' you can easily switch to *Help* to lookup the
exact docstring and signature.  And from *Help*, the function definition
is only one click away.

> Should you be interested, I'll consider to take action with
> texi-files.

I'd welcome such an enhancement to the docs, and I'm pretty sure nobody
will object. :-)

Bye,
Tassilo


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