Re: org-in-org

2021-02-23 Thread Erik Iverson
Hi Greg!

I am not sure if this would be useful to your efforts, but I have an "R in
org-mode" tutorial on github:

https://github.com/erikriverson/org-mode-R-tutorial

Apparently it is now 10 years old somehow, time flies.

Best,
--Erik



On Tue, Feb 23, 2021 at 6:25 AM Greg Minshall  wrote:

> i have a question about org-in-org source blocks.  i volunteered to help
> in an effort to provide a tutorial of using the ESS (Emacs Speaks
> Statistics) package for R, in particular, from org mode.
>
> i'd like to write my contribution as a .org file.  i'd like to include
> fragments of org code, including source blocks (in R).  and, i'd like to
> show various result types.  so, i'd like to be able to have the
> #+RESULTS show up in the org-in-org source block as exported inside the
> containing .org file.
>
> and, i'd like to trigger all this from a makefile, using some emacs
> batch script to export the containing .org file into a .html or .pdf
> file.
>
> (i *think*) what i would like to end up with is what it would like if i
> had manually opened the org-in-org source blocks (C-c‌'), then went to
> each (or, possibly, selected, i guess) source blocks inside *that*
> (org-in-org) source block, and executed each, producing a #+RESULTS
> block for each, then closed the org-in-org source block (C-c‌', again),
> and then exported the containing .org file.
>
> is this possible?  any ideas?
>
> cheers, Greg
>
>


Re: [O] Babel-R vs. ESS

2014-06-25 Thread Erik Iverson
+1 for Ista. Use both.

 I tend to write a lot of R code for reading in data, and then merging
it with other sources and cleaning it. For my purposes, I usually do
those activities in a .R file (so using ESS in Emacs), and output a
'tidy' data.frame ready for analysis. Then I might use org-mode to
write a report using the data prepared in the .R script(s).

Related, if you haven't checked out knitr, you might look at that too.
It allows you to create reports in markdown and embed R code, similar
to org-mode. Somewhere I have support for this in ESS, but it's been a
while since I looked at it. Slidify is another cool package, using
markdown to create HTML slides.



On Wed, Jun 25, 2014 at 9:31 AM, Ista Zahn istaz...@gmail.com wrote:
 Hi Shiyuan,

 On Wed, Jun 25, 2014 at 3:08 AM, Shiyuan gshy2...@gmail.com wrote:
 Hi all,
 I am learning R and  use Emacs to work with R. I googled around and I
 found two options: ESS and Org-R/Org-Babel.

 Org-Babel and ESS are not really alternatives; in fact the complement
 each other nicely. Org gives you a lightweight markup language, and a
 way to embed source code blocks. You can edit/evaluate/test R source
 code blocks using ESS.

 Babel speaks multiple languages( Any languages?-if we write some sort of
 parser, which I assume is not terribly difficult under Babel?).

 But if R is the primary language I would use, which option (Babel-R vs ESS)
 is more advisable? I do want a nice integration of graphics/source code into
 a paper/slides.

 Basically if you're using R in emacs you want to be using ESS. You can
 also use org-mode to easily create reports, slides, etc. with embedded
 R code.


 Best,
 Ista

 Any suggestions/options are appreciated.

 Shiyuan




Re: [O] How to specify birthdays?

2014-05-12 Thread Erik Iverson
Not a direct answer, but have you found the org-contacts package?

 https://julien.danjou.info/projects/emacs-packages#org-contacts

It supports the BIRTHDAY property. See the note at bottom of the link above
about how it integrates with the agenda.

Example:

** Dad
:PROPERTIES:
:BIRTHDAY: 1955-01-21
:END:



On Mon, May 12, 2014 at 4:42 PM, Josef Wolf j...@raven.inka.de wrote:

 Hello,

 I am trying to use org-mode for birthdays. I have tried those two entries:

 * Calendar
 ** Birthdays
 *** Somebody
 SCHEDULED: 1970-05-20 Mo +1y
 *** Somebody1
 SCHEDULED:
  %%(org-anniversary 1970  5 20) Somebody1 is %d years old


 The first entry is shown in the agenda for the current day as:


   Calendar:   Sched.358x:  Somebody

 I find this a bit strange. I want a reminder a couple of days before the
 event. But I don't want an everday reminder of how days have gone past the
 last event.

 The second entry doesn't appear at all in the agenda.

 Any ideas what I am missing here?

 --
 Josef Wolf
 j...@raven.inka.de




Re: [O] A file with 'org-mode rot'?

2014-04-13 Thread Erik Iverson
Remote possibility: I've had issues with org-mode being slow when using
linum-mode in the past:

E.g.,
http://stackoverflow.com/questions/5229705/emacs-org-mode-turn-off-line-numbers

So you might want to make sure that's not enabled.


On Sun, Apr 13, 2014 at 12:49 PM, Nicolas Goaziou n.goaz...@gmail.comwrote:

 Karl Voit devn...@karl-voit.at writes:

  However, my (long) Org-mode files with the performance issues is not
  a situation I am satisfied. Last week I presented Org-mode at a
  Linuxdays-event here in Graz and I had to apologize for all the
  weird behavior. This was somewhat embarrassing :-(

 Does this happen on stable branch?

  Sure. After a couple of minutes, I C-g and this is the output:
  http://paste.grml.org/1898/

 Would the following patch improve the situation?


 Regards,

 --
 Nicolas Goaziou



Re: [O] OrgCamp in Madrid

2014-02-27 Thread Erik Iverson
On Thu, Feb 27, 2014 at 11:32 AM, David david...@riseup.net wrote:
 El 27/02/14 17:43, Thomas S. Dye escribió:
 Aloha David,

 The website says where people gather IRL ... What does IRL mean?

IRL usually means in real life in this context. As opposed to
through the internet.



Re: [O] Send line to R process from babel block?

2013-08-22 Thread Erik Iverson
John,

Do you know about creating an indirect buffer with the current source
block? This indirect buffer will be in ESS mode, and any changes you make
will be in the original source block when you exit the indirect buffer.

I believe C-c ' in a source block will activate the indirect buffer. There
are variables controlling how the resulting window is created.

--Erik


On Thu, Aug 22, 2013 at 10:00 AM, John Hendy jw.he...@gmail.com wrote:

 If one opens file.R and does =C-RET= on a line, it sends it to the
 current ESS R process running (or starts a new process and then sends
 the line).

 Is this possible from babel blocks? I would find this extremely
 helpful when troubleshooting in order to run lines of code up to my
 problem spot vs. my current practice of copying, switching buffers,
 then yanking into the R session buffer.

 Is this already possible? I looked around at some of the completions
 for =M-x org-babel-*=, but didn't see anything promising.


 Thanks,
 John




Re: [O] possible org-insert-heading bug?

2013-07-03 Thread Erik Iverson
Robert,

I noticed that behavior, too. But that does seem documented under M-RET:

When this command is used in the middle of a line, the line is split
and the rest of the line becomes the new item or headline.

Footnote 10 is referenced, which says:

If you do not want the line to be split, customize the variable
org-M-RET-may-split-line.

Hope this helps,
--Erik

On Wed, Jul 3, 2013 at 10:01 AM, Robert Horn rjh...@alum.mit.edu wrote:
 I've noticed a probably related bug.  In a file like

 * before
   break between

 If I put the cursor between break and between, M-ret causes the result

 * before
 * break between

 rather than what I expected:

 * before
   break
 * between

 With the holiday coming I might look at it also and figure out what is
 happening.

 R Horn

 Carsten Dominik writes:

 Hi,

 yes, org-insert-heading is broken - nad I am trying to find time
 to rewrite it.  My top Org priority.

 - Carsten

 On 3.7.2013, at 00:11, John Hendy jw.he...@gmail.com wrote:

 Hi Erik,


 Glad to see you around :)

 These all may be quite related. I haven't seen activity on those
 threads suggesting whether a) the documentation is, in fact, right or
 wrong or b) whether anyone has taken action to fix or adjust the
 behavior of M-RET or C-RET based on the complaints/counter-intuitive
 observations.

 Let me know if those are similar to your issue. Perhaps Bastien can
 comment on the state of these thread, now at least four in number...

 - http://www.mail-archive.com/emacs-orgmode@gnu.org/msg70718.html
 - http://osdir.com/ml/emacs-orgmode-gnu/2013-05/msg00846.html
 - http://permalink.gmane.org/gmane.emacs.orgmode/72399

 I've taken to using C-RET in the meantime, as it seems to do what I
 often expect when reflexively pressing M-RET. Also, someone once
 corrected me on the documentation that at the end of the line might
 mean before the ellipsis, not after?


 Hope that helps!
 John


 On Tue, Jul 2, 2013 at 1:53 PM, Erik Iverson erikriver...@gmail.com wrote:
 Hello,

 I am using a current git pull (Org-mode version 8.0.3,
 release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show
 with a small example. If you save and visit the following org file,

 https://dl.dropboxusercontent.com/u/7514404/test.org

 you will see the behavior described and documented (assuming it's
 reproducible under your version of emacs and orgmode).

 Briefly M-RET at the end of a *folded* headline that contains plain
 list items will insert a new plain list item at the end of the
 subtree, instead of a new top-level headline. I believe this conflicts
 with the documentation for M-RET, which currently reads:

 ... If the command is used at the end of a folded subtree (i.e.,
 behind the ellipses at the end of a headline), then a headline like
 the current one will be inserted after the end of the subtree...

 Best,
 --Erik






[O] possible org-insert-heading bug?

2013-07-02 Thread Erik Iverson
Hello,

I am using a current git pull (Org-mode version 8.0.3,
release_8.0.3-345-g239aa7) and noticed behavior that's easiest to show
with a small example. If you save and visit the following org file,

https://dl.dropboxusercontent.com/u/7514404/test.org

you will see the behavior described and documented (assuming it's
reproducible under your version of emacs and orgmode).

Briefly M-RET at the end of a *folded* headline that contains plain
list items will insert a new plain list item at the end of the
subtree, instead of a new top-level headline. I believe this conflicts
with the documentation for M-RET, which currently reads:

... If the command is used at the end of a folded subtree (i.e.,
behind the ellipses at the end of a headline), then a headline like
the current one will be inserted after the end of the subtree...

Best,
--Erik



Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Erik Iverson

Richard,

On 09/01/2011 06:24 AM, Richard Lewis wrote:


I want to include the following in an org-mode buffer and be able to
export it to LaTeX:

#+begin_src python :exports code
s[0]
#+end_src


This works for me with both python and R code blocks on the latest version 
pulled from git.  Which version of org-mode are you experiencing this with?


--Erik




Re: [O] agenda: void: category-pos

2011-08-24 Thread Erik Iverson

Yes, happened to me today too.

On 08/24/2011 04:20 PM, Michael Brand wrote:

Hi all

Since
http://orgmode.org/w/?p=org-mode.git;a=commitdiff;h=15798836e2bb84bebfb005375e08e38830fc90ee
from yesterday or with the newest release_7.7-194-gd203b61 when I try
to open the agenda with a minimal setup I get save-excursion:
Symbol's value as variable is void: category-pos. Anybody else too?

Michael






Re: [O] how to turn off capitalization

2011-06-23 Thread Erik Iverson

On 06/22/2011 10:35 PM, Rustom Mody wrote:

Ive just found that org is capitalizing my titles in html export. [I
had not noticed this earlier]
I would like to capitalize my titles slightly differently: for example
propositions like 'to' 'with' etc I would like to leave as lowercase.

Is it possible to turn off capitalization of titles?


Does the resulting HTML file actually contain the capitalisation,
or only when viewed in whatever browser you're using?



[O] git server issue, repo.or.cz and orgmode.org

2011-06-15 Thread Erik Iverson

Hello,

I pull git daily both at home and work.  I noticed a bunch of updates this 
morning at work, as expected. But at home,  I keep getting:


$ git pull
Already up-to-date.

$ git log -1
commit 90f6765cdf77c1414726d899f00c77da43f45758
Author: Eric Schulte schulte.e...@gmail.com
Date:   Mon Jun 13 14:58:56 2011 -0700

ob-tangle: no longer inserting newlines between appended code blocks

* lisp/ob-tangle.el (org-babel-tangle-combine-named-blocks): No longer
  inserting newlines between appended code blocks.

I know I pulled newer updates at work, so I was confused.  Then I looked where I 
was pulling from at home, I set this up quite a while ago. From my .git/config 
file:


[remote origin]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git://repo.or.cz/org-mode.git

Now, the orgmode.org site I notice tells you to clone:

git clone git://orgmode.org/org-mode.git

So that must be the problem! I don't know if these two are supposed to remain in 
sync or not, but if so, something isn't working as of Monday.  Perhaps I missed 
an announcement, but I do remember orgmode.org was down on Monday evening, so 
perhaps that plays into it, or perhaps it is just a coincidence.  At any rate, I 
think I'll just clone the orgmode.org repo, as the org site tells me to.  Just 
thought other long time git pullers might want to know about this.


--Erik

p.s., of course, I'm willing to admit that I may have done something silly to 
cause this, I hope not!




[O] #+begin_example broken when #+begin_src included inside?

2011-06-12 Thread Erik Iverson

Hello,

Can anyone confirm the following:

Export the following org-mode markup to, say, latex

* a headline
here's an example of a code block ...
#+BEGIN_EXAMPLE
#+BEGIN_SRC language header arguments
code
#+END_SRC
#END_EXAMPLE


I get (only relevant portion included):

\section{a headline}
\label{sec-1}

here's an example of a code block \ldots{}
\lstset{language=language}
\begin{lstlisting}
code
\end{lstlisting}


So, somehow the begin_src block is getting interpreted as such even though it's 
in a begin_example block...I of course want the whole of the text inside the 
example to simply be in the output verbatim. Did a bug creep in perhaps?


Thanks!

--erik



[O] [babel] variable org-babel-function-def-export-keyword not respected?

2011-06-11 Thread Erik Iverson

Hello,

At some point in the distant org past, I seem to recall that named source code 
blocks were exported with their names in tact.  Now (latest git pull, Org-mode 
version 7.5 (release_7.5.367.gc4737)) the code is only exported, and not the 
name of the block.  For example, export the following to HTML.


* a block
here's a named block
#+source: rand(n)
#+begin_src R
  runif(n)
#+end_src)

This seems in conflict with the doc-string for the following variable.

(defvar org-babel-function-def-export-keyword function
  The keyword to substitute for the source name line on export.
When exporting a source block function, this keyword will
appear in the exported version in the place of source name
line. A source block is considered to be a source block function
if the source name is present and is followed by a parenthesized
argument list. The parentheses may be empty or contain
whitespace. An example is the following which generates n random
\(uniform) numbers.

#+source: rand(n)
#+begin_src R
  runif(n)
#+end_src)

Am I interpreting this correctly?

Thanks!

--e



Re: [O] Using orgmode to take inline notes for research

2011-04-05 Thread Erik Iverson
If you export to HTML, you should be able to export your notes with a CSS class 
to style your notes as differently from the text as you like.


On 04/05/2011 10:32 PM, Eric Schulte wrote:

Hi John,

Interesting use case, I definitely see the utility.  I think that blocks
may be an appropriate solution, for example if you enclose your notes in
notes blocks, then it should be easy to control whether or not they
are exported...

Using the following code, you can control whether notes enclosed in
notes blcks will be exported by changing the value of the
*export-my-notes* variable, when it is nil your notes will not be
exported, when t they will be exported as quoted text.

#+begin_src emacs-lisp
   (defvar *export-my-notes* nil)

   (defun org-exp-block-process-notes (bodyrest headers)
 (if *export-my-notes*
 (format \n#+begin_quote\n%s\n#+end_quote\n body)
 ))

   (org-export-blocks-add-block '(notes org-exp-block-process-notes nil))
#+end_src

Hope this Helps -- Eric

This works for me with the attached Org-mode file.





John Hendyjw.he...@gmail.com  writes:


Hi,


One thing I really like to use orgmode for is research. Lately,
there's a mass of stuff on-line that I've been reading though and am
about to start reading through a series of articles and had the idea
to yank them into org for inline notes.

My current experiment has been:
- wget the website page
- run a custom script of simple sed stuff to get the major stuff
converted (i/i  -  /,quote; -  , etc.)
- turn things into headlines where applicable
- manually tweak the rest

What I'd like to do is find some way to take notes in the article and
would like some suggestions from anyone who's done this. On one hand,
I see the idea of keeping a separate headline for notes, and for a
series of articles, my file might look like this:
,---
| * Article 1
| ** Notes on article 1
| * Article 2
| ** Notes on article 2
`---

One advantage to this is that I could very easily add :noexport: to my
notes and print off a hard copy of the article if I want it, and it
would also be easy to tag my notes :notes: and then replace-string to
turn the Article :export: into :noexport: and :notes: into :export:.
Then I'd have an easy to print copy of my notes for each article.

On the other hand, I like quoting when I use notes, and could see it
as advantageous to have something like:
,---
| * Article 1
| It goes along and says x, y, and z.
| --- Me: that's interesting and here are my thoughts.
|
| It continues along saying all kinds of other things and my comments
are interjected whenever I want.
`---

I think that might be more useful for studying things later, as I get
to see an annotated version with my thoughts at the time I read it.
What it *doesn't* allow for is the easy printing of both the article
and the notes separately if I want.

Would someone suggest a way that I might be able to have the best of
both worlds? Some of my own not-at-all-hashed-out-ideas included:
- using footnotes since org has easy ways to jump from one to another,
but this would be tough when it came to actual footnotes, which there
will definitely be plenty of.

- highlighting the text I want to quote and then using refile somehow
to send it off to my notes section with my comments. This would be
cool if I could, at the same time, add an org-mode link to and from
the notes and original section, but also if I could turn that link off
when I export to PDF so I don't have hypertext to a non-existent link
if I don't export my notes as well.

Part of the reason that keeping notes/article separate is that I have
others interested in the articles and, if I need to send them a copy,
I want to get my junk out of there and have the original. I suppose I
could just keep two copies, though?

I think this idea could be useful to others and actually wouldn't
doubt if someone has an awesome setup for something like this already.


Thanks for any suggestions!
John









Re: [O] Illiterate programming question

2011-03-30 Thread Erik Iverson



Nick Dokos wrote:

Robert Goldman rpgold...@sift.info wrote:


I would like to do the opposite of literate programming (hence the
subject line!):

I would like to pull into my org file snippets from a code file.  I know
that org-mode will let me import /entire/ source code files.  Is there
some way to say Import the region of this file between these two
delimiters?

If not, do you think it would be hard to add this feature?  I already
have the snappy name, after all!



I don't really understand: can't you cut and paste?


Yes, are you talking about upon exporting a document?




Re: [O] [Babel] How to find out export format in a babel plugin

2011-03-24 Thread Erik Iverson

On 03/24/2011 10:09 PM, Jianing Yang wrote:

Hi, all

I've recently written a babel plugin which does syntax highlighting
using pygment.
However, I have to specify a '-f html' option every time I use it. It looks like


#+begin_src pygment :cmdline -l bash -O linenos -f html
exec 30 # copies STDIN, it prevents 'read' stealing STDIN from '$command'
while read FN; do
   test -e $FN || rm -iv $FN3
done  (find . $level -type l)
#+end_src

Therefore, my question is that is there a way that a babel plugin can
be aware about the export
format? If there is, not only I can omit the '-f html' but it could
also support for other export format,
like latex, transparently.


In git pulls from within the last few weeks, see the variable:
org-export-current-backend

Does your pygment idea have any overlap with:
http://comments.gmane.org/gmane.emacs.orgmode/28420



Re: [O] [babel] Trouble with :cache yes

2011-03-23 Thread Erik Iverson



ken.willi...@thomsonreuters.com wrote:


On 3/23/11 1:16 PM, Eric Schulte schulte.e...@gmail.com wrote:


ken.willi...@thomsonreuters.com writes:

Or perhaps, is there some command to evaluate all blocks in a document
that need to be re-evaluated, and save the results back to the buffer?
I
could do that every time before exporting, maybe.


Fortunately there is such a function, org-babel-execute-buffer, bound to
C-c C-v b, try C-c C-v h in an Org-mode buffer to see all code block
specific key bindings.



So I tried doing that, and unfortunately it looks like I'm going to have
to restructure my document a bit if I want to use it.  I'd been using
#+begin_src blocks in two different ways - some blocks are just code
listings that I don't really intend to run, whereas some blocks are live
code that I want to execute when exporting the document - these latter
have Babel-style arguments like :exports both or :results output and
the like.

Of course, C-c C-v b will treat *all* of the blocks like live code
blocks, so I'm looking for some way to shut off Babel processing of many
of the blocks and just treat them as styled code listings.  Is there some
flag to do that, or should I switch from #+BEGIN_SRC sh to
#+BEGIN_EXAMPLE sh or something?  Does BEGIN_EXAMPLE know about
different languages of code?


Try :eval never

http://orgmode.org/org.html#eval

Don't know if that will work, but it sounds promising.

--Erik



Re: [O] Using Variable in Org-capture configuration

2011-03-22 Thread Erik Iverson

Chao,

I believe I had the exact same issue, caused the exact same use case, 
i.e., Dropbox.  Read David's answer and see if it helps:


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

Chao LU wrote:

Dear all,

Just writing to see if it is possible to use variable in org-capture 
configuration, like this


 (setq org-capture-templates
   '((t Todo entry (file *~/org/refile.org 
http://refile.org*) * TODO %?\n  %i\n  %a :prepend t)))

  
   \---How could I 
use- (concat My-Dropbox-Path refile.org http://refile.org)


Since I put all my files in Dropbox, and the My-Dropbox-Path has 
different values under MAC and M$Windows.


Thanks,

Chao




Re: [O] Problem with agenda and diary

2011-03-17 Thread Erik Iverson

Dan,

My agenda won't build this morning either, so it's more than you.
I don't have time to investigate right now, but just know it's not
something you did.

--e

Dan Griswold wrote:

Hi all,

As of today, there's a problem with org-agenda-list when
org-agenda-include-diary is set to t. I get this error:
  mapcar: Wrong type argument: integerp, nil

I have confirmed that the error occurs with only one item in the diary
file, such as this one:

Mar 18, 2011  8:00 planning

I feel that I am now just spinning around in circles and wasting time. I
really don't know what I'm doing anymore.

What do you think is wrong?

Thank you,

Dan





Re: [O] Worg updating?

2011-03-17 Thread Erik Iverson

On 03/17/2011 05:34 PM, Nick Dokos wrote:

Thomas S. Dyet...@tsdye.com  wrote:


Aloha all,

Changes I made to the LaTeX export tutorial several days ago haven't
made their way to Worg yet.  Is Worg updating?

All the best,
Tom



Thanks for reminding me: I made a change to org-hacks some time ago and it
hasn't shown up yet.  Maybe it would be a good idea to timestamp pages
with the update time?

Does Worg contain any information on how Worg is built? I found

   http://orgmode.org/worg/sources/


See:

http://orgmode.org/worg/worg-setup.html

which will direct you to:

http://orgmode.org/worg/publishing.txt

AT the bottom of that file:

Generating tree-style sitemap for Sitemap for project worg-pages
Not a standard Org-mode time string: 2010.08.25 20:41:52





Re: [O] Slow movement in large buffers

2011-03-15 Thread Erik Iverson

Scott Randby wrote:

On 03/15/2011 12:11 PM, Chris Randle wrote:

On 2011-03-15 03:25, Matt Lundin wrote:

I've been navigating the org-issues file (14000+ lines) and have
found movement within the file to be fairly slow. Sometimes Emacs
will lock up for several seconds.

snip

Do others have the same experience? If so, does anyone have any tips
on how to diagnose this further?


snip


I have a netbook running an Intel dual-core 1.66GHz and 2GB RAM. I
opened up org-issues.org and navigated through it without difficulty.
There was a delay for about a second when I unfolded the Development
Tasks headline, but there were no delays after that. Vertical movement
is instantaneous.


Do those who experience slowness have a line-numbering mode in Emacs
turned on?  (linum-mode perhaps?)




Re: [O] latex fragments, dvipng and mathjax

2011-03-08 Thread Erik Iverson

On 03/08/2011 02:16 PM, Nick Dokos wrote:

[following up on my post...]

One thing that should have helped is to set the mathml option to nil:

--8---cut here---start-8---
#+MATHJAX: align:left mathml:nil 
path:/home/nick/lib/mathjax/mathjax-MathJax-20e0cf6/MathJax.js
--8---cut here---end---8---

That forces HTML-CSS output and from what I can see on the mathjax site,
that should improve things - but it doesn't for me, so I'm still not out
of the woods. Maybe MathJax doesn't know where to get the TeX fonts?


Do the examples on mathjax.org look nice to you? And which browser
do you happen to be using for viewing?




[O] inline R code evaluation?

2011-03-03 Thread Erik Iverson

Hello list!

I haven't used inline code evaluation in R too much,
but I thought the following used to work.  Can anyone
tell me if I'm doing something wrong, or maybe it's
temporarily broken in git?  I just pulled.

### begin org example ###

* testing inline R/org-mode evaluation
Here I test inline code evaluation in R.

#+begin_src R :session *R*
x - 100
#+end_src


Now I want to export the value of x, which should be
src_R[:session *R*]{x} .

Did the number 100 show up at the end of the previous sentence on export?

### End org example ###

There may have been some relatively recent list traffic about this,
but I wasn't able to track it down.
Thanks!
--Erik



Re: [O] in-buffer completion question

2011-03-01 Thread Erik Iverson

Not really answering your question, but you do
know about C-c C-x p  to set properties?

henry atting wrote:

Let's say I am in an orgmode buffer, more precisely I
opened a file with org-contacts.
My first entry is:

** Mr.X
:PROPERTIES:
:EMAIL:  m...@mail.me
:END:

Then I want to create a new entry. Of course I am to
lazy to type ´:PROPERTIES:´ so I type ´:PR´ then hit
M-TAB. But instead of the word being completed I get
´There is no completion of PR´. 


Okay, but I can see that actually there is one, it's in the
buffer. I read that the new orgmode completion method
is derived from the method John Wiegley has implemented.
In ledger-mode however M-Tab not only completes the
unfinished word but lets me cycle through the alternatives
given in the current buffer.
So, that is what I would expect in orgmode too...

henry



___
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: [O] Re: [Orgmode] Re: Org Babel and R issue with pdf latex export

2011-02-28 Thread Erik Iverson

Ben,

And what about your .Rprofile. Since your R code does produce
a warning, I wonder if you have instructed R to take some
special action when it sees one?

--Erik

Ben Ward wrote:

On 28/02/2011 11:24, Rainer M Krug wrote:
On Mon, Feb 28, 2011 at 8:07 AM, Ben Wardbenjamin.w...@bathspa.org  
wrote:

On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:

Ben Wardbenjamin.w...@bathspa.org  writes:


Hi,

I recently installed emacs, org-mode fresh on a new install of Arch
Linux. Before I had it working on Ubuntu.

I've installed everything as before and used the same .emacs file I 
had,
but if I use org to write out some R script and export to pdf via 
latex,

then I get an empty pdf document, with only the title and Contents
heading. However if I export to anything else such as html it 
works, and

shows me code and results.

Hi Ben,

Are you sure this problem concerns babel/R? What happens when you 
export

an Org document to pdf without any babel stuff?

Can you provide an example Org file that you are having trouble
exporting to pdf? The problem is probably in your local configuration,
so if no-one can jump to the solution then start from a minimal working
config and try to find the part of your .emacs which is causing the
problem.

Dan


Hi, I've tried exporting an org file that has no code in it to PDF and
it works without any trouble.

The file I'm trying to export is:
#+TITLE: Test
#+AUTHOR: Ben J. Ward
#+LATEX_CLASS: article
#+BABEL: :session *R* :results output
\pagebreak

Test:

#+begin_src R :exports both
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
#+end_src

When I use your example and export it to LaTeX,

I get this:

#
% Created 2011-02-28 Mon 12:21
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{color}
\usepackage{listings}
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test}
\author{Ben J. Ward}
\date{28 February 2011}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
The file I'm trying to export is:
\pagebreak

Test:

\lstset{language=R}
\begin{lstlisting}
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
\end{lstlisting}

\begin{verbatim}
  [1] 1 2 3 4 5
  [1]  5 10 15 20
  Warning message:
  In x * y : longer object length is not a multiple of shorter object 
length

  [1]  5 20 45 80 25
\end{verbatim}



\end{document}
#
So it works for me - have you tried to export to LaTex? If that works,
it is a LaTeX / pdf issue.

Rainer

Hi, I've just tried and I still get the same as before, but it works to 
latex, when there is no src code chunks.

This is my .emacs:

(require 'ess-site)
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-cc 'org-capture)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(transient-mark-mode 1)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (emacs-lisp . t)
   ))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-confirm-babel-evaluate nil))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

Thanks,
Ben W.


I can include my .emacs although it's lengthy.

I uninstalled all of my emacs stuff, and installed it from the vanilla
downloads on their respective sites, and I'm still getting the same
result. I'm considering removing all my tex stuff and installing the
vanilla texlive too.

Thanks,
Ben W.


I've tried even installing a version of org
mode from source, using the build system my distro has, so as it's 
made

and installed to exactly the right place, but I still don't have any
luck. The texlive version I'm using is from my distro's package 
manager.

Using C-c C-c to evaluate on the fly works. I had an issue getting org
and babel to work with R on Windows 7 as well, but it was because
certain tex packages were missing and I recieved a message when I 
tried

to export, but nothing comes up here.

Would the recent change:
Org-babel is now inside org, remove (require 'org-babel-init)
   and alike from your .emacs.
   Look at http://orgmode.org/Changes.html#ob-configuration-changes
   for overview of the settings.
Be causing the entire issue?

The .tex file I get out is thus:
% Created 2011-02-28 Mon 03:47

Re: [O] Re: [Orgmode] Re: Org Babel and R issue with pdf latex export

2011-02-28 Thread Erik Iverson



Erik Iverson wrote:

Ben,

And what about your .Rprofile. Since your R code does produce
a warning, I wonder if you have instructed R to take some
special action when it sees one?


Related, how does the export process that's not working affect
the *R* buffer in Emacs?  Can you paste that buffer (or at least
the relevant portions?)

Thanks!



--Erik

Ben Ward wrote:

On 28/02/2011 11:24, Rainer M Krug wrote:
On Mon, Feb 28, 2011 at 8:07 AM, Ben Wardbenjamin.w...@bathspa.org  
wrote:

On Sun, 2011-02-27 at 21:35 -0800, Dan Davison wrote:

Ben Wardbenjamin.w...@bathspa.org  writes:


Hi,

I recently installed emacs, org-mode fresh on a new install of Arch
Linux. Before I had it working on Ubuntu.

I've installed everything as before and used the same .emacs file 
I had,
but if I use org to write out some R script and export to pdf via 
latex,

then I get an empty pdf document, with only the title and Contents
heading. However if I export to anything else such as html it 
works, and

shows me code and results.

Hi Ben,

Are you sure this problem concerns babel/R? What happens when you 
export

an Org document to pdf without any babel stuff?

Can you provide an example Org file that you are having trouble
exporting to pdf? The problem is probably in your local configuration,
so if no-one can jump to the solution then start from a minimal 
working

config and try to find the part of your .emacs which is causing the
problem.

Dan


Hi, I've tried exporting an org file that has no code in it to PDF and
it works without any trouble.

The file I'm trying to export is:
#+TITLE: Test
#+AUTHOR: Ben J. Ward
#+LATEX_CLASS: article
#+BABEL: :session *R* :results output
\pagebreak

Test:

#+begin_src R :exports both
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
#+end_src

When I use your example and export it to LaTeX,

I get this:

#
% Created 2011-02-28 Mon 12:21
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fixltx2e}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
\usepackage{hyperref}
\tolerance=1000
\usepackage{color}
\usepackage{listings}
\providecommand{\alert}[1]{\textbf{#1}}
\begin{document}



\title{Test}
\author{Ben J. Ward}
\date{28 February 2011}
\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
The file I'm trying to export is:
\pagebreak

Test:

\lstset{language=R}
\begin{lstlisting}
x-c(1,2,3,4,5)
y-c(5,10,15,20)
x
y
xy-(x*y)
xy
\end{lstlisting}

\begin{verbatim}
  [1] 1 2 3 4 5
  [1]  5 10 15 20
  Warning message:
  In x * y : longer object length is not a multiple of shorter object 
length

  [1]  5 20 45 80 25
\end{verbatim}



\end{document}
#
So it works for me - have you tried to export to LaTex? If that works,
it is a LaTeX / pdf issue.

Rainer

Hi, I've just tried and I still get the same as before, but it works 
to latex, when there is no src code chunks.

This is my .emacs:

(require 'ess-site)
(require 'org-install)
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-cc 'org-capture)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)
(transient-mark-mode 1)
(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)
   (emacs-lisp . t)
   ))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(org-confirm-babel-evaluate nil))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

Thanks,
Ben W.


I can include my .emacs although it's lengthy.

I uninstalled all of my emacs stuff, and installed it from the vanilla
downloads on their respective sites, and I'm still getting the same
result. I'm considering removing all my tex stuff and installing the
vanilla texlive too.

Thanks,
Ben W.


I've tried even installing a version of org
mode from source, using the build system my distro has, so as it's 
made

and installed to exactly the right place, but I still don't have any
luck. The texlive version I'm using is from my distro's package 
manager.
Using C-c C-c to evaluate on the fly works. I had an issue getting 
org

and babel to work with R on Windows 7 as well, but it was because
certain tex packages were missing and I recieved a message when I 
tried

to export, but nothing comes up here.

Would the recent change:
Org-babel is now inside org, remove (require 'org-babel-init)
   and alike from your .emacs.
   Look

Re: [Orgmode] inserting images in HTML export

2011-02-21 Thread Erik Iverson

I think this is simply because you're generating a PDF, which
can't really be displayed 'in html'.  Try generating a bitmap
format such as PNG.  That should work!

On 02/21/2011 05:26 PM, Julian Burgos wrote:

Dear list,

Here is another of my newbie questions.

As many others, I´m exploring ways to export my nice org-mode document
(with R code that generates output and graphs) into word or open
office.  My colleagues do not use org mode or LaTex, so I need to
generate a word or open office document .  It doesn´t have to be
pretty, as it is only for reviewing purposes, but needs to include all
figures and tables.

It seems that the easiest way to go is to export HTML and read it
directly with Word.  My only problem is that I cannot figure out how
to make org mode generate an HTML document with the figures embedded
in it.  Instead, I get hyperlinks to the figures.  I´ve tried adding
this to my emacs file:

(setq org-export-html-inline-images t)

but had no luck.

Here is an example on how I am inserting the images in my org-mode
file.  When exporting to LaTex everything works fine.

#+CAPTION: Estimated effects of bottom type and Modiolus on Actinaria abundance.
#+LABEL: fig:Acgam
#+ATTR_LaTeX: width=14cm
[[./images/Actinaria_gamplots.pdf]]

Many thanks for any guidance,





___
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] Including TikZ diagrams as figures in export

2011-02-20 Thread Erik Iverson

Jeffrey,


Now, I'd like to integrate them into an org document. I'd like:
1) To use babel to handle the TikZ source


This is possible.


2) To wrap the resulting drawing in a figure environment for automatic 
numbering and centering


See http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html and 
search for tikz for an example.  I think you do need to use the :file argument

for this to have org-mode take care of it automatically.

Alternatively, you could just include *all* the latex you want, including
constructing your own figure environment and caption and refs, in the latex
code block.


3) To be able to refer to the figure elsewhere in the document


