Re: [O] Can I wrap a Babel call inside a macro?

2014-01-24 Thread Nicolas Goaziou


Hello,

Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 I did the following test, not fully successfull:

 #+name: current-time
 #+begin_src sh
 echo $(date '+%Y%m%d.%H%M')
 #+end_src

 #+results: current-time
 : 20140123.2339

 Date/time:
 #+CALL: current-time()

 #+results:
 : 20140123.2339

 #+MACRO: ct #+CALL: current-time()

 The current date and time is:
 {{{ct}}}.

 as the HTML export gives:

 div id=outline-container-sec-1 class=outline-2
   h2 id=sec-1span class=section-number-21/span Tests/h2

   div class=outline-text-2 id=text-1
 div class=org-src-container
   pre class=src src-sh id=current-time
 span style=color: #006FE0;echo/span span style=
 color: #036A07;$(date '+%Y%m%d.%H%M')/span
 /pre
 /div

 pDate/time:/p
 pre class=example
 20140123.2338
 /pre

 pThe current date and time is: #+CALL: current-time()./p
   /div ^^
 /div

 As macros are expanded _before_ Babel calls are executed, I'd think this
 is possible, but I must miss something...

FWIW, I couldn't reproduce your problem in either maint or master
branch.


Regards,

-- 
Nicolas Goaziou




Re: [O] using lightbox plugins in HTML export

2014-01-24 Thread Peter Salazar
Good idea, that would be great!


On Thu, Jan 23, 2014 at 2:33 AM, Bastien b...@gnu.org wrote:

 Hi Peter,

 Peter Salazar cycleofs...@gmail.com writes:

  Thanks for the response. That ATTR_HTML comes in very handy. I made
  one adjustment to your code, and it totally worked! Amazing!
 
  Here it is in full:
 
  #+ATTR_LaTeX: :width 300px
  #+ATTR_HTML: :rel lightbox :href image.png
  [[file:image.png]]

 Glad it works.  Actually, it would be nice to have

   org-html-images-default-attributes

 the same way we have

   org-html-table-default-attributes

 (And for other backends too, why not.)

 --
  Bastien



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-24 Thread Bastien
Hi Thomas,

