Re: [O] A proposal (ox-html.el/ox-odt.el)

2013-03-12 Thread Jambunathan K

Carsten, Stefan and others

Let me table a proposal.

All parties - including me - unequivocally agree that interest of Emacs
users should be kept in mind.

I want to fork ox-html.el and ox-odt.el (as it stands today in Org repo)
to GNU ELPA repo.  I request that Emacs maintainers recognize the GNU
ELPA version (maintained by me) as the authoritative official versions
of these files that gets bundled with SUMO Emacs.

Org maintainer can propose to merge fixes to the above files from Org
downstream in to upstream Emacs GNU ELPA.  I will oblige for an
upstream push for most part but will exercise my own discretion on a
patch by patch basis.

In summary,


  Jambunathan
+---+
|  ox-html.el   +---  push   Emacs maintainer
|  ox-odt.el|   \-
|  GNU ELPA | \-++
|   |   \--||
+---+   | lisp/org/ox-html.el|
   ^  Push  | lisp/org/ox-odt.el |
   |||
   |++
   || Other org files|
+--+-+   /-||
||   /---   ||
| Org repo   |  /   ||
||  /---++
|+--  push
||
||
++
 Org maintainer

I have my differences with Bastien.  The differences are well-known (but
not well-understood) and as far as I am concerned those are
ir-reconcilable.  I want ox-html.el and ox-odt.el to be available to
everyone (including Emacs/Org) but outside of Bastien's control.  

The above model requires one minor change: Users should be able to
download the development versions of packages via a new GNU ELPA-dev.

It seems complicated.  But captures the disributed nature of Emacs
development, IMO.

What do you think?  Consider it as a thought experiment.  It will
accommodate my wishes without shortchanging any users.

ps: Let us set aside my copyright proposal for a while.

Jambunathan K.
--



[O] Basic beamer export

2013-03-12 Thread JBash
Hello,

I am apparently missing something very basic in the setup for beamer
export.  I have used http://orgmode.org/worg/exporters/beamer/ox-beamer.html as
a guide and have:

