org-export: Implement "ref" type links
commitaf2a46a76f6ef390e93eb34d3a7868562472d6b7
authorNicolas Goaziou <n.goaziou@gmail.com>
Sun, 19 Feb 2012 17:20:21 +0000 (19 18:20 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 19 Feb 2012 17:24:22 +0000 (19 18:24 +0100)
tree09e9acb02f60ce4759a4498c536b23649cef1100
parentdeb6e7a61eeddeb636ee01388a3e132b0e9a83e7
org-export: Implement "ref" type links

* contrib/lisp/org-element.el (org-element-link-parser): Recognize
  "ref" type links as a new type of Org link.
* contrib/lisp/org-export.el (org-export-resolve-ref-link): New
  function.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--describe-links): Do not
  describe "ref" type links at the end of each section.
(org-e-ascii-link): Handle "ref" type links.
* EXPERIMENTAL/org-e-latex.el (org-e-latex-link): Handle "ref" type
  links.

"ref" type links are Org answer to LaTeXisms like "\ref{some-label}".
Hence, [[ref:some-label]] will be replaced with the sequence number of
the element with name "#+name: some-label" during export.
EXPERIMENTAL/org-e-ascii.el
EXPERIMENTAL/org-e-latex.el
contrib/lisp/org-element.el
contrib/lisp/org-export.el