t...@tsdye.com (Thomas S. Dye) writes:

 I just checked the Org mode manual and found that it has several entries
 that consist of `C-c' followed by a punctuation character.

Can we list them in this thread to discuss how bad the situation is
for each of these keybindings?

 In my quick check (at the boarding gate for an airline flight) I didn't
 find a note that these sequences might properly be shadowed by a minor
 mode. 

 Perhaps a note in the manual would be useful?

Indeed.  But first let's make a list and see which one of these
keybindings could be a candidate for an update.

-- 
 Bastien



Re: [O] LaTeX export: list with non-optional argument

2014-01-24 Thread Nicolas Goaziou
Hello,

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

 How can a pass a non-optional argument to a special list in LaTeX
 export?

You can't. See below.

 The 'currvita' LaTeX package comes with the environment 'cvlist'.  This
 cvlist is to be used like this:

 \begin{cvlist}{Personal Information}
   \item[Date of Birth] 01.01.2014
   \item[Place of Birth] Berlin
   \item[Nationality] German
 \end{cvlist}

 So, it has the title of the list as argument.  How would I create such
 list from Org mode?

 For that case it seems to be a little inconvenient that Org does
 surround any given :options with '[ ... ]' automatically, because the
 closest I get with a pure Org mode solution is

I introduced :environment property thinking about paralist package,
which uses only optional arguments. Therefore :options tries to be smart
and enclose its value within square brackets when necessary.

The problem is that this differs from :options property in special
blocks, which will append its value verbatim after the environment name.

I guess the best move would be to avoid being too smart and do the same
for :options in plain lists. The manual would need to be updated
accordingly.

Opinions?

 \begin{cvlist}[{Personal Information}]
 \item [Date of Birth]  01.01.2014
 \item [Place of Birth] Berlin
 \item [Nationality]German
 \end{cvlist}

 produced by this Org snippet:

 #+ATTR_LATEX: :environment cvlist :options {Personal Information}
 - [Date of Birth]  01.01.2014
 - [Place of Birth] Berlin
 - [Nationality]German

This syntax is not possible anymore in latest Org release. You cannot
start an item with a square bracket and expect it will become an option
to \item anymore. This should be:

  #+ATTR_LATEX: :environment cvlist :options {Personal Information}
  - @@latex:[Date of Birth]@@ ...
  - @@latex:[Place of Birth]@@ ...
  - @@latex:[Nationality]@@ ...

or, in this particular case, simply:

  #+ATTR_LATEX: :environment cvlist :options {Personal Information}
  - Date of Birth :: ...
  - Place of Birth :: ...
  - Nationality :: ...

But it won't solve the problem discussed above.


Regards,

-- 
Nicolas Goaziou



Re: [O] Can I wrap a Babel call inside a macro?

2014-01-24 Thread Nicolas Goaziou


Nicolas Goaziou n.goaz...@gmail.com writes:

 The current date and time is:
 {{{ct}}}.

BTW, the period seems dubious here.

-- 
Nicolas Goaziou




Re: [O] LaTeX export: list with non-optional argument

2014-01-24 Thread Andreas Leha
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

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

 How can a pass a non-optional argument to a special list in LaTeX
 export?

 You can't. See below.

 The 'currvita' LaTeX package comes with the environment 'cvlist'.  This
 cvlist is to be used like this:

 \begin{cvlist}{Personal Information}
   \item[Date of Birth] 01.01.2014
   \item[Place of Birth] Berlin
   \item[Nationality] German
 \end{cvlist}

 So, it has the title of the list as argument.  How would I create such
 list from Org mode?

 For that case it seems to be a little inconvenient that Org does
 surround any given :options with '[ ... ]' automatically, because the
 closest I get with a pure Org mode solution is

 I introduced :environment property thinking about paralist package,
 which uses only optional arguments. Therefore :options tries to be smart
 and enclose its value within square brackets when necessary.

 The problem is that this differs from :options property in special
 blocks, which will append its value verbatim after the environment name.

 I guess the best move would be to avoid being too smart and do the same
 for :options in plain lists. The manual would need to be updated
 accordingly.

 Opinions?

I would (obviously?) vote in favour of such a change.
- It does not hurt too much for the other use cases to include the
  square brackets manually.
- It provides more flexibility in general.
- It solves my special use case.


 \begin{cvlist}[{Personal Information}]
 \item [Date of Birth]  01.01.2014
 \item [Place of Birth] Berlin
 \item [Nationality]German
 \end{cvlist}

 produced by this Org snippet:

 #+ATTR_LATEX: :environment cvlist :options {Personal Information}
 - [Date of Birth]  01.01.2014
 - [Place of Birth] Berlin
 - [Nationality]German

 This syntax is not possible anymore in latest Org release. You cannot
 start an item with a square bracket and expect it will become an option
 to \item anymore.

Thanks for pointing that out.  I remember having seen the thread, but I
did not follow it.  (For the same reason, that I have not been updating
Org lately: time constraints)

 This should be:

   #+ATTR_LATEX: :environment cvlist :options {Personal Information}
   - @@latex:[Date of Birth]@@ ...
   - @@latex:[Place of Birth]@@ ...
   - @@latex:[Nationality]@@ ...


That seems to be a regression...


 or, in this particular case, simply:

   #+ATTR_LATEX: :environment cvlist :options {Personal Information}
   - Date of Birth :: ...
   - Place of Birth :: ...
   - Nationality :: ...

... or not.  That is even better than my original syntax.

Regards,
Andreas




[O] Simple quote becomes double in LaTeX export

2014-01-24 Thread Sebastien Vauban
Hello,

With a text in French, and Babel present in my list of LaTeX classes,
the following title gets its simple quote converted to a double one:

--8---cut here---start-8---
#+TITLE: Notes sur l'/elevator pitch/
#+LANGUAGE:  fr

* Objectif

Ceci est l'objectif...
--8---cut here---end---8---

gives:

--8---cut here---start-8---
% ...

\title{Notes sur l\fg{}\emph{elevator pitch}}
% ... ^
--8---cut here---end---8---

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Can I wrap a Babel call inside a macro?

2014-01-24 Thread Sebastien Vauban
Hello Nicolas,

Nicolas Goaziou wrote:
 Nicolas Goaziou n.goaz...@gmail.com writes:

 The current date and time is:
 {{{ct}}}.

 BTW, the period seems dubious here.

What do you mean?  That, because the macro will ultimately make a Babel
call, it can't be inserted inline in some text, right?

I'd have to write:

 The current date and time is:
 {{{ct}}}
 .

Is this what you mean?

Best regards,
  Seb

PS- I'll have to look why it works for you and not for me...

-- 
Sebastien Vauban




Re: [O] Can I wrap a Babel call inside a macro?

2014-01-24 Thread Nicolas Goaziou


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 Nicolas Goaziou n.goaziou-re5jqeeqqe8avxtiumw...@public.gmane.org writes:

 The current date and time is:
 {{{ct}}}.

 BTW, the period seems dubious here.

 What do you mean?  That, because the macro will ultimately make a Babel
 call, it can't be inserted inline in some text, right?

Correct. After macro expansion, this will become:

  #+CALL: current-time().

which isn't valid Babel syntax, AFAIK.


Regards,

-- 
Nicolas Goaziou




Re: [O] orgstruct-mode taking over C-c C-f

2014-01-24 Thread Eric Abrahamsen
Bastien b...@gnu.org writes:

 Hi Eric,

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 I'm not sure how this is supposed to work, so I'm not quite sure what
 the proper solution is...

 This should now be fixed, please test and report any problem.

 Thanks,

It's still doing it! I should be seeing why for myself, if you don't get
to this for a couple of days I hope I'll have time...

E




[O] : Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 be in maint?

2014-01-24 Thread Miguel Ruiz
Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 (Fix Marker points 
into wrong buffer error) be in maint?


It works for me in emacs 24.3 and in 24.3.50 (as of today, 20130124). It's 
going to prevent errors in emacs 24.4 candidates.

Miguel.


Re: [O] : Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 be in maint?

2014-01-24 Thread Bastien
Miguel Ruiz rbeni...@yahoo.es writes:

 Shouldn't commit b6448c4225bc83299da1bd08c2d2e8b77e0bcd13 (Fix
 Marker points into wrong buffer error) be in maint?

Indeed, done, thanks.

-- 
 Bastien



Re: [O] orgstruct-mode taking over C-c C-f

2014-01-24 Thread Bastien
Eric Abrahamsen e...@ericabrahamsen.net writes:

 It's still doing it! I should be seeing why for myself, if you don't get
 to this for a couple of days I hope I'll have time...

Did you recompiled Org?

-- 
 Bastien



[O] [PATCH] Improve message when file to include is missing

2014-01-24 Thread Sebastien Vauban
Hello,

When a SETUPFILE is missing, there is an error or message generated, but
we don't know in which file the bad reference is -- when all those files
are loaded during the agenda generation.

Hence, a better message, specifying where to go and look for the bad
link.

Best regards,
  Seb

From 4c31c1cf649c2eb3487e61e56296f058a62d7c08 Mon Sep 17 00:00:00 2001
From: Sebastien Vauban sva-n...@mygooglest.com
Date: Fri, 24 Jan 2014 11:43:52 +0100
Subject: [PATCH] Improve message when file to include is missing

* org.el (org-file-contents): Improve message when linked file does not exist.

---
 lisp/org.el |6 --
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index a225bae..787a09f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5235,8 +5235,10 @@ Support for group tags is controlled by the option
   (if (or (not file)
  (not (file-readable-p file)))
   (if noerror
- (message Cannot read file \%s\ file)
-   (error Cannot read file \%s\ file))
+ (message Cannot read file \%s\ referenced in file \%s\
+  file (buffer-file-name))
+   (error Cannot read file \%s\ referenced in file \%s\
+  file (buffer-file-name)))
 (with-temp-buffer
   (insert-file-contents file)
   (buffer-string
-- 
1.7.9

-- 
Sebastien Vauban




Re: [O] Can I wrap a Babel call inside a macro?

2014-01-24 Thread Sebastien Vauban
Hello Nicolas,

Nicolas Goaziou wrote:
 Sebastien Vauban writes:
 Nicolas Goaziou n.goaz...@gmail.com writes:

 The current date and time is:
 {{{ct}}}.

 BTW, the period seems dubious here.

 What do you mean?  That, because the macro will ultimately make a Babel
 call, it can't be inserted inline in some text, right?

 Correct. After macro expansion, this will become:

   #+CALL: current-time().

 which isn't valid Babel syntax, AFAIK.

OK. New tests confirm that, definitively.

So, when you said it worked for you, it wasn't with the exact same ECM,
then. Case closed. Thanks!

Best regards,
  Seb

-- 
Sebastien Vauban




[O] how to set a block of description...

2014-01-24 Thread Renato Pontefice
I have send this mail (by mistake) to the emacs list. But this is for
Org-mode list...
Hi,
I have this scenario (i.e.):

* issue 1
this is the thescription of issue 1

I would, using C-c C-t, tu set things as DONE (adding the date and time)

But I could do that just for the text * issue 1, not for all the text below
this line.

I think I have to do a unique block of the two line, so when I set * issue
1 as DONE, automatically DONE, is set also on the line this is the

Is it possible?

How can I set it?


Re: [O] orgstruct-mode taking over C-c C-f

2014-01-24 Thread Malcolm Purvis
 Bastien == Bastien  b...@gnu.org writes:

Bastien Did you recompiled Org?

I can confirm that the problem still exists with a freshly compiled
version of the latest mainline
(240329465b466584f4bf80f24eb881fb3c9285cf).

Also the alias org-set-transient-map doesn't seem to be called, so I
still get the error about the undefined function set-transient-map when
running Emacs 23.3.

Thanks,

Malcolm

-- 
Malcolm Purvis malc...@purvis.id.au



Re: [O] [PATCH] Improve message when file to include is missing

2014-01-24 Thread Nicolas Goaziou


Hello,

Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 When a SETUPFILE is missing, there is an error or message generated, but
 we don't know in which file the bad reference is -- when all those files
 are loaded during the agenda generation.

 Hence, a better message, specifying where to go and look for the bad
 link.

Thanks.

 From 4c31c1cf649c2eb3487e61e56296f058a62d7c08 Mon Sep 17 00:00:00 2001
 From: Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
 Date: Fri, 24 Jan 2014 11:43:52 +0100
 Subject: [PATCH] Improve message when file to include is missing

 * org.el (org-file-contents): Improve message when linked file does not exist.

 ---
  lisp/org.el |6 --
  1 files changed, 4 insertions(+), 2 deletions(-)

 diff --git a/lisp/org.el b/lisp/org.el
 index a225bae..787a09f 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -5235,8 +5235,10 @@ Support for group tags is controlled by the option
(if (or (not file)
 (not (file-readable-p file)))
(if noerror
 -   (message Cannot read file \%s\ file)
 - (error Cannot read file \%s\ file))
 +   (message Cannot read file \%s\ referenced in file \%s\
 +file (buffer-file-name))
 + (error Cannot read file \%s\ referenced in file \%s\
 +file (buffer-file-name)))

What if `buffer-file-name' returns nil? Sure, the problem won't happen
during agenda generation, but `org-file-contents' is used elsewhere.

Also, it is better to use:

  (buffer-file-name (buffer-base-buffer))

since the current buffer may be an indirect one.


Regards,

-- 
Nicolas Goaziou




Re: [O] how to set a block of description...

2014-01-24 Thread Bastien
Please do not post questions on both help-gnu-emacs and emacs-orgmode
lists.  I replied on help-gnu-emacs and would have replied here if I
had known.

Ask Org questions here and general Emacs questions there.

-- 
 Bastien



Re: [O] how to set a block of description to set as done...

2014-01-24 Thread Renato Pontefice
Thank you Bastien,
So, I have to organize in a different way my notes...Any sudgestion?

Renato


2014/1/24 Bastien b...@altern.org

 Hi Renato,

 Renato Pontefice renato.pontef...@gmail.com writes:

  I have this scenario (i.e.):
 
  * issue 1
  this is the thescription of issue 1
 
  I would, using C-c C-t, tu set things as DONE (adding the date and time)
 
  But I could do that just for the text * issue 1, not for all the text
 below
  this line.
 
  I think I have to do a unique block of the two line, so when I set *
 issue
  1 as DONE, automatically DONE, is set also on the line this is the
 
  Is it possible?

 Only headlines (i.e. lines starting with an asterisk) can have a todo
 keyword and can be set as DONE.

 --
  Bastien



Re: [O] [PATCH] Improve message when file to include is missing

2014-01-24 Thread Bastien


Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org
writes:

 When a SETUPFILE is missing, there is an error or message generated, but
 we don't know in which file the bad reference is -- when all those files
 are loaded during the agenda generation.

 Hence, a better message, specifying where to go and look for the bad
 link.

Applied in master, thanks!

-- 
 Bastien




Re: [O] orgstruct-mode taking over C-c C-f

2014-01-24 Thread Bastien
Malcolm Purvis malc...@purvis.id.au writes:

 Bastien == Bastien  b...@gnu.org writes:

 Bastien Did you recompiled Org?

 I can confirm that the problem still exists with a freshly compiled
 version of the latest mainline
 (240329465b466584f4bf80f24eb881fb3c9285cf).

 Also the alias org-set-transient-map doesn't seem to be called, so I
 still get the error about the undefined function set-transient-map when
 running Emacs 23.3.

Indeed, my bad, fixed now.

Thanks!

-- 
 Bastien



Re: [O] [PATCH] Improve message when file to include is missing

2014-01-24 Thread Bastien


Nicolas Goaziou n.goaz...@gmail.com writes:

 What if `buffer-file-name' returns nil? Sure, the problem won't happen
 during agenda generation, but `org-file-contents' is used elsewhere.

 Also, it is better to use:

   (buffer-file-name (buffer-base-buffer))

 since the current buffer may be an indirect one.

I reverted the commit -- I let you guys discuss it and provide the
correct one.

Thanks,

-- 
 Bastien




[O] Every-day TODO's only showing in agenda for today and tomorrow, but how?

2014-01-24 Thread Sharon Kimble

I have this as a TODO - 
** TODO google for getting smartd running persistently and giving
reports regularly too. 
SCHEDULED: 2014-01-23 Thu +1d

How do I get it so that it only shows in the AGENDA for today and
tomorrow please? Currently its showing for today, and every other day,
until the cows come home as it were! 

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.50.1
Registered Linux user 561944


signature.asc
Description: PGP signature


Re: [O] Every-day TODO's only showing in agenda for today and tomorrow, but how?

2014-01-24 Thread Bastien
Hi Sharon,

Sharon Kimble boudic...@talktalk.net writes:

 I have this as a TODO - 
 ** TODO google for getting smartd running persistently and giving
 reports regularly too. 
 SCHEDULED: 2014-01-23 Thu +1d

 How do I get it so that it only shows in the AGENDA for today and
 tomorrow please? Currently its showing for today, and every other day,
 until the cows come home as it were! 

This is not currently possible (unless you want to hack something
weird based on org-agenda-skip-if ... which see.)

Limited repeaters are often requested and somewhat on my PERHAPS
list, but I won't be able to have a look at this anytime soon.

-- 
 Bastien



[O] Naming a table produced by a CALL

2014-01-24 Thread Loris Bennett
Hi,

I have a CALL which produces a table, which just gets the keyword
RESULT.  I would like to plot the data in the table with R and so would
like to refer to the data in the table.

It seems I need to need to replace RESULT by NAME in
org-babel-results-keyword, but how do I pass the actual name?

Cheers,

Loris

-- 
This signature is currently under construction.




[O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Peter Davis


I'm trying to get org-article working so I can create PDFs with 
something other than Computer Modern, but I keep getting the error


Unknown LaTeX class `org-article'