;; Export to Beamer Presentation
(require 'ox-latex)
(add-to-list 'org-latex-classes
 '(beamer
   \\documentclass\[presentation\]\{beamer\}
   (\\section\{%s\} . \\section*\{%s\})
   (\\subsection\{%s\} . \\subsection*\{%s\})
   (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))

in my .emacs file.  As you can see from the attached files, I'm getting
nested items rather than frames in the exported .tex file for the 3rd level
headlines, as I'd expect.  I am using Org-mode version 8.0-pre
(release_8.0-pre-33-g5c25ed and emacs 24.2.1.

I've attached the .org file and the .tex file that is generated.  I'd
appreciate if someone could point out what I'm missing.

Thanks,
Jerry


beamer_attempt1.org
Description: Binary data


beamer_attempt1.tex
Description: TeX document


Re: [O] [bug] [new exporter] [markdown] Underline exports as HTML

2013-03-12 Thread Bastien
Rick Frankel r...@rickster.com writes:

 On Tue, Mar 12, 2013 at 12:06:55AM +0100, Bastien wrote:
 Hi Terry,
 
 tftor...@tftorrey.com (T.F. Torrey) writes:
 
  I'm not experienced with markdown, but this doesn't look right to
  me.
 

 AFAIK there is no syntax for underlining in Markdown, so underlined
 text in Org will be exported as plain text in Markdown.

 I would argue that underlining is a form of emphasis, so the leading
 and trailing underscores should be passed through verbatim to
 markdown (which, in markdown syntax is an emphasized span).

Yes, I see your point -- it's now the case.

Thanks!

-- 
 Bastien



Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread Julien Cubizolles
Vincent Beffara vbeff...@ens-lyon.fr writes:

 ... sorry for replying to myself like this - here is a patch that seems to 
 work:  

I'm still running into problems even with this patch, but I'm not very
sure where they lie. Basically I get some messages about duplicate
entries, no org-caldav-results buffer pops up and a subsequent run of
org-caldav-sync informs me that the last sync was aborted. 

For now, I'm back with org-7.9.4: sync works without problem from
org-google and google-org. I'll be willing to test any changes updates
to org or org-caldav though.

Julien.



Re: [O] Basic beamer export

2013-03-12 Thread Glyn Millington
JBash bashve...@gmail.com writes:

 Hello,

 I am apparently missing something very basic in the setup for beamer
 export. I have used
 http://orgmode.org/worg/exporters/beamer/ox-beamer.html as a guide and
 have:

 ;; Export to Beamer Presentation
 (require 'ox-latex)
 (add-to-list 'org-latex-classes
 '(beamer
 \\documentclass\[presentation\]\{beamer\}
 (\\section\{%s\} . \\section*\{%s\})
 (\\subsection\{%s\} . \\subsection*\{%s\})
 (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))

 in my .emacs file. As you can see from the attached files, I'm getting
 nested items rather than frames in the exported .tex file for the 3rd
 level headlines, as I'd expect. I am using Org-mode version 8.0-pre
 (release_8.0-pre-33-g5c25ed and emacs 24.2.1.

 I've attached the .org file and the .tex file that is generated. I'd
 appreciate if someone could point out what I'm missing.


Does adding

(require 'ox-beamer) in .emacs help?

atb



Glyn




Re: [O] Basic beamer export

2013-03-12 Thread Glyn Millington
Glyn Millington glyn.milling...@gmail.com writes:

 JBash bashve...@gmail.com writes:

 Hello,
 I am apparently missing something very basic in the setup for beamer
 export. I have used
 http://orgmode.org/worg/exporters/beamer/ox-beamer.html as a guide
 and have:
 ;; Export to Beamer Presentation (require 'ox-latex) (add-to-list
 org-latex-classes '(beamer
 \\documentclass\[presentation\]\{beamer\} (\\section\{%s\}
 . \\section*\{%s\}) (\\subsection\{%s\} . \\subsection*\{%s\})
 (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))
 in my .emacs file. As you can see from the attached files, I'm
 getting nested items rather than frames in the exported .tex file
 for the 3rd level headlines, as I'd expect. I am using Org-mode
 version 8.0-pre (release_8.0-pre-33-g5c25ed and emacs 24.2.1.
 I've attached the .org file and the .tex file that is generated. I'd
 appreciate if someone could point out what I'm missing.


 Does adding

 (require 'ox-beamer) in .emacs help?


Following up to myself - sorry

Does this do what you want?

8--8--8--8--8--8--8--8--8--

#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation,smaller]
#+BEAMER_THEME: default
#+BEAMER_HEADER: \beamerdefaultoverlayspecification{+-}
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t :t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:(not LOGBOOK) todo:t pri:nil tags:t

* Section One
** Subsection One
*** Slide One
 - Bullet One
   - Sub-Bullet One
   - Sub-Bullet Two
 - Bullet Two
 - Bullet Three
   - Sub-Bullet One
*** Slide Two
 - Bullet Two (Slide 2)
 - Bullet Three (Slide 2)
** Subsection Two
*** Slide Three
 - Bullet one
   - Sub-Bullet One
 - Bullet two
* Section Two
*** Slide Four
 - Bullet One (Slide 4)
*** Slide Five
 - Bullet One

8--8--8--8--8--8--8--8--8--

atb

Glyn




Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread Vincent Beffara
Hi, 

Yes, I had the very same problem, I had to restart org-caldav from scratch a 
few times (org-caldav-delete-everything, wait a bit for caches to empty, and 
then eventually it worked).

In the meantime I also tweaked the way org-caldav manages UIDs to exploit the 
fact that multiply occurring events are now exported multiple times in 
ox-icalendar, everything works out well if only org-ical is used. One thing 
remaining, on ical-org sync, there is an issue that makes the next sync erase 
the event on ical and upload it again, under another id (and with the info not 
generated by org-caldav missing, of course). I think I know how to fix it, just 
need to find some time ...

I will send what works to the list. (In the meantime, David, don't pull my 
second pull request, it is not right.) 

/v

-- 
Vincent Beffara


On Tuesday, March 12, 2013 at 07:21 , Julien Cubizolles wrote:

 Vincent Beffara vbeff...@ens-lyon.fr (mailto:vbeff...@ens-lyon.fr) writes:
 
  ... sorry for replying to myself like this - here is a patch that seems to 
  work: 
 
 I'm still running into problems even with this patch, but I'm not very
 sure where they lie. Basically I get some messages about duplicate
 entries, no org-caldav-results buffer pops up and a subsequent run of
 org-caldav-sync informs me that the last sync was aborted. 
 
 For now, I'm back with org-7.9.4: sync works without problem from
 org-google and google-org. I'll be willing to test any changes updates
 to org or org-caldav though.
 
 Julien. 





Re: [O] [RFC] Org syntax (draft)

2013-03-12 Thread orgmode


Hi Nicolas,

great work! It's fantastic that orgmode now gets a specification.

What may help is to document the syntax machine readable and somewhat  
more formal.  This ensures that there are less differences in  
interpretation and that the specification can be used to generate an  
orgmode parser directly.  An example could be how the ietf specifies  
things, have a look at https://en.wikipedia.org/wiki/ABNF or EBNF.   
It's not much difference from what you have done, but it's more  
unambigous.


Thanks for the great work!





Re: [O] Basic beamer export

2013-03-12 Thread JBash
Hi Glyn,

That does not change my output at all.

In some earlier googleing, I'd found some mention of setting
org-e-latex-classes, but that seems to be now changed to org-latex-classes,
I believe.

Thanks for the suggestion. If you have any more thoughts, please let me
know.

Jerry


On Tue, Mar 12, 2013 at 5:34 AM, Glyn Millington
glyn.milling...@gmail.comwrote:

 JBash bashve...@gmail.com writes:

  Hello,
 
  I am apparently missing something very basic in the setup for beamer
  export. I have used
  http://orgmode.org/worg/exporters/beamer/ox-beamer.html as a guide and
  have:
 
  ;; Export to Beamer Presentation
  (require 'ox-latex)
  (add-to-list 'org-latex-classes
  '(beamer
  \\documentclass\[presentation\]\{beamer\}
  (\\section\{%s\} . \\section*\{%s\})
  (\\subsection\{%s\} . \\subsection*\{%s\})
  (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))
 
  in my .emacs file. As you can see from the attached files, I'm getting
  nested items rather than frames in the exported .tex file for the 3rd
  level headlines, as I'd expect. I am using Org-mode version 8.0-pre
  (release_8.0-pre-33-g5c25ed and emacs 24.2.1.
 
  I've attached the .org file and the .tex file that is generated. I'd
  appreciate if someone could point out what I'm missing.


 Does adding

 (require 'ox-beamer) in .emacs help?

 atb



 Glyn





Re: [O] Basic beamer export

2013-03-12 Thread JBash
Glyn,

To clarify, my output does not change by adding ox-beamer in .emacs, or by
adding the beameroverlaydefaultspecification line in the file header.

Jerry


On Tue, Mar 12, 2013 at 6:21 AM, JBash bashve...@gmail.com wrote:

 Hi Glyn,

 That does not change my output at all.

 In some earlier googleing, I'd found some mention of setting
 org-e-latex-classes, but that seems to be now changed to org-latex-classes,
 I believe.

 Thanks for the suggestion. If you have any more thoughts, please let me
 know.

 Jerry


 On Tue, Mar 12, 2013 at 5:34 AM, Glyn Millington 
 glyn.milling...@gmail.com wrote:

 JBash bashve...@gmail.com writes:

  Hello,
 
  I am apparently missing something very basic in the setup for beamer
  export. I have used
  http://orgmode.org/worg/exporters/beamer/ox-beamer.html as a guide and
  have:
 
  ;; Export to Beamer Presentation
  (require 'ox-latex)
  (add-to-list 'org-latex-classes
  '(beamer
  \\documentclass\[presentation\]\{beamer\}
  (\\section\{%s\} . \\section*\{%s\})
  (\\subsection\{%s\} . \\subsection*\{%s\})
  (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))
 
  in my .emacs file. As you can see from the attached files, I'm getting
  nested items rather than frames in the exported .tex file for the 3rd
  level headlines, as I'd expect. I am using Org-mode version 8.0-pre
  (release_8.0-pre-33-g5c25ed and emacs 24.2.1.
 
  I've attached the .org file and the .tex file that is generated. I'd
  appreciate if someone could point out what I'm missing.


 Does adding

 (require 'ox-beamer) in .emacs help?

 atb



 Glyn






Re: [O] Different spacing in html output compared to info and pdf

2013-03-12 Thread Bastien
Hi Thomas,

the attached (dirty) patch fixes it.  It's clearly not the right
approach, though.  I hope Nicolas can have a look soon, as the problem
affect all uses of snippets in macros.

Thanks for reporting this,

Changes in master
	Modified   lisp/ox-html.el
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 9307081..6750ffc 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2024,8 +2024,9 @@ information.
   Transcode a EXPORT-SNIPPET object from Org to HTML.
 CONTENTS is nil.  INFO is a plist holding contextual
 information.
-  (when (eq (org-export-snippet-backend export-snippet) 'html)
-(org-element-property :value export-snippet)))
+  (if (eq (org-export-snippet-backend export-snippet) 'html)
+  (org-element-property :value export-snippet)
+(if ( 0 (org-element-property :post-blank export-snippet))  )))
 
  Export Block
 
	Modified   lisp/ox-latex.el
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index fa66bb4..5362edf 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1337,8 +1337,9 @@ CONTENTS is nil.  INFO is a plist holding contextual information.
 (defun org-latex-export-snippet (export-snippet contents info)
   Transcode a EXPORT-SNIPPET object from Org to LaTeX.
 CONTENTS is nil.  INFO is a plist holding contextual information.
-  (when (eq (org-export-snippet-backend export-snippet) 'latex)
-(org-element-property :value export-snippet)))
+  (if (eq (org-export-snippet-backend export-snippet) 'latex)
+  (org-element-property :value export-snippet)
+(if ( 0 (org-element-property :post-blank export-snippet))  )))
 
 
  Fixed Width


-- 
 Bastien


Re: [O] #+BEGIN_SRC problem when exporting

2013-03-12 Thread Luca Ferrari
Thanks,
I've tried and it works now.

Luca

On Mon, Mar 11, 2013 at 5:53 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Luca Ferrari fluca1...@infinito.it writes:

 Hi all,
 maybe I'm getting something wrong but when I add to a file the following 
 block:

 #+BEGIN_SRC shell
 ![+-] program
 ![+-] hostname
 #+END_SRC

 and do a Latex export I got an unbalanced error. I suspect the
 problem is tied to the + signs that are within the block. Is there a
 trick I can use here?
 I'm using the org mode into Emacs 24.2.1.

 Thanks,
 Luca


 Hi Luca,

 Your example exports without problem with the latest version of
 Org-mode.

 Best,

 --
 Eric Schulte
 http://cs.unm.edu/~eschulte



Re: [O] Editing folded headlines and ellipses

2013-03-12 Thread Bastien
Hi Darlan,

Darlan Cavalcante Moreira darc...@gmail.com writes:

 That is another nice feature of org-mode I didn't know about.

I just documented it in the manual, thanks!

 I set the variable to 'error now..

 Any reason why nil is the default?

IMO setting it to non-nil would be too intrusive for
most users.

-- 
 Bastien



[O] Active timestamp drawer with inactive creation-date

2013-03-12 Thread Alexander Poslavsky
Hi!

I actively use timestamps to plan my day. When I have a task, I add a 
time-stamp to it with C-. Then I plan the task, for example, for tomorrow. I 
end up with:

** important task 2013-03-13 Wed
   :PROPERTIES:
   :CREATED:  2013-03-12 Tue 13:52
   :END:

The property drawer has an active time-stamp, which in turn appears in my 
agenda. What I want to end up is, an inactive time-stamp in the drawer:

** important task 2013-03-13 Wed
   :PROPERTIES:
   :CREATED:  [2013-03-12 Tue 13:52]
   :END:

At the moment I change it by hand, but laziness is the key to progress, so: how 
do I do this?

Thanks, Alex


Re: [O] [New Exporter] deriving from derived backends?

2013-03-12 Thread Bastien
Hi Rick,

Rick Frankel r...@rickster.com writes:

 If i use e.g., s-X or s-x in the exporter menu,
 in exporter functions, :html-container == div (which is set in the
 html exporter), and :s5-xoxo-root is nil.

Do you have `org-s5-xoxo-root-element' defined somewhere in your file?

HTH,

-- 
 Bastien



Re: [O] M-q fill-paragraph and timestamps

2013-03-12 Thread Bastien
Hi Russell,

Russell Adams rlad...@adamsinfoserv.com writes:

 Minor question, I frequently use inactive timestamps in org, and
 noticed that M-q (fill-paragraph) will often combine my timestamp in
 with the text I'm writing.

 Is there a method to prevent that?

Not unless you use a workaround/hack.  Floating timestamps are part
of paragraphs, so M-q does the right thing here.  IOW, you need want
to separate the time-stamp and the paragraph with a blank line.

HTH,

-- 
 Bastien



Re: [O] Publish setup in file

2013-03-12 Thread Bastien
Hi Julian,

Julian Gehring julian.gehr...@gmail.com writes:

 Is there a way to specify publishing options (e.g. the location) at the
 level of the file to be published, instead doing this globally in the
 =.emacs= file?

The publication process thinks in terms of projects, not in terms of
files, so you need to organize your files and projects in a way that
makes :publishing-directory do the right thing.

If we alleviate this limitation, we will end up with option keywords
like #+HTML_PUB_DIR and #+LaTeX_PUB_DIR which will then override the
:publishing-directory option, but this would perhaps be confusing.

Best,

-- 
 Bastien



Re: [O] Editing folded headlines and ellipses

2013-03-12 Thread Darlan Cavalcante Moreira

At Tue, 12 Mar 2013 13:45:27 +0100,
Bastien wrote:
 
 Hi Darlan,
 
 Darlan Cavalcante Moreira darc...@gmail.com writes:
 
  That is another nice feature of org-mode I didn't know about.
 
 I just documented it in the manual, thanks!
 
  I set the variable to 'error now..
 
  Any reason why nil is the default?
 
 IMO setting it to non-nil would be too intrusive for
 most users.

That is true, but in this case I think it is a good thing, specially for
new users. I have edited some invisible part by mistake in the past, but
because I saw my mistake I could undo until the buffer was not marked as
modified anymore (I save a lot, therefore this was enough). Nowadays I'm
always careful to avoid this, but having org-mode do that for me gives me
some piece of mind that I won't mess with my precious org-mode files by
mistake..

In my case I don't think I'll ever need to edit invisible text by hand. The
only time I edit invisible text is when performing some search and
replacement in some region containing folded subtrees (or in the whole
buffer), but this works even org-catch-invisible-edits is set to error,
which is great for me.

I don't know which option would be a better default, but I think nil is not
the one (unless there is some performance loss I didn't see due to the
check).

--
Darlan

 
 -- 
  Bastien



Re: [O] Fixing footnote HTML

2013-03-12 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 For some reason, I am getting no blank lines between footnotes, and no
 blank lines between paragraphs in multi-paragraph footnotes.  Any idea
 why?  Tested in Firefox.

This should now be fixed, thanks!

-- 
 Bastien



[O] Should org-catch-invisible-edits default to non-nil? (was: Editing folded headlines and ellipses)

2013-03-12 Thread Bastien
Hi Darlan,

Mhh... yes, I see.

I'm not against changing the default for `org-catch-invisible-edits'
but I'd like to know what other contributors think.

So here it is: what do you guys think the defauld should be?

Thanks,

-- 
 Bastien



Re: [O] Should org-catch-invisible-edits default to non-nil? (was: Editing folded headlines and ellipses)

2013-03-12 Thread Carsten Dominik

On 12.3.2013, at 15:21, Bastien b...@altern.org wrote:

 Hi Darlan,
 
 Mhh... yes, I see.
 
 I'm not against changing the default for `org-catch-invisible-edits'
 but I'd like to know what other contributors think.
 
 So here it is: what do you guys think the defauld should be?

I think the default should be nil.  Org-mode is also a basic text mode, and I 
think it should not deviate too much from other modes.

I think better advertising this might be all that is needed.

- Carsten


Re: [O] Should org-catch-invisible-edits default to non-nil? (was: Editing folded headlines and ellipses)

2013-03-12 Thread Marcin Borkowski
Dnia 2013-03-12, o godz. 15:21:53
Bastien b...@altern.org napisał(a):

 Hi Darlan,
 
 Mhh... yes, I see.
 
 I'm not against changing the default for `org-catch-invisible-edits'
 but I'd like to know what other contributors think.
 
 So here it is: what do you guys think the defauld should be?

I'm not (yet?) a contributor, just a simpleton user, but for me: nil is
a bad idea here.

 Thanks,

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Active timestamp drawer with inactive creation-date

2013-03-12 Thread Michael Strey
Hi Alex,

On Tue, Mar 12, 2013 at 01:56:06PM +0100, Alexander Poslavsky wrote:

 I actively use timestamps to plan my day. When I have a task, I add a 
 time-stamp to it with C-. Then I plan the task, for example, for tomorrow. 
 I end up with:
 
 ** important task 2013-03-13 Wed
:PROPERTIES:
:CREATED:  2013-03-12 Tue 13:52
:END:

How do you create the :CREATED: property with the active timestamp?

Regards
-- 
Michael Strey 
www.strey.biz



Re: [O] Should org-catch-invisible-edits default to non-nil? (was: Editing folded headlines and ellipses)

2013-03-12 Thread Suvayu Ali
On Tue, Mar 12, 2013 at 03:21:53PM +0100, Bastien wrote:
 
 I'm not against changing the default for `org-catch-invisible-edits'
 but I'd like to know what other contributors think.
 
 So here it is: what do you guys think the defauld should be?

Although I set it to 'show, I still think the default should be nil.  My
reasoning is simple; the alternatives are too many and too varied.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [bug] new beamer exporter always adds default width to graphics

2013-03-12 Thread Jay Kerns
Dear James,

On Tue, Mar 12, 2013 at 9:25 AM, James Harkins jamshar...@gmail.com wrote:
 Hi,

 Apologies if this was previously reported. I read the digest, so I
 might not have seen the most recent e-mails. I took a quick glance at
 gmane's archive and didn't readily see anything.

 The width attribute for beamer graphics is not handled properly at
 present (current master).

 The org file contains:

 #+BEGIN_CENTER
 #+ATTR_LaTeX: :options width=6cm
 [[./img/new-version.png]]
 #+END_CENTER

 In the .tex file, I see:

 \begin{center}
 \includegraphics[width=6cm,width=.9\linewidth]{./img/new-version.png}
 \end{center}

 Two widths appear: the one that I wanted, and the default that I was
 trying to override. LaTeX obeys the one that I didn't want.

 The problem is somewhere between HEAD and this commit (i.e., 8cc6c13
 is a good commit; head is bad):

 commit 8ee6c13c7fd6eacc2e8c2ace8054f8aac3548966
 Author: Bastien Guerry b...@altern.org
 Date:   Sat Feb 23 13:47:44 2013 +0100
 Fix typo: an headline - a headline.

 Please fix. Thanks.
 hjh


Yes, the same thing happened to me too, and yes, there was a change
recently, and here is a link to the discussion about it:

http://comments.gmane.org/gmane.emacs.orgmode/68011

I believe you can do the following to get what you were expecting:

#+ATTR_LaTeX: :width 6cm

I hope this helps,

-- 
Jay



Re: [O] Basic beamer export

2013-03-12 Thread Suvayu Ali
Hi Jerry,

On Tue, Mar 12, 2013 at 02:57:14AM -0400, JBash wrote:
 Hello,
 
 I am apparently missing something very basic in the setup for beamer
 export.  I have used http://orgmode.org/worg/exporters/beamer/ox-beamer.html 
 as
 a guide and have:

[...]

 in my .emacs file.  As you can see from the attached files, I'm getting
 nested items rather than frames in the exported .tex file for the 3rd level
 headlines, as I'd expect.  I am using Org-mode version 8.0-pre
 (release_8.0-pre-33-g5c25ed and emacs 24.2.1.

I cannot replicate this problem with your example.  I have a few
questions though.

1. How do you check your org-version, M-x org-version RET?

2. Is the previously attached result with a minimal org setup?  If not,
   you should try that.

3. On first thought, you have a mixed installation and somehow the old
   exporter is taking over.  I would suggest you go over the mixed
   installation FAQ on Worg:

   http://orgmode.org/worg/org-faq.html#mixed-install

I suspect (3) because converting headlines to list is an old exporter
behaviour.  A mixed install can happen if you do not update the
load-path early enough in your setup before you start customising org
variables.  I think the FAQ entry above is not complete since this
information is missing, I'll try to update it when I can find the time.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] [bug] new beamer exporter always adds default width to graphics

2013-03-12 Thread Suvayu Ali
On Tue, Mar 12, 2013 at 10:38:27AM -0400, Jay Kerns wrote:
 Dear James,
 
 On Tue, Mar 12, 2013 at 9:25 AM, James Harkins jamshar...@gmail.com wrote:

[...]

  The org file contains:
 
  #+BEGIN_CENTER
  #+ATTR_LaTeX: :options width=6cm
  [[./img/new-version.png]]
  #+END_CENTER
 
  In the .tex file, I see:
 
  \begin{center}
  \includegraphics[width=6cm,width=.9\linewidth]{./img/new-version.png}
  \end{center}
 
  Two widths appear: the one that I wanted, and the default that I was
  trying to override. LaTeX obeys the one that I didn't want.
 
  The problem is somewhere between HEAD and this commit (i.e., 8cc6c13
  is a good commit; head is bad):
 
  commit 8ee6c13c7fd6eacc2e8c2ace8054f8aac3548966
  Author: Bastien Guerry b...@altern.org
  Date:   Sat Feb 23 13:47:44 2013 +0100
  Fix typo: an headline - a headline.
 
 Yes, the same thing happened to me too, and yes, there was a change
 recently, and here is a link to the discussion about it:
 
 http://comments.gmane.org/gmane.emacs.orgmode/68011
 
 I believe you can do the following to get what you were expecting:
 
 #+ATTR_LaTeX: :width 6cm

I believe Nicolas mentioned sometime back the :width option is available
only for floats whereas :options is the only way for included graphics
files (because of how LaTeX works).  This addition is a bit inconsistent
with that line of thought.

-- 
Suvayu

Open source is the future. It sets us free.



[O] Repeated tasks, but only for a limited period (of time)

2013-03-12 Thread Rick Hanson
Hi everyone,

I've already RTFMed for this, but I still don't see how to do the following.

Fact: I can add a repeater to a time stamp (like +1d) in org-mode so that
a task shows up in my agenda as an every day item.

Question: Can I restrict this repetition to, say, 1 week?

For instance, I have a task I have to perform every day this week, /but
only for this week/.  So if I were to pull up my agenda for this week, I
should see the task posted every day of this week, but if I then hit the
f key to go forward a week, I should *not* see that task in this (the
following) week.

This is a not deal-breaker if not possible.  I can just get rid if the task
at the end of the week (but it's state, of course, that I have to keep in
my mind, instead of committing it to the magic of org-mode).

Thanks a lot of any help!  (My apologies if it's in the manual and I missed
it.)

Best, --Rick


Re: [O] Create course material with org-mode

2013-03-12 Thread Torsten Wagner
Hi  Andreas,

thanks for the reply. I'm  a long time user of babel already.
Thus, I am pretty sure it will be part of the solution :)

Thanks again for confirmation

Torsten



On 11 March 2013 12:07, Andreas Röhler andreas.roeh...@easy-emacs.dewrote:

 Am 11.03.2013 11:52, schrieb Torsten Wagner:

  Hi Thorsten,

 thanks for the links. I will look into them.

 Actually the topic is not exactly OT, I'm looking for a meta-system
 which
 helps me to keep all those different things together. Hopefully, in a way
 which allows me to generate different kind of course material from the
 same
 sources.
 I was wondering, can org-mode be such a meta-system e.g. could I keep
 materials of a certain topic within a single org-file and use (customized)
 exporters to create the desired outputs like a interactive HTML version, a
 printable PDF, exercises and questions for exams?

 E.g. a file structure like this

 * Theory
 text text text

 ** Interactive example :HTML
 Bable code

 ** more theory in detail
 *** Images

 ** lecture slides :BEAMER

 ** Exercises
 *** Solutions

 ** Exam questions
 *** 1
 *** 2
 *** 3

 This file should ideally run through different exporters to generate
 interactive HTML for a website,
 printable PDF version,
 slides for a lecture,
 exercises with and without solution,
 exam questions,

 One task which might require some more attention (and code) would be to
 compile e.g.  the entire script from different source files. Same for an
 entire exam, a set of exercise, etc.
 The benefit of an approach like above would be that I can keep all related
 infos close to each other. It would be much easier to make changes among
 all different outputs, create new material, etc.
 Hope this makes my idea more clear.

 Thanks for helping

 Torsten











 On 10 March 2013 00:20, Thorsten Jolitz tjol...@gmail.com wrote:

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

  I plan to create new course materials for teaching at university level.


 slightly OT, but you could have a look at LaTeX package

 ,-**-
 | http://www.ctan.org/pkg/**tcolorboxhttp://www.ctan.org/pkg/tcolorbox
 `-**-

 and its manual

 ,-**--**
 --
 | http://mirrors.ctan.org/**macros/latex/contrib/**
 tcolorbox/tcolorbox.pdfhttp://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf
 `-**--**
 --

 its well suited for presenting source-code  output as well as
 exercises  solutions.

 --
 cheers,
 Thorsten





 Hi Thorsten,

 from what I understand, org-mode is designed for this.
 Probably org-babel is the point to start, exporting sections with
 different kind of text/code.

 http://orgmode.org/worg/org-**contrib/babel/index.htmlhttp://orgmode.org/worg/org-contrib/babel/index.html

 Should you miss a part, assume there are good chances to get it written
 after request.

 Looking forward to see it grow,

 Andreas



Re: [O] Create course material with org-mode

2013-03-12 Thread Torsten Wagner
Hi,
yeah, org-mode is extremely flexible. I guess by time one can map all kind
of different aspects of teaching to org-mode.
I'm a bit concerned about the long-time support. Org-mode is a very active
project. I guess I can't assume that I can generate my 5 year old export
files without modification with a current release.
However, my older colleagues taught me by example, it should be still
better compared to any proprietary file.

Thanks for the input.

Torsten



On 11 March 2013 16:40, W. Greenhouse wgreenho...@riseup.net wrote:

 Hi Torsten,

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

  Actually the topic is not exactly OT, I'm looking for a meta-system
  which helps me to keep all those different things together.
  Hopefully, in a way which allows me to generate different kind of
  course material from the same sources.
  I was wondering, can org-mode be such a meta-system e.g. could I
  keep materials of a certain topic within a single org-file and use
  (customized) exporters to create the desired outputs like a
  interactive HTML version, a printable PDF, exercises and questions
  for exams?

 Org should be ideal for this.  Each subtree can be configured with its
 own export settings, so e.g. you can use a different LaTeX style for the
 lecture slides, exams, and problem sets.

 Don't forget also that you can measure student progress in this file,
 too :) Org has a spreadsheet, and you could use it as a grade book if
 you wish.

 --
 Regards,
 WGG





Re: [O] Create course material with org-mode

2013-03-12 Thread Torsten Wagner
Hi Terry,

I second the request. A example file would be great.
Esp. how you configured the exporters to export partially and across
several files.
Did you integrate babel code as well?
Would really be glad to hear more.

Thanks

Torsten



On 11 March 2013 21:30, T.F. Torrey tftor...@tftorrey.com wrote:

 Hello Thorsten,

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

  Actually the topic is not exactly OT, I'm looking for a meta-system
 which
  helps me to keep all those different things together. Hopefully, in a way
  which allows me to generate different kind of course material from the
 same
  sources.
  I was wondering, can org-mode be such a meta-system e.g. could I keep
  materials of a certain topic within a single org-file and use
 (customized)
  exporters to create the desired outputs like a interactive HTML version,
 a
  printable PDF, exercises and questions for exams?
 
  E.g. a file structure like this
 
  * Theory
  text text text
 
  ** Interactive example :HTML
  Bable code
 
  ** more theory in detail
  *** Images
 
  ** lecture slides :BEAMER
 
  ** Exercises
  *** Solutions
 
  ** Exam questions
  *** 1
  *** 2
  *** 3

 This is more or less precisely the structure I use for managing my work.
 I maintain each project as one Org file, keeping together all related
 text, todo lists, spreadsheets, web pages, letters, and even files like
 SVG files.  This way I can add just one file (per project) to my agenda
 and not miss any tasks, and backing up my critical work is just a matter
 of copying my Org files.  When needed, I also export the individual
 nodes as HTML, PDF, OpenDocument, csv, or whatever.

 This works very well for me, even when I am treating university classes
 as projects and keeping the syllabus, instruction material, lab
 material, data, tests, correspondence, and everything else together in
 one file.

  This file should ideally run through different exporters to generate
  interactive HTML for a website,
  printable PDF version,
  slides for a lecture,
  exercises with and without solution,
  exam questions,
 
  One task which might require some more attention (and code) would be to
  compile e.g.  the entire script from different source files. Same for an
  entire exam, a set of exercise, etc.
  The benefit of an approach like above would be that I can keep all
 related
  infos close to each other. It would be much easier to make changes among
  all different outputs, create new material, etc.
  Hope this makes my idea more clear.
 
  Thanks for helping
 
  Torsten

 It was this capability of Org that first captured me as a user, and I
 still know of nothing else with so much accessibility, utility, and
 power.

 I'd be happy to give you more information about how to set up an Org
 file to export to different formats the way I use mine, but really the
 information is very clear in the manual.

 And of course, if you have any trouble, the list is really great.

 All the best,
 Terry
 --
 T.F. Torrey



Re: [O] inline Babel calls in math environments and table cells

2013-03-12 Thread Jay Kerns
Hello,

I went back and spent some time to rethink how I was approaching my
problem.  Instead of inline src blocks like this:

\( SRC_R{blah} \)

or this

| SRC_R{blah} |

or even this

\begin{equation}
SRC_R{blah}
\end{equation}

I could get by doing noweb substitution like this:

#+NAME: foo
#+BEGIN_SRC R
blah
#+END_SRC

then elsewhere

#+BEGIN_SRC latex :noweb yes
Here is a bunch foo() of LaTeX markup
#+END_SRC

This method works. I think it would be cool if it were possible to
evaluate inline src blocks all over the place but on the other hand
there are other tools which might be better suited for that kind of
work. At least for the time being.  :-)

-- 
Jay



Re: [O] Create course material with org-mode

2013-03-12 Thread Torsten Wagner
Hi Brian,

Hi Torsten,

 I thought I'd muddy your waters by throwing a contrary voice into the mix
 :-)


N do not destroy my view of a perfect world ;)


 I've been refining the way I manage my college and uni teaching with
 org for 5+ years, now. I am making extensive use of the scheduling and
 TODO functionality. I am not storing course materials in the org
 files. I found that I could not get by with just one teaching.org
 file, but instead needed to break out each class into its own org
 file. With everything in one, even on my pretty beefy box (quad core
 i7, 8GB RAM) there was too much of a periodic lag when editing the org
 file for that to be comfortable. On my netbook (which I take to the
 office as the College insists I need a Windows box on my desk), the
 lag made working with the file far too painful. I've not tried putting
 my (extensive) LaTeX beamer slides sources, exams, etc. into the org
 files, but I fear the lag would again occur.


Actually, that might be misunderstood. My aim is not to create a
teaching.org file but many org-files, one for each topic. I totally agree a
single org-mode file for an entire course would be really fast difficult to
maintain.
A complete course might consist of many org-files. Splitting the entire
lecture in a similar way like an ordinary table of content.
However, I would love to keep all infos of a certain topic within a single
org-mode file together. Slides, lecture notes, exam questions, exercises,
organisation, TODOs, ideas, maybe code, etc.



 I've been keeping all course related material other than the org files
 which manage scheduling into a seperate directory under git version
 control and I link from the org file's scheduled tasks to the relevant
 course related materials. It seems to be working in that I am halfway
 through the term and am at most a week behind :-) Having those
 materials in nested dirs in the filesystem is helpful, too; it allows
 granular use of things like $git log . and that often gives me a
 better sense of what I've been up to than would running git log
 against one monster all in org file.


GIT will be definitely part of my toolchain independent of the usage of
org-mode.



 I don't however too much by way of multiple outputs derived from
 common sources. I let LaTeX beamer's facilities take care of prodicing
 a display and a downloadable version of my slides. That just needs two
 short master files which \include the body of the slides. What
 duplication I have is in things like tests and paper topics when I
 have multiple sections of the same course in a term, differing only in
 section numbers and dates. The duplication is a bit inellegant, but it
 is not extensive enough for me to worry about the overhead of avoiding
 it. And, disk space is approximately free, at least if one is worried
 about having duplicates of latex sources that generate a few pages.


Actually, that is exactly what I am trying to figure out at the moment. How
to generate a entire script or lecture slides from different org-mode files
which contain not only one sort buy many different sorts of information.

Thanks for the input, I guess  we are more on the the same path rather then
contrary. ;)

Best

Torsten


[O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Andreas Röhler

Running tests from org-mode/testing/README failed due to missing case-folding
Downcased result was searched while upcased was inserted

Patch attached

Error was:

Debugger entered--Lisp error: (ert-test-failed ((should (string= #1=: 2 (buffer-substring-no-properties (point-at-bol) (point-at-eol :form (string= #1# 2;;) :value 
nil))

  signal(ert-test-failed (((should (string= #1=: 2 (buffer-substring-no-properties 
(point-at-bol) (point-at-eol :form (string= #1# 2;;) :value nil)))
  ert-fail(((should (string= #1=: 2 (buffer-substring-no-properties (point-at-bol) 
(point-at-eol :form (string= #1# 2;;) :value nil))
  (if (unwind-protect (setq value-76 (apply fn-74 args-75)) (setq form-description-78 (nconc (list (quote (should (string= : 2 ... (list :form (cons fn-74 args-75)) 
(if (eql value-76 (quote ert-form-evaluation-aborted-77)) nil (list :value value-76)) (let ((-explainer- (and ... ...))) (if -explainer- (progn (list :explanation ...)) 
(ert--signal-should-execution form-description-78)) nil (ert-fail form-description-78))
  (let (form-description-78) (if (unwind-protect (setq value-76 (apply fn-74 args-75)) (setq form-description-78 (nconc (list (quote (should ...))) (list :form (cons fn-74 
args-75)) (if (eql value-76 (quote ert-form-evaluation-aborted-77)) nil (list :value value-76)) (let ((-explainer- ...)) (if -explainer- (progn ...) 
(ert--signal-should-execution form-description-78)) nil (ert-fail form-description-78)))
  (let ((value-76 (quote ert-form-evaluation-aborted-77))) (let (form-description-78) (if (unwind-protect (setq value-76 (apply fn-74 args-75)) (setq form-description-78 
(nconc (list (quote ...)) (list :form (cons fn-74 args-75)) (if (eql value-76 ...) nil (list :value value-76)) (let (...) (if -explainer- ... 
(ert--signal-should-execution form-description-78)) nil (ert-fail form-description-78))) value-76)
  (let ((fn-74 (function string=)) (args-75 (list . #1=(: 2 (buffer-substring-no-properties (point-at-bol) (point-at-eol)) (let ((value-76 (quote 
ert-form-evaluation-aborted-77))) (let (form-description-78) (if (unwind-protect (setq value-76 (apply fn-74 args-75)) (setq form-description-78 (nconc (list ...) (list 
:form ...) (if ... nil ...) (let ... ...))) (ert--signal-should-execution form-description-78)) nil (ert-fail form-description-78))) value-76))
  (progn (org-babel-next-src-block) (org-ctrl-c-ctrl-c) (re-search-forward results nil t) (forward-line) (let ((fn-74 (function string=)) (args-75 (list . #1=(: 2 
(buffer-substring-no-properties (point-at-bol) (point-at-eol)) (let ((value-76 (quote ert-form-evaluation-aborted-77))) (let (form-description-78) (if (unwind-protect 
(setq value-76 (apply fn-74 args-75)) (setq form-description-78 (nconc ... ... ... ...)) (ert--signal-should-execution form-description-78)) nil (ert-fail 
form-description-78))) value-76)))
  (setq G39143 (progn (org-babel-next-src-block) (org-ctrl-c-ctrl-c) (re-search-forward results nil t) (forward-line) (let ((fn-74 (function string=)) (args-75 (list . 
#1=(: 2 (buffer-substring-no-properties ... ...) (let ((value-76 (quote ert-form-evaluation-aborted-77))) (let (form-description-78) (if (unwind-protect (setq 
value-76 ...) (setq form-description-78 ...) (ert--signal-should-execution form-description-78)) nil (ert-fail form-description-78))) value-76
  (let ((kill-buffer-query-functions nil) G39143) (let ((temp-file #1=/tmp/org-test634987c) (temp-buffer (get-buffer-create (generate-new-buffer-name  *temp file* 
(unwind-protect (prog1 (save-current-buffer (set-buffer temp-buffer) (insert \n#+begin_src emacs-lisp :var a=2\n2;;\n#+end_src)) (save-current-buffer (set-buffer 
temp-buffer) (write-region nil nil temp-file nil 0))) (and (buffer-name temp-buffer) (kill-buffer temp-buffer (find-file #1#) (org-mode) (setq G39143 (progn 
(org-babel-next-src-block) (org-ctrl-c-ctrl-c) (re-search-forward results nil t) (forward-line) (let ((fn-74 (function string=)) (args-75 (list . #2=(: 2 ... (let 
((value-76 (quote ert-form-evaluation-aborted-77))) (let (form-description-78) (if (unwind-protect ... ... ...) nil (ert-fail form-description-78))) value-76 
(save-buffer) (kill-buffer (current-buffer)) (delete-file #1#) G39143)

  eval-buffer(#buffer  *load* nil MY-PATH/test-ob-emacs-lisp.el nil t)  ; 
Reading at buffer position 2235
  (let ((load-file-name fullname) (set-auto-coding-for-load t) (inhibit-file-name-operation nil)) (save-current-buffer (set-buffer buffer) (set-buffer-multibyte t) (let 
(deactivate-mark) (insert-file-contents fullname)) (if (and enable-multibyte-characters (or (eq (coding-system-type last-coding-system-used) (quote raw-text 
(set-buffer-multibyte nil)) (set-buffer-modified-p nil)) (eval-buffer buffer nil (if purify-flag file fullname) nil t))
  (unwind-protect (let ((load-file-name fullname) (set-auto-coding-for-load t) (inhibit-file-name-operation nil)) (save-current-buffer (set-buffer buffer) 

Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Bastien
Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:

 Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted

It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?

 Patch attached

Thanks, let's use this fix if we reproduce the problem.

Best,

-- 
 Bastien



[O] Meaning of install

2013-03-12 Thread Thomas S. Dye
Aloha all,

Section 1.2 of the Org manual in git is called `Installation', and it
includes instructions on three ways `to install Org on top' of the Org
that ships with Emacs.

Near the bottom of that page, after giving instructions on how to
install Org from the git repository, it says that You can also ...
install Org with `make install'.

This is confusing to a User like me.  After having been given
instructions on how to install Org:

 $ cd ~/src/
 $ git clone git://orgmode.org/org-mode.git
 $ make autoloads

I now find that I can also install with `make install.'

It seems clear to me that `install' is being used in two different senses
here.  I'd like to disambiguate--can someone suggest a concise way to do
this?

Thanks,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] (no subject) How to sort agenda by timestamps (scheduled/deadline)?

2013-03-12 Thread Martin
Bastien bzg at altern.org writes:

 
 Hi Martin,
 
 Martin elwood151 at web.de writes:
 
  I'll try to install it, test it and then get back to you with 
  a feedback how it works as soon as I can.

Hi Bastien,

I now finally installed org-mode 7.9.4 and I tried to use the new sorting
features, but it did not work.

I changed my sorting strategy to:
(setq org-agenda-sorting-strategy
  (quote ((agenda deadline-up scheduled-up time-up user-defined-up)
  (todo category-up priority-down effort-up)
  (tags category-up priority-down effort-up)
  (search nil
And now when trying to display the agenda, I get the following error:
Symbol's value as variable is void: deadline-up

Did I do something wrong or install the wrong version?

Kind regards

Martin




Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Andreas Röhler

Am 12.03.2013 16:59, schrieb Bastien:

Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:


Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted


It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?




Called C-c C-c subsequently as told in

~/org-mode/testing/README

* Interactive testing from within Emacs


Maybe missing spec only affect interactive calls?





Patch attached


Thanks, let's use this fix if we reproduce the problem.

Best,






Re: [O] Create course material with org-mode

2013-03-12 Thread Marcin Borkowski
Dnia 2013-03-11, o godz. 23:02:46
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 Also, here is something which some of you might find interesting:
 http://acrotex.net/ (tl;dr: it is a LaTeX-based, partly free, partly
 commercial suite for producing educational materials, among others
 interactive pdfs, and maintaining exercise databases).

Hi again,

one more thought: since it seems that there are quite a few people here
using LaTeX for educational purposes, I thought you might be interested
in ConTeXt (see http://wiki.contextgarden.net/Main_Page).  It is also a
TeX-based tool, imho better than LaTeX (though definitely less stable -
nevertheless, there are people who use it for production purposes - and
not only its developers).  It was developed as a general-purpose tool
(unlike LaTeX, which is still - after 30 years - mainly aimed at
academia; LaTeX3 should change it, but it's still far from ready), but
with educational documents being an important focus.

If anyone is interested, I can write some more about it, especially
about its pros and cons as opposed to LaTeX (I've been using both
extensively for quite a few years now).

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



Re: [O] Repeated tasks, but only for a limited period (of time)

2013-03-12 Thread Brian van den Broek
On 12 March 2013 11:06, Rick Hanson cryptor...@gmail.com wrote:
 Hi everyone,

 I've already RTFMed for this, but I still don't see how to do the following.

 Fact: I can add a repeater to a time stamp (like +1d) in org-mode so that
 a task shows up in my agenda as an every day item.

 Question: Can I restrict this repetition to, say, 1 week?

 For instance, I have a task I have to perform every day this week, /but only
 for this week/.  So if I were to pull up my agenda for this week, I should
 see the task posted every day of this week, but if I then hit the f key to
 go forward a week, I should *not* see that task in this (the following)
 week.

 This is a not deal-breaker if not possible.  I can just get rid if the task
 at the end of the week (but it's state, of course, that I have to keep in my
 mind, instead of committing it to the magic of org-mode).

 Thanks a lot of any help!  (My apologies if it's in the manual and I missed
 it.)

 Best, --Rick


Hi Rick,

I know of no way to do exactly what you are after. But, for things
like that, I make one headline task and then apply M-x
org-clone-subtree-with-time-shift to get the desired number of
distinct tasks. Perhaps that will suit your needs.

Best,

Brian vdB



Re: [O] Repeated tasks, but only for a limited period (of time)

2013-03-12 Thread Darlan Cavalcante Moreira

Instead of using a repeater you can clone the task. Just create the task
the way you like it (with a schedule and a deadline) for the first day and
then call 'M-x org-clone-subtree-with-time-shift'.  Org-mode will ask you
the number of clones it should create and the time shift. Just specify the
time shift as '1d' and you are done.

--
Darlan

At Tue, 12 Mar 2013 11:06:30 -0400,
Rick Hanson wrote:
 
 [1  text/plain; ISO-8859-1 (7bit)]
 Hi everyone,
 
 I've already RTFMed for this, but I still don't see how to do the following.
 
 Fact: I can add a repeater to a time stamp (like +1d) in org-mode so that
 a task shows up in my agenda as an every day item.
 
 Question: Can I restrict this repetition to, say, 1 week?
 
 For instance, I have a task I have to perform every day this week, /but
 only for this week/.  So if I were to pull up my agenda for this week, I
 should see the task posted every day of this week, but if I then hit the
 f key to go forward a week, I should *not* see that task in this (the
 following) week.
 
 This is a not deal-breaker if not possible.  I can just get rid if the task
 at the end of the week (but it's state, of course, that I have to keep in
 my mind, instead of committing it to the magic of org-mode).
 
 Thanks a lot of any help!  (My apologies if it's in the manual and I missed
 it.)
 
 Best, --Rick
 [2  text/html; ISO-8859-1 (quoted-printable)]
 



Re: [O] A proposal (ox-html.el/ox-odt.el)

2013-03-12 Thread W. Greenhouse
Jambunathan,

Jambunathan K kjambunat...@gmail.com writes:

 People are disregarding my moral rights over my work and pushing me in
 a corner to act a certain way to serve their own interests.  This I feel
 is plain wrong and an act of snatching or appropriation.

 Jambunathan K.

Moral right and copyright are unrelated concepts.  In the jurisdictions
that recognize author's moral right or droit moral (much of the EU
and other civil-code countries), such right is non-assignable and would
not even be affected by the FSF papers.  However, in the jurisdictions
where copyright is assignable, it has nothing to do with author's moral
right.

If we're going to discuss moral right in the less legalistic and more
broad sense of your rights in an ethical society as a person with
agency, I think you're disregarding the rights of prior contributors to
the ox-html program, of which you were but one of many.  Those
contributors did intend the code to become part of Emacs, and, morally
as well as legally, you entered into an agreement to further that aim
when you decided to work on it.  If you really do intend to take your
ball and go home, do please call a fork a fork--and also do please
recognize that you are the one snatching or appropriating a joint
work out of your own sense of pique.

 I want to fork ox-html.el and ox-odt.el (as it stands today in Org repo)
 to GNU ELPA repo.  I request that Emacs maintainers recognize the GNU
 ELPA version (maintained by me) as the authoritative official versions
 of these files that gets bundled with SUMO Emacs.

...


   Jambunathan
 +---+
 |  ox-html.el   +---  push   Emacs maintainer
 |  ox-odt.el|   \-
 |  GNU ELPA | \-++
 |   |   \--||
 +---+   | lisp/org/ox-html.el|
^  Push  | lisp/org/ox-odt.el |
|||
|++
|| Other org files|
 +--+-+   /-||
 ||   /---   ||
 | Org repo   |  /   ||
 ||  /---++
 |+--  push
 ||
 ||
 ++
  Org maintainer


This makes no sense at all.  It is needless busywork for the Emacs
maintainer to integrate code from one particular contributor who is unable
to cooperate with the maintainer of the project to which he
contributes.  It also unnecessarily inconveniences ordinary Emacs/Org
users, who would now face a further obstacle to simply using the
software.  They already have to go elsewhere to get contrib/ programs
or to use the latest version of Org; now you want to make it so that
even the release version of Org is fractured and schismed.  That is
totally unacceptable.

-- 
Regards,
WGG




Re: [O] FIX missing case-folding in test-ob-emacs-lisp.el

2013-03-12 Thread Andreas Röhler

Am 12.03.2013 16:59, schrieb Bastien:

Hi Andreas,

Andreas Röhler andreas.roeh...@easy-emacs.de writes:


Running tests from org-mode/testing/README failed due to missing case-folding
 Downcased result was searched while upcased was inserted


It's weird, the test does not fail for me.  Can you let me know how to
reproduce it?


Patch attached


Thanks, let's use this fix if we reproduce the problem.

Best,



Below the result from Emacs -Q

Do you have debug-on-error activated?

Cheers

;;


Selector: \\(org\\|ob\\)
Passed: 117
Failed: 61 (48 unexpected)
Total:  178/178

Started at:   2013-03-12 18:08:00+0100
Finished.
Finished at:  2013-03-12 18:08:08+0100

..FFfFFFF.FF...F..F...F.F..FFF..FF...FF..F.F..F..F.FF..FF..F..

F ob-exp/evaluate-all-executables-in-order
(void-function org-babel-exp-process-buffer)

F ob-exp/export-call-line-information
(void-function org-babel-exp-process-buffer)

F ob-exp/export-with-header-argument
(void-function org-babel-exp-process-buffer)

F ob-exp/export-with-name
(void-function org-babel-exp-process-buffer)

F ob-exp/exports-both
Test the :exports both header argument.
(void-function org-babel-exp-process-buffer)

F ob-exp/exports-inline
(void-function org-babel-exp-process-buffer)

F ob-exp/mixed-blocks-with-exports-both
(void-function org-element-map)

F ob-exp/noweb-no-export-and-exports-both
(void-function org-babel-exp-process-buffer)

F ob-exp/noweb-on-export
Noweb header arguments export correctly.
(void-function org-element-map)

F ob-exp/noweb-on-export-with-exports-results
Noweb header arguments export correctly using :exports results.
(void-function org-element-map)

F ob-exp/noweb-strip-export-ensure-strips
(error No org-babel-execute function for sh!)

F test-ob-exp/org-babel-exp-src-blocks/w-no-file
Testing export from buffers which are not visiting any file.
(file-error Cannot open load file ox-html)

F test-ob-exp/org-babel-exp-src-blocks/w-no-headers
Testing export without any headlines in the Org mode file.
(file-error Cannot open load file ox-html)

F test-ob-exp/org-babel-exp-src-blocks/w-no-headers2
Testing export without any headlines in the org-mode file.
(void-function org-export-to-file)

F test-ob-lob/do-not-eval-lob-lines-in-example-blocks-on-export
(file-error Cannot open load file ox)

F test-ob-lob/export-lob-lines
Test the export of a variety of library babel call lines.
(void-function org-babel-exp-process-buffer)

F test-ob/org-babel-remove-result--results-default
Test `org-babel-remove-result' with default :results.
(error No org-babel-execute function for sh!)

F test-ob/org-babel-results-indented-wrap
Ensure that wrapped results are inserted correction when indented.
(error No org-babel-execute function for sh!)

F test-ob/results-in-narrowed-buffer
Test block execution in a narrowed buffer.
(ert-test-failed
 ((should-not
   (re-search-forward ^#\\+RESULTS: nil t))
  :form
  (re-search-forward ^#\\+RESULTS: nil t)
  :value 66))

F test-org-babel/combining-scalar-and-raw-result-types
(error No org-babel-execute function for sh!)

F test-org-babel/inline-src-blocks
(error No org-babel-execute function for sh!)

F test-org-babel/inline-src_blk-default-results-replace-line-1
(error No org-babel-execute function for sh!)

F test-org-babel/just-one-results-block
Test that evaluating two times the same code block does not result in a
(error No org-babel-execute function for sh!)

F test-org-babel/nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)

F test-org-babel/partial-nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)

F test-org-clock/clocktable
Test clocktable specifications.
(error Bad timestamp `[nil]'\nError was: (Not a standard Org-mode time string: 
[nil]))

F test-org-footnote/delete
Test `org-footnote-delete' specifications.
(ert-test-failed
 ((should
   (equal Para\n\n\nOutside footnote.
  (org-test-with-temp-text Para[1]\n\n[1] para1\n\npara2\n\n\nOutside 
footnote.
(org-footnote-delete 1)
(org-trim ...
  :form
  (equal Para\n\n\nOutside footnote. Para\n\npara2\n\n\nOutside 
footnote.)
  :value nil :explanation
  (arrays-of-different-length 24 31 Para\n\n\nOutside footnote. 
Para\n\npara2\n\n\nOutside footnote. first-mismatch-at 6)))

F test-org-list/to-html
Test `org-list-to-html' specifications.
(ert-test-failed
 ((should
   (equal ul class=\org-ul\\nlia\n/li\n/ul
  (with-temp-buffer
(insert !-- BEGIN RECEIVE ORGLST name --\n!-- END RECEIVE 

[O] Word nil appears after figures in HTML export

2013-03-12 Thread Richard Stanton
Starting some time in the last few days, when I export an org file to HTML
I find the word nil appearing right after the figure. Here's an example
of the HTML code generated:

div class=figure
pimg src=images/RS_head_cropped.png
alt=RS_head_cropped.png//pnil
/div

Just to be clear, there's no word nil in my org file...






[O] org-attach-expand-link in latex exports (Emacs-24.3)

2013-03-12 Thread Dieter Wilhelm, H.
Hello dear list,

I added to org-link-abbrev-alist the list (att .
org-attach-expand-link) and it works nicely when I'm opening links
(C-c C-o) to images in the attachment directory.  But when I try to
export the document org-attach-expand-link is not to working.

I'm using the org-mode code provided with Emacs-24.3.
Where am I wrong or is this functionallity not yet implemented in the
latex exporter?

Best wishes

H. Dieter Wilhelm

Darmstadt
Germany



Re: [O] Meaning of install

2013-03-12 Thread Yagnesh Raghava Yakkala

Hello Thomas,

On Mar 13 2013, t...@tsdye.com (Thomas S. Dye) wrote:

  $ cd ~/src/
  $ git clone git://orgmode.org/org-mode.git
  $ make autoloads

If user decides to stop at this point he needs to add set paths in
`.emacs'.

 I now find that I can also install with `make install.'

Here `make install' installs compiled org into emacs' site-lisp directory, in
which case there is no need to set paths in `.emacs'.

Thanks.,
-- 
ఎందరో మహానుభావులు అందరికి వందనములు.
YYR


Re: [O] Meaning of install

2013-03-12 Thread Achim Gratz
Thomas S. Dye writes:
 Section 1.2 of the Org manual in git is called `Installation', and it
 includes instructions on three ways `to install Org on top' of the Org
 that ships with Emacs.

 Near the bottom of that page, after giving instructions on how to
 install Org from the git repository, it says that You can also ...
 install Org with `make install'.

 This is confusing to a User like me.  After having been given
 instructions on how to install Org:

  $ cd ~/src/
  $ git clone git://orgmode.org/org-mode.git
  $ make autoloads

 I now find that I can also install with `make install.'

Make a suggestion.  When the new build system went live I had adapted
the description with explicit instructions for each installation method,
which was later simplified (a touch too much for my tastes) by Bastien —
which is what you look at now.  It actually doesn't even work as
documented, I see now.

 It seems clear to me that `install' is being used in two different senses
 here.  I'd like to disambiguate--can someone suggest a concise way to do
 this?

Using Org from Git can be done in two fundamentally different ways:

 a) using the worktree directly as your installation,

 b) using it as the source for an installation in a different place.

Installation is used here in the sense that your Emacs runs the
installed code.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] [New Exporter] deriving from derived backends?

2013-03-12 Thread Rick Frankel
Yes. 

On Mar 12, 2013, at 9:15 AM, Bastien b...@altern.org wrote:

 Hi Rick,
 
 Rick Frankel r...@rickster.com writes:
 
 If i use e.g., s-X or s-x in the exporter menu,
 in exporter functions, :html-container == div (which is set in the
 html exporter), and :s5-xoxo-root is nil.
 
 Do you have `org-s5-xoxo-root-element' defined somewhere in your file?
 
 HTH,
 
 -- 
 Bastien



Re: [O] Meaning of install

2013-03-12 Thread Thomas S. Dye
Aloha Achim and Yagnesh Raghava Yakkala,

Achim Gratz strom...@nexgo.de writes:

 It seems clear to me that `install' is being used in two different senses
 here.  I'd like to disambiguate--can someone suggest a concise way to do
 this?

 Using Org from Git can be done in two fundamentally different ways:

  a) using the worktree directly as your installation,

  b) using it as the source for an installation in a different place.

 Installation is used here in the sense that your Emacs runs the
 installed code.

Yes, I think this structure needs to be reflected more clearly in the
manual.  I'll propose some new language when I get back to this.

In the meantime, one more question. What are the considerations for the
location of the worktree? If possible, I think it would be a good idea
for the manual to make a recommendation for the worktree location and
also provide a suitable warning about where *not* to put the worktree,
if needed.

Thanks for your help.

Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread David Engster
Vincent Beffara writes:
 In the meantime I also tweaked the way org-caldav manages UIDs to
 exploit the fact that multiply occurring events are now exported
 multiple times in ox-icalendar, everything works out well if only
 org-ical is used. One thing remaining, on ical-org sync, there is an
 issue that makes the next sync erase the event on ical and upload it
 again, under another id (and with the info not generated by org-caldav
 missing, of course). I think I know how to fix it, just need to find
 some time ...

 I will send what works to the list. (In the meantime, David, don't
 pull my second pull request, it is not right.)

I appreciate your work, of course, but let me add a word of warning. I
think if you give up the one-to-one correspondence that one Org event
has exactly *one* event in the remote calendar, you are entering a world
of pain.

Remember that there are three things: new items, changed items and
deleted items. Since these can happen on both sides, you have to figure
out six different cases which must be handled properly. As you've
already experienced, the changes on the calendar side are more
difficult. What happens if you delete one of the events that stems from
one Org entry?  You would first have to figure out which timestamp
created it, but how? Timestamps don't have UIDs, only the full entry has
one. So you would have to somehow add this information to the event
database which gets stored to disk. You might get this to work, but I
have a gut feeling that you'll loose robustness. For example, the Google
calendar CalDAV interface is pretty slow and not very reliable, so a
robust resume functionality is essential.

Also, I deliberately shoved conflict handling at the side for the
moment, but this is a feature which will have to be added one day, and
will complicate things much more.

-David



Re: [O] Create course material with org-mode

2013-03-12 Thread Jay Kerns
Hello,

On Tue, Mar 12, 2013 at 12:47 PM, Marcin Borkowski mb...@wmi.amu.edu.pl wrote:
 Dnia 2013-03-11, o godz. 23:02:46
 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):


[snip]

Many comments.

- You can set up a single org file with tagged headings, like this:
  * These are my slides   :slide:
  * These are my Lecture Notes  :lecture:
  * Here are Exam questions:exam:
  * Here be Exercises :exer:
  * Organisation of everything:organ:

- Then when it comes time to export you can do the
  #+EXCLUDE_TAGS: slide exam exer organ
  which will export your lecture notes.

- Set up a PROPERTY line for each heading to tangle to different
  places (if desired), like this:
  * Organisation of everything:organ:
  :PROPERTIES:
  :tangle:   organ.R
  :END:

- Beamer is a case all its own.  It might be easier to have a
  single big Beamer org file which has all slides and then another
  org file(s) for everything else.  Maybe I'm wrong, though; try it!

- Org publishing is very powerful.  You can set up assorted
  publishing projects to do almost /anything/.

- I have some example org-publishing setup from some time ago.  I
  haven't updated these to the new exporter but it can at least
  give you an idea about what used to be possible:
  https://github.com/gjkerns/config/blob/master/dotemacs.el

- Regarding exams/quizzes, at first I used LaTeX, then moved to
  LyX a long time ago, then managed to get an example Org file
  working, then it stopped working (and it seemed easier to do with
  LyX anyway), so I went back to LyX, but now the new exporter is
  out, so after reading your message I went back to see if I
  could get the old example working again, and I did!
  https://github.com/gjkerns/samplequiz

- My personal workflow is to put the book in one org file, then
  lecture notes in another org file, then grades in another org
  file. YMMV.

- The book is a lengthy org file which is still in the much
  lengthier process of conversion to the new exporter.
  https://github.com/gjkerns/IPSUR

Good luck and best wishes.

-- 
Jay



Re: [O] [bug] new beamer exporter always adds default width to graphics

2013-03-12 Thread Aaron Ecay
Hi Suvayu,

2013ko martxoak 12an, Suvayu Ali-k idatzi zuen:
 I believe Nicolas mentioned sometime back the :width option is available
 only for floats whereas :options is the only way for included graphics
 files (because of how LaTeX works).  This addition is a bit inconsistent
 with that line of thought.

I helped write this change, so that org could support kinds of graphics
where the width is not specified by an options string, but rather by
another means.  The new syntax is hopefully more consistent in the long
run: one uses :width to set the width of anything.

Nicolas and I originally discussed a transition period where the default
:width would not be inserted, but ultimately we decided to just go ahead
with the change.  The new exporter is after all not yet stable, though
thanks to the fantastic effort of the community it is continually
improving.

-- 
Aaron Ecay



Re: [O] Repeated tasks, but only for a limited period (of time)

2013-03-12 Thread Rick Hanson
Based your advices, I used org-clone-subtree-with-time-shift for my
application today -- worked like a charm.  Thanks to the both of you!

Best, --Rick

On Tue, Mar 12, 2013 at 12:58 PM, Brian van den Broek
brian.van.den.br...@gmail.com wrote:

 Hi Rick,

 I know of no way to do exactly what you are after. But, for things
 like that, I make one headline task and then apply M-x
 org-clone-subtree-with-time-shift to get the desired number of
 distinct tasks. Perhaps that will suit your needs.

 Best,

 Brian vdB

On Tue, Mar 12, 2013 at 1:01 PM, Darlan Cavalcante Moreira
darc...@gmail.com wrote:

 Instead of using a repeater you can clone the task. Just create the task
 the way you like it (with a schedule and a deadline) for the first day and
 then call 'M-x org-clone-subtree-with-time-shift'.  Org-mode will ask you
 the number of clones it should create and the time shift. Just specify the
 time shift as '1d' and you are done.

 --
 Darlan

 At Tue, 12 Mar 2013 11:06:30 -0400,
 Rick Hanson wrote:

 [1  text/plain; ISO-8859-1 (7bit)]
 Hi everyone,

 I've already RTFMed for this, but I still don't see how to do the following.

 Fact: I can add a repeater to a time stamp (like +1d) in org-mode so that
 a task shows up in my agenda as an every day item.

 Question: Can I restrict this repetition to, say, 1 week?

 For instance, I have a task I have to perform every day this week, /but
 only for this week/.  So if I were to pull up my agenda for this week, I
 should see the task posted every day of this week, but if I then hit the
 f key to go forward a week, I should *not* see that task in this (the
 following) week.

 This is a not deal-breaker if not possible.  I can just get rid if the task
 at the end of the week (but it's state, of course, that I have to keep in
 my mind, instead of committing it to the magic of org-mode).

 Thanks a lot of any help!  (My apologies if it's in the manual and I missed
 it.)

 Best, --Rick
 [2  text/html; ISO-8859-1 (quoted-printable)]




Re: [O] Meaning of install

2013-03-12 Thread Nick Dokos
Thomas S. Dye t...@tsdye.com wrote:

 Aloha Achim and Yagnesh Raghava Yakkala,
 
 Achim Gratz strom...@nexgo.de writes:
 
  It seems clear to me that `install' is being used in two different senses
  here.  I'd like to disambiguate--can someone suggest a concise way to do
  this?
 
  Using Org from Git can be done in two fundamentally different ways:
 
   a) using the worktree directly as your installation,
 
   b) using it as the source for an installation in a different place.
 
  Installation is used here in the sense that your Emacs runs the
  installed code.
 
 Yes, I think this structure needs to be reflected more clearly in the
 manual.  I'll propose some new language when I get back to this.
 

Now that it's available, the make install method should probably be
described first in the documentation as the preferred method: it is
appropriate for the great majority of cases (Achim would probably say
all cases).

Using the worktree is for diehard tinkerers, or old farts like me who
did it this way long before there was a build system and now don't want
to change our ossified ways.

 In the meantime, one more question. What are the considerations for the
 location of the worktree? If possible, I think it would be a good idea
 for the manual to make a recommendation for the worktree location and
 also provide a suitable warning about where *not* to put the worktree,
 if needed.
 

Like *any* worktree, It should be under one's home directory.

Nick






[O] org-babel: remote execution ?

2013-03-12 Thread Xavier Maillard
Hi there,

I am trying to get back to orgmode after years ;)

I developed my own spartian note-jotting mode for emacs but I do not
track my TODOs with that and thus, I am totally dis-org-anized :D
I am also an eev-mode fan to do all sort of stuff.

Today, I tried to use org-babel for the first time with thing like that:

#+begin_src sh
echo $ORACLE_SID
#+end_src

My goal is to execute this block on a remote machine. I RTFM'ed but I
could not find where this is described.

Is it just possible to do that ? If not, are there any eev+org users
here ?

Regards

Thank you very much for your help.

/Xavier




Re: [O] [bug] new beamer exporter always adds default width to graphics

2013-03-12 Thread Suvayu Ali
Hi Aaron,

On Tue, Mar 12, 2013 at 02:40:55PM -0400, Aaron Ecay wrote:
 Hi Suvayu,
 
 2013ko martxoak 12an, Suvayu Ali-k idatzi zuen:
  I believe Nicolas mentioned sometime back the :width option is available
  only for floats whereas :options is the only way for included graphics
  files (because of how LaTeX works).  This addition is a bit inconsistent
  with that line of thought.
 
 I helped write this change, so that org could support kinds of graphics
 where the width is not specified by an options string, but rather by
 another means.  The new syntax is hopefully more consistent in the long
 run: one uses :width to set the width of anything.
 
 Nicolas and I originally discussed a transition period where the default
 :width would not be inserted, but ultimately we decided to just go ahead
 with the change.  The new exporter is after all not yet stable, though
 thanks to the fantastic effort of the community it is continually
 improving.

That is understandable, but if the aim is to support other kinds of
graphics that support :width, I expect the change to not interfere with
graphics that do not support it.  I think there are two cases here:

1. the author targets the document for a specific backend that does not
   support :width

2. the author expects to export to multiple backends and wants to be as
   general as possible so uses and expects :width to work.

So now the question is, is it reasonable to expect the author in case
(1) is aware of this subtlety and use :width even though her/his backend
does not support it, or would it be better to handle these deficient
cases specially and help the author by not clobbering their :options
argument.

I hope I expressed myself clearly.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] Meaning of install

2013-03-12 Thread Achim Gratz
Thomas S. Dye writes:
 Yes, I think this structure needs to be reflected more clearly in the
 manual.  I'll propose some new language when I get back to this.

Please go back in time and look at the earlier version(s).  I think
there may be some middle ground between what we have now and what we had
then.  All in all I'd think that it would be enough to tell people how
to install from ELPA and from Git (the full install version) and send
them to Worg for all the other possibilities.

 In the meantime, one more question. What are the considerations for the
 location of the worktree? If possible, I think it would be a good idea
 for the manual to make a recommendation for the worktree location and
 also provide a suitable warning about where *not* to put the worktree,
 if needed.

Whereever you find it convenient, which is somewhere in your home
directory most likely.  About the only place you should not put it is
inside Emacs' own directory tree.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Re: [O] org-babel: remote execution ?

2013-03-12 Thread Eric Schulte
Xavier Maillard xav...@maillard.im writes:

 Hi there,

 I am trying to get back to orgmode after years ;)


Welcome back!


 I developed my own spartian note-jotting mode for emacs but I do not
 track my TODOs with that and thus, I am totally dis-org-anized :D I am
 also an eev-mode fan to do all sort of stuff.

 Today, I tried to use org-babel for the first time with thing like that:

 #+begin_src sh
 echo $ORACLE_SID
 #+end_src

 My goal is to execute this block on a remote machine. I RTFM'ed but I
 could not find where this is described.


You can use the :dir header argument for remote execution.

#+begin_src sh :dir /ssh:tortilla:/tmp/
  hostname
#+end_src

#+RESULTS:
: tortilla

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] org-babel: remote execution ?

2013-03-12 Thread Xavier Maillard
Eric Schulte schulte.e...@gmail.com writes:

 Xavier Maillard xav...@maillard.im writes:

[ SNIP ]

 Today, I tried to use org-babel for the first time with thing like that:

 #+begin_src sh
 echo $ORACLE_SID
 #+end_src

 My goal is to execute this block on a remote machine. I RTFM'ed but I
 could not find where this is described.


 You can use the :dir header argument for remote execution.

 #+begin_src sh :dir /ssh:tortilla:/tmp/
   hostname
 #+end_src

 #+RESULTS:
 : tortilla

Great ! I will try that then. Does it mimic TRAMP syntax thus I could
also use also telnet or anything supported by TRAMP ?

Thnak you.

/Xavier




Re: [O] org-babel: remote execution ?

2013-03-12 Thread Eric Schulte
Xavier Maillard xav...@maillard.im writes:

 Eric Schulte schulte.e...@gmail.com writes:

 Xavier Maillard xav...@maillard.im writes:

 [ SNIP ]

 Today, I tried to use org-babel for the first time with thing like that:

 #+begin_src sh
 echo $ORACLE_SID
 #+end_src

 My goal is to execute this block on a remote machine. I RTFM'ed but I
 could not find where this is described.


 You can use the :dir header argument for remote execution.

 #+begin_src sh :dir /ssh:tortilla:/tmp/
   hostname
 #+end_src

 #+RESULTS:
 : tortilla

 Great ! I will try that then. Does it mimic TRAMP syntax thus I could
 also use also telnet or anything supported by TRAMP ?


Yes,

In fact it uses tramp.  See http://orgmode.org/manual/dir.html.

Cheers,


 Thnak you.

 /Xavier



-- 
Eric Schulte
http://cs.unm.edu/~eschulte



[O] Regression in `fill-paragraph' behavior

2013-03-12 Thread Daniel Hackney
A while ago, I reported a bug in `fill-paragraph' when in org-mode
which caused filling to behave incorrectly in the presence of leading
characters. This comes up when filling paragraphs of email replies,
such as

#+BEGIN_EXAMPLE
 Here is some text
 to be filled to a single line
#+END_EXAMPLE

In the version of org-mode which comes with Emacs 24.3, running
`fill-paragraph' on this yields

#+BEGIN_EXAMPLE
 Here is some text  to be filled to a single line
#+END_EXAMPLE

Whereas filling the same text in `text-mode' results in

#+BEGIN_EXAMPLE
 Here is some text to be filled to a single line
#+END_EXAMPLE

Notice the lack of the  symbol in the `text-mode' fill.

Steps to reproduce:

1. Install Emacs 24.3
2. Launch with emacs -Q
3. Create a buffer in `org-mode'
4. Type/yank in the example text from above
5. Press M-q for `fill-paragraph'

I probably should have checked this before the release of 24.3.

--
Daniel Hackney



[O] [new-exporter] Beamer color theme

2013-03-12 Thread Vikas Rawal
How do I change beamer color theme in the new exporter.

Vikas



Re: [O] [new-exporter] Beamer color theme

2013-03-12 Thread Suvayu Ali
On Wed, Mar 13, 2013 at 07:11:09AM +0530, Vikas Rawal wrote:
 How do I change beamer color theme in the new exporter.

I updated the tutorial.

http://orgmode.org/worg/exporters/beamer/ox-beamer.html#config

The new exporter is ... well new, when in doubt looking at the source is
quite effective.  Often you need minimal lisp understanding to follow
what is going on.

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] inline Babel calls in math environments and table cells

2013-03-12 Thread Charles Berry
Jay Kerns gjkernsysu at gmail.com writes:

 
 Hello,
 
 I went back and spent some time to rethink how I was approaching my
 problem.  Instead of inline src blocks like this:
 
 \( SRC_R{blah} \)
 
 or this
 
 | SRC_R{blah} |

[deleted noweb stuff]

 This method works. I think it would be cool if it were possible to
 evaluate inline src blocks all over the place but on the other hand
 there are other tools which might be better suited for that kind of
 work. At least for the time being.  
 


Jay,

It seems unlikely that inline src blocks will be allowed in table cells.

In org-element.el, there is this in org-element-object-restrictions - the 
alist of objects restrictions:

,
|   ;; Ignore inline babel call and inline src block as formulas are
|   ;; possible.  Also ignore line breaks and statistics cookies.
| (table-cell export-snippet footnote-reference latex-or-entity link macro
| radio-target sub/superscript target text-markup timestamp)
`
  

Another way to get where you want to go is to use the =brew= R package. The
markup is very simple - use %= code % in place of src_R{ code }.

Example:

,
| #+DRAWERS: TABLEDRAWER
|
| * jay's query
|   :PROPERTIES:
|   :session:  *R:2*
|   :exports:  both
|   :END:
| 
| #+BEGIN_SRC R :results value
| A - matrix(sample(100, size = 6), nrow = 2)
| #+END_SRC
| 
| #+RESULTS:
| | 51 | 77 | 63 |
| | 65 | 20 | 56 |
| 
| Put a table with brew markup in an example block in a drawer, so it
| will not appear in the output.
| 
| :TABLEDRAWER:
| #+NAME: src-blk-out
| #+BEGIN_EXAMPLE
| | a | b | %= A[1,3] % |
| | c | d | e |
| #+END_EXAMPLE
| :END:
| 
| Then use a call to ~brew()~ to run it. Note =:results output raw=
| #+NAME: test-src-blk-out 
| #+BEGIN_SRC R :results output raw :var tab=src-blk-out
| require(brew)
| brew(text=tab)
| #+END_SRC
`

With point in or below the headline,

  C-c C-e C-s C-b l L 

exports the above as 

,
| \begin{verbatim}
| A - matrix(sample(100, size = 6), nrow = 2)
| \end{verbatim}
| 
| \begin{center}
| \begin{tabular}{rrr}
| 2  16  30\\
| 11  81  86\\
| \end{tabular}
| \end{center}
| 
| Put a table with brew markup in an example block in a drawer, so it
| will not appear in the output.
| 
| Then use a call to \verb~brew()~ to run it. Note \texttt{:results output raw}
| \label{test-src-blk-out}
| \begin{verbatim}
| require(brew)
| brew(text=tab)
| \end{verbatim}
| 
| \begin{center}
| \begin{tabular}{llr}
| a  b  30\\
| c  d  e\\
| \end{tabular}
| \end{center}
`







Re: [O] [bug] new beamer exporter always adds default width to graphics

2013-03-12 Thread Aaron Ecay
Hi Suvayu,

2013ko martxoak 12an, Suvayu Ali fatkasuvayu+-ek idatzi zuen:
 
 That is understandable, but if the aim is to support other kinds of
 graphics that support :width, I expect the change to not interfere with
 graphics that do not support it.  I think there are two cases here:
 
 1. the author targets the document for a specific backend that does not
support :width
 
 2. the author expects to export to multiple backends and wants to be as
general as possible so uses and expects :width to work.

:width is an ATTR_LATEX keyword, as is :options.  So they only apply to
the LaTeX backend – and those which derive from it, such as beamer.  If
document authors wish to also export to e.g. HTML, they will have to
make separate arrangements.

 
 So now the question is, is it reasonable to expect the author in case
 (1) is aware of this subtlety and use :width even though her/his backend
 does not support it, or would it be better to handle these deficient
 cases specially and help the author by not clobbering their :options
 argument.

Eliminating subtleties is precisely the point of this change.  All(-ish)*
backends now use :width.

* As far as I’ve checked, HTML(+ derived backends) and LaTeX(+derived
backends).  If there are any that don’t, they should probably be patched
to do so as well.

-- 
Aaron Ecay



Re: [O] inline Babel calls in math environments and table cells

2013-03-12 Thread Jay Kerns
Dear Chuck,

On Tue, Mar 12, 2013 at 10:31 PM, Charles Berry ccbe...@ucsd.edu wrote:

[snip extended brew example]



Whoa. That opens up a lot of possibilities I really hadn't thought
about before. *Thank you*.

-- 
Jay



Re: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results

2013-03-12 Thread Aaron Ecay
Hi Eric,

2013ko martxoak 9an, Eric Schulte-ek idatzi zuen:
 Could something like the following work?  Removing :results none and
 adding something small as the returned result which may easily be parsed
 and placed in the buffer w/o problem.
 
 #+begin_src R :cache yes
   # code to perform side effect
   x - 'side effect'
   'done'
 #+end_src
 
 #+RESULTS[9f4e5b4b07e93c680ab37fc4ba1f75e1bfc0ee0a]:
 : done

It works, but it is a kludge.  In fact, it is the same kludge that we
used to need before :results none (to avoid emacs choking on reading a
monster data frame).


 This does not need special built in support, e.g.,
 
 #+name: R-pid
 #+begin_src sh :var R=/usr/lib64/R/bin/exec/R
   ps auxwww|grep $R|grep -v 'grep'|awk '{print $2}'
 #+end_src
 
 #+begin_src R :cache yes :var pid=R-pid
   # code to perform side effect
   x - 'side effect'
   'done'
 #+end_src
 
 #+RESULTS[da16f09882a6295815db51247592b77c80ed0056]:
 : done

Now *this* is a kludge!  Since babel involves executing arbitrary code,
the question to ask is not “Is this possible in babel?”.  The answer is
always “yes.”  The right question is instead “What does it make the most
sense for babel to do?”  I think Achim’s contributions to this thread
pushing us in the direction of thinking about what the execution model
is are exactly what is needed.

For cached code running in a session, I think a sensible model is:
- Code should be re-run once after each session startup
- Other than that, code should be re-run only if it changes, or if the
  user explicitly requests it to be re-run.

In order to implement this, it is necessary to figure out how to hash
the contents of :results none blocks, and include the session process id
in the hash.  If you have a different model in mind, then you will want
different behavior.  But I think (thanks to Achim’s clarifying comments)
we can’t really discuss what is the “right” behavior without also
discussing which is the “right” model.

-- 
Aaron Ecay



Re: [O] Meaning of install

2013-03-12 Thread Thomas S. Dye
Hi Nick, Achim, and Yagnesh Raghava Yakkala,

How is this?

1.2.3 Use the Org git repository


You can clone the development version from the Org git repository,
typically to a location under your home directory.  The following
example assumes this location is `src/' in your home directory:

$ cd ~/src/
$ git clone git://orgmode.org/org-mode.git

   In most cases, you will probably want to run `make install' to
install Org with the Emacs system files.  Please run `make help' to get
the full list of options.

   If, for some reason, you would like to run Org from the clone
location, remember to set the load-path correctly in your `.emacs'.
Continuing from the previous example:

(add-to-list 'load-path ~/src/org-mode/lisp)

   Note that in this case, `make autoloads' is mandatory: it defines
Org's version in `org-version.el' and Org's autoloads in
`org-loaddefs.el'.  Continuing from the example:

$ cd org-mode
$ make autoloads

   You can also compile with `make', generate the documentation with
`make doc', or create a local configuration with `make config'.

   A detailed explanation of Org's build system can be found at the Org
Build System page on Worg
(http://orgmode.org/worg/dev/org-build-system.html).


All the best,
Tom
-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] [PATCH] * lisp/ob-core.el (org-babel-execute-src-block): insert hash for silent results

2013-03-12 Thread Aaron Ecay
Hi Achim,

2013ko martxoak 10an, Achim Gratz-ek idatzi zuen:
 But back to my earlier remark about the hash value actually being a
 signature of the source block and not the result.  If I use noweb
 references, the reference text is cached, not its expansion.  See the
 example below where after the first invocation I change the source block
 referenced to deliver a different result.  That invalidates the cache
 for direct invocation of that block, but fails to do so for the indirect
 invocation.  If you look at the two result blocks, you see that the same
 hash is added to two different blocks.

I think this points in the direction of having the notion of
dependencies among source blocks.  This is an idea that knitr
(http://yihui.name/knitr/) implements.  The idea would be to include in
the hash of a source block X (in addition to all the pieces that are
already in the hash) the hash of the blocks that X depends on.  So in
your example, the data that generated the hashes beginning 0bd... would
be made distinct, because they would include in one case the hash
6bd... and in the other d8d... .

As in knitr, I think that manual dependency specification (e.g. in the
header args of the block) should be possible.  But it would also be
possible to automatically infer that a block depends on any block that
it references via a :var header or noweb reference – which would in turn
automatically fix the case you discussed.

And when evaluating a block, the dependencies should be (recursively)
evaluated first, in case any of them has changed.

Is it clear what I am describing, and do you have thoughts on it?

 
 If one did want to move hashes to code blocks it would be a major
 refactoring which would (in my opinion) require significant
 justification.
 
 I'm not disputing that it requires significant effort.  The benefits
 would be that we might have a chance to clear up some confusion over the
 code execution model of Babel and better support different ones.

FWIW, I think that hashes shouldn’t be stored in the buffer text at all.
They’re not really part of the document data or metadata.  Rather, they
are information about how the content of the document (code and its
results) was instantiated/computed in a particular environment/occasion.
I’d rather see them stored in a lisp data structure.  They could be
written out to an invisible file when the org buffer is saved, and
re-read on load.

 Oh yes, there's a whole set of _other_ problems that are waiting to be
 solved.  :-)

There always is.  :-)

-- 
Aaron Ecay



Re: [O] Basic beamer export

2013-03-12 Thread JBash
Hi Suvayu,

I'm still having problems, but I'm getting slightly different results.
 With the same input file, the 3rd level headers are not exported as
subsubsections (rather than an enumerate).  I'm still not getting frames.
 I've attached the new output (from the same input file)  See inline
comments:

On Tue, Mar 12, 2013 at 10:48 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote:

 Hi Jerry,

 On Tue, Mar 12, 2013 at 02:57:14AM -0400, JBash wrote:
  Hello,
 
  I am apparently missing something very basic in the setup for beamer
  export.  I have used
 http://orgmode.org/worg/exporters/beamer/ox-beamer.html as
  a guide and have:

 [...]

  in my .emacs file.  As you can see from the attached files, I'm getting
  nested items rather than frames in the exported .tex file for the 3rd
 level
  headlines, as I'd expect.  I am using Org-mode version 8.0-pre
  (release_8.0-pre-33-g5c25ed and emacs 24.2.1.

 I cannot replicate this problem with your example.  I have a few
 questions though.

 1. How do you check your org-version, M-x org-version RET?


Yes.  I just updated org.  I'm now at:
Org-mode version 8.0-pre (release_8.0-pre-54-gb5a853 @
/user/share/emacs/site-lisp/org)



 2. Is the previously attached result with a minimal org setup?  If not,
you should try that.


 I stripped my .emacs file to a very simple setip.  I've attached it.



 3. On first thought, you have a mixed installation and somehow the old
exporter is taking over.  I would suggest you go over the mixed
installation FAQ on Worg:

http://orgmode.org/worg/org-faq.html#mixed-install


Thanks for this link.  I had not found it before.  As mentioned above, my
M-x org-version looks Good.

M-x list-load-path-shadows returns Wrong type argument: stringp, nil

Is that to be expected, or am I misunderstanding how to use that function?


 I suspect (3) because converting headlines to list is an old exporter
 behaviour.  A mixed install can happen if you do not update the
 load-path early enough in your setup before you start customising org
 variables.  I think the FAQ entry above is not complete since this
 information is missing, I'll try to update it when I can find the time.


Looks like you've already done it :).



 Hope this helps,

 --
 Suvayu

 Open source is the future. It sets us free.

 Thanks for your help.  Let me know if there are other things I can try.

Jerry


dotemacs-stripped-jerry
Description: Binary data


beamer_attempt1-20130312.tex
Description: TeX document


[O] Beginner footnotes question

2013-03-12 Thread Lawrence Bottorff
I just started learning org-mode today and I'm having trouble understanding
footnotes. I'm seeing that there are different ways to embed a footnote
marker in your ongoing work, but where do the actual full, expanded
footnotes go? In a single .org file, I'm presuming footnotes go at the
bottom of that file. Is this correct? Actually, I'd prefer footnotes to be
in a separate ascii file, almost like a many-to-many relationship.

LB