Should be possible with either approach above.


4) (optional) To be able to seamlessly export to both LaTeX and HTML


So should the HTML exporter generate a PNG file then, as opposed to PDF?
This is possible, but requires some 'conditional' elisp code in your :file
source block argument.  I think I can help if that's indeed what you want.


And somewhat unrelated, is :results now deprecated in favor of :exports? What about 
:file? I'm sufficiently new to babel that these all seem like they could be taken care of with a 
single header argument with many options...


Not deprecated at all according to my understanding:

:results determines how the results are collected from a process. So, in R, we
might want the standard output ':results output' or we might just want the last
value returned by the code block, ':results value'.  This determines what is
inserted into the org-mode buffer or the export stream when the code block
is evaluated.

:exports determines if the code and/or the results will be inserted upon
exporting. *If* the results are inserted, then :results will determine how.

:file is useful for code blocks that generate graphical output, such as tikz.
This will divert the output into the named file, and exporting will insert
that file.  In the org-mode buffer, a link will be inserted. If a png file is
generated, it can even be displayed inline in the org-mode buffer if you turn
on that functionality.


___
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] some lisp/slime progress

2011-02-20 Thread Erik Iverson

Hello,

I recently posted on the inability of ob-lisp.el to
submit multiple forms to a running CL session and return
the result.