when I use this in the file:

#+LaTeX_CLASS: org-article
#+LaTeX_CLASS_OPTIONS: 
[article,letterpaper,times,12pt,listings-bw,microtype]


I've been following the instructions here:

http://orgmode.org/worg/org-contrib/babel/examples/article-class.html

but I haven't found any way past this error.

I also found the variable org-export-latex-packages-alist was not 
defined, so perhaps that's a clue to some other piece I'm missing? I 
added this to get around that:


(unless (boundp 'org-export-latex-packages-alist)
  (setq org-export-latex-packages-alist nil))

Other ideas?

Thanks!
-pd


--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




Re: [O] how to set a block of description to set as done...

2014-01-24 Thread Alexander Baier
On 2014-01-24 12:14 Renato Pontefice wrote:
 Thank you Bastien,
 So, I have to organize in a different way my notes...Any sudgestion?

Why exactly do you want to set the headline and its _description_ as
DONE? Marking a headline as done, also indicates (at least to me) the
body text after this as done.

What is the advantage of this:

* DONE Headline
  DONE describing the headline
  DONE describing the headline
  DONE describing the headline

over this:

* DONE Headline
  describing the headline
  describing the headline
  describing the headline

?

Regards,
-- 
 Alexander Baier



Re: [O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Michael Strey
Peter,

p...@pfdstudio.com writes:

 Other ideas?

Did you check the availability of org-article.cls in the TeX tree
using `kpsewhich org-article.cls'?

Do you have an entry for org-article in org-export-latex-classes?

-- 
Michael




Re: [O] Naming a table produced by a CALL

2014-01-24 Thread Andreas Leha
Loris Bennett loris.benn...@fu-berlin.de writes:

 Hi,

 I have a CALL which produces a table, which just gets the keyword
 RESULT.  I would like to plot the data in the table with R and so would
 like to refer to the data in the table.

 It seems I need to need to replace RESULT by NAME in
 org-babel-results-keyword, but how do I pass the actual name?

 Cheers,

 Loris

Make the CALL named:

#+name: foo
#+call: foo()

HTH,
Andreas




Re: [O] how to set a block of description to set as done...

2014-01-24 Thread Sebastien Vauban
Alexander Baier wrote:
 On 2014-01-24 12:14 Renato Pontefice wrote:
 Thank you Bastien,
 So, I have to organize in a different way my notes...Any sudgestion?

 Why exactly do you want to set the headline and its _description_ as
 DONE? Marking a headline as done, also indicates (at least to me) the
 body text after this as done.

 What is the advantage of this:

 * DONE Headline
   DONE describing the headline
   DONE describing the headline
   DONE describing the headline

 over this:

 * DONE Headline
   describing the headline
   describing the headline
   describing the headline

I'm not sure to match Renato's expectations with the following, but
something that I'd love to have for some time now is that the
description of a DONE task should also be grayed, along with the title
(that already exists).

Best regards,
  Seb

-- 
Sebastien Vauban




[O] How to use ox-bibtex

2014-01-24 Thread o.castillo.felis...@gmail.com
Dear community,

I'm using org-mode to draft most of my activities, and day after day I get
closer to managing my paper writing. Nonetheless, there is a point still
drives me crazy.

All over the web I find post about using such or what tool to get emacs
org-mode to work with Bibtex... all of them seems complex to execute. I
found the exported ox-bibtex.el [1] (included in my installation from git),
which 'It also introduces cite syntax for Org links.', but no examples of
the usage are included in this document.

*Question*

Can anyone provide a minimal example of the use to this tool, including the
configuration (if needed), and the necessary external (non-org) files?

Thank you!

[1]
http://orgmode.org/w/?p=org-mode.git;a=blob_plain;f=contrib/lisp/ox-bibtex.el;hb=HEAD

-- 
_
Oscar Castillo-Felisola.
Grupo de Fisica Teorica.
UTFSM -- CCTVal.
Av. Espana, 1680, Valparaiso-Chile.
__


Re: [O] Naming a table produced by a CALL

2014-01-24 Thread Loris Bennett
Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Loris Bennett loris.benn...@fu-berlin.de writes:

 Hi,

 I have a CALL which produces a table, which just gets the keyword
 RESULT.  I would like to plot the data in the table with R and so would
 like to refer to the data in the table.

 It seems I need to need to replace RESULT by NAME in
 org-babel-results-keyword, but how do I pass the actual name?

 Cheers,

 Loris

 Make the CALL named:

 #+name: foo
 #+call: foo()

 HTH,
 Andreas

Thanks.  In retrospect, that seems quite obvious.  Where is this
documented and should it be mentioned here:

http://orgmode.org/manual/Evaluating-code-blocks.html

?

Cheers,

Loris

-- 
This signature is currently under construction.




Re: [O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Peter Davis
On Fri, Jan 24, 2014 at 01:58:19PM +0100, Michael Strey wrote:
 Peter,
 
 p...@pfdstudio.com writes:
 
  Other ideas?
 
 Did you check the availability of org-article.cls in the TeX tree
 using `kpsewhich org-article.cls'?

Yes, I get:

[pdavismbp15:~] pdavis% kpsewhich org-article.cls
/usr/local/texlive/2012/../texmf-local/tex/latex/base/org-article.cls

 
 Do you have an entry for org-article in org-export-latex-classes?

Yes, like this:

(add-to-list 'org-export-latex-classes
  '(org-article
 \\documentclass{org-article}
 [NO-DEFAULT-PACKAGES]
 [PACKAGES]
 [EXTRA]
 (\\section{%s} . \\section*{%s})
 (\\subsection{%s} . \\subsection*{%s})
 (\\subsubsection{%s} . \\subsubsection*{%s})
 (\\paragraph{%s} . \\paragraph*{%s})
 (\\subparagraph{%s} . \\subparagraph*{%s})))

I don't even know if this error is coming from emacs or LaTeX. 

Thanks,
-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



[O] do not display certain TAGs in agenda

2014-01-24 Thread David Belohrad
Dear all,

here is the stuff:

I have lots of tags in particular todos. When displayed in the agenda,
they look e.g. as this one:

CPSupgrade: NEXT asssembly of the fbct bodies on the vacuum chambers 
:2013:MARS:#CPSUpgrade:REFILABLE::@Me:@John:


Now, tags MARS, 2013 and REFILABLE are 'common' tags I use when
filtering for them, but generally I don't want to see them in the
agenda. I'd like to see only tags starting with '#' or '@' as those
identify to me projects and people involved. If I would be able to do
it, my agenda view would become less messy.

Is this possible?

thanks
.d.



[O] problem with imagemagick or dvipng

2014-01-24 Thread Joseph Vidal-Rosset
Hello the list,

When I try to get png image of formulas in exporting to html , I get under
each png image a strange message  plain definitionremarkplain which
breaks the text.

I cannot succeed to understand where is the problem.

Suggestions ?

Best wishes,

Jo.


[O] Link to using calc in embedded mode with org-mode broken

2014-01-24 Thread Christopher Witte
Hi,

In the orgmode manual section *15.10.1 Packages that Org cooperates with*
http://orgmode.org/manual/Cooperation.html
the link to using calc's embedded mode with org-mode is broken
http://orgmode.org/calc/Embedded-Mode.html#Embedded-Mode

Does anyone know what happened to that page?

Cheers,
Chris.


Re: [O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Eric S Fraga
Peter Davis p...@pfdstudio.com writes:

[...]

 Do you have an entry for org-article in org-export-latex-classes?

 Yes, like this:

 (add-to-list 'org-export-latex-classes
   '(org-article

what version of org are you using?  in org v8, this variable has been
renamed to org-LaTeX-classes.

HTH,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429




Re: [O] Aligned glosses in orgmode (for export to odt/doc)

2014-01-24 Thread Jambunathan K

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

 Benjamin Slade sl...@jnanam.net writes:

 One potential solution would be an orgmode setup which produces
 borderless tables with an optimal width column setting. I don't know
 how to do this in orgmode though (or if it can be done currently).

In Office XML, the style:table-column-properties has
style:use-optimal-column-width=true.  Based on my little
experimentation, I find that LibreOffice doesn't honor this setting.
This is the reason why columns are emitted unoptimized.

From LibreOffice UI, if you choose Optimal Column Width, then the
table columns are emitted NOT with above XML attribute but with
hard-coded on-the-fly widths.

May be someone can take the above issue with LibreOffice folks...

 2. Open OrgOdtContentTemplate.xml and find a style named
 CustomTableCell.  Edit it so that it has no borders.

Ignore the above suggestion.  It is too tedious.  I have flushed out a
fix as part of the following ELPA tar


http://repo.or.cz/w/org-mode/org-kjn.git/blob_plain/master:/org-odt-20140124.tar

With this fix, the behaviour of the rules in the ODT table will be much
the same as that in

(info (org) Tables in ODT export)

except for the following modification:

The ODT table will have top rule (or bottom rule) only if the Org-mode
table has one.

Similarly, ODT table will have left rule (resp. right rule) only if the
leftmost (resp. rightmost) data column has  and  markers.



To cut the long story short, here is how you produce a borderless table.
Use the :widths and :rel-width property to have the table look compact
and nice.


--8---cut here---start-8---

This table has no rules.  It occupies 80% of page width.  The columns
will be in the ratio of 4:7:10.

#+ATTR_ODT: :rel-width 80
#+ATTR_ODT: :widths 3,6,9
| a   | b | c |
| d   | e | f |


--8---cut here---end---8---



test.odt
Description: application/vnd.oasis.opendocument.text


[O] Creating a help system with org mode

2014-01-24 Thread von Hercynius
Hello,

I'm at a business that wants to create an on-line help system in order to
describe all their daily practices. I'm suggesting org mode at the tool.
I'm an org mode beginner, but as I understand I can create knowledge base
entries or issues or help topic entries as individual files. These topic
entry/Help KB files can contain ample tag/keywords in order to effectively
queried by the agenda search engine. Am I correct so far? Also, has
anyone tried this before; any examples out there of an on-line help system
with an index/search capability?

Bottorff
North Shore Minnesota


Re: [O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Peter Davis
On Fri, Jan 24, 2014 at 04:32:38PM +, Eric S Fraga wrote:
 Peter Davis p...@pfdstudio.com writes:
 
 [...]
 
  Do you have an entry for org-article in org-export-latex-classes?
 
  Yes, like this:
 
  (add-to-list 'org-export-latex-classes
'(org-article
 
 what version of org are you using?  in org v8, this variable has been
 renamed to org-LaTeX-classes.

Aha! I'm using org 8.2.3c, and substituting org-latex-classes and 
org-latex-packages-alist
worked! (NB: the variable names are all lower case.)

Thank you!

-pd

-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] best way of customizing generated css to match bootstrap css

2014-01-24 Thread Mehul Sanghvi
Thanks.  That helps a lot and gives me some other ideas as well.


cheers,

  mehul



On Fri, Jan 24, 2014 at 12:00 AM, Peter Salazar cycleofs...@gmail.comwrote:

 Here you go.
 https://github.com/petersalazar/org-tocify

 Again, it's not very bootstrapish aside from Toficy, which uses Bootstrap
 colors and fonts.

 That said, I have found using Tocify's auto-generated dynamic table of
 contents quite helpful.

 Tocify is by Greg Franco and is here:
 http://gregfranko.com/jquery.tocify.js/





 On Wed, Jan 22, 2014 at 4:17 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote:

 Peter,

  Do you have an example of an org file in which you use it ?


 cheers,

mehul



 On Wed, Jan 22, 2014 at 3:41 PM, Peter Salazar cycleofs...@gmail.comwrote:

 I've had success exporting org to HTML and using it with
 http://gregfranko.com/jquery.tocify.js/ - which automatically generates
 a dynamically updating table of contents based on HTML headings and uses a
 Bootstrap theme and Bootstrap CSS.



 On Wed, Jan 22, 2014 at 3:35 PM, Mehul Sanghvi 
 mehul.sang...@gmail.comwrote:

 On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote:

 Hi,

 After using jekyll and o-blog a while I just fiddled around more in
 depth with org-publishing.
 I must say it is starting to convince me to stop using to wrapp my org
 generated html files with a wrapper like jekyll etc.
 Org-publishing seems to have all I need to do it directly.

 But I need an advice how to get better integration with twitter
 bootstrap css which I realy like.
 I know there is HTML_CONTAINER_CLASS etc. but I don't want to define
 the class and the id once for every heading, table  etc.
 What would be the best option for setting this globally?
 Should I edit org-htmlize.el or something like this or is there a way
 of defining the different class names with an easier way?

 Regards
 Marc Seibert



 I find myself in the same situation, having gone through both o-blog
 and jekyll previously.  Were you able to find a solution ?
 What was it ?  Is there anyone using anything else than the CSS that
 ogr-mode uses ?



 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com





 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com





-- 
Mehul N. Sanghvi
email: mehul.sang...@gmail.com


Re: [O] Making org-agenda-list hide items scheduled for the future

2014-01-24 Thread Michael Hoffman

On 01/20/2014 10:24 AM, Fabrice Niessen wrote:

Hello Nick,

Nick Dokos wrote:

Fabrice Niessen fni-n...@pirilampo.org writes:

Michael Hoffman wrote:

I use the weekly/daily agenda and want to be able to use the SCHEDULED keyword
to hide items until the scheduled time comes up. I don't want to think about
them until then. How can I set up org-agenda-list to do this?

This is the list of agenda items, not the TODO list. I already have
org-agenda-todo-ignore-scheduled set to future. It does not help.


See my answer on StackOverflow.


It would be useful if you could post a link to your answer.


Yes; such double postings of questions on both SO and the ML aren't
particularly great (and should not be encouraged)...


I should have mentioned the previous question on Stack Overflow. Thanks 
for your response there and here. However, they did not solve my 
problem. So I decided that this mailing list would have been a better 
venue to ask.



Here's the link:

http://stackoverflow.com/questions/21118288/making-org-agenda-list-hide-items-scheduled-for-the-future/21120864

I had no reaction of the OP for 2 days. Dunno if the response resolves
his problem.


It doesn't. I am trying to change the daily/weekly list of agenda items 
(org-agenda-list). Your responses there seem to affect the global TODO 
list but not the (org-todo-list).


Is there a way to hide items in the weekly/daily agenda until they are 
SCHEDULED?


Thanks,
Michael Hoffman




Re: [O] best way of customizing generated css to match bootstrap css

2014-01-24 Thread Peter Salazar
Great, keep me posted! I'm interested in other ways to incorporate
javascript/jQuery plugins into org HTML export (dynamic navigation,
lightbox and image handling, etc). So far I've incorporated Tocify,
lightbox, and inline modal footnotes. Let me know what you come up with!




On Fri, Jan 24, 2014 at 2:46 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote:


 Thanks.  That helps a lot and gives me some other ideas as well.


 cheers,

   mehul



 On Fri, Jan 24, 2014 at 12:00 AM, Peter Salazar cycleofs...@gmail.comwrote:

 Here you go.
 https://github.com/petersalazar/org-tocify

 Again, it's not very bootstrapish aside from Toficy, which uses Bootstrap
 colors and fonts.

 That said, I have found using Tocify's auto-generated dynamic table of
 contents quite helpful.

 Tocify is by Greg Franco and is here:
 http://gregfranko.com/jquery.tocify.js/





 On Wed, Jan 22, 2014 at 4:17 PM, Mehul Sanghvi 
 mehul.sang...@gmail.comwrote:

 Peter,

  Do you have an example of an org file in which you use it ?


 cheers,

mehul



 On Wed, Jan 22, 2014 at 3:41 PM, Peter Salazar cycleofs...@gmail.comwrote:

 I've had success exporting org to HTML and using it with
 http://gregfranko.com/jquery.tocify.js/ - which automatically
 generates a dynamically updating table of contents based on HTML headings
 and uses a Bootstrap theme and Bootstrap CSS.



 On Wed, Jan 22, 2014 at 3:35 PM, Mehul Sanghvi mehul.sang...@gmail.com
  wrote:

 On Sat, Apr 6, 2013 at 5:37 AM, Marc Seibert o...@foogu.de wrote:

 Hi,

 After using jekyll and o-blog a while I just fiddled around more in
 depth with org-publishing.
 I must say it is starting to convince me to stop using to wrapp my
 org generated html files with a wrapper like jekyll etc.
 Org-publishing seems to have all I need to do it directly.

 But I need an advice how to get better integration with twitter
 bootstrap css which I realy like.
 I know there is HTML_CONTAINER_CLASS etc. but I don't want to define
 the class and the id once for every heading, table  etc.
 What would be the best option for setting this globally?
 Should I edit org-htmlize.el or something like this or is there a way
 of defining the different class names with an easier way?

 Regards
 Marc Seibert



 I find myself in the same situation, having gone through both o-blog
 and jekyll previously.  Were you able to find a solution ?
 What was it ?  Is there anyone using anything else than the CSS that
 ogr-mode uses ?



 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com





 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com





 --
 Mehul N. Sanghvi
 email: mehul.sang...@gmail.com



Re: [O] Creating a help system with org mode

2014-01-24 Thread von Hercynius
Actually, I might like to have a knowledge base article-style help
system, each entry generated by org mode as a single web page, the search
engine utilizing Google custom search engine just for my help site. Isn't
this what WORG is doing?


On Fri, Jan 24, 2014 at 2:14 PM, John Hendy jw.he...@gmail.com wrote:


 On Jan 24, 2014 12:59 PM, von Hercynius hercynianfor...@gmail.com
 wrote:
 
  Hello,
 
  I'm at a business that wants to create an on-line help system in order
 to describe all their daily practices. I'm suggesting org mode at the tool.
 I'm an org mode beginner, but as I understand I can create knowledge base
 entries or issues or help topic entries as individual files. These topic
 entry/Help KB files can contain ample tag/keywords in order to effectively
 queried by the agenda search engine. Am I correct so far? Also, has
 anyone tried this before; any examples out there of an on-line help system
 with an index/search capability?
 

 Sounds like what worg is, at least to some degree (an org based wiki/web
 site).
 - http://orgmode.org/worg/

 Stack overflow also comes to mind as something to look at. It supports q 
 a as week as predictive answer suggestions when you go to create a new
 question.

 It might help if you submitted a sort of sketch of what you're looking to
 do, such as general structure, if it will be pre-populated only or feature
 user generated content, etc.

 That might help others to chime in with suggestions.

 John

  Bottorff
  North Shore Minnesota



Re: [O] Creating a help system with org mode

2014-01-24 Thread John Hendy
On Fri, Jan 24, 2014 at 3:02 PM, von Hercynius hercynianfor...@gmail.comwrote:

 Actually, I might like to have a knowledge base article-style help
 system, each entry generated by org mode as a single web page, the search
 engine utilizing Google custom search engine just for my help site. Isn't
 this what WORG is doing?


Yes. You can find out more on these pages:
- http://orgmode.org/worg/worg-setup.html
- http://orgmode.org/worg/worg-git.html

The first discusses how Worg is published, and the second features
instructions for cloning the whole Worg website (well, the .org files that
make it) to your computer so you can explore how it's all laid out.


Best regards,
John




 On Fri, Jan 24, 2014 at 2:14 PM, John Hendy jw.he...@gmail.com wrote:


 On Jan 24, 2014 12:59 PM, von Hercynius hercynianfor...@gmail.com
 wrote:
 
  Hello,
 
  I'm at a business that wants to create an on-line help system in order
 to describe all their daily practices. I'm suggesting org mode at the tool.
 I'm an org mode beginner, but as I understand I can create knowledge base
 entries or issues or help topic entries as individual files. These topic
 entry/Help KB files can contain ample tag/keywords in order to effectively
 queried by the agenda search engine. Am I correct so far? Also, has
 anyone tried this before; any examples out there of an on-line help system
 with an index/search capability?
 

 Sounds like what worg is, at least to some degree (an org based wiki/web
 site).
 - http://orgmode.org/worg/

 Stack overflow also comes to mind as something to look at. It supports q
  a as week as predictive answer suggestions when you go to create a new
 question.

 It might help if you submitted a sort of sketch of what you're looking to
 do, such as general structure, if it will be pre-populated only or feature
 user generated content, etc.

 That might help others to chime in with suggestions.

 John

  Bottorff
  North Shore Minnesota





Re: [O] do not display certain TAGs in agenda

2014-01-24 Thread Bastien
Hi David,

David Belohrad da...@belohrad.ch writes:

 Now, tags MARS, 2013 and REFILABLE are 'common' tags I use when
 filtering for them, but generally I don't want to see them in the
 agenda. I'd like to see only tags starting with '#' or '@' as those
 identify to me projects and people involved. If I would be able to do
 it, my agenda view would become less messy.

 Is this possible?

See `org-agenda-hide-tags-regexp'.

If you want to hide write and read,
you can set it like this

(setq org-agenda-hide-tags-regexp
   (regexp-opt '(write read)))

I also attach a patch that extends `org-agenda-remove-tags'
to accept a list of tags to remove.  This is a first step
in removing org-agenda-hide-tags-regexp, as I think both
options are somewhat redundant and we could make the users'
life easier here.

If other can test it and say if they use one of these options,
that'd be nice.

HTH,

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 84b2a76..15d776f 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1845,14 +1845,16 @@ Nil means don't hide any tags.
 	  (string :tag Regexp   )))
 
 (defcustom org-agenda-remove-tags nil
-  Non-nil means remove the tags from the headline copy in the agenda.
+  Non-nil means remove tags from the headline in the agenda.
 When this is the symbol `prefix', only remove tags when
-`org-agenda-prefix-format' contains a `%T' specifier.
+`org-agenda-prefix-format' contains a `%T' specifier.
+When this is a list, only remove the listed tags.
   :group 'org-agenda-line-format
   :type '(choice
 	  (const :tag Always t)
-	  (const :tag Never nil)
-	  (const :tag When prefix format contains %T prefix)))
+	  (repeat (string :tag Remove this tag))
+	  (const :tag When prefix format contains %T prefix)
+	  (const :tag Never nil)))
 
 (org-defvaralias 'org-agenda-remove-tags-when-in-prefix
   'org-agenda-remove-tags)
@@ -3705,7 +3707,9 @@ generating a new one.
 	  (while (org-activate-plain-links (point-max))
 	(add-text-properties (match-beginning 0) (match-end 0)
  '(face org-link
-	(unless (eq org-agenda-remove-tags t)
+	(unless (or (eq org-agenda-remove-tags t)
+		(and (listp org-agenda-remove-tags)
+			 (stringp (car org-agenda-remove-tags
 	  (org-agenda-align-tags))
 	(unless org-agenda-with-colors
 	  (remove-text-properties (point-min) (point-max) '(face nil)))
@@ -6529,8 +6533,13 @@ Any match of REMOVE-RE will be removed from TXT.
 			txt)
 	  ;; Tags are in the string
 	  (if (or (eq org-agenda-remove-tags t)
+		  (and (symbolp org-agenda-remove-tags)
+		   org-prefix-has-tag)
 		  (and org-agenda-remove-tags
-		   org-prefix-has-tag))
+		   (let ((case-fold-search t))
+			 (save-match-data
+			   (string-match (regexp-opt org-agenda-remove-tags)
+	 (match-string 0 txt))
 	  (setq txt (replace-match  t t txt))
 	(setq txt (replace-match
 		   (concat (make-string (max (- 50 (length txt)) 1) ?\ )

-- 
 Bastien


Re: [O] Link to using calc in embedded mode with org-mode broken

2014-01-24 Thread Bastien
Hi Christopher,

Christopher Witte ch...@witte.net.au writes:

 In the orgmode manual section 15.10.1 Packages that Org cooperates
 with http://orgmode.org/manual/Cooperation.html
 the link to using calc's embedded mode with org-mode is broken http:/
 /orgmode.org/calc/Embedded-Mode.html#Embedded-Mode 

 Does anyone know what happened to that page?

This is a problem about cross references not pointing at the right
URL when they are generated by texi2html.  @pxref{} seems to target
Info references only.

I don't have simple fix, though, I'd be interested if someone has one.

-- 
 Bastien



[O] Narrowing vs indirect buffer

2014-01-24 Thread Alan L Tyree
Two separate commands serve much the same purpose from the author's 
point of view:


- C-c C-x b (org-tree-to-indirect-buffer) opens an indirect buffer for 
the subtree


- C-x n s (org-narrow-to-subtree)  narrows the existing buffer to the 
subtree


Both of these hoist the subtree outline to focus the workspace and are 
invaluable for large writing projects.


Is there any preference (so far as org is concerned)? Are there any 
gotchas that I should note?


Thanks for any comments,
Alan

--
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206  sip:typh...@iptel.org




[O] Importing from LaTeX

2014-01-24 Thread William Denton
I have a couple of big files that I'd like to move from LaTeX to Org, and 
wondered if there's already an easier way to manage this than to do a 
bunch of tedious searching and replacing on \section and \begin{quote} and 
the like.


I found this thread in the list archives, from about three years ago, 
where Marvin Doyley had the same question:


http://thread.gmane.org/gmane.emacs.orgmode/34020

Matt Lundin said he'd hacked up something in Perl and he'd put it in Worg, 
but I can't find it in there ... Matt, did you ever post it?


Thanks,

Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] LaTeX export: Unknown LaTeX class `org-article'

2014-01-24 Thread Peter Davis
On Fri, Jan 24, 2014 at 01:54:20PM -0500, Peter Davis wrote:
 On Fri, Jan 24, 2014 at 04:32:38PM +, Eric S Fraga wrote:
  Peter Davis p...@pfdstudio.com writes:
  
  [...]
  
   Do you have an entry for org-article in org-export-latex-classes?
  
   Yes, like this:
  
   (add-to-list 'org-export-latex-classes
 '(org-article
  
  what version of org are you using?  in org v8, this variable has been
  renamed to org-LaTeX-classes.
 
 Aha! I'm using org 8.2.3c, and substituting org-latex-classes and 
 org-latex-packages-alist
 worked! (NB: the variable names are all lower case.)
 

Ok, something weird is going on. This worked on my office MacBook, but when I 
try on the home one, also with org 8.2.3c, org-export-latex-classes is defined, 
but org-latex-classes is not.

Any clues?

Thanks!
-pd


-- 

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com



Re: [O] Importing from LaTeX

2014-01-24 Thread Anthony Lander
Hi William,

Take a look at pandoc (http://johnmacfarlane.net/pandoc/). It reads and
writes several markup formats, including LaTeX and org.

Hope this helps,

 -Anthony


On Fri, Jan 24, 2014 at 7:09 PM, William Denton w...@pobox.com wrote:

 I have a couple of big files that I'd like to move from LaTeX to Org, and
 wondered if there's already an easier way to manage this than to do a bunch
 of tedious searching and replacing on \section and \begin{quote} and the
 like.

 I found this thread in the list archives, from about three years ago,
 where Marvin Doyley had the same question:

 http://thread.gmane.org/gmane.emacs.orgmode/34020

 Matt Lundin said he'd hacked up something in Perl and he'd put it in Worg,
 but I can't find it in there ... Matt, did you ever post it?

 Thanks,

 Bill
 --
 William Denton
 Toronto, Canada
 http://www.miskatonic.org/





Re: [O] Importing from LaTeX

2014-01-24 Thread William Denton

On 24 January 2014, Anthony Lander wrote:


Take a look at pandoc (http://johnmacfarlane.net/pandoc/). It reads and
writes several markup formats, including LaTeX and org.


Thanks!  I completely forgot about pandoc.

$ pandoc --no-wrap foo.latex -o foo.org

did the job beautifully (once I'd converted all my compactitem lists to 
itemize).


Bill
--
William Denton
Toronto, Canada
http://www.miskatonic.org/




Re: [O] Narrowing vs indirect buffer

2014-01-24 Thread Bastien
Alan L Tyree alanty...@gmail.com writes:

 Is there any preference (so far as org is concerned)? Are there any
 gotchas that I should note?

Just a personal preference: I use narrowing because I don't like
multiplying buffers.

-- 
 Bastien



Re: [O] orgstruct-mode taking over C-c C-f

2014-01-24 Thread Eric Abrahamsen
Bastien b...@gnu.org writes:

 Malcolm Purvis malc...@purvis.id.au writes:

 Bastien == Bastien  b...@gnu.org writes:

 Bastien Did you recompiled Org?

 I can confirm that the problem still exists with a freshly compiled
 version of the latest mainline
 (240329465b466584f4bf80f24eb881fb3c9285cf).

 Also the alias org-set-transient-map doesn't seem to be called, so I
 still get the error about the undefined function set-transient-map when
 running Emacs 23.3.

 Indeed, my bad, fixed now.

Works great, thanks a lot!




[O] Cursor jumps unexpectedly when calling org-agenda-todo

2014-01-24 Thread Matt Lundin
Hi Bastien,

Commit e5259962f61c398d84d43d33c29a6f021c9b326a introduced a change
(perhaps unintentional) in the function org-agenda-todo. Line 8870
added another...

(setq col (current-column))

Is this supposed to be there?

The problem is that this is called in the actual org buffer at the
location of org-marker, thus overriding the earlier value set in line
8757. 

Thus, when org-agenda-todo attempts places the cursor with
org-move-to-column (line 8796), it does so on the basis of the position
in the org file rather than the original position in the agenda. In
other words, no matter what column the cursor is at in the agenda buffer
(e.g., 0, 28, 30), it gets moved to the column of org-marker in the org
buffer (e.g., 13).

For instance, a cursor here in the agenda...

  inbox:  Scheduled:  TODO Do something:errands:
^

gets moved to here after calling org-agenda-todo...

  inbox:  Scheduled:  TODO Do something:errands:
^

Thanks,
Matt



Re: [O] Narrowing vs indirect buffer

2014-01-24 Thread Alan L Tyree
Bastien writes:

 Alan L Tyree alanty...@gmail.com writes:

 Is there any preference (so far as org is concerned)? Are there any
 gotchas that I should note?

 Just a personal preference: I use narrowing because I don't like
 multiplying buffers.

Thanks Bastien. I like narrowing a lot better but only just discovered
it. It is a terrific facility.

Cheers,
Alan




-- 
Alan L Tyree   http://www2.austlii.edu.au/~alan
Tel:  04 2748 6206 sip:172...@iptel.org



Re: [O] org-mode + icicles, avoid key binding redefinitions?

2014-01-24 Thread Thomas S. Dye
Aloha Bastien,

Bastien b...@gnu.org writes:

 Hi Thomas,

 t...@tsdye.com (Thomas S. Dye) writes:

 I just checked the Org mode manual and found that it has several entries
 that consist of `C-c' followed by a punctuation character.

 Can we list them in this thread to discuss how bad the situation is
 for each of these keybindings?

 In my quick check (at the boarding gate for an airline flight) I didn't
 find a note that these sequences might properly be shadowed by a minor
 mode. 

 Perhaps a note in the manual would be useful?

 Indeed.  But first let's make a list and see which one of these
 keybindings could be a candidate for an update.

Using the syntax table for Org I found the following C-c punctuation
combinations in the Org Key Index:

* C-c punctuation

C-c ! Creating timestamps
C-c # Checkboxes
C-c ' Editing and debugging formulas, literal examples, include files,
editing source code, cooperation
C-c , Priorities
C-c . Creating timestamps
C-c ; Comment lines
C-c ? Editing and debugging formulas
C-c @ Structure editing 
C-c ^ Structure editing, plain lists, built-in table editor
C-c ` Built-in table editor
C-c ~ Cooperation

I think I've interpreted the syntax table correctly, but I don't have
any experience with this, so I might have made mistakes.

All the best,
Tom

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



Re: [O] Org release 8.2.5g (minor release from maint)

2014-01-24 Thread Achim Gratz
Achim Gratz writes:
[…]
 in the second or the cdr of the second element of pre-info might
 directly get the new value spliced in depending on whether the original
 value is used someplace else.

Splicing seems slightly more elegant than list construction, but
pre-info needs to be preserved.  Eric, please review the attached patch,
I'm not certain about the current test coverage in that area.

From 024e05c4de3c7598448ee97b0f986562007d5186 Mon Sep 17 00:00:00 2001
From: Achim Gratz strom...@stromeko.de
Date: Sat, 25 Jan 2014 08:53:33 +0100
Subject: [PATCH] ob-lob: do not use cl at runtime

* lisp/ob-lob.el (org-babel-lob-execute): Do not use defun subseq from
  cl at runtime.  Replace concatenation of sub-sequences by splicing
  the modified params list into a copy of info (pre-must info be
  preserved).
---
 lisp/ob-lob.el | 15 ---
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/lisp/ob-lob.el b/lisp/ob-lob.el
index c93198a..6480468 100644
--- a/lisp/ob-lob.el
+++ b/lisp/ob-lob.el
@@ -147,13 +147,14 @@ (defun org-babel-lob-execute (info)
 		  ;; Do *not* pre-process params for call line
 		  ;; hash evaluation, since for a call line :var
 		  ;; extension *is* execution.
-		  (let ((params (nth 2 pre-info)))
-			(append (subseq pre-info 0 2)
-(list
- (cons
-  (cons :c-var (cdr (assoc :var params)))
-  (assq-delete-all :var (copy-tree params
-(subseq pre-info 3))
+		  (let* ((params (nth 2 pre-info))
+			 (sha1-nth2 (list
+(cons
+ (cons :c-var (cdr (assoc :var params)))
+ (assq-delete-all :var (copy-tree params)
+			 (sha1-info (copy-tree pre-info)))
+			(prog1 sha1-info
+			  (setcar (cddr sha1-info) sha1-nth2))
 	 (old-hash (when cache-p (org-babel-current-result-hash pre-info)))
 	 (org-babel-current-src-block-location (point-marker)))
 (if (and cache-p (equal new-hash old-hash))
-- 
1.8.5.2



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

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada