Re: [O] patch for HTML links to GNU documents

2016-03-28 Thread Richard Y. Kim
Nicolas Goaziou writes: > Hello, > > Richard Kim writes: > >> Attached patch affects how 'info' links in org mode are converted to HTML >> links. Today info links such as >> >> [[info:emacs#List Buffers]] >> >> are converted to this HTML link: >>

[O] Bug: Using CALL to evaluate elisp blocks does not show table headers [8.3.4 (release_8.3.4-686-g18b766 @ ~/org-mode/org-mode/lisp/)]

2016-03-28 Thread Shlomi Vaknin
Hey, I have an elisp source block that builds a table from some computation. When trying to #+CALL that block, the table header (before the 'hline) is simply not shown. Here is a simple reproduce on my system: -- #+name: test #+BEGIN_SRC elisp (list

Re: [O] ditaa and plantuml in PATH

2016-03-28 Thread briangpowell .
I remember looking into NixOS years ago and it was very interesting--also looked into "GNU Stow" and it may help you with PATH problems: https://www.gnu.org/software/stow GNU Stow comes with NixOS: https://github.com/NixOS/nixpkgs/tree/master/pkgs/tools/misc/stow On Mon, Mar 28, 2016 at 1:18 PM,

[O] nethack and orgmode

2016-03-28 Thread Jude DaShiell
| level \ row \ column \note \ | | | | - | | | | --

Re: [O] How to export table from a src block?

2016-03-28 Thread John Kitchin
Try this: * Export table from src-block #+name: mytable | a | b | | 1 | 2 | | 3 | 4 | #+BEGIN_SRC emacs-lisp (save-excursion (org-open-link-from-string "[[mytable]]") (while (not (org-table-p)) (forward-line)) (org-table-export "mytable.csv" "orgtbl-to-csv")) #+END_SRC #+RESULTS: :

Re: [O] no div/id on named example blocks in html export

2016-03-28 Thread John Kitchin
I gave this a shot (I think ;). I sent patches to the mailing list adding an id attribute to three blocks: example, quote and special. Hopefully that is the right way to do it. I signed the FSF papers in April 2014, and they were approved in May 2014. Let me know if there is another way to do

[O] How to export table from a src block?

2016-03-28 Thread William Denton
I have a big table (with #+NAME: mytable). I can export it to a CSV file by hand by having the point somewhere in the table and running M-x org-table-export but how could I do this from a source block? I've got one line so far, but how would I get it to be in the table when it runs?

[O] [PATCH 3/3] add html attributes to special blocks.

2016-03-28 Thread John Kitchin
Enables #+attr_html and puts an id in when the special block is named. --- lisp/ox-html.el | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 5bdfc14..da67958 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el

[O] [PATCH 1/3] add id attribute to example-block on html export.

2016-03-28 Thread John Kitchin
This allows you to hyperlink to the block. --- lisp/ox-html.el | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index d07cdcc..92de209 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2370,14 +2370,23 @@ contextual

[O] [PATCH 2/3] add html attributes to quote-block

2016-03-28 Thread John Kitchin
Enables #+attr_html: and puts a id attribute when the block is named into the html element. --- lisp/ox-html.el | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 92de209..5bdfc14 100644 --- a/lisp/ox-html.el +++

Re: [O] Internal non-PROPERTY links don't export to HTML with the "a" IDs that were assigned

2016-03-28 Thread D. C. Toedt
> So what problems are you seeing (other than that the label looks funny)? The problem is that the label can vary from export to export. EXAMPLE: I added a <> target ID in the paragraph before the paragraph containing <>; the result was that <> now exports as

Re: [O] ditaa and plantuml in PATH

2016-03-28 Thread Nick Dokos
Alexey Shmalko writes: > Hi! > > I use NixOS and ditaa is globally installed. That means I have ditaa > executable in PATH but no easy way to find a ditaa.jar file. There is > no way to instruct org-ditaa to use the specified executable (it > requires java and path to the

Re: [O] Internal non-PROPERTY links don't export to HTML with the "a" IDs that were assigned

2016-03-28 Thread Nick Dokos
"D. C. Toedt" writes: > I'm using the latest update from the package updater, released 2016-03-28:   > Org-mode version 8.3.2 (release_8.3.2-164-g50a182).   > > I can best illustrate the problem with an example: > > Org source:   > > See also the [[IndemnNonAssign][Indemnity

[O] ditaa and plantuml in PATH

2016-03-28 Thread Alexey Shmalko
Hi! I use NixOS and ditaa is globally installed. That means I have ditaa executable in PATH but no easy way to find a ditaa.jar file. There is no way to instruct org-ditaa to use the specified executable (it requires java and path to the ditaa jar file). Note also that I don't have java in PATH.

Re: [O] Exporting usenet links

2016-03-28 Thread Michael Welle
Hello, Eric S Fraga wrote: > > On Saturday, 26 Mar 2016 at 13:12, Eric S Fraga wrote: > > On Saturday, 26 Mar 2016 at 13:55, Michael Welle wrote: > >> Hello, > >> > > > >> exporting usenet links to html seems to be broken: > >> > >> [[news:de.sci.electronics][dse]] > > > > Not broken per se in

Re: [O] headers on special blocks

2016-03-28 Thread John Kitchin
If anyone is interested, here is a way I am using headers on special blocks: http://kitchingroup.cheme.cmu.edu/blog/2016/03/28/Another-approach-to-embedded-molecular-data-in-org-mode/ The org-source can be found here:

[O] Bug: Active Timestamps in HTML Export [8.3.4 (8.3.4-28-gf9464d-elpa @ c:/Users/xxxx/AppData/Roaming/.emacs.d/elpa/org-20160328/)]

2016-03-28 Thread Keith Sutton
on LEG570 Package: Org-mode version 8.3.4 (8.3.4-28-gf9464d-elpa @ c:/Users/sut89614/AppData/Roaming/.emacs.d/elpa/org-20160328/) -- Keith Sutton

[O] using info in a filter

2016-03-28 Thread John Kitchin
How does one use the info in a filter? e.g. in (defun my-block-filter (data backend info)) data is the transcoded block string, and I want to add something to it based on say the type of block, name and header of the corresponding block. Is it possible to get to that from the info? Or is this a

Re: [O] first #+LATEX_HEADER: in SETUPFILE not correctly exported and causes Missing \begin{document} error

2016-03-28 Thread Charles Millar
On 03/26/2016 01:14 PM, Eric S Fraga wrote: On Saturday, 26 Mar 2016 at 10:15, Charles Millar wrote: [...] I was not clear - I ran the exports after I made the correction to "mysetup", i.e. \newcommand{\\foo}{bar} but I am confused: why the \\ for foo but \ for newcommand? What is the

[O] Internal non-PROPERTY links don't export to HTML with the "a" IDs that were assigned

2016-03-28 Thread D. C. Toedt
I'm using the latest update from the package updater, released 2016-03-28: Org-mode version 8.3.2 (release_8.3.2-164-g50a182). I can best illustrate the problem with an example: *Org source: * See also the [[IndemnNonAssign][Indemnity rights not > ​​ > assignable]] provision. *​Former

Re: [O] headers on special blocks

2016-03-28 Thread Nicolas Goaziou
Hello, John Kitchin writes: > I am playing around with storing data in special blocks. For example, > here is an example bit of "data" which is the CH4 (methane) molecule in > SMILES format in a MOLECULE block. > > > #+header: :format smiles > #+name: methane-smiles >

[O] headers on special blocks

2016-03-28 Thread John Kitchin
Hi all, I am playing around with storing data in special blocks. For example, here is an example bit of "data" which is the CH4 (methane) molecule in SMILES format in a MOLECULE block. #+header: :format smiles #+name: methane-smiles #+BEGIN_MOLECULE C #+END_MOLECULE Is is legal syntax to put a

Re: [O] switch parsing in babel

2016-03-28 Thread John Kitchin
Nicolas Goaziou writes: > Hello, > > John Kitchin writes: > >> I am trying to make a new source block that looks like this: >> >> #+BEGIN_SRC obabel -icml -osmi >> [CH4] >> #+END_SRC >> >> This gets parsed to: >> >> (src-block >> (:language "obabel" :switches "-i"

Re: [O] no div/id on named example blocks in html export

2016-03-28 Thread Nicolas Goaziou
Hello, John Kitchin writes: > I noticed that if I make a block like this: > > #+name: methane-smiles > #+BEGIN_EXAMPLE > C > #+END_EXAMPLE > > There is no id="methane-smiles" assocated with the pre block in the HTML > export. > > The place to add it would be in

Re: [O] Exporting usenet links

2016-03-28 Thread Nicolas Goaziou
Hello, Michael Welle writes: > exporting usenet links to html seems to be broken: > > [[news:de.sci.electronics][dse]] > > becomes > > dse > > in html. Fixed. Thank you. Regards, -- Nicolas Goaziou

Re: [O] switch parsing in babel

2016-03-28 Thread Nicolas Goaziou
Hello, John Kitchin writes: > I am trying to make a new source block that looks like this: > > #+BEGIN_SRC obabel -icml -osmi > [CH4] > #+END_SRC > > This gets parsed to: > > (src-block > (:language "obabel" :switches "-i" :parameters "cml -osmi" :begin > 190 :end 240

Re: [O] patch for HTML links to GNU documents

2016-03-28 Thread Nicolas Goaziou
Hello, Richard Kim writes: > Attached patch affects how 'info' links in org mode are converted to HTML > links. Today info links such as > > [[info:emacs#List Buffers]] > > are converted to this HTML link: > > emacs#List Buffers > > With the patch applied, the HTML