http://permalink.gmane.org/gmane.emacs.orgmode/37325

I have made some progress in fixing this, but it *required
defining a new function in SLIME, so I do not post this
as a patch to org-mode, since it depends on more than
org-mode*.  I don't know if this is something that truly
belongs in SLIME, so I may follow-up on that mailing list.

NB: this only works when :session is specified.

In SLIME swank.lisp, I define:

(defslimefun interactive-eval-region-orgmode (string)
  (with-buffer-syntax ()
(with-retry-restart (:msg Retry SLIME interactive evaluation request.)
  (list (format nil ~{~S~^~%~} (eval-region string))


Then, in ob-lisp.el, apply the following patch.

diff --git a/lisp/ob-lisp.el b/lisp/ob-lisp.el
index 600b79e..2980cc8 100644
--- a/lisp/ob-lisp.el
+++ b/lisp/ob-lisp.el
@@ -78,7 +78,11 @@ This function is called by `org-babel-execute-src-block'
  (if session
  ;; session evaluation
  (save-window-excursion
-   (cadr (slime-eval `(swank:eval-and-grab-output ,full-body
+  (with-temp-buffer
+(insert full-body)
+(slime-eval
+ `(swank:interactive-eval-region-orgmode
+   ,(buffer-substring-no-properties (point-min) (point-max))
;; external evaluation
(let ((script-file (org-babel-temp-file lisp-script-)))
  (with-temp-file script-file

Then, things like the following work, where I assume you've already
started M-x slime.

#+begin_src emacs-lisp :session

(defvar test1 test1 value)
(defvar test2 test2 value)
test2

#+end_src

#+results:
: test2 value


Best Regards,
--Erik Iverson

___
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] some lisp/slime progress

2011-02-20 Thread Erik Iverson



Then, things like the following work, where I assume you've already
started M-x slime.

#+begin_src emacs-lisp :session

(defvar test1 test1 value)
(defvar test2 test2 value)
test2

#+end_src

#+results:
: test2 value


Er, not emacs-lisp, just lisp... like the following

#+begin_src lisp :session

(defvar test1 test1 value)
(defvar test2 test2 value)
test2

#+end_src

#+results:
: test2 value

___
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] common lisp / slime evaluation in org-mode

2011-02-09 Thread Erik Iverson

Hello,

I have started playing around with SLIME and was pleased to find there
was already some support in org-mode for evaluating Common LISP
blocks. The comments in ob-lisp.el makes it clear that it is not
complete support yet. It appears for example that you can only
evaluate one lisp form per code block. Here is an example.

* First, let's try in emacs lisp

The following works how I would expect. The value in the results block
is the value of the last expression in the code block.

#+begin_src emacs-lisp

(defvar test1 test1 value)
(defvar test2 test2 value)
test2

#+end_src

#+results:
: test2 value

* Now, let's try common lisp

First, we need to start up a SLIME session, with M-x slime. This
assumes you have SLIME set up correctly. I am using SBCL as my CL
environment in this example.

#+begin_src lisp :session

(defvar test1 test1 value)
(defvar test2 test2 value)
test2

#+end_src

#+results:
: TEST1

You see the result in the buffer is the value of the first form, and
if I go into the inferior-lisp buffer, test2 is not bound to any
value. If I evaluate the CL code block above without the :session
argument, I get an error in the *Org-Babel Error Output* buffer.

Looking at the code in ob-lisp.el, I think I see why this is
happening, but don't know enough about SLIME yet to make it work. It
seems that line that calls =eval-slime= would need to be changed to
=eval-slime-buffer= after dumping the code block into a temporary
buffer. However, that didn't quite work since that function
(=slime-eval-buffer=) doesn't appear to actually return the final
value.

So, I write this in case this is an easy fix for someone with more
knowledge of SLIME, and to confirm that this is indeed the current
behavior that others see. I will continue to investigate a solution.

Thanks,
--Erik

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


Re: [Orgmode] [babel] common lisp / slime evaluation in org-mode

2011-02-09 Thread Erik Iverson

On 02/09/2011 07:18 PM, Eric Schulte wrote:

Hi Erik,

I've been switching from Clojure to Common Lisp myself, and have also
found that there are some issues with ob-lisp.el (although I've been too
busy recently to look closely at them).

ob-clojure.el works well, and uses slime for code evaluation -- and it
has a simpler setup than ob-lisp -- so maybe it would be possible to
port the code in ob-clojure over to common lisp?

I'll be happy to help get ob-lisp.el into shape once I have a free
moment...


Great, in the mean time, I'll definitely take a stab at it and submit
a patch if I fix my issue. Thanks for the tip!

--Erik


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


Re: [Orgmode] silent evaluation during export

2011-02-04 Thread Erik Iverson

Andreas,

This may help, but I'm not sure what language you're using.
I was using in this discussion.

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

The upshot from that thread was that by including a :session
argument, you guarantee that the code runs on export.

--Erik

Andreas Leha wrote:

Hi all,

I have several code blocks that must be evaluated during export, but
silently, i.e. I do not want code/output/anything to appear in the export.

How do I achieve this?  The obvious :export none also disables evaluation.

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] [OT] Taskwarrior, nice GTD-oriented CLI thing

2011-02-03 Thread Erik Iverson

Marcelo,

I've started dreaming of a system called 'org-dashboard'
that will do things like this.  E.g., progress tracking for
projects, books, weight loss goals.  Graphics of time tracking
for sleeping hours, work hours, exercise hours, etc.  Simple
counts of how many Coke's you drink, etc.  The idea will be
to incorporate all these different types of information into
an easy to read screen with simple graphics and tables, able
to be exported to HTML or PDF for, say, daily review.  This
could integrate with org-habit also.

I'm very much in the design phase now, no code.  I should have some
time to work on this in the coming months.  I'll definitely keep
the list updated with progress.

You could easily do this stuff now with, say, R code blocks, but
I am imagining a cohesive system.  What I'm dreaming of may in fact
be possible with some simple customized agenda hacking, I will
investigate that first.

--Erik

Marcelo de Moraes Serpa wrote:

By the way, now that you mention it, Eric. Is there anything right now
that can generate graphs akin to what taskwarrior generates for
archived org data? This would be awesome to track progress.

Marcelo.

On Thu, Feb 3, 2011 at 12:29 PM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:

Yeah, it's a quite nice project. I don't think it'd work for me as a
PIM environment though. I think emacs (or vim with the new
org-compatible plugin) will always be faster in this sense. Also, it
lacks the reference aspect of any GTD system (a wiki or wiki-like
collection of reference documents) which org seamlessly integrates.
However, I think that it could give some ideas for some org-compatible
CLI tools. Although emacs is the server and main client when it
comes to org, I think that the more tools that can read and write to
the org format, the better ;)

Marcelo.

On Thu, Feb 3, 2011 at 6:41 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

Marcelo de Moraes Serpa celose...@gmail.com writes:


Hey list,

I just found out about Taskwarrior today - http://taskwarrior.org. It
seems to be a quite ambitious project to turn the CLI into a
full-fledged GTD environment. I wouldn't leave org for it, but I
thought it's quite nice and maybe some ideas could be borrowed or even
integrations made. Anyway, just for the record. Check it out!

I'm not about to move from org but this does look quite nice.  I
particularly like the graph on the main page.  It's something one could
generate from org LOG entries...  when I'm bored!
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.304.g71203.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


___
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] Combination of =code= and Description

2011-02-03 Thread Erik Iverson



Bastien wrote:

Hi Rainer,

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


I would like to have a description as follow:

- first :: some text
- second :: some more text
- =code= :: some additional text

but =code= is not formatted as bold. If I say

- \bold{=code=} :: some additional text

I get, as one could expect, =code= in bold.

Is it possible to get code in bold?


Yes. For now it produces:

,
| \begin{description}
| \item[first]some text
| \item[second]some more text
| \item[\texttt{code}]some additional text
| \end{description}
`

where \texttt{code} is not taken into account.

But

  \item[{\texttt code}]some additional text

would do the job.  I don't know what are the LaTeX conventions 
regarding the use of {\texttt ...} vs. \texttt{...} constructs.


Any LaTeX guru here?


Certainly not a guru, but if you look at the zoomed-in PDF
output of your second attempt above:

 \item[{\texttt code}]some additional text,

you'll see that only the first letter 'c' is written in
typewriter font, and the rest are bold.  This is because
you did not use brackets to group the argument, so it only
passes the first letter it sees.

So if you do use brackets, you'll note that you only get
typewriter font, and not in bold: why is this?

I believe that, http://www.tex.ac.uk/cgi-bin/texfaq2html?label=bold-extras
explains that Computer Modern fonts do not come with a bold
teletype font.  The page offers some solutions for you if you
want this.

This is what I believe is happening anyway, and would be happy
to be corrected by a true guru!

--Erik Iverson



___
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] [OT] Taskwarrior, nice GTD-oriented CLI thing

2011-02-03 Thread Erik Iverson



Eric S Fraga wrote:

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


Marcelo,

I've started dreaming of a system called 'org-dashboard'


[...]


I'm very much in the design phase now, no code.  I should have some


but sounds good!  I look forward to it.

The trick will be to ensure that the correct data have been recorded.


As a practicing statistician, I am well aware that this can
be quite a trick! :)

___
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] Suppressing src block evaluationon publish?

2011-02-01 Thread Erik Iverson



Loris Bennett wrote:

Hi,

I have an org file containing several src blocks which generate images
using ditaa. When I publish to PDF via LaTeX, the images are all
generated every time, which makes publishing rather slow.

Is there some way to toggle the evaluation of the src blocks on and off
when the file is published?



You could try the :cache header argument, http://orgmode.org/org.html#cache



___
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: [OT] M-x not working anymore

2011-02-01 Thread Erik Iverson



Markus Heller wrote:

Tassilo Horn tass...@member.fsf.org writes:


Markus Heller helle...@gmail.com writes:

Hi Markus,


M-x doesn't work anymore!!  The M key works, e.g. M-w still does what
it's supposed to if a region is active, and I can use ESC x instead.

What does C-h k M-x say?


For C-h k M-x, it doesn't say anything.

For C-h k ESC-x, it says the following:


snip

You should start emacs with the -q flag and see if it still
happens.  Assuming M-x returns, comment out 1/2 of your .emacs
file and determine by binary search where the problem is.

--Erik

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


Re: [Orgmode] [OT] emacsclient -t (was Re: [OT] Have you also got hooked by Vim?)

2011-01-21 Thread Erik Iverson



Jeff Horn wrote:

On Thu, Jan 20, 2011 at 11:00 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

Matt Lundin m...@imapmail.org writes:


Jeff Horn jrhorn...@gmail.com writes:


On Wed, Jan 19, 2011 at 9:51 PM, Matt Lundin m...@imapmail.org wrote:

alias emacs=emacsclient -t -a /usr/bin/emacs

Thanks for sharing this. My manual doesn't mention the -t flag. What
does it do? (I didn't know about -a, but it looks nifty)


Now that I consider this further (and read the emacs man page), I'm not
sure if the -t flag is correct here. (It may be new to emacs 24).

In any case, -nw is the tried and true flag for doing this.

IIRC, -t is the same as -nw and is present from emacs 23.1 (maybe
earlier) onwards.  Very useful when connecting from a non-graphical
terminal (e.g. a mobile phone) to an existing Emacs running on
X... something I do frequently via =screen= for emulating a persistent
connection.


So IIUC, I have a windowed Emacsen running on a box where I work. If I
run `emacsclient -t somefile.txt` from an SSH connection to that box,
it uses the server that was started by the windowed emacs, but instead
of opening the file in the windowed emacs, it re-routes it to my SSH
session?


Even possibly better, if you've got X-forwarding enabled on your
SSH connection, you can start a windowed emacs instance on your
local machine that exactly matches the one on the server, even
with all the same buffers open, processes running, etc.

I use this type of setup at home.  You need to start emacs in
'daemon' mode, see 
http://emacs-fu.blogspot.com/2009/02/emacs-daemon.html , for

example.  That site has examples of how to use it.

One caveat. I use Ubuntu, and I think I had to do something
special with my Xauth file for this to work, please follow
up if you run into trouble and use Ubuntu, and I'll be glad
to look into what I did.

--Erik


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


Re: [Orgmode] Re: Worg needs some reorganizing

2011-01-20 Thread Erik Iverson



Jeff Horn wrote:

On Thu, Jan 20, 2011 at 6:22 AM, Dan Davison dandavis...@gmail.com wrote:

I strongly second this. In fact I'll stick my neck out more: Worg is
great, but for tutorials on org-mode, HTML export is often the wrong
format for obvious reasons (i.e. unless you go to some trouble, it
conceals a lot of the org syntax). I'm tempted to suggest that htmlized
output should be the default format for many org tutorials on Worg.


I respectfully disagree with your assertion. When someone writes a
document properly, i.e. in a literate fashion, i.e. using org source
blocks, the right syntax is shown at the right time. Please see the
manual as an example.


I must admit I ran into this exact problem when writing an org-babel/R
tutorial.  The problem came down to the following: I was writing an
interactive org-mode document showing mainly how code blocks work within
org.  This of course necessitates that I describe code block arguments.
But these aren't shown in export. I believe the solution would be
to export an example block to HTML, but then *also* include a source
code block for interactive org-mode use.

So my tutorial makes perfect sense when you're following along in org
mode.  But the HTML export seems a little odd since only the content
of the code blocks are shown, and not the full code blocks, which is
the point of the tutorial.

___
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] Need help on org-exp-blocks and dot

2011-01-20 Thread Erik Iverson



Bryan Emrys wrote:

Hi,

Now getting an error message: /bin/bash: dot: command not found

Hmm. Pathname issue?


Absolutely.



On the mac, dot is in /opt/local/bin/dot
My .emacs file has: (setq load-path (cons /opt/local/bin load-path))



That won't add anything to your shell's path, it's just where Emacs
looks for code to load.

I can certainly just open a terminal window and run dot from the command 
line.


Can you grep your shell startup files and find out which one adds
/opt/local/bin to the 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


Re: [Orgmode] Need help on org-exp-blocks and dot

2011-01-20 Thread Erik Iverson



Bryan Emrys wrote:

/usr/local/bin is also in /etc/paths

if I echo $PATH, I get

/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin


How are you echoing path, starting up a terminal, or within
Emacs M-x shell?

What if you try M-x getenv RET PATH RET in Emacs?




Thanks,

Bryan

On Thu, Jan 20, 2011 at 1:33 PM, Bryan Emrys bryan.em...@gmail.com 
mailto:bryan.em...@gmail.com wrote:


Eric,

.profile has:
# MacPorts Installer addition on 2009-04-08_at_20:48:37: adding an
appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with
MacPorts.



On Thu, Jan 20, 2011 at 1:28 PM, Erik Iverson er...@ccbr.umn.edu
mailto:er...@ccbr.umn.edu wrote:



Bryan Emrys wrote:

Hi,

Now getting an error message: /bin/bash: dot: command not found

Hmm. Pathname issue?


Absolutely.



On the mac, dot is in /opt/local/bin/dot
My .emacs file has: (setq load-path (cons /opt/local/bin
load-path))


That won't add anything to your shell's path, it's just where Emacs
looks for code to load.


I can certainly just open a terminal window and run dot from
the command line.


Can you grep your shell startup files and find out which one adds
/opt/local/bin to the 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


Re: [Orgmode] C-c a t shows empty list

2011-01-20 Thread Erik Iverson

Which version of Emacs / org-mode?

Микола Стрєбков wrote:

Hi orgsters,
 
I started to use org-mode together with MobileOrg and everything was fine. But two days ago I realized that I'm unable to build neither agenda nor todo lists from my org files. Problem occurred on both Emacs and my iPhone even on the simplest files like:


* test
** TODO test2
** TODO test3
* test4

I found similar issue in google cache (osdir.com gives 403) but it was resolved 
by just Emacs restarting. I'm not so happy.

Please help.



___
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] C-c a t shows empty list

2011-01-20 Thread Erik Iverson



Микола Стрєбков wrote:

Hi

On 20 січ. 2011, at 23:43, Erik Iverson wrote:


Which version of Emacs / org-mode?


Hmm...
Emacs 23.2 OS X,
M-x org-info shows docs for 6.33 but I have installed version 7.4...


Does M-x org-version report the correct version?



The latest org-mode installed in:
(setq load-path (cons ~/.emacs.d/org load-path))

Here is org part of my .emacs:

;;;
;;; Org mode
;;;
(require 'org-install)
(transient-mark-mode 1)
(setq org-log-done 'time)
(setq org-directory ~/Org)
(setq org-footnote-auto-adjust t)
(setq org-mobile-files (quote (~/Org/main.org)))
(setq org-mobile-directory ~/Dropbox/MobileOrg)
(setq org-mobile-inbox-for-pull ~/Org/inbox.org)
(setq org-todo-keywords
  '(
(type TODO | DONE)
(sequence PROJ | FINISHED)
(sequence PROG | CANCELLED DONE)
)
  )
(setq org-default-notes-file (concat org-directory /notes.org))
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))



Микола Стрєбков wrote:

Hi orgsters,
I started to use org-mode together with MobileOrg and everything was fine. But 
two days ago I realized that I'm unable to build neither agenda nor todo lists 
from my org files. Problem occurred on both Emacs and my iPhone even on the 
simplest files like:
* test
** TODO test2
** TODO test3
* test4
I found similar issue in google cache (osdir.com gives 403) but it was resolved 
by just Emacs restarting. I'm not so happy.
Please help.




___
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] Blogging from org-mode

2011-01-17 Thread Erik Iverson

On 01/17/2011 01:13 PM, Juan Reyero wrote:

On Sun, Jan 16, 2011 at 9:57 PM, Tom Breton (Tehom) te...@panix.com
mailto:te...@panix.com wrote:

Some months back I contributed improvements to org-html.  My intent was to
make it easy to post org files as blog posts.

So this is a sort of delayed announcement.  There are two packages that
post to blogs from org-mode: My org2blog/atom and Puneesh's (punchagan's)
org2blog/wp.  I know there are also blog hosts based on org-mode, but
that's different.  This is pushing org files to a normal blog host such
as Blogger (for org2blog/atom) or Wordpress (org2blog/wp)

