[O] Using a simpler link syntax in org-mode?

2014-02-12 Thread Aviv
I'd like to have links with the syntax [[foo bar]] go to files with the name 
foo bar.org. This would make using org-mode much more like using a personal 
local wiki.

Is this possible without breaking existing link functionality? I'd also 
ideally still be able to export to html, etc. with standard org-mode tools.

The best I've been able to do is something like: 
(setq org-link-abbrev-alist '((o . file:%s.org)))

This lets me use the syntax [[o:foo bar]], but that is more verbose, and 
looks distractingly ugly inline. 
For example: The quick brown o:fox jumps over the o:lazy_dog. 
And `[[o:foo bar][foo bar]]` is even 
more verbose to type and edit (though it reads fine in org modde).

FYI, I was asked to crosspost this from stackoverflow at 
http://stackoverflow.com/q/21085720/1137803 
(I waited several weeks with no answer; I hope that is appropriate)

Regards
- Aviv




Re: [O] adding options to the minted environment of exported source blocks in latex

2014-02-12 Thread Alan Schmitt
Hello Nicolas,

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

 Anyway :latex_options would be redundant on an #+attr_latex: line. I'll
 have a look at it when I get some spare time.

Using attr_latex would be great.

Thanks,

Alan



Re: [O] [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to

2014-02-12 Thread Nicolas Goaziou
Hello,

Erik Hetzner e...@e6h.org writes:

 I have been looking at publishing to HTML using pandoc. Because pandoc
 requires post-processing to transform the org-mode markdown output to
 other formats, it is necessary to use the post-process parameter of
 org-export-to-file. 

 I think this patch makes sense; let me know what you think.

Thanks for your patch.

Though, it is not necessary. `post-process' is meant for processing
after an asynchronous export (e.g., prepare a buffer in the current
process).

You're looking after a filter.  See

  (info (org) Advanced configuration)

for more information.


Regards,

-- 
Nicolas Goaziou



[O] verbatim and apostrophes

2014-02-12 Thread Alan Schmitt
Hello,

I want to generate some verbatim/code inline text that contains an
apostrophe (I want to talk about the ocaml type 'a ref). Unfortunately I
don't know how to do this. I tried:

- ~'a ref~
- ='a ref=
- ~\' a ref~
- =\'a ref=

The first two display everything (including the '~' or '=') but not as
code, the last two work but display the backquote.

I feel like I'm missing something obvious. Could someone enlighten me?

Thanks,

Alan



[O] Using checkboxes

2014-02-12 Thread jone...@teksavvy.com
Hello,

  I'm using org-8.2.5h that I have unpacked
in /usr/share/emacs/site-lisp and then ran make and make install.  I
have a test .org file which is made of:

- [ ] test1
 - [ ] test2

Positionning the curosr on the first line and doing C-c C-c reports
that C-c C-c is undefined.  Also, the sides of the boxes are in the
same font as the rest of the text.

What coudl be worng ?  This seems a very basic feature.

Thanks.



Re: [O] Using checkboxes (UPDATE)

2014-02-12 Thread jone...@teksavvy.com
Le mercredi, 12 février 2014 09:30:11 -0500,
jone...@teksavvy.com jone...@teksavvy.com a écrit :

 Positionning the curosr on the first line and doing C-c C-c reports
 that C-c C-c is undefined.  Also, the sides of the boxes are in the
 same font as the rest of the text.

OK, got it.  Reading the README that points to the Installation web
page.  Added:

(add-to-list 'load-path /usr/share/emacs/site-lisp/org-8.2.5h/lisp)
(add-to-list 'load-path
/usr/share/emacs/site-lisp/org-8.2.5h/contrib/lisp t)

And now it works fine !




[O] Using checkboxes: nested lists

2014-02-12 Thread jone...@teksavvy.com
Hello again,

  Is there a way to have nested lists.  The example below would have
maintest to be all marked only when all test4 items would be checked.
This is not the case now as maintest is checked 2/2 as if test4 was a
different item not at the same identation level below maintest.  

- [2/2] maintest
  - [X] test2
  - [X] test3
  - [1/2] test4
- [X] test4a
- [ ] test4b

Thanks.




[O] OT: installing pip on Windows/Cygwin (was: Wanted: volunteer to integrate REST-client (restclient.el))

2014-02-12 Thread Karl Voit
Hi John!

* John Kitchin jkitc...@andrew.cmu.edu wrote:

 windows and pip/easy_install are funny sometimes.

 I often do something like this:

 #+BEGIN_SRC python
 from setuptools.command import easy_install
 easy_install.main( [-U,requests] )
 #+END_SRC

 #+RESULTS:
 #+begin_example
 Searching for requests
 Reading http://pypi.python.org/simple/requests/
 Best match: requests 2.2.1
 Downloading
 https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e
 Processing requests-2.2.1.tar.gz
 Writing /tmp/easy_install-EWppsP/requests-2.2.1/setup.cfg
 Running requests-2.2.1/setup.py -q bdist_egg --dist-dir
 /tmp/easy_install-EWppsP/requests-2.2.1/egg-dist-tmp-xoXvDk
 Adding requests 2.2.1 to easy-install.pth file

 Installed
 /opt/kitchingroup/enthought/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/requests-2.2.1-py2.7.egg
 Processing dependencies for requests
 Finished processing dependencies for requests
 #+end_example

Ah, great idea. However, at my side, it ends up like this:

#+BEGIN_SRC python :results output
from setuptools.command import easy_install
easy_install.main( [-U,requests] )
#+END_SRC

#+RESULTS:
: Searching for requests
: Reading http://pypi.python.org/simple/requests/
: Best match: requests 2.2.1
: Downloading 
https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e
: Processing requests-2.2.1.tar.gz
: Writing 
/cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/setup.cfg
: Running requests-2.2.1/setup.py -q bdist_egg --dist-dir 
/cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-tmp-veH5jq

In Cygwin shell, I can execute easy_install pip. After that, I can execute
pip but I never get any output on pip help pip -h pip --help or pip
install requests.

I miss my Linux at work :-(

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to

2014-02-12 Thread Erik Hetzner
At Wed, 12 Feb 2014 14:02:12 +0100,
Nicolas Goaziou wrote:
 
 Hello,
 
 Erik Hetzner e...@e6h.org writes:
 
  I have been looking at publishing to HTML using pandoc. Because pandoc
  requires post-processing to transform the org-mode markdown output to
  other formats, it is necessary to use the post-process parameter of
  org-export-to-file. 
 
  I think this patch makes sense; let me know what you think.
 
 Thanks for your patch.
 
 Though, it is not necessary. `post-process' is meant for processing
 after an asynchronous export (e.g., prepare a buffer in the current
 process).
 
 You're looking after a filter.  See
 
   (info (org) Advanced configuration)
 
 for more information.

Hi Nicholas,

Thanks very much for your response (and ox.el)! I looked at filters,
but concluded they were not appropriate, because pandoc operates on
the file as a whole, and writes to a file, and can return binary
content (for example, if it is generating PDFs). It seemed equivalent
to the way that the latex exporter uses pdflatex to generate a PDF,
and the latex exported uses a post-process function.

I could be wrong, though. It would also be convenient to have access
to the info plist; in fact, I was going to write another email about
having access to the info plist in a post-process filter.

Is there a way to define a filter that operates on the entire content,
is guaranteed to run after everything else, and can handle binary
content? Thanks.

best, Erik

-- 
Sent from my free software system http://fsf.org/.



Re: [O] OT: installing pip on Windows/Cygwin (was: Wanted: volunteer to integrate REST-client (restclient.el))

2014-02-12 Thread Karl Voit
* Karl Voit devn...@karl-voit.at wrote:

 * John Kitchin jkitc...@andrew.cmu.edu wrote:

 windows and pip/easy_install are funny sometimes.

 I often do something like this:

 Ah, great idea. However, at my side, it ends up like this:

[...]

 In Cygwin shell, I can execute easy_install pip. After that, I can execute
 pip but I never get any output on pip help pip -h pip --help or pip
 install requests.

Addendum: I don't expect you to fix my issue here - I just wanted to
report that this external dependency (python and the
requests-library) is something which can not be solved on all
systems obviously (and sadly).

So far, for my use-case I am very happy with the restclient.el. From
a convenience point of view it would be perfect when I would be able
to call it via babel. But this is whining on a high level :-)

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github




Re: [O] OT: installing pip on Windows/Cygwin (was: Wanted: volunteer to integrate REST-client (restclient.el))

2014-02-12 Thread John Kitchin
I don't understand, it looks like this worked.

#+RESULTS:
: Searching for requests
: Reading http://pypi.python.org/simple/requests/
: Best match: requests 2.2.1
: Downloading
https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e
: Processing requests-2.2.1.tar.gz
: Writing
/cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/setup.cfg
: Running requests-2.2.1/setup.py -q bdist_egg --dist-dir
/cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-tmp-veH5jq

After this, are you unable to import requests?

I don't use cygwin, and maybe the funny drive paths confuse windows.

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 Wed, Feb 12, 2014 at 10:02 AM, Karl Voit devn...@karl-voit.at wrote:

 Hi John!

 * John Kitchin jkitc...@andrew.cmu.edu wrote:
 
  windows and pip/easy_install are funny sometimes.
 
  I often do something like this:
 
  #+BEGIN_SRC python
  from setuptools.command import easy_install
  easy_install.main( [-U,requests] )
  #+END_SRC
 
  #+RESULTS:
  #+begin_example
  Searching for requests
  Reading http://pypi.python.org/simple/requests/
  Best match: requests 2.2.1
  Downloading
 
 https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e
  Processing requests-2.2.1.tar.gz
  Writing /tmp/easy_install-EWppsP/requests-2.2.1/setup.cfg
  Running requests-2.2.1/setup.py -q bdist_egg --dist-dir
  /tmp/easy_install-EWppsP/requests-2.2.1/egg-dist-tmp-xoXvDk
  Adding requests 2.2.1 to easy-install.pth file
 
  Installed
 
 /opt/kitchingroup/enthought/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/requests-2.2.1-py2.7.egg
  Processing dependencies for requests
  Finished processing dependencies for requests
  #+end_example

 Ah, great idea. However, at my side, it ends up like this:

 #+BEGIN_SRC python :results output
 from setuptools.command import easy_install
 easy_install.main( [-U,requests] )
 #+END_SRC

 #+RESULTS:
 : Searching for requests
 : Reading http://pypi.python.org/simple/requests/
 : Best match: requests 2.2.1
 : Downloading
 https://pypi.python.org/packages/source/r/requests/requests-2.2.1.tar.gz#md5=ac27081135f58d1a43e4fb38258d6f4e
 : Processing requests-2.2.1.tar.gz
 : Writing
 /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/setup.cfg
 : Running requests-2.2.1/setup.py -q bdist_egg --dist-dir
 /cygdrive/c/Users/KARL~1.VOI/AppData/Local/Temp/easy_install-L3Xxcz/requests-2.2.1/egg-dist-tmp-veH5jq

 In Cygwin shell, I can execute easy_install pip. After that, I can
 execute
 pip but I never get any output on pip help pip -h pip --help or
 pip
 install requests.

 I miss my Linux at work :-(

 --
 mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
 get Memacs from https://github.com/novoid/Memacs 

 https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on
 github





Re: [O] Assumptions on user's environment

2014-02-12 Thread Karl Voit
* Samuel Wales samolog...@gmail.com wrote:
 perhaps this is possible:

   c-c ' - c-c c-x '

If you are using US_intl with digraph (deadkeys) in order to type
special characters, ' needs actually two keys: ' + SPACE

So I guess this is not that great for common commands typed often a
day.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
get Memacs from https://github.com/novoid/Memacs 

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github





Re: [O] Using a simpler link syntax in org-mode?

2014-02-12 Thread John Kitchin
you can kind of achieve this with yasnippet. I made this below:

# -*- mode: snippet -*-
# name: simple-link
# key: sl
# --
[[$1.org][$1]

to use it, you type sl, press tab, type in the file, and then tab ], and
you get your link. that may be better than typing everything out, if you
remember sl for simple link, and press tab. I tried to not have the
trailing ] typed in, but as soon as you type a character org shrinks the
link and it does not behave as you want.

As an alternative, consider writing a short emacs function that inserts
what you want.

(defun sl (link)
  (interactive sLink: )
  (insert (format [[%s.org][%s]] link link)))

Now you type M-x sl
then enter the link in the minibuffer.

What you want probably isn't feasible. How do you differentiate [[foo bar]]
from a file and a heading in the current file? Another customization
variable ;)



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 Thu, Feb 6, 2014 at 9:28 PM, Aviv orgmodegmanefeb14.z...@dfgh.netwrote:

 I'd like to have links with the syntax [[foo bar]] go to files with the
 name
 foo bar.org. This would make using org-mode much more like using a
 personal
 local wiki.

 Is this possible without breaking existing link functionality? I'd also
 ideally still be able to export to html, etc. with standard org-mode tools.

 The best I've been able to do is something like:
 (setq org-link-abbrev-alist '((o . file:%s.org)))

 This lets me use the syntax [[o:foo bar]], but that is more verbose, and
 looks distractingly ugly inline.
 For example: The quick brown o:fox jumps over the o:lazy_dog.
 And `[[o:foo bar][foo bar]]` is even
 more verbose to type and edit (though it reads fine in org modde).

 FYI, I was asked to crosspost this from stackoverflow at
 http://stackoverflow.com/q/21085720/1137803
 (I waited several weeks with no answer; I hope that is appropriate)

 Regards
 - Aviv





[O] Citation links pointing to .pdf file - zotero-bibtex-org-oxbibtex-(ebib?) [[cite:

2014-02-12 Thread Tristan Nakagawa
Hi all,

I just found out that link-format export in the ox-bibtex exporter goes
via ebib.

My workflow goes pretty much by managing my bibliography and exporting
via autozotbib to a .bib file, and citing in my org drafts so far via
the \citep{} etc. commands. the link form ([cite:]) also works.

However, the link, if clicked itself in the orgfile, opens ebib.

I found these link definitions, but I want something slightly different:
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17_2

Now I would be a happy camper if I could just click on the link and open
the pdf in the org file, while in the exported document, the link would
point to the bibliograpy, as now correctly happens...

Is it possible to define citep, citet, etc.. links to get this behaviour
done? I noticed that ebib doesn't even open the files from zotero due to
the format zotero outputs the files.

The zotero format can include various files in one entry, starts with
the full filename (which includes spaces), is separated by a colon, then
gives the full filename, and, after a semicolon, starts over for the
next attached file (e.g. for various pdfs, supp information, etc)

so the bibtex entry reads:
file = {author and author -
titleisshortenediftolong.pdf:/home/user/Zotero/storage/somethingsdfawer/author
and author - titleisshortenediftolong.pdf:application/pdf;another
file:/home/user/Zotero/storage/somethingelsezxdfce/html file or some
other.pdf:}

I guess in the case of several files there is no surefire way to
identify the correct file, but its reasonable to assume it should be the
first full path name including the authors name and ending in .pdf

so, would it be easier to just define custom links that hack-parse the
.bib file to get the right filename, without ebib? what would such a
custom link look like?

thanks a lot,

tristan



[O] ox-md generates .html links to other org files.

2014-02-12 Thread Mark Janssen
When exporting org files to .md files using the ox-md.el backend, links
like
[[file:other-file.org]] are translated to other-file.html.

I would expect this to be other-file.md instead. As it stands exporting
multiple files to markdown doesn't allow easy interlinking between them.
This can be worked around by defin-ing:

+BEGIN_SRC
 :html-extension md
+END_SRC

in the exporting project. But I think this should be fixed in the
=org-md-link= function.

I am using the following versions

GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-17 on MARVIN
Org-mode version 8.2.5h (8.2.5h-19-g0ceb68-elpa @
c:/Users/a156712/.emacs.d/elpa/org-20140210/)

Regards,
Mark


[O] taskjuggler - using gaplength or gapduration

2014-02-12 Thread frank
One issue that I am having is regarding gaplength and gapduration for 
tasks.  Under the TJ3 syntax, the command would be

 depends !!PHII {gapduration 7w} .

I added gaplength and gapduration under ' Org Taskjuggler Valid Task 
Attributes ' and added the following in my org-mode file:


*** PSF
:PROPERTIES:
:Task_id: PSF
:depends: PHII
:gaplength: 7w
:duration: 10d
:END:

The resulting export comes out:
depends !!PHII
duration 10d
gaplength 7w

which is incorrect.  What am I doing wrong.

Frank



Re: [O] terminal emulators

2014-02-12 Thread Achim Gratz
Gregor Zattler writes:
 I never used a terminal emulator which would let me use
 Shift-Control key combos.  Actually I would be very interested in
 working Shift-Ctrl key combos.

I'm not sure when and where I've had that working or I may be
misremembering another combination.  In any case, in konsole
Ctrl-Shift-. is a Hotkey and can be mapped to Ctrl-:, so whatever
application uses the terminal never gets to see that combo anyway.
Similarly in GNOME a lot of the Ctrl-Shift plane is taken up by standard
shortcuts (which you will have to disable first).  In any case, to make
it work you'd need to switch the terminal mode so that it communicates
the modifier keys out-of-band (as CSI escape sequences AFAIK) to the
application.  There's no way to have it in normal mode and be able to
send Ctrl-Shift anything since there simply aren't any codings for this.
In XTerm this can be controlled via the modifyKeys resource IIRC.  There
are other modes like the old X10 terminal mode that synthesize key
events, too.

 You are able to type C-: in an emacs running in a terminal emulator?

Right now, no.  I haven't configured this in years and thankfully it has
been even longer I've had to program through an actual serial line (at
1200baud Emacs isn't going to work well and you're very thankful for a
vi, BTW).


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

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




[O] [bug?] Actions grouped by priority

2014-02-12 Thread Sebastien Vauban
Hello,

With the following snippet, I'd expect to see *all* actions in one (and
just one) of the following lists:

- with priority #A
- with priority #B
- with priority #C
- with no priority

--8---cut here---start-8---
(add-to-list 'org-agenda-custom-commands
 '(p Actions Grouped by Priority
   ((tags-todo +PRIORITY={A})
(tags-todo +PRIORITY={B})
(tags-todo +PRIORITY={C})
(tags-todo +PRIORITY={}
--8---cut here---end---8---

While it works for the 3 first lists, the last one stays empty (while
I should see, there, the most of my actions to do).

Is this a bug?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] [bug?] Actions grouped by priority

2014-02-12 Thread Sebastien Vauban
Hello,

Sebastien Vauban wrote:
 With the following snippet, I'd expect to see *all* actions in one (and
 just one) of the following lists:

 - with priority #A
 - with priority #B
 - with priority #C
 - with no priority

 (add-to-list 'org-agenda-custom-commands
  '(p Actions Grouped by Priority
((tags-todo +PRIORITY={A})
 (tags-todo +PRIORITY={B})
 (tags-todo +PRIORITY={C})
 (tags-todo +PRIORITY={}

 While it works for the 3 first lists, the last one stays empty (while
 I should see, there, the most of my actions to do).

False alarm... Rewriting the last line as:

 (tags-todo +PRIORITY=\\

does solve the problem. Sorry for the noise.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] verbatim and apostrophes

2014-02-12 Thread Samuel Wales
org-emphasis-regexp-components

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



Re: [O] taskjuggler - using gaplength or gapduration

2014-02-12 Thread John Hendy
Looks correct to me?

:gaplength: 7w - gaplength 7w
:duration: 10d - duration 10d

Do you mean to try:

*** PSF
:PROPERTIES:
:Task_id: PSF
:depends: PHII
:gapduration: 7w
:duration: 10d
:END:

I've not used these attributes, but assuming you pasted your actual file
correctly to the email, it looks like the properties are being directly
mapped to tj attributes. Let me know if I've missed something!


Thanks,
John


On Wed, Feb 12, 2014 at 2:11 PM, frank f...@breengeosci.com wrote:

 One issue that I am having is regarding gaplength and gapduration for
 tasks.  Under the TJ3 syntax, the command would be
  depends !!PHII {gapduration 7w} .

 I added gaplength and gapduration under ' Org Taskjuggler Valid Task
 Attributes ' and added the following in my org-mode file:

 *** PSF
 :PROPERTIES:
 :Task_id: PSF
 :depends: PHII
 :gaplength: 7w
 :duration: 10d
 :END:

 The resulting export comes out:
 depends !!PHII
 duration 10d
 gaplength 7w

 which is incorrect.  What am I doing wrong.

 Frank




Re: [O] taskjuggler - using gaplength or gapduration

2014-02-12 Thread John Hendy
On Wed, Feb 12, 2014 at 2:11 PM, frank f...@breengeosci.com wrote:

 One issue that I am having is regarding gaplength and gapduration for tasks.  
 Under the TJ3 syntax, the command would be
  depends !!PHII {gapduration 7w} .

 I added gaplength and gapduration under ' Org Taskjuggler Valid Task 
 Attributes ' and added the following in my org-mode file:


Ah, my apologies. Now I understand. I think you'll need Nicholas' or
someone else's help with this regarding the tj3 exporter. The typical
mapping is simply:

- Org

:property: value

- tj3

task {
property value
}

I just re-read how gaplength and gapduration work, and you'll need new
mapping of the :property: value to the output format so it ends up in
curly braces. I didn't catch that initially. The gapduration and
gaplength docs don't really make that clear, but the depends page
does:
- http://www.taskjuggler.org/tj3/manual/depends.html

So, no, you didn't do anything wrong, I just don't think the exporter
is setup to handle this sort of mapping.


John


 *** PSF
 :PROPERTIES:
 :Task_id: PSF
 :depends: PHII
 :gaplength: 7w
 :duration: 10d
 :END:

 The resulting export comes out:
 depends !!PHII
 duration 10d
 gaplength 7w

 which is incorrect.  What am I doing wrong.

 Frank




Re: [O] taskjuggler - using gaplength or gapduration

2014-02-12 Thread Nicolas Goaziou
Hello,

frank f...@breengeosci.com writes:

 One issue that I am having is regarding gaplength and gapduration for
 tasks.  Under the TJ3 syntax, the command would be
  depends !!PHII {gapduration 7w} .

 I added gaplength and gapduration under ' Org Taskjuggler Valid Task
 Attributes ' and added the following in my org-mode file:

 *** PSF
 :PROPERTIES:
 :Task_id: PSF
 :depends: PHII
 :gaplength: 7w
 :duration: 10d
 :END:

 The resulting export comes out:
 depends !!PHII
 duration 10d
 gaplength 7w

 which is incorrect.  What am I doing wrong.

I think it is, assuming PHII is already defined in the buffer,

  :depends: PHII {gapduration 7w}



Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to

2014-02-12 Thread Nicolas Goaziou
Erik Hetzner e...@e6h.org writes:

 Thanks very much for your response (and ox.el)! I looked at filters,
 but concluded they were not appropriate, because pandoc operates on
 the file as a whole, and writes to a file, and can return binary
 content (for example, if it is generating PDFs). 

Then you're correct: filters won't help.

 It seemed equivalent to the way that the latex exporter uses pdflatex
 to generate a PDF, and the latex exported uses a post-process
 function.

Not really. If you look at `org-latex-publish-to-pdf' you will see that
publishing is done differently: the binary file is generated, then
published as an attachment.

 I could be wrong, though. It would also be convenient to have access
 to the info plist; in fact, I was going to write another email about
 having access to the info plist in a post-process filter.

 Is there a way to define a filter that operates on the entire content,
 is guaranteed to run after everything else, and can handle binary
 content? Thanks.

Sort of. `org-export-filter-final-output-functions' will get you the
final string, along with the info plist. You can use it to apply
modifications and generate the binary file. The original output can then
be discarded.


Regards,

-- 
Nicolas Goaziou



[O] bug#16734: Default value org-odt-data-dir (in Emacs) makes no sense

2014-02-12 Thread Glenn Morris
Package: emacs,org-mode
Version: 24.3.50

This refers to the version of Org mode in Emacs trunk.

./src/emacs -Q -l ox-odt
C-h v org-odt-data-dir
  - Its value is /usr/share/emacs/etc/org

This value is hard-coded (and autoloaded; why?) in org-version.el.
This value makes no sense.
For Emacs, it should be something based on data-directory.

This was pointed out before in some moderately lengthy discussion:

http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg2.html
http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00070.html

(In general, the setting of directory-related variables in ox-odt seems
rather over-engineered.)





[O] export to temporary HTML file and open

2014-02-12 Thread Erik Hetzner
Hi all,

This may be of some interest to list members, and possibly for org
mode itself.

I find myself wanting to get a nice view of org files, for printing or
otherwise, and would like to export to HTML. But I don’t want to have
a bunch of HTML files in my org directory. Here is a hack to allow you
to export to a temporary HTML file and open in a browser, for when you
don’t want to create an HTML file in your org directory.

best, Erik

(defun org-html-export-to-temp-file
  (optional async subtreep visible-only body-only ext-plist)
Export current buffer to a temporary HTML file.

If narrowing is active in the current buffer, only export its
narrowed part.

If a region is active, export that region.

A non-nil optional argument ASYNC means the process should happen
asynchronously.  The resulting file should be accessible through
the `org-export-stack' interface.

When optional argument SUBTREEP is non-nil, export the sub-tree
at point, extracting information from the headline properties
first.

When optional argument VISIBLE-ONLY is non-nil, don't export
contents of hidden elements.

When optional argument BODY-ONLY is non-nil, only write code
between \body\ and \/body\ tags.

EXT-PLIST, when provided, is a property list with external
parameters overriding Org default settings, but still inferior to
file-local settings.

Return output file's name.
  (interactive)
  (let* ((extension (concat . org-html-extension))
 (file (make-temp-file org-export nil extension))
 (org-export-coding-system org-html-coding-system))
(org-export-to-file 'html file
  async subtreep visible-only body-only ext-plist)))

(org-export-define-derived-backend 'html-temp 'html
   :menu-entry 
   '(?h 2
((?t As temporary HTML file and open
(lambda (a s v b)
  (if a (org-html-export-to-temp-file t s v b)
(org-open-file (org-html-export-to-temp-file nil s v b

-- 
Sent from my free software system http://fsf.org/.



Re: [O] [PATCH] Allow passing post-process to org-publish-org-to for use by org-export-to

2014-02-12 Thread Erik Hetzner
At Wed, 12 Feb 2014 23:55:52 +0100,
Nicolas Goaziou wrote:
 
 Not really. If you look at `org-latex-publish-to-pdf' you will see that
 publishing is done differently: the binary file is generated, then
 published as an attachment.

Hi Nicolas,

Thanks so much for your help. This looks like exactly what I need.

best, Erik

-- 
Sent from my free software system http://fsf.org/.



[O] Emacs Mac Port

2014-02-12 Thread Marcelo de Moraes Serpa
Hey guys,

If you are on a Mac, you *should* start using this:

https://github.com/railwaycat/emacs-mac-port

I've been having some serious issues with the vanilla Cocoa Emacs lately on
Mavericks, including a nasty memory leak that would somehow trigger
distnoted and put the CPU usage at 100% every hour or so.

Besides being quite stable, it has some nice usability improvements made
specifically to make Emacs integrate better with OSX. My orgmode experience
has been much better since I started using it!

Thought I'd share :)

Cheers,

Marcelo.


Re: [O] copy title text string from #+TITLE field?

2014-02-12 Thread Peter Salazar
Thanks. I do need it only on export, but even so, it doesn't seem to be
working:

http://i.imgur.com/1tMGaHz.png

Again, it's inside an HTML code block. Not sure if there's a way to make it
work inside that block?

#+BEGIN_HTML
...
div class=page-header
  h1{{{title}}}/h1
/div
...
#+END_HTML



 {{{title}}}  should do it. See

 (info (org) Macro replacement)

Actually, I'm not sure it will do: macro replacement takes place during
export, so it may or may not be enough, depending on what you really
want to do.


[O] Documentation error/bug regarding checkboxes

2014-02-12 Thread E Sabof
According to the footnote [3] on http://orgmode.org/manual/Checkboxes.html, if 
I press C-u C-c C-c on the first item of a list, all items on that list will 
get checkboxes. However only the first one does.

Evgeni



Re: [O] Documentation error/bug regarding checkboxes

2014-02-12 Thread Josiah Schwab

E Sabof esa...@gmail.com writes:

 According to the footnote [3] on
 http://orgmode.org/manual/Checkboxes.html, if I press C-u C-c C-c on
 the first item of a list, all items on that list will get
 checkboxes. However only the first one does.

Can you provide some information about your org version

+ foo
+ bar
+ baz



Re: [O] Documentation error/bug regarding checkboxes

2014-02-12 Thread Josiah Schwab
Oops!  I hit C-u C-c C-c in the wrong buffer!

I meant to say,

Can you provide some information about your org version?

I just tried C-u C-c C-c on the following list and it worked as documented.

+ foo
+ bar
+ baz

I am using the current maint branch.

Best,
Josiah


On Wed, Feb 12, 2014 at 10:42 PM, Josiah Schwab jsch...@gmail.com wrote:


 E Sabof esa...@gmail.com writes:

  According to the footnote [3] on
  http://orgmode.org/manual/Checkboxes.html, if I press C-u C-c C-c on
  the first item of a list, all items on that list will get
  checkboxes. However only the first one does.

 Can you provide some information about your org version

 + foo
 + bar
 + baz



Re: [O] verbatim and apostrophes

2014-02-12 Thread Alan Schmitt
Hello Samuel,

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

 org-emphasis-regexp-components

Thank you for the suggestion. I'm trying to make sense of it:

--8---cut here---start-8---
org-emphasis-regexp-components is a variable defined in `org.el'.
Its value is ( ('\{ -   .,:!?;'\)}\\ 
,\' . 1)

Documentation:
Components used to build the regular expression for emphasis.
This is a list with five entries.  Terminology:  In an emphasis string
like  *strong word* , we call the initial space PREMATCH, the final
space POSTMATCH, the stars MARKERS, s and d are BORDER characters
and trong wor is the body.  The different components in this variable
specify what is allowed/forbidden in each part:

pre  Chars allowed as prematch.  Beginning of line will be allowed too.
post Chars allowed as postmatch.  End of line will be allowed too.
border   The chars *forbidden* as border characters.
body-regexp  A regexp like . to match a body character.  Don't use
 non-shy groups here, and don't allow newline here.
newline  The maximum number of newlines allowed in an emphasis exp.

You need to reload Org or to restart Emacs after customizing this.
--8---cut here---end---8---

I see that body-regexp is . so the problem is not from there. I also
see that ' is forbidden as a border character, which should be fine in
my case as I'm using ~. So is the problem that ' is both in prematch
and postmatch? But in my case I use it as a body character.

So I'm afraid I don't understand why the ' in ~'a ref~ is not accepted
as a body character, and what I should do to make sure it is.

Thanks,

Alan



Re: [O] Documentation error/bug regarding checkboxes

2014-02-12 Thread E Sabof

Josiah Schwab jsch...@gmail.com writes:

 I just tried C-u C-c C-c on the following list and it worked as documented.

 + foo
 + bar
 + baz

 I am using the current maint branch.

Actually I did it like this:

+ |foo
+ bar
+ baz

If I do this instead, it works as you've said:

|+ foo
+ bar
+ baz

I've switch to the maint branch as well, for the purposes of the experiment.

Evgeni