Re: [O] org-review-schedule

2014-04-27 Thread Alan Schmitt
On 2014-04-25 10:02, Nicolas Goaziou n.goaz...@gmail.com writes:

 Alan Schmitt alan.schm...@polytechnique.org writes:

 I guess I should have asked: who decides what goes in contrib?

 The Org maintainer. Another option is to turn it into an ELPA package.

I need to learn how to do this. In the meantime, I've put the code on
github: https://github.com/brabalan/org-review

Alan



Re: [O] org-review-schedule

2014-04-27 Thread Alan Schmitt
On 2014-04-26 14:25, Nicolas Goaziou n.goaz...@gmail.com writes:

 Thorsten Jolitz tjol...@gmail.com writes:

 the answer is in the quote already:

 ,-
 | Since return value matters, I suggest to use ...
 `-

 Exactly. I use `when' if side-effects are involved or if the code is too
 long and doesn't fit nicely in a `and' branch.

 Of course, this is nitpicking. There's nothing wrong with `when'
 variant.

I think I get it now. Thanks a lot.

Alan



[O] Update from exported agendas?

2014-04-27 Thread Chris Poole
Hi,

I export my agenda custom views to plain text, so I can check things off as
I go (without access to Emacs).

I use `(org-agenda-prefix-format  [ ] )` so I can easily add an X with
my text editor on my phone.

Is there any way to have this update the todo items that the exported
agenda file was created from? (Say, changing NEXT state to DONE.)


Cheers,
Chris


Re: [O] Update from exported agendas?

2014-04-27 Thread Thorsten Jolitz
Chris Poole li...@chrispoole.com writes:

Hi,

 I export my agenda custom views to plain text, so I can check things
 off as I go (without access to Emacs).

 I use `(org-agenda-prefix-format  [ ] )` so I can easily add an X
 with my text editor on my phone.

 Is there any way to have this update the todo items that the exported
 agenda file was created from? (Say, changing NEXT state to DONE.)

I don't think this is possible. Without having looked at org-agenda.el I
guess that the connection between agenda entries and items in .org files
is realised with Emacs Lisp markers (enabling cmds like
`org-agenda-show' in agenda mode). These markers are lost when you simply
copy the agenda contents to a plain text file, so there is no connection
anymore with the Org files.

Maybe the elisp markers could be replaced by unique IDs for each entry
or links that allow the look-up of the associated entries, and you are
lucky and somebody aready figured out how to do this?

-- 
cheers,
Thorsten




[O] org-reftex package and biblatex support for org-bibtex

2014-04-27 Thread Leonard Randall
Dear All,

I am in the process of writing a new package for inserting citations into
org buffers using RefTeX. The current org-reftex command works alright, but
it is not quite as flexible as I would like it to be. I wanted to add an
option to add citations in footnotes. I also wanted to make it so that,
when a bibtex library is not set in the file, it uses the one set by
RefTeX.

Additionally, I thought that it would be useful to have the package provide
two sets of customizable RefTeX cite commands for use in org mode: one with
traditional bibtex/natbib commands and one with biblatex commands. This
would give users a fairly functional set of defaults to choose from, and
the option to further customize them. It would also some minor use
problems. Currently, org will export most bibtex and biblatex cite commands
correctly, even if they are not explicitly marked as latex,  but it will
not export biblatex multicite commands, because it does not recognize them
as latex. Accordingly it will be useful to have org-reftex mark biblatex
multicite commands as latex, but it will generally be unnecessary for it to
mark other citations as such.

Let me know if you think such a package would be useful, and let me know
what cite commands you think I should include. (I thought the default set
should be somewhat basic, but useful for most common use case scenarios.)

I was also thinking of adding out of the box biblatex support for
org-bibtex. I use org-bibtex for my bibtex files and reading lists. It
gives me a unified way to organize my bibtex entries and keep track of what
sources I need to read or incorporate into specific projects.  Currently,
customizing it to deal with biblatex fields is a bit of a hassle, so I
thought I might try to add an option that makes this process easier.

Let me know if anyone else might be interested in this, or has any
objections. Also let me know if you have any ideas about what entry types
and fields I should include. Again I wanted to make it as useful and easily
customizable as possible, without making it too bulky.

All best,
Leonard


Re: [O] State of the art in citations

2014-04-27 Thread Leonard Randall
Hi Julian et al.,
I am not sure if this helps, but I am in the process of writing a new
package for inserting citations into org buffers using RefTeX. This
solution would make citation insertion very convenient, but it would not be
quite as easy to read as Clément's solution, and it would only work for
latex export. (It might work with html export if you used bibtex to html,
but I do not have enough experience with bibtex to html to know.) On the
other hand, it will work with multicite commands, whereas Clement's does
not look like it will.

I was also thinking of adding out of the box biblatex support for
org-bibtex (see my previous post).

Let me know if you might be interested in either of these, as I will try to
work on them this week.

All best,

Leonard


Re: [O] Altering effect of deadline on priority calculation

2014-04-27 Thread peregrinehill
Actually, I have no complaints about the built-in sorting functions
themselves.  It's the priority calculation.  I guess priority-down would
show that problem most clearly.  I have a lot of tasks, so I've altered the
priority calculation to produce a larger number for each item, like this:

(defun org-get-priority (s)
  Find priority cookie and return priority.
  (save-match-data
(if (functionp org-get-priority-function)
(funcall org-get-priority-function)
  (if (not (string-match org-priority-regexp s))
  (* org-custom-sorting-intensity (- org-lowest-priority
org-default-priority))
(* org-custom-sorting-intensity (- org-lowest-priority
   (string-to-char (match-string 2 s

custom-sorting-intensity is usually around 4500, so I get large numbers and
therefore lots of gradations.  But this is just takes care of the
priority-cookie part of the calculation.

My issue is that incrementing the calculated priority by 1 for each day
past due is not dramatic enough when using these large numbers. I'd like it
to be 100 instead.  Or even, just to get crazy, 100 for each day past
deadline and 50 for each day past scheduled due date!

I know that I should be doing this as a user-defined-function for
org-agenda-sorting-strategy, but I don't understand how.  The documentation
is clear, I'm just not very good with lisp.  So I've copied the function
from org.el into my .org file and tweaked it a little.  That's why I'm
looking for the part of org.el or whichever file that increases calculated
priority according to number of days past deadline.


Thanks,
Inanna


On Thu, Apr 17, 2014 at 2:59 PM, Bastien b...@gnu.org wrote:

 Hi Inanna,

 peregrinehill peregrineh...@gmail.com writes:

  I would like to make deadlines have a larger impact on priority
  calculation than scheduled date, but I can't figure out how to
  extract how many days before or past deadline from an agenda entry.
   I would also like to extract how many days overdue a task is from
  its scheduled date.
 
  Is there a function that gives me this information easily?
 
  Alternatively, can anybody point me to where priority is increased by
  1 for each day late?

 I'm not sure where do you want to get this information from:
 from an agenda view? from a normal buffer?

 What value of `org-agenda-sorting-strategy' comes closest to
 what you are trying to achieve?

 Let us know,

 --
  Bastien



Re: [O] Altering effect of deadline on priority calculation

2014-04-27 Thread peregrinehill
Sorry, I misspoke.  What I meant to say was that I altered org-get-priority
to keep priority cookies more significant than due dates.


On Sun, Apr 27, 2014 at 9:24 AM, peregrinehill peregrineh...@gmail.comwrote:


 Actually, I have no complaints about the built-in sorting functions
 themselves.  It's the priority calculation.  I guess priority-down would
 show that problem most clearly.  I have a lot of tasks, so I've altered the
 priority calculation to produce a larger number for each item, like this:

 (defun org-get-priority (s)
   Find priority cookie and return priority.
   (save-match-data
 (if (functionp org-get-priority-function)
 (funcall org-get-priority-function)
   (if (not (string-match org-priority-regexp s))
   (* org-custom-sorting-intensity (- org-lowest-priority
 org-default-priority))
 (* org-custom-sorting-intensity (- org-lowest-priority
(string-to-char (match-string 2 s

 custom-sorting-intensity is usually around 4500, so I get large numbers
 and therefore lots of gradations.  But this is just takes care of the
 priority-cookie part of the calculation.

 My issue is that incrementing the calculated priority by 1 for each day
 past due is not dramatic enough when using these large numbers. I'd like it
 to be 100 instead.  Or even, just to get crazy, 100 for each day past
 deadline and 50 for each day past scheduled due date!

 I know that I should be doing this as a user-defined-function for
 org-agenda-sorting-strategy, but I don't understand how.  The documentation
 is clear, I'm just not very good with lisp.  So I've copied the function
 from org.el into my .org file and tweaked it a little.  That's why I'm
 looking for the part of org.el or whichever file that increases calculated
 priority according to number of days past deadline.


 Thanks,
 Inanna


 On Thu, Apr 17, 2014 at 2:59 PM, Bastien b...@gnu.org wrote:

 Hi Inanna,

 peregrinehill peregrineh...@gmail.com writes:

  I would like to make deadlines have a larger impact on priority
  calculation than scheduled date, but I can't figure out how to
  extract how many days before or past deadline from an agenda entry.
   I would also like to extract how many days overdue a task is from
  its scheduled date.
 
  Is there a function that gives me this information easily?
 
  Alternatively, can anybody point me to where priority is increased by
  1 for each day late?

 I'm not sure where do you want to get this information from:
 from an agenda view? from a normal buffer?

 What value of `org-agenda-sorting-strategy' comes closest to
 what you are trying to achieve?

 Let us know,

 --
  Bastien





Re: [O] Update from exported agendas?

2014-04-27 Thread Chris Poole
The only way I can think of doing it is, for each completed task out of the
exported file, pull up the agenda view (that corresponds to that file),
find that item, and mark it as DONE.

Perhaps have this action on the opening of any file in the org-agenda-files
list.

I was just hoping it might have already been done so I don't have to start
from scratch, seems like a logical thing --- presumably people just
manually open up the agenda view for what they've just done away from the
laptop, and mark things done, again...

(Incidentally, I actually wrote this functionality years ago (and it'd also
switch the next TODO task to NEXT), in a GTD library I made for myself, but
recently decided to switch to org mode, as it has a ton of advantages to my
simple system. I'm now seeing if I can build a GTD layer on top of org
mode, to provide a kind of automatic setup for those new to org-mode, who
want to use it with the GTD methodology.)


On Sun, Apr 27, 2014 at 12:16 PM, Thorsten Jolitz tjol...@gmail.com wrote:

 Chris Poole li...@chrispoole.com writes:

 Hi,

  I export my agenda custom views to plain text, so I can check things
  off as I go (without access to Emacs).
 
  I use `(org-agenda-prefix-format  [ ] )` so I can easily add an X
  with my text editor on my phone.
 
  Is there any way to have this update the todo items that the exported
  agenda file was created from? (Say, changing NEXT state to DONE.)

 I don't think this is possible. Without having looked at org-agenda.el I
 guess that the connection between agenda entries and items in .org files
 is realised with Emacs Lisp markers (enabling cmds like
 `org-agenda-show' in agenda mode). These markers are lost when you simply
 copy the agenda contents to a plain text file, so there is no connection
 anymore with the Org files.

 Maybe the elisp markers could be replaced by unique IDs for each entry
 or links that allow the look-up of the associated entries, and you are
 lucky and somebody aready figured out how to do this?

 --
 cheers,
 Thorsten





Re: [O] Bug: Setting system command org-file-apps does not allow other settings to refer to it [8.2.5h (release_8.2.5h-620-g7fd183 @ /home/rrt/.emacs.d/el-get/package/elpa/org-20140210/)]

2014-04-27 Thread Reuben Thomas
On 23 April 2014 16:04, Bastien b...@gnu.org wrote:

 Okay, see those two bits of `org-file-apps' docstring:

 `auto-mode'Matches files that are matched by any entry in
 `auto-mode-alist',
so all files Emacs knows how to handle.  Using this with
command `emacs' will open most files in Emacs.  Beware that
 this
will also open html files inside Emacs, unless you add
(html . default) to the list as well.

 So (auto-mode . emacs) says to open .pdf files in emacs... but
 (\\.pdf\\' . default) says to open .pdf files using the default
 application:

  `default' Use the default application for this file type, which is the
association for t in the list

 Since you have (t . xdg-open %s), xdg-open is used.

 Yep, it's all a bit tricky...


Thanks for explaining more. The reason I was (and remain!) still confused
is that you said earlier that because auto-mode comes first, it is not
overridden by changing the default value later. So the implication is that
changing the default value does not override other values, but changing the
system value does. Am I correct?

-- 
http://rrt.sc3d.org


Re: [O] Update from exported agendas?

2014-04-27 Thread Thorsten Jolitz
Chris Poole li...@chrispoole.com writes:

 The only way I can think of doing it is, for each completed task out
 of the exported file, pull up the agenda view (that corresponds to
 that file), find that item, and mark it as DONE.

 Perhaps have this action on the opening of any file in the
 org-agenda-files list.

 I was just hoping it might have already been done so I don't have to
 start from scratch, seems like a logical thing --- presumably people
 just manually open up the agenda view for what they've just done away
 from the laptop, and mark things done, again...

I think people use dropbox or some git based setting to locally modify
agenda entries while being offline and synchronize later on. But they
use Org-mode to make the local changes, they don't do them outside of
Org-mode (except where exporters/conversion-tools between Org and other
calendar/planning apps exist).

To achieve what you want you should probably use Org-mobile or install
Emacs/Org-mode on all your devices and then sync via dropbox or git or
so. 

 On Sun, Apr 27, 2014 at 12:16 PM, Thorsten Jolitz tjol...@gmail.com
 wrote:

 
 Chris Poole li...@chrispoole.com writes:
 
 Hi,
 
  I export my agenda custom views to plain text, so I can check
 things
  off as I go (without access to Emacs).
 
  I use `(org-agenda-prefix-format  [ ] )` so I can easily add
 an X
  with my text editor on my phone.
 
  Is there any way to have this update the todo items that the
 exported
  agenda file was created from? (Say, changing NEXT state to
 DONE.)
 
 
 I don't think this is possible. Without having looked at
 org-agenda.el I
 guess that the connection between agenda entries and items in .org
 files
 is realised with Emacs Lisp markers (enabling cmds like
 `org-agenda-show' in agenda mode). These markers are lost when you
 simply
 copy the agenda contents to a plain text file, so there is no
 connection
 anymore with the Org files.
 
 Maybe the elisp markers could be replaced by unique IDs for each
 entry
 or links that allow the look-up of the associated entries, and you
 are
 lucky and somebody aready figured out how to do this?
 
 --
 cheers,
 Thorsten
 
 



-- 
cheers,
Thorsten




Re: [O] customizing org-beamer--format-frame

2014-04-27 Thread Seb Frank
Thanks so much! I was trying to get a bit more flexibility with that
separate slide (e.g., have the title in the centre of the page and no toc).
So I took inspiration from your great solution and defined a latex macro

#+begin_src latex
\newcommand{\singleslide}[1]{{%
\usebeamerfont{title}
\begin{frame}[plain,c]
  \begin{center}
\begin{minipage}[h]{.75\textwidth}
  \centering
  \textcolor{title}{\Large#1}
  \end{minipage}
  \end{center}
\end{frame}
}}
#+end_src

and a latex class

#+begin_src emacs-lisp
(add-to-list 'org-latex-classes
  '(my-org-beamer
\\documentclass{beamer}

(\\singleside{%s} . \\singleslide{%s})
#+end_src

which did the job.

Best,
  Seb

On Sat, Apr 26, 2014 at 9:05 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Friday, 25 Apr 2014 at 08:24, Seb Frank wrote:
  Hi there,
 
  I have customized org-beamer--format-frame to change the way headlines
 are
  treated (as I want a separate slide with only the headline in the center
  and plain frames not showing headlines after that). The way I currently
 do
  this is by redefining the function itself (using defun
  org-beamer--format-frame). This works, but is there any way to make this
  more modular, i.e. tell org-mode somewhere to use a different function
  (e.g., my-org-beamer--format-frame) to format a frame, so that it's easy
 to
  switch back and forth between different ones, as well as to revert to the
  default?
 
  Thanks,
Seb

 As you haven't explained why you want this, it's difficult to understand
 the actual use case.  So, guessing at your intent, I wonder whether you
 have thought about making use of section headings as well as frame
 headings to accomplish what you want?

 Assuming you are using org v8.x and not something older, if you set
 option H:2, second level headings define frames and top level headings
 define sections.  You can then have section headings appear as a
 separate slide using code such as this:

 #+begin_src org
   ,#+latex_header:
 \AtBeginSection[]{\begin{frame}beamer\frametitle{Topic}\tableofcontents[currentsection]\end{frame}}
 #+end_src

 In this case, any time a section heading is encountered (i.e. top level
 org heading), you'll get a slide with a table of contents with that
 heading emphasised.  You can obviously do something different which more
 closely matches what you want.

 If you don't want individual frames to have headings, simply don't put
 any text in the headline for that frame.

 This way, you do not need to manipulate how beamer displays frames.  An
 example set of slides with two sections and two out of four slides
 having no headline would look like this:

 #+begin_src org
   ,#+options: H:2
   ,#+latex_header:
 \AtBeginSection[]{\begin{frame}beamer\frametitle{Topic}\tableofcontents[currentsection]\end{frame}}
   ,* Introduction
   ,** First slide
   some text on the first slide
   ,**
   some text on the second slide which has no heading
   ,* Results
   ,**
   some third slide text, also on a slide with no heading
   ,** conclusions
   This was a great talk.
 #+end_src

 HTH,
 eric
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org
 release_8.2.5h-1027-g4c0a29



Re: [O] State of the art in citations

2014-04-27 Thread Clément B .
Hi Leonard,

 I am in the process of writing a new package for inserting
 citations into org buffers using RefTeX.

I'd be interested to know what you have in mind. I use something
of the sort, by customising `reftex-cite-format`, e.g:

(setq reftex-cite-format
   '((?\C-m . \\cite[]{%l})
 (?b . [[ref:%l][%A (%y)]])))

This makes inserting custom links (ref) easier with the usual
`reftex-citation` bound to C-c [.


 On the other hand, it will work with multicite commands,
 whereas Clement's does not look like it will.

It does not, and that's a big limitation. That being said, I don't
know how to go about mixing multiple citations and links to the
bib file. This is definitely something I care about, being able
to quickly jump from the text to the bibliographic entry, PDF
file, or whatever source I am using to write is one of the main
reasons I use org instead of plain LaTeX.


Bye,

Clément



Re: [O] State of the art in citations

2014-04-27 Thread Ken Mankoff
Hi Clément and Others,

On 2014-04-27 at 10:14, Clément B. wrote:
 (setq reftex-cite-format
'((?\C-m . \\cite[]{%l})
  (?b . [[ref:%l][%A (%y)]])))

I've been using reftex in Org - LaTeX for a while and have my Org text
sprinkled with \cite{foo:}. I just saw the customized
reftex-cite-format from Clément (above). It looks much nicer in the
text, but raises two questions:

1) Can the link just use lastname? It looks like %A is the only way to
access author names, and does full names, so perhaps not without writing
some custom function? And more importantly, 

2) When I export this to LaTeX, it is not treated as a proper LaTeX
citation. The text is just the %A (%y) part. Is there some way to
export so that the ref:%l turns into a \cite{%l}? 

Thanks,

  -k.



Re: [O] State of the art in citations

2014-04-27 Thread Clément B .
Hi Ken,

 When I export this to LaTeX, it is not treated as a proper
 LaTeX citation. The text is just the %A (%y) part. Is there
 some way to export so that the ref:%l turns into a \cite{%l}?

The ref is a custom link type, you can define those in org with
`org-add-link-type`, and they allow control over the export
behaviour. See the previous posts in this thread for an example.

Bye,

Clément



Re: [O] State of the art in citations

2014-04-27 Thread Ken Mankoff

On 2014-04-27 at 10:53, Clément B. wrote:
 Hi Ken,

 When I export this to LaTeX, it is not treated as a proper LaTeX
 citation. The text is just the %A (%y) part. Is there some way to
 export so that the ref:%l turns into a \cite{%l}?

 The ref is a custom link type, you can define those in org with
 `org-add-link-type`, and they allow control over the export
 behaviour. See the previous posts in this thread for an example.

Ah! Got it. This is really nice. Thank you. 

I find the best way to support ODT is simply add something like this:

  ((eq format 'odt)
   (format (%s) desc))

This doesn't create a bibliography section, but that section is awkward
to export to anyway. It requires the 3rd party Org hack that isn't
officially supported, java, jabref, is awfully slow (~2
seconds/reference), etc. I now put the references inline as above, and
then manually add the references by exporting to PDF and copying/paste
that reference section. 

Not great, but less of a hack than ODT-supported references, and working
with ODT/Word is a hack anyway.

Still looking into lastname (Year) format...

  -k.



Re: [O] State of the art in citations

2014-04-27 Thread Thomas S. Dye
Clément B. clem...@inventati.org writes:

 Hi Leonard,

 I am in the process of writing a new package for inserting
 citations into org buffers using RefTeX.

 I'd be interested to know what you have in mind. I use something
 of the sort, by customising `reftex-cite-format`, e.g:

 (setq reftex-cite-format
'((?\C-m . \\cite[]{%l})
  (?b . [[ref:%l][%A (%y)]])))

 This makes inserting custom links (ref) easier with the usual
 `reftex-citation` bound to C-c [.


 On the other hand, it will work with multicite commands,
 whereas Clement's does not look like it will.

 It does not, and that's a big limitation. That being said, I don't
 know how to go about mixing multiple citations and links to the
 bib file. This is definitely something I care about, being able
 to quickly jump from the text to the bibliographic entry, PDF
 file, or whatever source I am using to write is one of the main
 reasons I use org instead of plain LaTeX.

One approach for muliticites is to drop a placeholder and then replace
it with an export filter.  I've been using these two for a while and
they seem to work fine.

** Filters for multicites
*** Filter for parencites
Add the placeholder with alt-p

#+name: tsd-parencites
#+BEGIN_SRC emacs-lisp
(defun tsd-latex-filter-parencites (text backend info)
  Replace parencites placeholders in Beamer/LaTeX export.
  (when (memq backend '(beamer latex))
(replace-regexp-in-string π \\parencites text nil t)))
(add-to-list 'org-export-filter-plain-text-functions
 'tsd-latex-filter-parencites)
#+END_SRC

*** Filter for textcites
Add the placeholder with alt-t

#+name: tsd-textcites
#+BEGIN_SRC emacs-lisp
(defun tsd-latex-filter-textcites (text backend info)
  Replace textcites placeholders in Beamer/LaTeX export.
  (when (memq backend '(beamer latex))
(replace-regexp-in-string † \\textcites text nil t)))
(add-to-list 'org-export-filter-plain-text-functions
 'tsd-latex-filter-textcites)
#+END_SRC


It looks like this in the text:

  A recent replication experiment that used stone tools in
  the manufacture of an outrigger canoe identified six functional types
  of stone adze that correspond generally with the six types established
  by Duff
  π[[multicite:turner00:_funct_desig_distr_new_zealan_adzes][;;turner
  diss]] [[multicite:turner05:_funct_and_techn_explan_for][;;turner
  nzja]].

My link syntax is a bit different, but the same basic idea:

(org-add-link-type
 multicite 'ebib-open-org-link
 (lambda (path desc format)
   (cond
((eq format 'latex)
 (if (not desc) (format {%s} path)
 (format [%s][%s]{%s}
 (cadr (split-string desc ;))
 (car (split-string desc ;))  path))

hth,
Tom

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



Re: [O] State of the art in citations

2014-04-27 Thread Clément B .

 I find the best way to support ODT is simply add something like this:

   ((eq format 'odt)
(format (%s) desc))

 This doesn't create a bibliography section, but that section is awkward
 to export to anyway. It requires the 3rd party Org hack that isn't
 officially supported, java, jabref, is awfully slow (~2
 seconds/reference), etc. I now put the references inline as above, and
 then manually add the references by exporting to PDF and copying/paste
 that reference section. 

 Not great, but less of a hack than ODT-supported references, and working
 with ODT/Word is a hack anyway.

I came to a similar conclusion for html export, it is very hard
to match bibtex/biblatex to produce a proper bibliography, so one
might as well use it. At one point, the thought of writing a
custom citation style that would output html code crossed my mind
(I think biblatex would allow that), but I just don't use html
export enough. Although if this is possible, it could work with
xml for odt as well.

 Still looking into lastname (Year) format...

I hadn't noticed that before, but now that you mention it, I
think this is related to the way you format your bib file.

For example %A (%y) with:

1. name = {Darwin, Charles}
   year = {1859}

   will yield Darwin (1859)


2. name = {Charles Darwin}
   year = {1859}

   will yield Charles Darwin (1859)

Not very consistent. This might be something to take to the
AUCTeX guys.



Re: [O] State of the art in citations

2014-04-27 Thread Ken Mankoff

On 2014-04-27 at 12:05, Clément B. wrote:
 Still looking into lastname (Year) format...

 I hadn't noticed that before, but now that you mention it, I
 think this is related to the way you format your bib file.

 For example %A (%y) with:

 1. name = {Darwin, Charles}
year = {1859}

will yield Darwin (1859)


 2. name = {Charles Darwin}
year = {1859}

will yield Charles Darwin (1859)

 Not very consistent. This might be something to take to the AUCTeX
guys.

I've asked about this here:
https://tex.stackexchange.com/questions/173804/best-practices-for-bibtex-author-field
 

Maybe bibtool or some other tool can reformat my BibTeX 
file to Last, First.

  -k.



Re: [O] State of the art in citations

2014-04-27 Thread Ken Mankoff

On 2014-04-27 at 12:01, Thomas S. Dye wrote:
 Clément B. clem...@inventati.org writes:

 This makes inserting custom links (ref) easier with the usual
 `reftex-citation` bound to C-c [.

 On the other hand, it will work with multicite commands,
 whereas Clement's does not look like it will.

 It does not, and that's a big limitation. 

It appears to work for multicite for me. Or at least well enough. If I
select multiple entries, I get this:

[[ref:Author1:,Author2:,Author3:][()]]

I can then easily insert the text I want into the (). It exports
properly to LaTeX as \cite{Author1:,Author2:,Author3:}.

Maybe most people multi-cite more than me, but I think it is only a bit
of extra work to add what I want in the () and then it exports properly
to LaTeX and, using the references-via-LaTeX, to ODT/HTML too!

  -k.



Re: [O] customizing org-beamer--format-frame

2014-04-27 Thread Eric S Fraga
On Sunday, 27 Apr 2014 at 10:14, Seb Frank wrote:
 Thanks so much! I was trying to get a bit more flexibility with that
 separate slide (e.g., have the title in the centre of the page and no toc).
 So I took inspiration from your great solution and defined a latex macro

Interesting solution!  Thanks for this.  I can see its uses.  For
completeness, I assume you are using the H:2 option?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-1027-g4c0a29



Re: [O] image attributes in ODT export for wrapped text possible?

2014-04-27 Thread Eric S Fraga
On Saturday, 26 Apr 2014 at 15:04, Christian Moe wrote:
 Hello,

 Yes, it's possible, though if you're only going to wrap a single image
 in the final output, it's very likely easier to just open the document
 in LibreOffice, right-click the image and take it from there.

Which is what I did in the end as I needed to get the document out
fairly quickly.

 Anyway, here's one way to do it by creating a custom style. (If it's
 possible to pass wrap settings directly, I don't know how.)

[...]

 Let me know if this works for you. (If not, though, I may not be able to
 help -- I'll be offline for a few days.)

Thanks for this.  I will play with this when I get a chance (when I get
some feedback on the document I sent out Friday).  What you suggest
makes perfect sense but, if I understand correctly, this will make all
figures have the wrapped style?  It is not possible to specify an option
in the org file on a per figure basis?

Thanks again,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-1027-g4c0a29



Re: [O] State of the art in citations

2014-04-27 Thread Clément B .

 It appears to work for multicite for me. Or at least well enough. If I
 select multiple entries, I get this:

 [[ref:Author1:,Author2:,Author3:][()]]

 I can then easily insert the text I want into the (). It exports
 properly to LaTeX as \cite{Author1:,Author2:,Author3:}.

 Maybe most people multi-cite more than me, but I think it is only a bit
 of extra work to add what I want in the () and then it exports properly
 to LaTeX and, using the references-via-LaTeX, to ODT/HTML too!

   -k.

The problem is that you can't link to a bibtex entry,
[[ref:Author1:,Author2:]] is not picked up by org search
function of `org-open-file`. And even if it was, it couldn't link
to several entries at once. So to preserve the ability to jump
quickly to a reference, I quite like the export filter approach,
which I was unaware of (thank you Thomas! ).


Clément



Re: [O] State of the art in citations

2014-04-27 Thread John Kitchin
It seems there are a lot of variants of citation handling out there! I will
add to the list my own variants here:
https://github.com/jkitchin/jmax/blob/master/jorg-bib.el. My citation needs
are simple, I basically only use \cite{key1,key2} in LaTeX. And I only use
bibtex, because I have not gotten around to anything else, bibtex works
fine if your needs are simple (like mine).

There is certainly duplication of some things, but the following are
features in mine that I am not aware of anywhere else.


1. Integration with reftex. You type C-c ] and select keys from reftex and
insert a cite link. If you type it again on a citation, the new entries are
appended to the end. This current conversation inspired me to implement
this!

2. Clickable cite links. If you have a citation link like
cite:key1,key2,key3 you can click on key1 and open the bibliography file to
key1, and you can click on key2 and have it open at key 2. This link would
export in latex as \cite{key1,key2,key3}. Other cite formats, e.g. citep,
citep*, etc... are defined too, but are relatively untested. You can also
use completion to enter a bibtex key.

3. citation tooltips. If clicking is too disruptive, you can run a command
and get a tooltip of the citation under point. If clicking is too tiring,
you can turn on an idle timer that shows a tooltip if the cursor is on a
citation.

4. clickable label links. clicking checks the buffer for another label by
the same name.

5. Clickable ref links. Clicking on the ref:label takes you to the label,
and provides C-c  to get back to that point. You can also use completion
to get a list of labels in the buffer to make a ref to.

6. A bibliographystyle and bibliography link. The bibliography link opens
the bibtex file that was clicked on.

7. Code to make a clickable list of figures and tables.

8. Code to extract the bibtex entries cited in an org-file to a text block
at the end of the org-file

9. variables to point to a notes file and pdf directory, and functions to
jump to your notes and the pdf file from a bibtex entry.

10. a function to build a complete pdf bibliography from your bibtex file.
This is handy for checking the entries are spelled correctly, etc...

11. A little function and python script to upload a bibtex entry to
citeulike.

I have not tried to do much with anything but LaTeX, so these links are not
likely to be that good for html or odt I suspect.

Anyway, there are some very interesting ideas in this code, and I am using
it on a pretty regular basis. Maybe some of you would also find them
interesting/helpful. I look forward to see this continue developing!

John

---
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, Apr 27, 2014 at 12:57 PM, Clément B. clem...@inventati.org wrote:


  It appears to work for multicite for me. Or at least well enough. If I
  select multiple entries, I get this:
 
  [[ref:Author1:,Author2:,Author3:][()]]
 
  I can then easily insert the text I want into the (). It exports
  properly to LaTeX as \cite{Author1:,Author2:,Author3:}.
 
  Maybe most people multi-cite more than me, but I think it is only a bit
  of extra work to add what I want in the () and then it exports properly
  to LaTeX and, using the references-via-LaTeX, to ODT/HTML too!
 
-k.

 The problem is that you can't link to a bibtex entry,
 [[ref:Author1:,Author2:]] is not picked up by org search
 function of `org-open-file`. And even if it was, it couldn't link
 to several entries at once. So to preserve the ability to jump
 quickly to a reference, I quite like the export filter approach,
 which I was unaware of (thank you Thomas! ).


 Clément




[O] Is OrgMode really GTD compliant?

2014-04-27 Thread Rene
According to David Allen, whenever you define an action you need to
assign three pieces of information that you will later use as criteria
to decide what to do (in order of precedence):

 1. Context: Where should I be (@home, @work, etc.) and/or which tools
should I have at my disposal (@computer, @internet, etc.) to do
this action?
 2. Time needed: Which amount of time available must I have to do
this action?
 3. Energy needed: How wasted/fresh can I be to do this action?

Then, when you're up for executing an action, you use context, time
available, and energy available as a sieve to sift out what can be
done. Only after you've looked at these three can you determine what
is the priority for right now, the present moment.

From the Getting Things Done perspective you don’t want to assign
“priority” to action items on the front end because as soon as the
situation changes and a couple of variables shift, as they are
guaranteed to do, it will alter the array of possibilities. So lots of
the action items you have rated at given priority levels are going to
change. And when they do, then you’re busy re-prioritizing all those
items.

This is why David Allen, states that The `ABC' priority codes don’t work.

GTD suggests that priority makes a lot more sense to assess when you
know the complete context+time available+energy available of the
given moment.

Orgmode helps you capture
 - the context: by means of tags,
 - the time needed: by means of an effort property,
 - the ABC priorities: by means of cookies.

One notices:
 1) Orgmode offers a default implementation for priorities although
this fourth criteria should not formally be dealt with according
to GTD.
 2) The energy criteria is absent
 3) The word effort is misnamed as it reminds more of an energy
measure than a duration.

Has anyone tried to customize orgmode so as to make it really GTD compliant?





Re: [O] customizing org-beamer--format-frame

2014-04-27 Thread Seb Frank
Yes, that's right. H:2


On Sun, Apr 27, 2014 at 12:42 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:

 On Sunday, 27 Apr 2014 at 10:14, Seb Frank wrote:
  Thanks so much! I was trying to get a bit more flexibility with that
  separate slide (e.g., have the title in the centre of the page and no
 toc).
  So I took inspiration from your great solution and defined a latex macro

 Interesting solution!  Thanks for this.  I can see its uses.  For
 completeness, I assume you are using the H:2 option?
 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org
 release_8.2.5h-1027-g4c0a29



Re: [O] State of the art in citations

2014-04-27 Thread Clément B .
Hi John,

This is great ! Way more advanced than anything I have said.

 2. Clickable cite links. If you have a citation link like
 cite:key1,key2,key3 you can click on key1 and open the bibliography file to
 key1, and you can click on key2 and have it open at key 2. This link would
 export in latex as \cite{key1,key2,key3}. Other cite formats, e.g. citep,
 citep*, etc... are defined too, but are relatively untested. You can also
 use completion to enter a bibtex key.

This was my main concern, glad to see you can treat the different
parts of the links as separate citations, and access their
respective bibtex entry. The completion is very handy too.

 9. variables to point to a notes file and pdf directory, and functions to
 jump to your notes and the pdf file from a bibtex entry.

I use something similar, but only for the pdf file. I think the
open-in-browser function is implemented in the latest bibtex-mode
(`bibtex-url` bound to C-c C-l).

Bye,

Clément



[O] using org-refile to sort research notes?

2014-04-27 Thread Jay Dixit
Hello friendly org-mode community,

I'm using org-mode to research and write a nonfiction book. I have a large
amount of notes and quotes that I now need to sort into separate files.

I am creating separate org files, one for each chapter of my book—
chapter-1.org, chapter-2.org, etc.—with org headings in each one for every
topic/subsection.

I now want to categorize my notes, moving them from where they are—i.e. in
a set of long, unorganized org files with names like new-research.org and
more-research-and-notes.org—into the the chapter files.

1. Am I right in thinking that org-refile is the most efficient way to do
this?
2. What's the best way to do this? Should I add all of my chapter.org files
to the agenda using org-agenda-file-to-front? I ask because these are not
TODO headings, just headings with notes and quotes, so I'm not sure if
using org-agenda functionality is appropriate.
3. I am also learning to use org-agenda, so I do have a work.org file that
has my TODO tasks in it. Is there a way to temporarily remove my
work.orgTODO headings from the refile targets for when I'm sorting my
book notes?
Or is there a way to have different projects with separate sets of refile
targets, one set of agenda files with refile targets for when I'm refiling
TODO tasks, another set of agenda files for when I'm refiling book notes?

Thanks in advance for any advice.

Best,
Jay

---
Jay Dixit
jaydixit.com
(646) 355-8001
[image: Facebook] http://facebook.com/jaydixit [image:
Twitter]https://twitter.com/jaydixit
 [image: The New York Writers’
Intensive]http://www.newyorkwritersintensive.com

Jay Dixit

ᐧ


Re: [O] Is OrgMode really GTD compliant?

2014-04-27 Thread Richard Lawrence
Hi Rene,

Rene jl...@yahoo.com writes:

 According to David Allen, whenever you define an action you need to
 assign three pieces of information that you will later use as criteria
 to decide what to do (in order of precedence):

  1. Context: Where should I be (@home, @work, etc.) and/or which tools
 should I have at my disposal (@computer, @internet, etc.) to do
 this action?
  2. Time needed: Which amount of time available must I have to do
 this action?
  3. Energy needed: How wasted/fresh can I be to do this action?

 Then, when you're up for executing an action, you use context, time
 available, and energy available as a sieve to sift out what can be
 done. Only after you've looked at these three can you determine what
 is the priority for right now, the present moment.
 ...
 Orgmode helps you capture
  - the context: by means of tags,
  - the time needed: by means of an effort property,
  - the ABC priorities: by means of cookies.
...
 Has anyone tried to customize orgmode so as to make it really GTD
 compliant?

I am not really familiar with the official GTD methodology, and I don't
know exactly how you would normally represent the energy needed
associated with a task, but here's a suggestion.

It occurs to me that you could just use the A/B/C priority cookies to
represent energy levels, since you don't want to use them to encode
priorities.  Something like:
  #A: need to be fresh
  #C: can be wasted
  #B: everything else
or whatever would work for you.  If that's granular enough to represent
your energy-needed levels, then it's a neat hack that requires zero
customization.  Sorting and filtering by energy needed is then already
built into the agenda functions, etc.  Just think energy needed
whenever Org says priority (which isn't very often), and you're good
to go.

-- 
Best,
Richard





Re: [O] using org-refile to sort research notes?

2014-04-27 Thread Alan L Tyree

Hi Jay,
C-c [ and C-c ]  adds and removes the current file from the agenda list. 
I can never remember these, so I leave the menus turned on in emacs 
(makes me a wimp!).


BUT: do you really need to do this? It is the way I used to work, but my 
current book is 600+ pages and I am keeping it and all my research in a 
single file. By using the 'hoist' C-x n s for a subtree, writing is 
focussed and yet everything is where I need it.


Maybe it won't work for you but I find it very convenient.

Cheers,
Alan


On 28/04/14 08:25, Jay Dixit wrote:

Hello friendly org-mode community,

I'm using org-mode to research and write a nonfiction book. I have a 
large amount of notes and quotes that I now need to sort into separate 
files.


I am creating separate org files, one for each chapter of my 
book—chapter-1.org http://chapter-1.org, chapter-2.org 
http://chapter-2.org, etc.—with org headings in each one for every 
topic/subsection.


I now want to categorize my notes, moving them from where they 
are—i.e. in a set of long, unorganized org files with names like 
new-research.org http://new-research.org and 
more-research-and-notes.org http://more-research-and-notes.org—into 
the the chapter files.


1. Am I right in thinking that org-refile is the most efficient way to 
do this?
2. What's the best way to do this? Should I add all of my chapter.org 
http://chapter.org files to the agenda using 
org-agenda-file-to-front? I ask because these are not TODO headings, 
just headings with notes and quotes, so I'm not sure if using 
org-agenda functionality is appropriate.
3. I am also learning to use org-agenda, so I do have a work.org 
http://work.org file that has my TODO tasks in it. Is there a way to 
temporarily remove my work.org http://work.org TODO headings from 
the refile targets for when I'm sorting my book notes? Or is there a 
way to have different projects with separate sets of refile targets, 
one set of agenda files with refile targets for when I'm refiling TODO 
tasks, another set of agenda files for when I'm refiling book notes?


Thanks in advance for any advice.

Best,
Jay

---
Jay Dixit
jaydixit.com http://jaydixit.com
(646) 355-8001
Facebook http://facebook.com/jaydixit Twitter 
https://twitter.com/jaydixit The New York Writers’ Intensive 
http://www.newyorkwritersintensive.com

Jay Dixit

ᐧ


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



Re: [O] using org-refile to sort research notes?

2014-04-27 Thread Richard Lawrence
Hi Jay,

Jay Dixit di...@aya.yale.edu writes:

 Hello friendly org-mode community,

 I'm using org-mode to research and write a nonfiction book. I have a large
 amount of notes and quotes that I now need to sort into separate files.

 I am creating separate org files, one for each chapter of my book—
 chapter-1.org, chapter-2.org, etc.—with org headings in each one for every
 topic/subsection.

 I now want to categorize my notes, moving them from where they are—i.e. in
 a set of long, unorganized org files with names like new-research.org and
 more-research-and-notes.org—into the the chapter files.

 1. Am I right in thinking that org-refile is the most efficient way to do
 this?

That sounds right to me.

 2. What's the best way to do this? Should I add all of my chapter.org files
 to the agenda using org-agenda-file-to-front? I ask because these are not
 TODO headings, just headings with notes and quotes, so I'm not sure if
 using org-agenda functionality is appropriate.

Rather than adding these files to the agenda, I would have a look at the
`org-refile-targets' variable.  This variable tells Org where to look
for entries to refile under.

If this is a one-time operation, you may be able to just set the
variable a few times: adjust the variable to point to your chapter-1.org
notes heading, then refile all those notes; then point it to your
chapter-2.org notes heading, then refile all those notes...; etc.  This
will make it super easy to get the right refile target.

 Thanks in advance for any advice.

I don't know what led you to choose the new file layout that you're
moving to, but here is an alternative that you might also consider.

Make your project into just two files, say book.org and notes.org; the
first contains the text of the book, while the second contains the notes
and tasks for each chapter.  One advantage of this setup is that it
would allow you to organize your notes in whatever way is most natural
to them, rather than by chapter.  You can then use tags to associate
notes with chapters.  If for example you have some quotes that belong
together but are relevant to both chapters 1 and 2, you can have them in
a single entry in notes.org, tagged with :ch1:ch2:.  Likewise for tasks:
if some tasks require you to modify multiple chapters, you just tag them
multiple times.  (Links may also be helpful in this setup.)

I used to have a setup a lot like the one you described, but I found
that tags allowed me to organize my notes and tasks with much more
flexibility than using a tree-like hierarchy.  There's always the
question of where some note belongs when you can only file it in one
place.

I now use the two-file setup for writing my dissertation.  I keep tasks
and notes about readings I do in one file, with tags to associate them
with chapters and so on, and do my actual writing in another file.  This
keeps both types of information clean and organized, but I can move
easily between them.

--
Best,
Richard




Re: [O] Export HTML with Properties and Tags

2014-04-27 Thread Esben Stien
Nick Dokos ndo...@gmail.com writes:

 #+OPTIONS: prop:t

Exactly what I needed. Thanks. 

Is there some way to set this globally, though?

-- 
Esben Stien is b0ef@e s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n



Re: [O] State of the art in citations

2014-04-27 Thread Richard Lawrence
Hi Clément and all,

Clément B. clem...@autistici.org writes:

 As for citations, I find that the most flexible way is to define
 my own link types, that allows control on both org formatting and
 export...

Replacing my inline \cite commands with custom link types is something
I've been meaning to do for a while.  Thanks for the implementation
ideas!  

I have a setup that for some people may complement the one Clément
describes.  Rather than dealing with .bib files and RefTeX, I represent
my bibliography in Org, and use org-bibtex to (re-)generate a .bib file
as needed.  Here's how it works, in brief; I described it more fully at:
http://article.gmane.org/gmane.emacs.orgmode/79016/

1) I store each reading as a TODO headline using a capture template.  I
use the post-capture hook to call org-bibtex-create-in-current-entry as
appropriate.  This allows me to keep notes, links, deadlines
etc. associated with each reading in Org, as well as the bibliographic
data.

2) I have a function that uses org-map-entries to walk over the
headlines for my readings and export them to a .bib file.  This
regenerates my .bib file on an as-needed basis; the real bibliographic
database is stored in Org.  (I call this function from a Makefile, but
it could just as easily be used from within the Org export process.)

The next step, which I haven't yet implemented but which would connect
this setup to one like Clément described, would be to add behavior to
the custom link types so that *following* the link would jump to the
associated TODO entry for the reading, rather than the entry in the .bib
file.  This should be straightforward, since org-bibtex uses the
CUSTOM_ID property to store the cite key.  And jumping to my own notes
about a reference (which might further link to the original text),
rather than to a .bib file, is usually what I want.

-- 
Best,
Richard




Re: [O] [RFC] [PATCH] ob-core.el: allow the auto-generation of output file names for src blocks.

2014-04-27 Thread Aaron Ecay
Hi Eric, Bastien, Achim,

Thanks so much for the feedback.  I’ve adopted the :file-ext approach
suggested by Bastien, leaving the previous default behavior in place for
blocks with a :file argument.

2014ko apirilak 22an, Eric Schulte-ek idatzi zuen:

[...]


 One option might be to borrow naming behavior from the comment
 functionality in ob-tangle which looks like the following (from line 426
 in ob-tangle.el).

 (let (...
   (source-name
(intern (or (nth 4 info)   ; explicit #+name:
(format %s:%d; constructed from header and position
(or (ignore-errors (nth 4 
 (org-heading-components)))
No heading)
block-counter
   ...))

I’m not sure I like this approach.  It relies on counting source
blocks, so an addition/deletion of a block could change the index.
I’m worried that this can lead to the accumulation of many output
files: heading:1.ext, heading:2.ext, ... all with no clear indication
of what block they were spawned by.  It would also be possible for
the result links in the buffer to become inconsistent with the actual
block:auto-generated name mapping.

I think I would prefer the code in this patch to do nothing in this case
(not create a :file value), but for language-specific code that needs a
:file to raise an error to prompt the user to add a name.



 2. should :output-dir apply to the :file case as well?


 If you mean should :output-dir be used as the base when :file is a
 relative pathname then I'd say yes, and I think if this isn't the
 current behavior then the current behavior should be changed.

Achim raises a backwards compatibility concern.  I am not sure how
serious it is: the default settings (no :output-dir) are backwards
compatible, and if users set that arg we ought to just give them what
they ask for.

Nonetheless, the new version of the patch conservatively obeys Achim’s
suggestion.  I can change this to your suggestion, if that is the
consensus.

To address a comment from Bastien: :output-dir accepts absolute as well
as relative directory names.  Referring to a “subdirectory” was a
mistake on my part; the docs in the new patch should be clearer.

The updated patch (now with docs and tests) is attached to this email.

Thanks again,

--
Aaron Ecay
From 4b428820432752117c60b79da0a79fd4e50e4ba1 Mon Sep 17 00:00:00 2001
From: Aaron Ecay aarone...@gmail.com
Date: Tue, 22 Apr 2014 15:13:48 -0400
Subject: [PATCH] ob-core.el: allow the auto-generation of output file names
 for src blocks.

* lisp/ob-core.el (org-babel-generate-file-param): New function.
(org-babel-get-src-block-info): Use it.
* testing/lisp/test-ob.el (test-org-babel/file-ext-and-output-dir):
New test.
* doc/org.texi (Specific header arguments): Add doc for :file-ext and
:output-dir header args.
---
 doc/org.texi   | 27 +++
 lisp/ob-core.el| 34 ++
 testing/examples/babel.org | 34 ++
 testing/lisp/test-ob.el| 14 ++
 4 files changed, 109 insertions(+)

diff --git a/doc/org.texi b/doc/org.texi
index 2546be1..79cc044 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -14406,6 +14406,8 @@ argument in lowercase letters.  The following header arguments are defined:
 be collected and handled
 * file::Specify a path for file output
 * file-desc::   Specify a description for file results
+* file-ext::Specify an extension for file output
+* output-dir::  Specify a directory to write file output to
 * dir:: Specify the default (possibly remote)
 directory for code block execution
 * exports:: Export code and/or results
@@ -14840,6 +14842,31 @@ description for file code block results which are inserted as Org mode links
 with no value the link path will be placed in both the ``link'' and the
 ``description'' portion of the Org mode link.
 
+@node file-ext
+@subsubsection @code{:file-ext}
+@cindex @code{:file-ext}, src header argument
+
+The value of the @code{:file-ext} header argument is used to provide an
+extension to write the file output to.  It is combined with the
+@code{#+NAME:} of the source block and the value of the @ref{output-dir}
+header argument to generate a complete file name.
+
+This header arg will be overridden by @code{:file}, and thus has no effect
+when the latter is specified.
+
+@node output-dir
+@subsubsection @code{:output-dir}
+@cindex @code{:output-dir}, src header argument
+
+The value of the @code{:output-dir} header argument is used to provide a
+directory to write the file output to.  It may specify an absolute directory
+(beginning with @code{/}) or a relative directory (without @code{/}).  It is
+combined with the @code{#+NAME:} of the source block and the value 

[O] Org version of texinfo manual

2014-04-27 Thread Aaron Ecay
Hello orgers,

Last year, Thomas started a project to translate the org manual to org
format, and use the ox-texinfo exporter to generate the .info and .pdf
manuals.  (email thread: http://mid.gmane.org/m1bob8cffh@tsdye.com)
It seems like that project showed promise but never was completed.  Is
there any interest in seeing it through?  As an occasional contributor,
I would certainly find it pleasanter and less time-consuming to write
docs in org rather than texinfo.

Thanks,

--
Aaron Ecay



[O] BUG in reference by ID to remote table (was Re: org babel question: reference tables in remote file)

2014-04-27 Thread William Henney
There is an apparent bug when using the ID property to refer to cells in
remote tables, which is currently the only way to refer to a table in an
external file.

This is illustrated in the attached org file.  In brief, the bug is
triggered by any ID that contains a sequence matching the regexp
-[A-Z]+[0-9]+-, which org wants to interpret as a spreadsheet-style cell
reference.

Also, it would be more user friendly if CUSTOM_ID properties could also be
used in this way.  Would that be easy to implement?

Will


On Thu, Apr 17, 2014 at 1:45 PM, Bastien b...@gnu.org wrote:

 Hi Arun,

 Arun Persaud apers...@lbl.gov writes:

  thanks for the answer. It would be nice to be able to reference tables
  in other files easily though, so some form of path:tablename would
  be great for the remote call. Is there some special ref syntax that
  could be used here?

  remote(NAME-OR-ID,REF)

 describes a reference to a table in a section, possibly in a different
 file, and the ID property is probably more stable than a filename, so
 I'd argue that what we have is enough.

 --
  Bastien




-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


remote-ref-test.org
Description: Binary data


Re: [O] Export HTML with Properties and Tags

2014-04-27 Thread Nick Dokos
Esben Stien b...@esben-stien.name writes:

 Nick Dokos ndo...@gmail.com writes:

 #+OPTIONS: prop:t

 Exactly what I needed. Thanks. 

 Is there some way to set this globally, though?

Yes - please reread my response: the second part describes how to get to the
relevant variable.

-- 
Nick