org2blog/atom lives in the git repo http://repo.or.cz/r/org2blog.git and
org2blog/wp lives in https://github.com/punchagan/org2blog.git

Both respect the normal export options (#+TITLE: etc) but other than that
the approaches are fairly different.

Please tell me if I've missed any other org-based blogging software (other
than the blog hosting software which is a different category).


I wrote org-jekyll a while back to export a blog to jekyll,

http://juanreyero.com/open/org-jekyll/index.html



I also simply use weblogger.el (http://www.emacswiki.org/emacs/WebloggerMode) 
combined with a really easy function defined at 
http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal. 
Weblogger.el is really nice because it lets you also edit existing entries in 
Emacs.  Don't know if all the solutions above do the same.  This method also 
allows you to use different blog systems than Drupal, I believe any that support 
XMLRPC updates, including Blogger, Drupal, Wordpress, ...


___
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] Blogging from org-mode

2011-01-17 Thread Erik Iverson

Hello,

On 01/17/2011 03:02 PM, Samuel Wales wrote:

On 2011-01-17, Erik Iversoner...@ccbr.umn.edu  wrote:

I also simply use weblogger.el
(http://www.emacswiki.org/emacs/WebloggerMode)


I made the mistake of trying this, thinking it had no dependencies
other than the other .el file so would be easier.  It looks
potentially useful.

I looked at 2 versions of this, and both had the same version number,
but the code was different.  That's a slightly bad sign.

   http://launchpadlibrarian.net/40758914/weblogger.el
   
http://windows-config.googlecode.com/svn/trunk/.emacs_d/weblogger/weblogger.el

Also, there is a compiler warning for obsolete variable, so the code
might be old?

Finally, I couldn't figure out the basics.  Just to confirm, this
takes HTML and posts it?  It does not make this clear.


Yes, you can set up a blog by first doing:

M-x weblogger-setup-weblog RET

But there were some quirks when I tried this with Drupal 6. I think I had to 
have at least one post already in the blog before it worked. But after that, I 
was able to weblogger with the function defined in the link below to post to 
Drupal.




combined with a really easy function defined at
http://www.randomsample.de/dru5/node/77 to post to blogs including Drupal.


What does your really easy function do that weblogger.el does not do?


Weblogger just sends the HTML to the blog, and lets you edit existing entries. 
It does not produce the actual HTML.


The function from randomsample.de exports an Org-mode buffer to HTML and 
massages the HTML output to be of a form that blogs like. I.e., gets rid of 
the headers.  Weblogger has nothing to do with org-mode per se, it just lets you 
post content to blogs that support XMLRPC.


That's about as far as my knowledge goes, so I hope it helps. This method isn't 
completely clean, but it did work for me with Drupal 6 (but haven't gotten it to 
work yet in Drupal 7...)


As usual, there's more than a few ways to do things, so the more options the 
better in my opinion.


___
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] Basic organization question

2011-01-14 Thread Erik Iverson

On 01/14/2011 09:35 PM, Tommy Kelly wrote:

I can see that TODOs can be organized using tags, or categories, or
files, or simply subtrees (or several of those). Is there an obvious
choice?


My vote is NO, org is really about finding what works best for you,
and the plethora of choices reflects that different people work in
different ways!  Try out a few until something feels natural.



All I'm really looking for is a basic organization, to let me group
tasks of different broad functional areas -- accounting, recruitment,
IT, and so on.

And I like the idea discussed in http://orgmode.org/org.html, where
tasks get captured into a single refile.org file and then later moved
about into their classification homes.

But of those various ways of classifying, is there one to be preferred?

thanks,
Tommy


___
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] Question on org-beamer markup

2011-01-12 Thread Erik Iverson

Hello,

According to http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html

the following markup should work when exporting to PDF from an 
org-beamer document.


- the first, very @important@, point!
- the previous point shows the use of the special markup which
  translates to the Beamer specific /alert/ command for highlighting
  text.

However, upon export the resulting .tex file does not actually contain 
this translation from @important@ to the alert command, but rather sill 
has @important@ in the output.


Am I missing some part of the setup process?

I am using the latest org pulled from git.

Thanks!
--Erik

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


Re: [Orgmode] org-babel, R, and org-babel-open-src-block-result

2011-01-11 Thread Erik Iverson

On 01/11/2011 04:22 AM, Leo Alekseyev wrote:

I recently started using org-babel with R, and so far I think it's
pretty great!  I'm still getting accustomed to org-babel workflow and
am playing with available options.  I have a couple of questions:

I noticed that C-c C-o (org-babel-open-src-block-result) always gives
me an empty *Org-Babel Results* buffer, even if there's output printed
to #+results section.  Is this a bug?  Am I doing something wrong?

On a similar note, is there an option for the #+ results session to be
completely suppressed?..  I can see situations where I might simply
want to send the code to the inferior process and examine the results
there using :results output :session, or perhaps I'm running the code
just for the side effects.  It would be nice if I could say e.g.
:results none.


From the manual:

The following results options indicate what happens with the results once they 
are collected.


* silent
The results will be echoed in the minibuffer but will not be inserted into the 
Org-mode buffer. E.g., :results output silent.


___
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] Help with migrating blog to org-mode format

2011-01-10 Thread Erik Iverson

Myriam,

I write my content in Org-mode, and use weblogger.el to post my content. 
Just search for weblogger on Emacs wiki, and perhaps this will help a 
bit too:


http://www.randomsample.de/dru5/node/77

This is about Drupal, but the ideas should work for posting to anything 
that supports xmlrpc.


--Erik

Myriam Abramson wrote:

Hello,

After Google dropped the ftp option to blogger, I dumped my blog to an
xml file with the hope of ressucitate it to a more friendly
environment for me. I've found this environment with a combination of
org-mode, blorg, and ... dropbox. Dropbox just provides me a link to
publish my blog wherever I want to. Blorg isn't being maintained I
believe and it has lots of error but it works in converting org-mode
to blog formatting for now and I can work on it later. 


Each topic in a blog is a TODO task and the date is inserted when the
task is DONE. I'm planning to read from my xml blog and write topics
simply as * DONE mytopic ...  but how can I get the publication date
in org to get CLOSED: date on the next line? 

The xml of my blog is something like that: 


title type='text' my title/title
content type='html' my content/content
published2003-10-22T18:27:00.000-04:00/published

TIA,

myriam




From the cat's little instruction handbook:

Treat yourself to a nap in the sock drawer once in awhile.

___
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 and R issue when exporting to PDF via LaTeX in Windows 7

2011-01-03 Thread Erik Iverson



Ben Ward wrote:

Hi, all, I hope someone can help with this issue,

Unfortunately I'm having a work PC upgrade, and it means Windows 7 and 
the order not to install any other system on it for compatibility and 
for the IT experts - I use the term loosely, to only need to know how to 
use one system.


Im trying to get org-mode set up with emacs so I can icorporate R code 
in my documents - like Sweave functionality. I have this achieved in 
Arch Linux. Howeer when I export to PDF in Windows 7 I'm just getting a 
PDF with Titl, Author, Date, and Contents and then no R stuff.


Is R in your path?  ESS uses its own tricks to find a valid version
of R on your system, but I think org-mode will just use your system
path, if I recall correctly.


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


Re: [Orgmode] MobileOrg Android 0.5.0 - Now with native Dropbox support!

2010-12-21 Thread Erik Iverson

On 12/21/2010 06:25 PM, Matthew Jones wrote:

Merry Christmas to all MobileOrg Android users... I am pleased to announce the
0.5.0 release of MobileOrg for Android.


Great, looking forward to trying it out!



This release includes support for Dropbox which is the single most requested
feature.  I actually finished writing the code for this a few weeks ago, but it
has taken a little while for the Dropbox folks to approve it for release.


Can you briefly describe what this approval process it about?  As in, what
exactly are they approving of?  That you use their trademarked name in the
app perhaps?


___
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] How can i share a single org-default-notes-file between multiple instances of emacs?

2010-12-16 Thread Erik Iverson

Note a direct answer, but I would just open up all the
buffers you use, and then either save window configurations
in registers to recall them when you switch contexts, or use
a package like Elscreen:

http://www.emacswiki.org/emacs/EmacsLispScreen

Eric Holbrook wrote:

At work i typically need to have at least 2 emacs running: 1 for the
project i'm working on at the moment; 1 for notes, email, ~/.bashrc,
~/.alias, etc.

I often have more than 1 project going at a time, so i end up with 3
or 4 emacs running, sometimes more.

I'd like to be able to do 'org-capture from any emacs, and have them
all dump into the same org-default-notes-file, which i have creatively
named notes.org.

How can i do this? I thought of possibly setting a defadvice tied to
notes.org that tells all running emacs to unceremoniously revert that
buffer before doing anything else to it, and to save it when done with
it.

Has anybody already solved this problem?

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


___
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] [OT] Emacs for Windows 7

2010-12-16 Thread Erik Iverson



Markus Heller wrote:

Hello all,

I know this is OT, but I'm going to have to have my work computer
upgraded to 


Apparently that's a good idea! :)


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


Re: [Orgmode] [RFC] Self-configuring Org-mode files

2010-12-10 Thread Erik Iverson



Jeff Horn wrote:

On Fri, Dec 10, 2010 at 2:09 AM, Thomas S. Dye t...@tsdye.com wrote:

4) A super-function in the Library of Babel would set the buffer-local
instance of every relevant Org-mode variable to its default state:
#+source: lob-set-local-defaults
#+begin_src emacs-lisp
...
#+end_src


Would this function save the current state of each variable it changes
for restoration after the user exits the buffer?


Perhaps I'm mis-understanding, but Thomas' suggestion is to set the
variables *buffer-local*, not global, so once the buffer is killed,
so are the buffer-local versions of the variables.


___
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] Elsevier's Executable Paper Grand Challenge

2010-12-07 Thread Erik Iverson



  The purpose of the Executable Paper Challenge is to invite scientists
  to put forth their ideas pertaining to these pressing and unsolved
  questions.


I come up with the same answer to all four questions --- Org-mode!


Yes, these are only unsolved questions to those who haven't
discovered the answer yet.

It does seem like an interesting challenge though, it will be
good to see what the entries look like.

___
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-indent mode not indenting free text?

2010-12-03 Thread Erik Iverson

Just a guess here: This may be some weirdness
because the check in org-indent *will* allow
people using GNU Emacs 23.1.50 to turn on
org-indent, as far as I can tell.

The message org-indent-mode can crash Emacs 23.1
does not fully explain if it can also crash 23.1.50.

If indeed you should be having to run Emacs 23.2 or
greater to get org-indent-mode, I don't believe that
is what is currently happening.

Perhaps that check should require 23.2 or
greater? I don't know the details here, but
it's a starting place to look.

Antti Kaihola wrote:

2010/12/2 Achim Gratz strom...@nexgo.de:

What version of Emacs are you running?


This is:
GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0) of
2009-09-27 on palmer, modified by Debian


 What does C-h f with-silent-modifications result in?


with-silent-modifications is a Lisp macro in `org-macs.el'.

(with-silent-modifications ORG-UNMODIFIED)

Not documented.


 Could you back out the change
(most likely the defmacro for with-silent-modifications in org-macs.el,
even though I have no clue why this would interact with org-indent-mode
as it should not be defined for versions 23.1) and tell us if that
solves your problem (which I can't test because org-indent-mode doesn't
even start on Emacs 23.1)?


Yes it does! I commented out:

;;(if (or ( emacs-major-version 23)
;;  (and (= emacs-major-version 23)
;;   ( emacs-minor-version 2)))
;;(defmacro with-silent-modifications
;;  (org-unmodified)))

and it now works correctly. Thanks a lot!

___
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: org-indent mode not indenting free text?

2010-12-03 Thread Erik Iverson



Carsten Dominik wrote:

Hi Erik,

On Dec 3, 2010, at 5:18 PM, Erik Iverson wrote:


Just a guess here: This may be some weirdness
because the check in org-indent *will* allow
people using GNU Emacs 23.1.50 to turn on
org-indent, as far as I can tell.


org-indent-mode should work in 23.1.50, this is the
release where the fix was made.



The message org-indent-mode can crash Emacs 23.1
does not fully explain if it can also crash 23.1.50.


Yes, may be this is not so clear.  The current setup forbids it
before 23.1.50, and allows it from 23.1.50.  At least that is
what I meant.  Is there a bug?


No, I did not realize that this is what was indeed meant.
More below...

snip


Could you back out the change
(most likely the defmacro for with-silent-modifications in org-macs.el,
even though I have no clue why this would interact with org-indent-mode
as it should not be defined for versions 23.1) and tell us if that
solves your problem (which I can't test because org-indent-mode doesn't
even start on Emacs 23.1)?

Yes it does! I commented out:
;;(if (or ( emacs-major-version 23)
;;(and (= emacs-major-version 23)
;; ( emacs-minor-version 2)))
;;(defmacro with-silent-modifications
;;  (org-unmodified)))
and it now works correctly. Thanks a lot!



I have now changed the definition like this:

(if (and (not (fboundp 'with-silent-modifications))
 (or ( emacs-major-version 23)
 (and (= emacs-major-version 23)
  ( emacs-minor-version 2
(defmacro with-silent-modifications (rest body)
  `(org-unmodified ,@body)))


I must admit I don't understand the above macro,
but what I was getting at before was:

It only appears defined for Emacs  23.2,
So in particular, 23.1.50 is 'stuck' in
between these two version checks, and maybe
that's causing Antti's issue?


May I ask you to pull and check if this is
working for you out of the box?


Works for me fine on Emacs 23.2, we will see
if it does for Antti also.



___
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-indent mode not indenting free text?

2010-12-02 Thread Erik Iverson

I also don't understand the following part of
Antti's message:

Free text is still not indented and indents are only one space.

That seems contradictory to me?

--Erik


Erik Iverson wrote:

Carsten,

Not as far as I can tell, it seemed fixed to me
after David's message:

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

I haven't had any problems since then, and I just did
a pull just now, reloaded and all appears well.

If there's anything else I can do to help, please let me
know, but I can say that my original issue was fixed, so
I'm not sure if anyone else is still having the problem,
why it would be? Did they org-reload or restart emacs?
I thought maybe with that problem, I actually had to
restart emacs to get it to work again, but could be
mis-remembering.

--Erik

Carsten Dominik wrote:

Hi Erik,

are you still having this problem?

- Carsten

On Nov 23, 2010, at 5:47 PM, Erik Iverson wrote:


Hello,

I just pulled the latest org from git, and org-indent
mode does not seem to be fully working anymore.

I still see the additional stars added to headlines, and
they are shadowed properly.  But the free text lines under
each headline are not shown indented as they previously
were.

I cannot be sure when this change happened, but I think
within the last week or so.  Can anyone else reproduce
this?

It wasn't clear from looking at the git logs for
org-indent.el that anything has recently changed that
would affect this, so I'm currently stumped.

--Erik

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




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


___
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] Synchronize files among computers via MobileOrg, and create tasks from iPhones?

2010-12-01 Thread Erik Iverson



Jing Su wrote:

Dear all,

Just curious that if we could push to the MobileOrg server, e.g., 
DropBox, from a computer, and pull it down from another computer, so 
that we can synchronize org files on different computers via MobileOrg. 


I store all my *actual* org files on Dropbox, along with the Mobile Org
versions.  This gives me sync'ing between all my computers with Dropbox
installed.

I used to use CVS for synchronizing, but now SSHing in and out are 
blocked at my working places, so I can no longer synchronize files 
between home computers and work computers via ssh+cvs. Could someone 
kindly suggest some methods to securely synchronize files without ssh 
please?


This I am not sure about, although some people use org-crypt for this
I think.  There is also something called mobile org crypt also which
lets you store encrypted org files on Dropbox for viewing on the iphone.

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



It would also be great if more functions of the org-mode (e.g., creating 
new tasks) can be accessed from an iPhone. I am struggling to decide if 
I should stay with Org-mode (I love Emacs) or switch to outlook. 


!!!

I can 
access all functions of my online calendars from my iPhone or from 
Outlook or a web browser on any computer; but for MobileOrg, I have to 
put things as notes on my iPhone, then do the copy/paste later when I 
can access my MAIN desktop -- synchronizing org files among computers is 
painful, as I just explained, so I have to set one as the MAIN desktop 
for using the org-mode.


Not if you just use Dropbox for storing your actual org files. Also,
there is org-mobile-pull that should pull in any notes captured on
the iPhone and place them in an org file of your choosing for
refiling.

As for calendar, there are tools on the list for synching with
Google calendar, although not from mobile org as far as I know.


___
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-indent mode not indenting free text?

2010-11-23 Thread Erik Iverson

Hello,

I just pulled the latest org from git, and org-indent
mode does not seem to be fully working anymore.

I still see the additional stars added to headlines, and
they are shadowed properly.  But the free text lines under
each headline are not shown indented as they previously
were.

I cannot be sure when this change happened, but I think
within the last week or so.  Can anyone else reproduce
this?

It wasn't clear from looking at the git logs for
org-indent.el that anything has recently changed that
would affect this, so I'm currently stumped.

--Erik

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


Re: [Orgmode] org-latex-to-pdf-process missing?

2010-11-22 Thread Erik Iverson

I'm guessing you just need to

(require 'org-latex)

--Erik

Jeff Horn wrote:

Dear orgsters,

Sorry for the noise, but it isn't immediately clear to me from the
docs. `C-h v org-latex-to-pdf-process` indicates that the variable
doesn't exist in my org-mode installation. I'm using org-mode 7.3 in
emacs 23.2 (Aquamacs 2.1).

I remember a discussion a few weeks ago centered on how to get org to
export to PDF using the appropriate compilation sequence. Is this
variable missing because org now uses texi2dvi or another shell
program that automagically figures this stuff out?

If so, someone who knows how might wish to update the latex export
page at worg.[1]

Thanks for the info,
Jeff

Footnotes:
[1] http://orgmode.org/worg/org-tutorials/org-latex-export.php



___
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: Clock report (R from the agenda)

2010-11-22 Thread Erik Iverson

Carsten, yes, fixed, thank you!

Carsten Dominik wrote:

Hi Erik,

please pull and see if the error persists.
What is the value of org-agenda-start-with-clockreport-mode

?

- Carsten

On Nov 19, 2010, at 7:38 PM, Erik Iverson wrote:


I don't know what this thread is about, but it seems related.
Aapologies if I'm
hijacking it, but as of my latest pull just this morning,
my agenda has no clocktable in it, where as it previously
did.  I have not changed anything as far as I know.

Thanks!

--Erik

Sébastien Vauban wrote:

Hi Carsten,
Carsten Dominik wrote:

On Nov 4, 2010, at 11:39 AM, Sébastien Vauban wrote:

Carsten Dominik wrote:

you should now be able to use `C-u R' to achieve this.

OK.


The lighter in the mode line will then switch from Clock to 
Clock{},
A detail: I'd eventually would have written Clock/ to remind the 
/ used

for applying the filters.
I did use {} because the current filter is actually listed in the 
mode line,

surrounded by {}.

Another: could we append, in the modeline, the tags (or their 
abbrev, such

as w for work) used in the filtered view?

The filter *is* shown in the mode line.  Just not as part of the Clock
lighter.
I wanted to (re-)test these, but now, when doing R, nothing is 
appended into

my buffer with logged times. Did I do something wrong?
Same with C-u R.

and the current tags filtering should apply to the clock table in the
agenda.

Please test this and report back.

Only minor thing: while the logged lines are correctly shown or made
invisible in the grid time, you need to refresh the table with g 
for it

to display the correct values.

Until that, what's above is not in sync' with what's in the table. 
Isn't

there a way to make this refresh happen automatically?
That would be possible. However, the whole idea of filtering is to 
be *very*

fast, it works by hiding lines that are already in the buffer. Doing a
refresh for each change in filter would be time consuming. So I'd 
say having
to refresh by hand if the clock is showing filtered stuff is the 
smaller

evil.
I would privilege coherency of sums above small delay in table 
appearance. You

know, when we look at tables for chasing time, we really need trustable
figures.
In fact, I don't really understand your argument: if I want quick 
reports, I
would just choose for the unfiltered view. If I need detailed sums of 
clocked

times, I would go for the filtrable view (by C-u R) and would accept a
little delay.
If you really don't share this vision, could you at least make this
customizable?  TIA.

: | File | L | Headline | Time|  |
: |--+---+--+-+--|
: |  |   | *Total time* | *10:15* |  |
: |--+---+--+-+--|
: | Clock-Report.org |   | *File time*  | *10:15* |  |
: | Clock-Report.org | 1 | Work | 8:09|  |
: | Clock-Report.org | 2 | Client A | | 3:23 |
: | Clock-Report.org | 2 | Client B | | 4:46 |
: | Clock-Report.org | 1 | Personal | 2:06|  |
: | Clock-Report.org | 2 | DONE Lunch with Mary | | 2:06 |

Nice new layout. Much clearer for the levels...

Yes, I think so to.  Try :compact t, that is also nice, I think.

I'll have a look -- when reports will come back to life.

| File | Headline | Time|  |
|--+--+-+--|
|  | ALL *Total time* | *10:15* |  |
|--+--+-+--|
| Clock-Report.org | *File time*  | *10:15* |  |
|  | Work | 8:09|  |
|  | \__ Client A | | 3:23 |
|  | \__ Client B | | 4:46 |
|  | Personal | 2:06|  |
|  | \__ DONE Lunch with Mary | | 2:06 |
A couple of days ago, when it still worked, I've just seen something 
really
painful: all the Org buffers were referenced in that table, even 
those which
should not participate -- because I did not clock any time in them 
(for that

or those days).
Plus, having many Org files, in fact, I did not see anymore the lines 
with the

real time, as there were many lines with 0:00 time before them...
Best regards,
 Seb


___
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] inconsistent export of R results in orgmode 7.3,

2010-11-22 Thread Erik Iverson

Ian,

What does your *R* session buffer look like
when this does and does not work?  The same?

Perhaps the prompt is getting confused at some point?

Your example has worked 4 times in a row for me...

--Erik

Ian Kennedy wrote:

Since upgrading to org-mode 7.3 I have had inconsistent export of R code
block results. Sometimes the results appear in the exported document,
sometimes they don't. I've included the simplest example I've been able to
come up with below. When I export this file the data frame is exported
about half the time. The example below is about the shortest I've come up
with that shows inconsistent export. I usually have the problem with more
complex documents, which use R only, and  which have R read in data from
external files.

I do not have the problem if I use org-mode 7.01h. I am running emacs 23.2
on Windows XP with R 2.12.0. My apologies if this has already been
discussed (if it has, maybe somebody can point me to the discussion I
missed).

Here's the example:
* Ditaa Example
  #+BEGIN_SRC ditaa :file dit.png :width 300 :height 300  :exports results
+---+
|   |
|Block 1|
|   |
+---+---+
|
|
v
+---+
|   |
|Block 2|
|   |
+---+

  #+END_SRC
* R example
** Something  in R

   #+BEGIN_SRC R :session *R* :exports none
 x - 1:5
 y - data.frame(A=x, B=round(sin(x/3.3),3))
   #+END_SRC

** A table which is often not exported
   #+BEGIN_SRC R :session *R* :exports results :colnames yes
 y
   #+END_SRC


Thanks,
Ian


___
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: Clock report (R from the agenda)

2010-11-19 Thread Erik Iverson

I don't know what this thread is about, but it seems related.
Aapologies if I'm
hijacking it, but as of my latest pull just this morning,
my agenda has no clocktable in it, where as it previously
did.  I have not changed anything as far as I know.

Thanks!

--Erik

Sébastien Vauban wrote:

Hi Carsten,

Carsten Dominik wrote:

On Nov 4, 2010, at 11:39 AM, Sébastien Vauban wrote:

Carsten Dominik wrote:

you should now be able to use `C-u R' to achieve this.

OK.



The lighter in the mode line will then switch from Clock to Clock{},

A detail: I'd eventually would have written Clock/ to remind the / used
for applying the filters.

I did use {} because the current filter is actually listed in the mode line,
surrounded by {}.


Another: could we append, in the modeline, the tags (or their abbrev, such
as w for work) used in the filtered view?

The filter *is* shown in the mode line.  Just not as part of the Clock
lighter.


I wanted to (re-)test these, but now, when doing R, nothing is appended into
my buffer with logged times. Did I do something wrong?

Same with C-u R.



and the current tags filtering should apply to the clock table in the
agenda.

Please test this and report back.

Only minor thing: while the logged lines are correctly shown or made
invisible in the grid time, you need to refresh the table with g for it
to display the correct values.

Until that, what's above is not in sync' with what's in the table. Isn't
there a way to make this refresh happen automatically?

That would be possible. However, the whole idea of filtering is to be *very*
fast, it works by hiding lines that are already in the buffer. Doing a
refresh for each change in filter would be time consuming. So I'd say having
to refresh by hand if the clock is showing filtered stuff is the smaller
evil.


I would privilege coherency of sums above small delay in table appearance. You
know, when we look at tables for chasing time, we really need trustable
figures.

In fact, I don't really understand your argument: if I want quick reports, I
would just choose for the unfiltered view. If I need detailed sums of clocked
times, I would go for the filtrable view (by C-u R) and would accept a
little delay.

If you really don't share this vision, could you at least make this
customizable?  TIA.



: | File | L | Headline | Time|  |
: |--+---+--+-+--|
: |  |   | *Total time* | *10:15* |  |
: |--+---+--+-+--|
: | Clock-Report.org |   | *File time*  | *10:15* |  |
: | Clock-Report.org | 1 | Work | 8:09|  |
: | Clock-Report.org | 2 | Client A | | 3:23 |
: | Clock-Report.org | 2 | Client B | | 4:46 |
: | Clock-Report.org | 1 | Personal | 2:06|  |
: | Clock-Report.org | 2 | DONE Lunch with Mary | | 2:06 |

Nice new layout. Much clearer for the levels...

Yes, I think so to.  Try :compact t, that is also nice, I think.


I'll have a look -- when reports will come back to life.



| File | Headline | Time|  |
|--+--+-+--|
|  | ALL *Total time* | *10:15* |  |
|--+--+-+--|
| Clock-Report.org | *File time*  | *10:15* |  |
|  | Work | 8:09|  |
|  | \__ Client A | | 3:23 |
|  | \__ Client B | | 4:46 |
|  | Personal | 2:06|  |
|  | \__ DONE Lunch with Mary | | 2:06 |


A couple of days ago, when it still worked, I've just seen something really
painful: all the Org buffers were referenced in that table, even those which
should not participate -- because I did not clock any time in them (for that
or those days).

Plus, having many Org files, in fact, I did not see anymore the lines with the
real time, as there were many lines with 0:00 time before them...

Best regards,
  Seb



___
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] Inserting text into the head part of an HTML document?

2010-11-18 Thread Erik Iverson

Stephen,

There may be a better answer, but I see in the
doc-string for org-export-html-style, that:

As the value of this option simply gets inserted into the HTML head
header, you can \misuse\ it to add arbitrary text to the header.
See also the variable `org-export-html-style-extra'.

However, I doubt you want to use the 'org-export-html-style' variable,
since it looks like you have to specify the entire header, but
perhaps the 'style-extra' version will do what you want?

--Erik

Stephen Eglen wrote:

I'm using org-mode to export an html file of my org file.  I'd like to
add the following line to the head  ... /head section of the
document:

#+HTML: meta name=robots content=noindex, nofollow /

[This line tells search indexes not to index the file.
http://www.google.com/support/webmasters/bin/answer.py?hl=enanswer=93710
]

but the HTML directive puts it in the body, rather than the head.
Any ideas how I'd get it into the head?  I tried +HTML_HEADER as an
analogy to LATEX_HEADER, but that doesn't seem to be defined.

Thanks, Stephen

org-version
7.02trans


___
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] tangle results of source blocks?

2010-11-08 Thread Erik Iverson

Unfortunately I can't look this up at the moment, but
my guess is that the :results code option might help with
what you want?

Maurizio Vitale wrote:

Sébastien == Sébastien Vauban wxhgmqzgw...@spammotel.com writes:


Sébastien Hello Maurizio,
Sébastien Maurizio Vitale wrote:
 Hi, I have procmail rules defined in a org table which is then
 used as an argument for an elisp block which produces procmailrc
 results.
 
 Something like:
 
 #+tblname: mailing-lists | to | emacs-users | emacs-users |

 #+TBLFM:
 
 #+srcname: procmail-rules(mailing-lists=mailing-lists)

 #+begin_src emacs-lisp :exports results :results output :tangle
 no ... elisp code that evaluates to procmail rules #+end_src
 
 #+results: procmail-rules :tangle /tmp/YYY :0: *

 ^to_emacs-us...@xxx.com
 $MAILDIR/emacs-users/
 
 I'd like to tangle the result section, not the code block. Is

 that possible?

Sébastien See the exports header argument.

Sébastien http://orgmode.org/manual/exports.html#exports

That option controls what is exported, but I really need to tangle:
there're portions of the file, section headings and other documentation
that don't belong into the output file. So for instance given:

* Introduction
  This is a file that does blah
* Configuration
#+tblname: config
|a | nice table|

*Details
#+srcname: procmail-rules(config=config)
#+begin_src emacs-lisp :exports results :results output :tangle ~/.procmailrc
 ... elisp code that evaluates to procmail rules  
#+end_src


Of this entire file, noting should end up in ~/.procmailrc except for the
result of the evaluation of procmail-rules, which is what I hoped to
achieve with ':tangle ~/.procmailrc' and ':exports results' combined.

Thanks,

Maurizio







___
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] org-mode completion tip

2010-11-05 Thread Erik Iverson

Hello,

I have always ignored in-buffer Completion
(http://orgmode.org/org.html#Completion) in org-mode
because it is bound to M-TAB, which my window manager
(any many others) use to switch applications.

Many of you may have disabled your window manager's
special usage of that key, or re-bound the org-complete
command to another key chord in emacs.

However, just this morning I discovered you can use
C-M-i in as an alternative to M-TAB in emacs, so that
completion also works with that key chord.

Hopefully someone else may find this useful.

--Erik

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


Re: [Orgmode] Installing Orgmode through ELPA-tarball

2010-11-01 Thread Erik Iverson

I agree about the word 'easiest'.  Perhaps a more neutral
phrasing of the question, such as:

How can I install Orgmode through Emacs' Package Manager?

Tom Short wrote:

On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K kjambunat...@gmail.com wrote:

** What is the easiest way to install latest version of Orgmode?



That's all good information to have, but I'm not sure it's the easiest
way to install the latest version. It may eventually be easy, but the
existing steps look relatively cumbersome.

Using git seems like the easiest way to get the latest version with
the advantage that you can pick the version you want (latest
up-to-the-minute, latest release, or some other release).

- Tom

___
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] Release 7.02

2010-10-29 Thread Erik Iverson



Jeff Horn wrote:

On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

Implement MathJax support
==

Org-mode now uses MathJax to display math on web pages.  We serve
MathJax from the orgmode.org server, at least for the time being
(thanks Bastien!).  If you are going to use this for pages which
are viewd often, please install MathJax on your own webserver.


I use this, and forty page views a week may be too much (I don't
know). I didn't know how MathJax worked, and I thought it was always
served from MathJax servers (I didn't give it much thought,
obviously).

What do I need to customize to get MathJax to load from my own server
instead of orgmode.org?



See the org-export-html-mathjax-options variable.

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


Re: [Orgmode] Release 7.02

2010-10-29 Thread Erik Iverson



Jeff Horn wrote:

Thanks. That did the trick. I think it may be a bit faster too,
running on my server... but that could be my imagination.


It is very likely faster.

Also, note the following about using Firefox:

http://www.mathjax.org/resources/faqs/#image-fonts



On Fri, Oct 29, 2010 at 2:03 PM, Erik Iverson er...@ccbr.umn.edu wrote:


Jeff Horn wrote:

On Fri, Oct 29, 2010 at 2:49 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

Implement MathJax support
==

Org-mode now uses MathJax to display math on web pages.  We serve
MathJax from the orgmode.org server, at least for the time being
(thanks Bastien!).  If you are going to use this for pages which
are viewd often, please install MathJax on your own webserver.

I use this, and forty page views a week may be too much (I don't
know). I didn't know how MathJax worked, and I thought it was always
served from MathJax servers (I didn't give it much thought,
obviously).

What do I need to customize to get MathJax to load from my own server
instead of orgmode.org?


See the org-export-html-mathjax-options variable.







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


Re: [Orgmode] TikZ to separate file (babel?) possible?

2010-10-22 Thread Erik Iverson

John,

Does
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.php#sec-4_2
help?  There is a tikz example there.  The :file argument may be all
you're missing, and putting your code in a latex source block.

Here is what I do when I have an R code block that generates
LaTeX code.  Hopefully this can be adapted to your case.

#+srcname: R-latex
#+begin_src R :results silent :exports code
  lf - function() {
  \\LaTeX
  }

  lf()
#+end_src

#+begin_src latex :noweb yes :file (if (and (boundp 'htmlp) htmlp) 
latex-logo-html.png latex-logo.png) :buffer (if (and (boundp 'htmlp) 
htmlp) no t)

R-latex()~is a high-quality typesetting system; it includes
features designed for the production of technical and scientific
documentation. R-latex()~is the de facto standard for the
communication and publication of scientific
documents. R-latex()~is available as free software.
#+end_src

That messy :file and :buffer arguments needs some explanation.

They are there so that when I eval the code block *in* an org-mode
buffer, with C-c C-c, that an image will be generated to be
inserted into the buffer.  However, this uses my background color
in emacs, which I don't actually want when exported to HTML, that's
what the :buffer argument controls.  Essentially, it's just
what arguments get passed to dvipng (if I recall correctly).

On Latex export, the actual latex code should be included in the
document, so I think all of my use cases are covered.

The only issue is that org-mode doesn't display PDFs generated
from a :file argument in buffer, but you might not care about
that.

If you're an R user, you might also check out the tikzDevice package:
http://r-forge.r-project.org/projects/tikzdevice/

HTH,
--Erik


John Hendy wrote:

Hi,


I've recently gotten into TikZ and love it. It is simply fantastic for 
creating neat diagrams and other thingies.


One question... I created an org file with a flow chart in it and simply 
put my TikZ code in between #+begin_latex and #+end_latex. This is fine 
when the picture is in a document, but what if I want just a 
.png/jpg/eps/pdf output? Is it possible to use babel or something else 
so that I can simply generate a picture vs. needing it to be in the 
PDF output?


I can ask the PGF list as well, but this one is far more active and I 
know some use TikZ here. I ask because sometimes in my notes I'd like to 
have the code present but also be able to reuse my work elsewhere, like 
when I have to present using powerpoint. It'd be nice to just grab the 
picture (like what I do with gnuplot output) rather than generating a 
pdf just for the TikZ pic, screenshot or gimp it down to size, and then 
be able to use it.


Does that make sense? It seems like babel would be perfect for this. It 
already allows all the typical handles -- file output, what to export, etc.


Or does this already exist and I'm ignorant?


Thoughts?
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: mobileorg app can't sync

2010-10-21 Thread Erik Iverson




I have same same error. The steps I took are as follows;

- Downloaded MobilOrg app for iPhone.
- Created an account on Dropbox.
- Linked Mobilorg to Dropbox account.
- Created test entry in Mobilorg.
- Attempted to sync.

Error returned Error syncing changes. An error was encountered while attempting 
to fetch mobileorg.org from the server. The error was: Unexpected error


On my Dropbox account, I see:

MobileOrg\.dropbox



But you need to run org-mobile-push from Emacs, and set any
variables it relies on.  I forget which, but they are in the
manual.

___
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: RE [Orgmode] Re: Issues with org-mode and LaTeX export.

2010-10-21 Thread Erik Iverson




For the time being I am stuck with this version.  I am sending a request to
our IT group to upgrade Emacs to the most recent version for the version of
RedHat we have, this should have a more recent version of org-mode, if I am
lucky that should be done in a couple weeks.  In the mean time I will
manually add, or exclude, what I want from the exported *.tex file.


Do you have write access to your home directory?  That's all you need
to install the latest and greatest. Although I do not know how org 7
works with your version of Emacs.  Probably smart to have them
upgrade since there are tons of improvements in Emacs, and it's,
you know, 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: mobileorg app can't sync

2010-10-21 Thread Erik Iverson



Luke Crook wrote:



On Thu, Oct 21, 2010 at 11:17 AM, Erik Iverson er...@ccbr.umn.edu 
mailto:er...@ccbr.umn.edu wrote:




I have same same error. The steps I took are as follows;

- Downloaded MobilOrg app for iPhone.
- Created an account on Dropbox.
- Linked Mobilorg to Dropbox account.
- Created test entry in Mobilorg.
- Attempted to sync.

Error returned Error syncing changes. An error was encountered
while attempting to fetch mobileorg.org http://mobileorg.org
from the server. The error was: Unexpected error

On my Dropbox account, I see:

MobileOrg\.dropbox


But you need to run org-mobile-push from Emacs, and set any
variables it relies on.  I forget which, but they are in the
manual.


Ah, so I have to have an existing org-mobile-push'ified .org file in 
Dropbox prior to syncing? I don't think this is really made clear in the 
instructions. I didn't know that there was an org-mobile-push dependency 
between Emacs and Mobileorg. I had the impression that Mobilorg could be 
used stand-alone.


No, I don't think so.  That's why the instructions talk about the
'staging area'.

So my system is: I have my 'real' orgmode files in Dropbox, but
not in my MobileOrg directory.  I then have a command in Emacs
that when I press C-c g, my .org files are committed to git, and
org-mobile-push is called to copy them to the dropbox/MobileOrg
directory.  I then can sync from the ipod and have them there.

I can make changes on the device, marking items as done and taking
notes.

When I come back to my desk, I use a command bound to C-c p to
call org-mobile-pull.  I also have auto-revert-mode enabled for
org files, so all changes simply appear on screen in my org
files.

 
I'll try this and report back.


-Luke


___
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] Writing R-packages the org way?

2010-10-07 Thread Erik Iverson



Rainer M Krug wrote:

Hi

I am about to write an R package, and as I am an org-mode and org-babel 
user, I would (obviously) like to use org-mode for that.


Is there a recommended way of writing an R package in org-babel, or do I 
have effectively wrap the R code for the documentation etc. into source 
blocks in babel?


That's what I do.  I've looked into converting an org-file to
Roxygen or Rd markup, but never got very far.  My idea at the time
was to do something like:

* function1
** Help
*** Title
this is function 1 title
*** Description
function1 does this...
*** Usage
function1(arg1, arg2, ...)
*** Arguments
arg1: the first argument
*** Examples
function1(arg1 = x, arg2 = y)
**Definition
begin_src R :tangle R/package.R
function1 - function(arg1, arg2) {

}




Any suggestions how to best proceed?

Dream: I would like to have one org file which contains everything 
(documentation, code, other relevant files) and if I export or tangle 
the file, I have the package ready.


Well, that functionality is essentially present with code blocks
and tangling, except the documentation part.



Is there anything like that?

Rainer

--
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 mailto:rai...@krugs.de

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


___
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] Writing R-packages the org way?

2010-10-07 Thread Erik Iverson


Dan Davison wrote:

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


Rainer M Krug wrote:

Hi

I am about to write an R package, and as I am an org-mode and
org-babel user, I would (obviously) like to use org-mode for that.

Is there a recommended way of writing an R package in org-babel, or
do I have effectively wrap the R code for the documentation
etc. into source blocks in babel?

That's what I do.  I've looked into converting an org-file to
Roxygen or Rd markup, but never got very far.  My idea at the time
was to do something like:

* function1
** Help
*** Title
this is function 1 title
*** Description
function1 does this...
*** Usage
function1(arg1, arg2, ...)
*** Arguments
arg1: the first argument
*** Examples
function1(arg1 = x, arg2 = y)
**Definition
begin_src R :tangle R/package.R
function1 - function(arg1, arg2) {

}



Any suggestions how to best proceed?

Dream: I would like to have one org file which contains everything
(documentation, code, other relevant files) and if I export or
tangle the file, I have the package ready.

Well, that functionality is essentially present with code blocks
and tangling, except the documentation part.


Hi Erik,

Would you mind expanding on that -- what are we missing for the
documentation part?



Dan, by except for the documentation part, I meant generating
.Rd files (the LaTeX-like syntax) automatically from some org-syntax
that does *not* depend on code blocks.  I.e., it would be cool to
specify syntax like I have above for documentation.  Using org-mode
headlines for each section like Description, Usage, Arguments, etc.

Just like exporting to LaTeX generates sections, some process would
use these headlines to generate the .Rd sections.

That way, you don't have to use the .Rd syntax yourself.  No big deal,
just a convenience feature.  I don't know how you'd specify to org-mode
that a particular subtree was to generate .Rd syntax, and I don't know
if it would be on export or tangling.

An alternative is simply just to use code blocks of type Rd within
org-mode and then tangle to .Rd files.  That's what I currently do.

Hope that explains it,
Erik



Dan


___
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] Tracking time with MobileOrg

2010-10-06 Thread Erik Iverson



Jeff Kowalczyk wrote:

Can the current version of MobileOrg be used for a simple time tracking
workflow? (i.e. does it have an easy clock in and clock out?)


I do not believe so, but I will put in my vote for this being a really,
really good idea.



My wife has a need for a simple time tracking application on the iPhone. The
only number needed is total hours spent per period (e.g. month) on one task, the
full-time job.

I use Org Mode for my own worklogs, and would do any necessary pre-templating
and post-processing on the resultant Org file, if a rapid-capture strategy can
be worked out for MobileOrg.

Given how much I use and like Org Mode myself, I'd be really pleased if we can
work with Org as a file format for this application, rather than some
closed-source app.

Thanks,
Jeff



___
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] creating simple vectors in R

2010-10-05 Thread Erik Iverson

Hello,

Dan Davison wrote:

I'd appreciate opinions from R users on the following org-babel-R
details:



I use R daily, with and without org-mode, but have never investigated
these features of passing tables and Lisp lists to source blocks, but
it looks interesting.  More below.


Currently, Org tables, and lisp lists, are converted into data frames
when they are sent from Org to R, and we have no way to create simple
vectors such as c(1,2). I'd like to know whether users of org and R
would approve of the following change that makes simple R vectors
possible, or have other suggestions related to these issues.

With the patch below, there would be two ways to create a simple vector
in R. The most direct way is to pass a non-nested lisp list:

#+begin_src R :var x='(1 2) :results output
str(x)
#+end_src

CURRENT OUTPUT:
#+results:
: 'data.frame': 1 obs. of  2 variables:
:  $ V1: int 1
:  $ V2: int 2

NEW OUTPUT:
#+results:
:  num [1:2] 1 2



What happens with non-atomic lists that contain mixed types?
They could either be turned into a vector of the lowest common
type, e.g., '(1 hi) is turned into a character vector, or this
could be turned into an R list.  Then you'd be going from
Lisp List - R list data types.


In addition, because babel's table-indexing code produces a non-nested
list when taking a one-dimensional slice, this would be another
situation in which a vector rather than data frame is created:

#+tblname: input-tab
| 1 | 3 |
| 2 | 4 |

#+begin_src R :var x=input-tab[0,] :results output
str(x)
#+end_src

CURRENT OUTPUT:
#+results:
: 'data.frame': 1 obs. of  2 variables:
:  $ V1: int 1
:  $ V2: int 3

NEW OUTPUT:
#+results:
:  num [1:2] 1 3

There's a possible argument that that's slightly at odds with R, since,
in R, a single row slice of a data frame is still a data frame.



Yes, only since data.frames may and almost always do contain
mixed types.  Which goes back to the first question about the
behavior of this code when there are mixed types.  I think for
this case, if you're taking a single row of an org-table,
turning it into a vector is an OK thing to do, and
is something I probably would rarely do.  For columns,
I definitely think it's an OK thing to do, and it's more likely
I'd be passing in a single column of an org-table as opposed
to a single row.

In R, for columns, subsets of data.frames only return data.frames
with certain indexing styles, and even then,
setting drop = TRUE will return a vector.

 df1 - data.frame(a = 1:10, b = 2:11)

 is.vector(df1$a)
[1] TRUE

 is.vector(df1[[a]])
[1] TRUE

 is.vector(df1[, a])
[1] FALSE

 is.vector(df1[, a, drop = TRUE])
[1] TRUE


A related issue is translating an Org table into a matrix rather than a
data frame in R. This can be done explicitly with a call to as.matrix in
the user's code, but if anyone feels that it would be helpful for babel
to automate this then do say so.

Dan


diff --git a/lisp/ob-R.el b/lisp/ob-R.el
index c709064..4b49af5 100644
--- a/lisp/ob-R.el
+++ b/lisp/ob-R.el
@@ -141,16 +141,18 @@ This function is called by `org-babel-execute-src-block'.
 (defun org-babel-R-assign-elisp (name value colnames-p rownames-p)
   Construct R code assigning the elisp VALUE to a variable named NAME.
   (if (listp value)
-  (let ((transition-file (org-babel-temp-file R-import-)))
-;; ensure VALUE has an orgtbl structure (depth of at least 2)
-(unless (listp (car value)) (setq value (list value)))
-(with-temp-file transition-file
-  (insert (orgtbl-to-tsv value '(:fmt org-babel-R-quote-tsv-field)))
-  (insert \n))
-(format %s - read.table(\%s\, header=%s, row.names=%s, sep=\\\t\, 
as.is=TRUE)
-name (org-babel-process-file-name transition-file 'noquote)
-   (if (or (eq (nth 1 value) 'hline) colnames-p) TRUE FALSE)
-   (if rownames-p 1 NULL)))
+  (if (listp (car value))
+ (let ((transition-file (org-babel-temp-file R-import-)))
+   (with-temp-file transition-file
+ (insert (orgtbl-to-tsv value '(:fmt org-babel-R-quote-tsv-field)))
+ (insert \n))
+   (format %s - read.table(\%s\, header=%s, row.names=%s, sep=\\\t\, 
as.is=TRUE)
+   name (org-babel-process-file-name transition-file 'noquote)
+   (if (or (eq (nth 1 value) 'hline) colnames-p) TRUE 
FALSE)
+   (if rownames-p 1 NULL)))
+   (format %s - %s
+   name
+   (concat c( (mapconcat 'org-babel-R-quote-tsv-field value ,) 

 (format %s - %s name (org-babel-R-quote-tsv-field value
 
 (defvar ess-ask-for-ess-directory nil)


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

[Orgmode] publishing orgmode to a CMS

2010-10-01 Thread Erik Iverson

Does anyone have any general advice or comments regarding
the publishing of org-mode documents to a CMS?

I'm thinking of the case where I have HTML files generated
by Org-mode, and want to publish it Worg-style, but would
prefer to publish to a system with comments/RSS/etc.

If anyone has done that, I'd love to hear your experience,
which CMS software you chose, and how it is working for you.

Thanks,
Erik

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


Re: [Orgmode] Org-mode screencasts

2010-09-23 Thread Erik Iverson

Richard,

First of all, your MobileOrg screencasts are very nice.
In my opinion, keeping things high-level and showing
the major features are what is important.  In a way,
they are commercials for the product, and I think the
best way to entice people into trying the product is to
make them say Wow when viewing the video.

I would be happy to help but would need to know the
software requirements.  Is it easy to make these under
Linux?

Richard Moreland wrote:

Hi All,

I think it would be helpful to create a series of screencasts to
demonstrate Org-mode.  The screencasts I've made for MobileOrg[1,2]
seem to have helped users get started quickly.  There are so many
powerful features of Org-mode that are difficult to visualize yourself
using until you can see them in action.  It may also help draw in new
users who otherwise wouldn't quite get it.

Some topics that may be interesting:

- Org-mode in action, demonstrating common tasks like capture,
restructuring a tree, refiling, etc.
- Babel
- Integration with other tools (Gnus, WL, Firefox, etc)
- Clocking/reporting
- Export capabilities
- Power user showing their streamlined configurations
- ...?

I'd like to collect all of the videos in one place, unify them with
some similar (but simple) production, with each of the videos having a
page that links to documentation, Worg, example dotfiles, comments,
etc to help the user take it further on their own.

I'd be happy to host the videos if bandwidth is a concern on the
orgmode.org site.  I've also already purchased the necessary software
to record/edit the videos.  But I'm looking to the community for ideas
on topics as well as individuals who would be willing to record the
videos or at least help me work up a script with key talking points so
I could do the recording and narration.

What do you think?  Anyone interested in helping?

Thanks,
Richard

[1] http://mobileorg.ncogni.to/screencasts/MobileOrg-Dropbox-OSX/
[2] http://ncogni.to/mobileorg/overview.mov

___
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] wrap sourcecode?

2010-09-23 Thread Erik Iverson

On 09/23/2010 07:11 PM, Matt Price wrote:

This may be an odd request, but is it possible to wrap sourcecode
blocks?  attached is the org source for the following page, rendered by
wordpress using html generated by org2blog:
http://www.hackinghistory.ca/lab-01-understanding-html/
You can see that without wrapping, the source goes right off of the
page.  Is there anything I can do to fix that? Do I need to define the
src and example classes in css somewhere, in order to get horizontal
sliders?  Or can I set an option in the html export that will make this
easier for me?


You can see from the generated HTML that those classes have already
been assigned

pre class=src src-html

so you just need to provide the appropriate style.  There are several
ways to accomplish that, see CSS Support in the manual if memory
serves.

--Erik

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


Re: [Orgmode] Re: Org-mode screencasts

2010-09-23 Thread Erik Iverson

On 09/23/2010 07:45 PM, Richard Moreland wrote:

I jumped the gun a bit and decided to put together a video showing the very 
basics.  It seems overly simple when I re-watch it, but I think it is helpful 
for those who are unsure how to get started with the basics of Org-mode.

http://ncogni.to/org-screencasts/1-basics/

Feedback is welcome, these were the least exciting topics to cover, but I 
wasn't sure how to really wow new users without overwhelming them.  I figured 
that taking it step by step with short, clear episodes covering special topics 
would be a good start.



One more thought, if it's easy to edit the screencast, throw in a bit about
headline folding.  Just show how easy it is to collapse and expand the
different headlines.


-Richard

On Sep 23, 2010, at 6:47 PM, Charles Cave wrote:


Richard Morelandrlmat  ncogni.to  writes:
I think it would be helpful to create a series of screencasts to
demonstrate Org-mode.


Great idea!  I would he happy to record a couple of screencasts
based on tutorials I have written. Currently I am preparing
a tutorial on date trees and capturing notes to a journal.

I am a Windows user and a screencast tool I use is
http://www.screenr.com - from Articulate.
This allows screencasts up to 5 minutes to be recorded
then hosted on their website.

Charles







___
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



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

2010-09-23 Thread Erik Iverson

On 09/23/2010 07:45 PM, Richard Moreland wrote:

I jumped the gun a bit and decided to put together a video showing the very 
basics.  It seems overly simple when I re-watch it, but I think it is helpful 
for those who are unsure how to get started with the basics of Org-mode.

http://ncogni.to/org-screencasts/1-basics/

Feedback is welcome, these were the least exciting topics to cover, but I 
wasn't sure how to really wow new users without overwhelming them.  I figured 
that taking it step by step with short, clear episodes covering special topics 
would be a good start.



Really nice, agree that the intro is the least exciting.

But even starting with agendas in the next one, the more interesting things
can be shown.

Great job!

So with the software you use, you can go and insert/delete/edit voice into the
presentation once it's complete, or if you want to change the wording in one
part, do you have to record the whole thing over again?  I assume you can change
it, but don't know if the Linux tool has that capability.


-Richard

On Sep 23, 2010, at 6:47 PM, Charles Cave wrote:


Richard Morelandrlmat  ncogni.to  writes:
I think it would be helpful to create a series of screencasts to
demonstrate Org-mode.


Great idea!  I would he happy to record a couple of screencasts
based on tutorials I have written. Currently I am preparing
a tutorial on date trees and capturing notes to a journal.

I am a Windows user and a screencast tool I use is
http://www.screenr.com - from Articulate.
This allows screencasts up to 5 minutes to be recorded
then hosted on their website.

Charles







___
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



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

2010-09-23 Thread Erik Iverson

On 09/23/2010 10:09 PM, John Hendy wrote:

Wow, Richard. That was sweet. You even have a pleasing screencaster's
voice.


Agreed with John.  Your voice is perfect for this, and you have
good timing and delivery.




My only thought was along the lines of what one should assume about
org-mode viewers. Familiarity with emacs? No knowledge of emacs? I only
got into emacs because I found org-mode, so my only thought there is
that I might not even have known what meta was... I can't recall, but
did you clarify meta = alt on Win/Linux and Command on Mac?

Stuff like that might be helpful. Obviously these won't all be done on a
Mac and some unfamiliar with it might wonder what the Command and carat
symbols are on their own keyboards?

As Erik said -- folding and perhaps adjusting in and out (meta +
left/right). Also, it seems that only the meta or control functions show
up as keystrokes. For example, I thought you said M-n s and M-n w to
narrow on the tree and then widen the view but I only ever saw one part
of that flash on the screen.

Great, great job. Loved it and think this is exactly what Org could use.
I have a co-worker who just got emacs and org-mode up on his computer
and would love to have something this simple and clear-cut.


Great work, again.
John

On Thu, Sep 23, 2010 at 9:54 PM, Erik Iverson er...@ccbr.umn.edu
mailto:er...@ccbr.umn.edu wrote:

On 09/23/2010 07:45 PM, Richard Moreland wrote:

I jumped the gun a bit and decided to put together a video
showing the very basics.  It seems overly simple when I re-watch
it, but I think it is helpful for those who are unsure how to
get started with the basics of Org-mode.

http://ncogni.to/org-screencasts/1-basics/

Feedback is welcome, these were the least exciting topics to
cover, but I wasn't sure how to really wow new users without
overwhelming them.  I figured that taking it step by step with
short, clear episodes covering special topics would be a good start.


Really nice, agree that the intro is the least exciting.

But even starting with agendas in the next one, the more interesting
things
can be shown.

Great job!

So with the software you use, you can go and insert/delete/edit
voice into the
presentation once it's complete, or if you want to change the
wording in one
part, do you have to record the whole thing over again?  I assume
you can change
it, but don't know if the Linux tool has that capability.


-Richard

On Sep 23, 2010, at 6:47 PM, Charles Cave wrote:

Richard Morelandrlmat ncogni.to http://ncogni.to
  writes:
I think it would be helpful to create a series of
screencasts to
demonstrate Org-mode.


Great idea!  I would he happy to record a couple of screencasts
based on tutorials I have written. Currently I am preparing
a tutorial on date trees and capturing notes to a journal.

I am a Windows user and a screencast tool I use is
http://www.screenr.com - from Articulate.
This allows screencasts up to 5 minutes to be recorded
then hosted on their website.

Charles







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto: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 mailto: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 mailto: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] Ditaa usage

2010-09-22 Thread Erik Iverson

On 09/22/2010 08:08 AM, Juri Artamonov wrote:

Hello John,

if I add what you provided then I have

Warning (initialization): An error occurred while loading
`c:/emacs/.emacs.d/init.el':
Symbol's function definition is void: org-babel-do-load-languages

message.


From your previous post, looks like you're using a fairly old version
of org-mode.  using source code blocks like ditaa is much simplified
in org-mode 7.01, so just upgrade to that and you'll be all set.




I have added this for now:

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

(setq org-babel-load-languages (quote ((emacs-lisp . t)
  (dot . t)
  (ditaa . t)
  (R . t)
  (python . t)
  (ruby . t)
  (gnuplot . t)
  (clojure . t)
  (sh . t

In result I don't have error message on initialization but after export
I have at least area with where the lines are shown exactly the same as
I wrote in org file but without any converting to the image.

Maybe I need something to install additionally or add something else to
the configuration?

Thank you,
   Juri.

On Wed, Sep 22, 2010 at 3:23 PM, John Hendy jw.he...@gmail.com
mailto:jw.he...@gmail.com wrote:

Do you have the necessary lines for babl as described here:
http://orgmode.org/worg/org-contrib/babel/languages.php#configure

http://orgmode.org/worg/org-contrib/babel/languages.php#configureNamely:



;;active Babel languages
(org-babel-do-load-languages
  'org-babel-load-languages
  '((gnuplot . t)
(ditaa . t)
))


You don't have to have gnuplot... just put whatever languages you
want in the form language . t and you're set.

See if that helps.


John

On Wed, Sep 22, 2010 at 7:06 AM, Juri Artamonov
jartamo...@gmail.com mailto:jartamo...@gmail.com wrote:

Hello Guys,

I'm still learning how to correctly configure orgmode. One of
the items is ditaa usage.

I have the following in my org file.

#+begin_src ditaa :file task_states.png :cmdline -r -s 0.8
  ++   +-+   ++
  ||   | |   ||
   +--+  TODO  +--+  NEXT   +--+  DONE  |
   |  | cRED   |   |  cBLU   |   | cGRE   |
   |  +--+-+---+   +--+---+--+   ++

#+end_src

#+results:
file:task_states.png

init.el
contains reference to ditaa library.

(setq org-ditaa-jar-path ~/lib/ditaa0_9.jar)

Could you please tell me what else do I need to configure in
order to have graphics in result of exporting the file into HTML?

Thank you,
 Juri.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto: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



___
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 #+PROPERTY still exist ?

2010-09-22 Thread Erik Iverson

On 09/22/2010 10:13 PM, Vincent Belaïche wrote:

Hello all,

Thanks for all the feedback. I am using Org-mode version 6.33x which is
the latest on emacs CVS repository --- that may be outdated as emacs is
using bazaar now.



Yes, very outdated.  Orgmode 7.01 was released over two months ago now.

You can get the latest from http://orgmode.org

It is a very simple installation, just download and add a couple
directories to your load-path.

You can also get the latest from git, which is what I do.


What is not working is

1. Auto-completion of `#+PROP' does not work
2. `C-c C-x p' does not work.

Look at the following example:

--8-coupez ici--début--8---
#+PROPERTY: toto_ALL 1 2 3

* test

Then I type here `C-c C-x p'
--8-coupez ici---fin---8---

2.1 The completion at `Property:' prompt does not propose `toto'
2.2 The completion at `Value:' prompt does not propose 1 2 or 3


Hope that this clarifies the issue.

   Vincent.

PS-1: Where can I get the latest org-mode ?
PS-2: Sorry for my first email contained an error, setting properties
before the 1st heading does not work.



___
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] exporting to a specified directory

2010-09-20 Thread Erik Iverson

Hello,

Can you set some option in an org-mode buffer telling the
exporter to write the HTML and PDF versions of the document
in a specific directory?  I know the publishing mechanism
does this, just wondering if there is a simple variable
to set per file to set this on export, or do I need to
set up a publishing project?

Thanks!
Erik

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


Re: [Orgmode] Worg updating?

2010-09-17 Thread Erik Iverson

Hello,

Worg now publishes the results of its publishing script, at:

http://orgmode.org/worg/publishing.txt

I had Bastien install R for an update to the R docs that I'm doing,
and it appears to work when he does a manual publish.  But I think
the problem is that R is not in the path of whatever user is running
the automated script, you can see the last line is complaining
about that.

I think that's the only fix needed, just get R in the path of
that script.

Sorry if my request has caused this issue, but having R on there
will be nice.  The export file its bombing on isn't even mine,
so someone else appears to be wanting to use it as well.

John Hendy wrote:

Still not all is well...

http://orgmode.org/worg/org-contrib/babel/examples/org-babel-gnuplot.org

---
[jwhe...@bigbang ~]$ ls 
Worg/org-contrib/babel/examples/org-babel-gnuplot.org 
http://org-babel-gnuplot.org 
Worg/org-contrib/babel/examples/org-babel-gnuplot.org 
http://org-babel-gnuplot.org

---

http://orgmode.org/worg/org-contrib/babel/examples/org-babel-gnuplot.orgExists 
in git, not on Worg.



John

On Fri, Sep 17, 2010 at 11:32 AM, Tom Dye colleag...@tsdye2.com 
mailto:colleag...@tsdye2.com wrote:


Aloha all,

Thanks to whoever fixed links on Worg.  It appears that Worg isn't
updating itself now, though.

All the best,
Tom

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto: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


___
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] Bibtex and latex export

2010-09-15 Thread Erik Iverson

Rafael,

I asked the same question last week :).

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


I've just now looked into the org-latex.el file, and found:

(defcustom org-latex-to-pdf-process
  '(pdflatex -interaction nonstopmode -output-directory %o %f
pdflatex -interaction nonstopmode -output-directory %o %f)
  Commands to process a LaTeX file to a PDF file.
This is a list of strings, each of them will be given to the shell
as a command.  %f in the command will be replaced by the full file name, %b
by the file base name (i.e. without extension) and %o by the base directory
of the file.
The reason why this is a list is that it usually takes several runs of
pdflatex, maybe mixed with a call to bibtex.  Org does not have a clever
mechanism to detect which of these commands have to be run to get to a 
stable

result, and it also does not do any error checking.

Alternatively, this may be a Lisp function that does the processing, so you
could use this to apply the machinery of AUCTeX or the Emacs LaTeX mode.
This function should accept the file name as its single argument.
  :group 'org-export-pdf
  :type '(choice (repeat :tag Shell command sequence
  (string :tag Shell command))
 (function)))


Looks like you can just customize that variable, easy!

--Erik


Rafael Calsaverini wrote:
Hi there, 

I'm trying to use org-mode to compose latex documents and I'm having a 
problem with bibtex. When I export to pdf with C-c C-e p, pdflatex runs 
and everything works gracefully with respect to the latex code (the 
output is even prettier than I used to have patience to do only with 
latex), but bibtex isn't called. 

I've  tried to fiddle with org-exp-bibtex, which is nice, but apparently 
it don't call bibtex either. 

I've tried to edit the function that calls pdflatex to include a call to 
bibtex, but to be honest I know zero about lisp, so I couldn't even edit 
a simple list of commands. :P (I must be the only emacs user in the 
world that can't write or read lisp... it would be swell if I could use 
haskell to extend emacs instead of lisp :P). 

How should I go about automatically including a call to bibtex whenever 
I want to export my org document as a pdf?


Thanks for your time, and sorry to bore you with simple questions...
---
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaver...@gmail.com mailto:rafael.calsaver...@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803





___
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] org-exp-bibtex and multiple latex runs

2010-09-10 Thread Erik Iverson

Hello,

Does anyone use org-exp-bibtex.el from the contrib directory
to get bibtex citations in both exported HTML and PDF?

If so, how do you deal with the PDF generation process,
since it requires multiple runs of latex/bibtex?  Do
you do that within org-mode, or just do it through the
shell?

Thanks for any tips,
Erik

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


[Orgmode] TAB character in source code blocks

2010-09-09 Thread Erik Iverson

Hello,

I'm using org source blocks to write a Makefile.

#+begin_src makefile :tangle Makefile
target: dependencies
command
#+end_src

At least in GNU make, commands must start with a TAB.

However, after I close the code edit buffer with C-c ',
the resulting whitespace in the org-mode buffer, and thus
the tangled Makefile, is spaces and not a tab.

I haven't looked into what's causing this yet, wondering
if anyone else has come across this already and found
a solution?

Thanks,
Erik

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


Re: [Orgmode] org-babel and empty code blocks : publishing html

2010-09-09 Thread Erik Iverson

What are your buffer-wide values for
:exports  and :results ?

Richard Riley wrote:

On my journal capture template I include a #begin_src and #end_src block
as I frequently want to journal code. Being lazy I dont
necessarily want to delete this block even if I have no code in that
org-entry. Is it possible to suppress the output nil which is
generated for the html export for empty code blocks?


___
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] org-babel and empty code blocks : publishing html

2010-09-09 Thread Erik Iverson



Eric Schulte wrote:

I'd think adding an :exports none header argument should be
sufficient.



If the code block is empty, I doesn't appear so.

If you put in a literal

nil

in the code block, then :exports none does as expected.


Best -- Eric

Richard Riley rile...@gmail.com writes:


On my journal capture template I include a #begin_src and #end_src block
as I frequently want to journal code. Being lazy I dont
necessarily want to delete this block even if I have no code in that
org-entry. Is it possible to suppress the output nil which is
generated for the html export for empty code blocks?


___
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


___
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] IP locator

2010-09-09 Thread Erik Iverson

There was a little discussion of this earlier this summer:

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

On 09/09/2010 11:19 PM, Indraneel Majumdar wrote:

Hi all,
Is there any way of putting in location information automatically, eg.
in a Diary or Journal entry? I was thinking of some sort of IP location
based service (some web based ones are free, or even google). Or, a
connected cellphone with GPS is also a possibility.

I can see how the iphone app will benefit (although I don't have one
(yet)). Not sure how quick the processors in phones are these days, but
coupled with a barcode scanning .el it might be a handy thing to carry
around (eg. buy mama bear's oldstyle honey from shop near bridge below
highway 9 can be done in one point and click.)

Indraneel

___
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: Org now fontifies code blocks

2010-09-08 Thread Erik Iverson



Sébastien Vauban wrote:

Hi Bastien and Dan,

Bastien wrote:

Dan Davison davi...@stats.ox.ac.uk writes:


(We badly need a customize group for these org-src but non-babel
variables[1]. That suggests to me subsuming the Babel group (Should be
Org Babel for consistency?) within a new group, perhaps Org Code or
Org Src or Org Source Code ? Views?

I find Org Code and Org Source Code rather ambiguous. Org Src is
better but still a bit too general IMHO.

Org Src Block?


The terminology of such code blocks in Noweb was scraps. We often see
snippets as well, but (not being English-native), that can be more for pure
text (not specifically code).

Then, it could be Org Scraps or similar variants.


Or chunk, which I subjectively find the most phonetically pleasing.

___
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] Why :ID: properties?

2010-09-07 Thread Erik Iverson

Did you recently start using MobileOrg?
I think it uses them (by default) to keep track of
headlines.

See the MobileOrg part of the manual on how to turn
them off if that is indeed the issue.

On 09/07/2010 09:10 AM, Rainer M Krug wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

suddenly (some time ago) :ID:properties occured under all headlines -
why are they there, do I need them, and who put them there?

Thanks,

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

iEYEARECAAYFAkyGR9gACgkQoYgNqgF2egrzxgCfV2Q9Tdluzg2QWhJpAVwH5qoP
sKMAniKPiSfc27EweE4y08BSZK0tlfDT
=Op7E
-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



___
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-babel and gnuplot

2010-09-07 Thread Erik Iverson

On 09/07/2010 10:12 PM, Nick Parker wrote:

Hi John,

I would actually like to plot different lines per distance, each
that correlate to a date and elapsed-time (x and y axis respectively).
  I get an error with the :file notation, though I read that in a sample
babel gnuplot example for generating graphs of commit history on the
org-mode git repository.  I tried to reference the variable data without
the quotes and $ sign without any success.  I will continue to fiddle
with it, I am new to gnuplot.


AFAIK, you can't break source code header argument lines across
multiple lines.  Is that how you actually have it in your
org file?



#+begin_src gnuplot :var data=sessions
   :file org-running.png :exports both
   set title Running Stats
   set auto x
   set style data histogram
   set style fill solid border -1
   set boxwidth .9
   set xlabel Date
   set ylabel Time
   plot $data using 1:2:3 notitle
#+end_src

Nick Parker
www.developernotes.com http://www.developernotes.com

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org mailto: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



___
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 now fontifies code blocks

2010-09-06 Thread Erik Iverson

On 09/06/2010 11:59 AM, Richard Riley wrote:

Eric S Fragaucec...@ucl.ac.uk  writes:


On Thu, 02 Sep 2010 08:51:16 -0700, Dan Davisondavi...@stats.ox.ac.uk  wrote:


I've just pushed changes which mean that Org now fontifies code in code
blocks. Currently, this is turned on by default, so it would be helpful
if people could report any problems, and opinions as to whether it
should be on or off by default.


[...]

This is brilliant!  Works very well on my notebook (with small code
blocks as that's all I tend to have).  Many thanks!


Without wanting to rock the boat I think its safer to have this disabled
by default. I cant tell you how many times I thought I was in the LISP
buffer and ended up making a mess since this enhancement was added. I
realise I can configure it myself but possibly the more conservative
stick with old default is better? It IS a nice feature when in more
capable hands than mine ;) What next? nxhtml integration and live
editing inside the src blocks?


I think several people have that setup already.  Last I heard a few
days ago, there was an issue with editing R that was being resolved.








___
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


  1   2   >