contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;;; org-export.el --- Generic Export Engine For Org
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Copyright (C) 2012 Free Software Foundation, Inc.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;; Author: Nicolas Goaziou <n.goaziou at gmail dot com>
|
|
|
|
|
;; Keywords: outlines, hypermedia, calendar, wp
|
|
|
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; This library implements a generic export engine for Org, built on
|
|
|
|
|
;; its syntactical parser: Org Elements.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Besides that parser, the generic exporter is made of three distinct
|
|
|
|
|
;; parts:
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - The communication channel consists in a property list, which is
|
|
|
|
|
;; created and updated during the process. Its use is to offer
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; every piece of information, would it be about initial environment
|
|
|
|
|
;; or contextual data, all in a single place. The exhaustive list
|
|
|
|
|
;; of properties is given in "The Communication Channel" section of
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; this file.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - The transcoder walks the parse tree, ignores or treat as plain
|
|
|
|
|
;; text elements and objects according to export options, and
|
|
|
|
|
;; eventually calls back-end specific functions to do the real
|
|
|
|
|
;; transcoding, concatenating their return value along the way.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - The filter system is activated at the very beginning and the very
|
|
|
|
|
;; end of the export process, and each time an element or an object
|
|
|
|
|
;; has been converted. It is the entry point to fine-tune standard
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;; output from back-end transcoders. See "The Filter System"
|
|
|
|
|
;; section for more information.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; The core function is `org-export-as'. It returns the transcoded
|
|
|
|
|
;; buffer as a string.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-07-23 08:06:13 -04:00
|
|
|
|
;; An export back-end is defined with `org-export-define-backend',
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; which defines one mandatory information: his translation table.
|
|
|
|
|
;; Its value is an alist whose keys are elements and objects types and
|
|
|
|
|
;; values translator functions. See function's docstring for more
|
|
|
|
|
;; information about translators.
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;;
|
2012-07-23 08:06:13 -04:00
|
|
|
|
;; Optionally, `org-export-define-backend' can also support specific
|
|
|
|
|
;; buffer keywords, OPTION keyword's items and filters. Also refer to
|
|
|
|
|
;; function documentation for more information.
|
2012-05-18 04:18:42 -04:00
|
|
|
|
;;
|
|
|
|
|
;; If the new back-end shares most properties with another one,
|
|
|
|
|
;; `org-export-define-derived-backend' can be used to simplify the
|
|
|
|
|
;; process.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Any back-end can define its own variables. Among them, those
|
2012-07-23 08:06:13 -04:00
|
|
|
|
;; customizable should belong to the `org-export-BACKEND' group.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Tools for common tasks across back-ends are implemented in the
|
|
|
|
|
;; penultimate part of this file. A dispatcher for standard back-ends
|
|
|
|
|
;; is provided in the last one.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;;; Code:
|
2012-05-18 04:18:42 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(eval-when-compile (require 'cl))
|
|
|
|
|
(require 'org-element)
|
2012-10-30 17:21:33 -04:00
|
|
|
|
(require 'ob-exp)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-07-01 16:29:23 -04:00
|
|
|
|
(declare-function org-e-publish "org-e-publish" (project &optional force))
|
|
|
|
|
(declare-function org-e-publish-all "org-e-publish" (&optional force))
|
|
|
|
|
(declare-function org-e-publish-current-file "org-e-publish" (&optional force))
|
|
|
|
|
(declare-function org-e-publish-current-project "org-e-publish"
|
|
|
|
|
(&optional force))
|
|
|
|
|
|
|
|
|
|
(defvar org-e-publish-project-alist)
|
|
|
|
|
(defvar org-table-number-fraction)
|
|
|
|
|
(defvar org-table-number-regexp)
|
|
|
|
|
|
2012-02-23 03:13:06 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;;; Internal Variables
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Among internal variables, the most important is
|
2012-05-18 04:33:21 -04:00
|
|
|
|
;; `org-export-options-alist'. This variable define the global export
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; options, shared between every exporter, and how they are acquired.
|
|
|
|
|
|
|
|
|
|
(defconst org-export-max-depth 19
|
|
|
|
|
"Maximum nesting depth for headlines, counting from 0.")
|
|
|
|
|
|
2012-05-18 04:33:21 -04:00
|
|
|
|
(defconst org-export-options-alist
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
'((:author "AUTHOR" nil user-full-name t)
|
|
|
|
|
(:creator "CREATOR" nil org-export-creator-string)
|
|
|
|
|
(:date "DATE" nil nil t)
|
|
|
|
|
(:description "DESCRIPTION" nil nil newline)
|
|
|
|
|
(:email "EMAIL" nil user-mail-address t)
|
2012-07-04 12:38:48 -04:00
|
|
|
|
(:exclude-tags "EXCLUDE_TAGS" nil org-export-exclude-tags split)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:headline-levels nil "H" org-export-headline-levels)
|
|
|
|
|
(:keywords "KEYWORDS" nil nil space)
|
|
|
|
|
(:language "LANGUAGE" nil org-export-default-language t)
|
|
|
|
|
(:preserve-breaks nil "\\n" org-export-preserve-breaks)
|
|
|
|
|
(:section-numbers nil "num" org-export-with-section-numbers)
|
2012-07-04 12:38:48 -04:00
|
|
|
|
(:select-tags "SELECT_TAGS" nil org-export-select-tags split)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:time-stamp-file nil "timestamp" org-export-time-stamp-file)
|
|
|
|
|
(:title "TITLE" nil nil space)
|
|
|
|
|
(:with-archived-trees nil "arch" org-export-with-archived-trees)
|
|
|
|
|
(:with-author nil "author" org-export-with-author)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(:with-clocks nil "c" org-export-with-clocks)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:with-creator nil "creator" org-export-with-creator)
|
2012-11-09 05:04:07 -05:00
|
|
|
|
(:with-date nil "date" org-export-with-date)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:with-drawers nil "d" org-export-with-drawers)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:with-email nil "email" org-export-with-email)
|
|
|
|
|
(:with-emphasize nil "*" org-export-with-emphasize)
|
|
|
|
|
(:with-entities nil "e" org-export-with-entities)
|
|
|
|
|
(:with-fixed-width nil ":" org-export-with-fixed-width)
|
|
|
|
|
(:with-footnotes nil "f" org-export-with-footnotes)
|
2012-08-16 06:46:49 -04:00
|
|
|
|
(:with-inlinetasks nil "inline" org-export-with-inlinetasks)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(:with-plannings nil "p" org-export-with-planning)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:with-priority nil "pri" org-export-with-priority)
|
2012-10-25 17:54:53 -04:00
|
|
|
|
(:with-smart-quotes nil "'" org-export-with-smart-quotes)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:with-special-strings nil "-" org-export-with-special-strings)
|
2012-08-27 06:31:05 -04:00
|
|
|
|
(:with-statistics-cookies nil "stat" org-export-with-statistics-cookies)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(:with-sub-superscript nil "^" org-export-with-sub-superscripts)
|
|
|
|
|
(:with-toc nil "toc" org-export-with-toc)
|
|
|
|
|
(:with-tables nil "|" org-export-with-tables)
|
|
|
|
|
(:with-tags nil "tags" org-export-with-tags)
|
|
|
|
|
(:with-tasks nil "tasks" org-export-with-tasks)
|
|
|
|
|
(:with-timestamps nil "<" org-export-with-timestamps)
|
|
|
|
|
(:with-todo-keywords nil "todo" org-export-with-todo-keywords))
|
|
|
|
|
"Alist between export properties and ways to set them.
|
|
|
|
|
|
2012-04-27 18:57:38 -04:00
|
|
|
|
The CAR of the alist is the property name, and the CDR is a list
|
|
|
|
|
like (KEYWORD OPTION DEFAULT BEHAVIOUR) where:
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-04 17:30:23 -04:00
|
|
|
|
KEYWORD is a string representing a buffer keyword, or nil. Each
|
|
|
|
|
property defined this way can also be set, during subtree
|
|
|
|
|
export, through an headline property named after the keyword
|
|
|
|
|
with the \"EXPORT_\" prefix (i.e. DATE keyword and EXPORT_DATE
|
|
|
|
|
property).
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
OPTION is a string that could be found in an #+OPTIONS: line.
|
|
|
|
|
DEFAULT is the default value for the property.
|
|
|
|
|
BEHAVIOUR determine how Org should handle multiple keywords for
|
2012-07-04 17:30:23 -04:00
|
|
|
|
the same property. It is a symbol among:
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
nil Keep old value and discard the new one.
|
|
|
|
|
t Replace old value with the new one.
|
|
|
|
|
`space' Concatenate the values, separating them with a space.
|
|
|
|
|
`newline' Concatenate the values, separating them with
|
2011-12-09 08:38:36 -05:00
|
|
|
|
a newline.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
`split' Split values at white spaces, and cons them to the
|
2011-12-09 08:38:36 -05:00
|
|
|
|
previous list.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2011-11-25 13:33:23 -05:00
|
|
|
|
KEYWORD and OPTION have precedence over DEFAULT.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-23 13:32:57 -04:00
|
|
|
|
All these properties should be back-end agnostic. Back-end
|
|
|
|
|
specific properties are set through `org-export-define-backend'.
|
|
|
|
|
Properties redefined there have precedence over these.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-10-30 11:03:59 -04:00
|
|
|
|
(defconst org-export-special-keywords '("FILETAGS" "SETUP_FILE" "OPTIONS")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"List of in-buffer keywords that require special treatment.
|
|
|
|
|
These keywords are not directly associated to a property. The
|
|
|
|
|
way they are handled must be hard-coded into
|
2012-07-24 10:04:35 -04:00
|
|
|
|
`org-export--get-inbuffer-options' function.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defconst org-export-filters-alist
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
'((:filter-bold . org-export-filter-bold-functions)
|
|
|
|
|
(:filter-babel-call . org-export-filter-babel-call-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-center-block . org-export-filter-center-block-functions)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(:filter-clock . org-export-filter-clock-functions)
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
(:filter-code . org-export-filter-code-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-comment . org-export-filter-comment-functions)
|
|
|
|
|
(:filter-comment-block . org-export-filter-comment-block-functions)
|
2012-10-28 18:00:04 -04:00
|
|
|
|
(:filter-diary-sexp . org-export-filter-diary-sexp-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-drawer . org-export-filter-drawer-functions)
|
|
|
|
|
(:filter-dynamic-block . org-export-filter-dynamic-block-functions)
|
|
|
|
|
(:filter-entity . org-export-filter-entity-functions)
|
|
|
|
|
(:filter-example-block . org-export-filter-example-block-functions)
|
|
|
|
|
(:filter-export-block . org-export-filter-export-block-functions)
|
|
|
|
|
(:filter-export-snippet . org-export-filter-export-snippet-functions)
|
|
|
|
|
(:filter-final-output . org-export-filter-final-output-functions)
|
|
|
|
|
(:filter-fixed-width . org-export-filter-fixed-width-functions)
|
|
|
|
|
(:filter-footnote-definition . org-export-filter-footnote-definition-functions)
|
|
|
|
|
(:filter-footnote-reference . org-export-filter-footnote-reference-functions)
|
|
|
|
|
(:filter-headline . org-export-filter-headline-functions)
|
|
|
|
|
(:filter-horizontal-rule . org-export-filter-horizontal-rule-functions)
|
|
|
|
|
(:filter-inline-babel-call . org-export-filter-inline-babel-call-functions)
|
|
|
|
|
(:filter-inline-src-block . org-export-filter-inline-src-block-functions)
|
|
|
|
|
(:filter-inlinetask . org-export-filter-inlinetask-functions)
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
(:filter-italic . org-export-filter-italic-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-item . org-export-filter-item-functions)
|
|
|
|
|
(:filter-keyword . org-export-filter-keyword-functions)
|
|
|
|
|
(:filter-latex-environment . org-export-filter-latex-environment-functions)
|
|
|
|
|
(:filter-latex-fragment . org-export-filter-latex-fragment-functions)
|
|
|
|
|
(:filter-line-break . org-export-filter-line-break-functions)
|
|
|
|
|
(:filter-link . org-export-filter-link-functions)
|
|
|
|
|
(:filter-macro . org-export-filter-macro-functions)
|
2012-09-23 16:50:33 -04:00
|
|
|
|
(:filter-node-property . org-export-filter-node-property-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-paragraph . org-export-filter-paragraph-functions)
|
|
|
|
|
(:filter-parse-tree . org-export-filter-parse-tree-functions)
|
|
|
|
|
(:filter-plain-list . org-export-filter-plain-list-functions)
|
|
|
|
|
(:filter-plain-text . org-export-filter-plain-text-functions)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(:filter-planning . org-export-filter-planning-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-property-drawer . org-export-filter-property-drawer-functions)
|
|
|
|
|
(:filter-quote-block . org-export-filter-quote-block-functions)
|
|
|
|
|
(:filter-quote-section . org-export-filter-quote-section-functions)
|
|
|
|
|
(:filter-radio-target . org-export-filter-radio-target-functions)
|
|
|
|
|
(:filter-section . org-export-filter-section-functions)
|
|
|
|
|
(:filter-special-block . org-export-filter-special-block-functions)
|
|
|
|
|
(:filter-src-block . org-export-filter-src-block-functions)
|
|
|
|
|
(:filter-statistics-cookie . org-export-filter-statistics-cookie-functions)
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
(:filter-strike-through . org-export-filter-strike-through-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-subscript . org-export-filter-subscript-functions)
|
|
|
|
|
(:filter-superscript . org-export-filter-superscript-functions)
|
|
|
|
|
(:filter-table . org-export-filter-table-functions)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(:filter-table-cell . org-export-filter-table-cell-functions)
|
|
|
|
|
(:filter-table-row . org-export-filter-table-row-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-target . org-export-filter-target-functions)
|
2012-04-28 20:23:09 -04:00
|
|
|
|
(:filter-timestamp . org-export-filter-timestamp-functions)
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
(:filter-underline . org-export-filter-underline-functions)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(:filter-verbatim . org-export-filter-verbatim-functions)
|
|
|
|
|
(:filter-verse-block . org-export-filter-verse-block-functions))
|
|
|
|
|
"Alist between filters properties and initial values.
|
|
|
|
|
|
|
|
|
|
The key of each association is a property name accessible through
|
2012-07-05 12:06:14 -04:00
|
|
|
|
the communication channel. Its value is a configurable global
|
2012-03-19 16:38:12 -04:00
|
|
|
|
variable defining initial filters.
|
|
|
|
|
|
|
|
|
|
This list is meant to install user specified filters. Back-end
|
|
|
|
|
developers may install their own filters using
|
2012-07-23 13:32:57 -04:00
|
|
|
|
`org-export-define-backend'. Filters defined there will always
|
|
|
|
|
be prepended to the current list, so they always get applied
|
2012-03-19 16:38:12 -04:00
|
|
|
|
first.")
|
|
|
|
|
|
|
|
|
|
(defconst org-export-default-inline-image-rule
|
|
|
|
|
`(("file" .
|
|
|
|
|
,(format "\\.%s\\'"
|
|
|
|
|
(regexp-opt
|
|
|
|
|
'("png" "jpeg" "jpg" "gif" "tiff" "tif" "xbm"
|
|
|
|
|
"xpm" "pbm" "pgm" "ppm") t))))
|
|
|
|
|
"Default rule for link matching an inline image.
|
|
|
|
|
This rule applies to links with no description. By default, it
|
|
|
|
|
will be considered as an inline image if it targets a local file
|
|
|
|
|
whose extension is either \"png\", \"jpeg\", \"jpg\", \"gif\",
|
|
|
|
|
\"tiff\", \"tif\", \"xbm\", \"xpm\", \"pbm\", \"pgm\" or \"ppm\".
|
|
|
|
|
See `org-export-inline-image-p' for more information about
|
|
|
|
|
rules.")
|
|
|
|
|
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(defvar org-export-registered-backends nil
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
"List of backends currently available in the exporter.
|
|
|
|
|
|
|
|
|
|
A backend is stored as a list where CAR is its name, as a symbol,
|
|
|
|
|
and CDR is a plist with the following properties:
|
|
|
|
|
`:filters-alist', `:menu-entry', `:options-alist' and
|
|
|
|
|
`:translate-alist'.
|
|
|
|
|
|
|
|
|
|
This variable is set with `org-export-define-backend' and
|
|
|
|
|
`org-export-define-derived-backend' functions.")
|
|
|
|
|
|
2012-02-15 05:08:10 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;;; User-configurable Variables
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Configuration for the masses.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
;; They should never be accessed directly, as their value is to be
|
2012-05-18 04:33:21 -04:00
|
|
|
|
;; stored in a property list (cf. `org-export-options-alist').
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
;; Back-ends will read their value from there instead.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defgroup org-export nil
|
|
|
|
|
"Options for exporting Org mode files."
|
|
|
|
|
:tag "Org Export"
|
|
|
|
|
:group 'org)
|
|
|
|
|
|
|
|
|
|
(defgroup org-export-general nil
|
|
|
|
|
"General options for export engine."
|
|
|
|
|
:tag "Org Export General"
|
|
|
|
|
:group 'org-export)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-archived-trees 'headline
|
|
|
|
|
"Whether sub-trees with the ARCHIVE tag should be exported.
|
|
|
|
|
|
|
|
|
|
This can have three different values:
|
|
|
|
|
nil Do not export, pretend this tree is not present.
|
|
|
|
|
t Do export the entire tree.
|
|
|
|
|
`headline' Only export the headline, but skip the tree below it.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"arch:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "Not at all" nil)
|
|
|
|
|
(const :tag "Headline only" 'headline)
|
|
|
|
|
(const :tag "Entirely" t)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-author t
|
|
|
|
|
"Non-nil means insert author name into the exported file.
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"author:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(defcustom org-export-with-clocks nil
|
|
|
|
|
"Non-nil means export CLOCK keywords.
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"c:t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defcustom org-export-with-creator 'comment
|
|
|
|
|
"Non-nil means the postamble should contain a creator sentence.
|
|
|
|
|
|
|
|
|
|
The sentence can be set in `org-export-creator-string' and
|
|
|
|
|
defaults to \"Generated by Org mode XX in Emacs XXX.\".
|
|
|
|
|
|
|
|
|
|
If the value is `comment' insert it as a comment."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "No creator sentence" nil)
|
|
|
|
|
(const :tag "Sentence as a comment" 'comment)
|
|
|
|
|
(const :tag "Insert the sentence" t)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-11-09 05:04:07 -05:00
|
|
|
|
(defcustom org-export-with-date t
|
|
|
|
|
"Non-nil means insert date in the exported document.
|
|
|
|
|
This options can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"date:nil\".")
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defcustom org-export-creator-string
|
2012-07-06 03:09:31 -04:00
|
|
|
|
(format "Generated by Org mode %s in Emacs %s."
|
2012-04-29 09:52:14 -04:00
|
|
|
|
(if (fboundp 'org-version) (org-version) "(Unknown)")
|
2012-04-22 04:03:31 -04:00
|
|
|
|
emacs-version)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"String to insert at the end of the generated document."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(string :tag "Creator string"))
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defcustom org-export-with-drawers t
|
|
|
|
|
"Non-nil means export contents of standard drawers.
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
When t, all drawers are exported. This may also be a list of
|
2012-03-19 16:38:12 -04:00
|
|
|
|
drawer names to export. This variable doesn't apply to
|
|
|
|
|
properties drawers.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"d:nil\"."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "All drawers" t)
|
|
|
|
|
(const :tag "None" nil)
|
|
|
|
|
(repeat :tag "Selected drawers"
|
|
|
|
|
(string :tag "Drawer name"))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-email nil
|
|
|
|
|
"Non-nil means insert author email into the exported file.
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"email:t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-emphasize t
|
2012-11-28 07:34:22 -05:00
|
|
|
|
"Non-nil means interpret *word*, /word/, _word_ and +word+.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
If the export target supports emphasizing text, the word will be
|
2012-11-28 07:34:22 -05:00
|
|
|
|
typeset in bold, italic, with an underline or strike-through,
|
|
|
|
|
respectively.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line, e.g. \"*:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-exclude-tags '("noexport")
|
|
|
|
|
"Tags that exclude a tree from export.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
All trees carrying any of these tags will be excluded from
|
|
|
|
|
export. This is without condition, so even subtrees inside that
|
2012-03-19 16:38:12 -04:00
|
|
|
|
carry one of the `org-export-select-tags' will be removed.
|
|
|
|
|
|
2012-07-05 17:42:09 -04:00
|
|
|
|
This option can also be set with the #+EXCLUDE_TAGS: keyword."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(repeat (string :tag "Tag")))
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-fixed-width t
|
|
|
|
|
"Non-nil means lines starting with \":\" will be in fixed width font.
|
|
|
|
|
|
|
|
|
|
This can be used to have pre-formatted text, fragments of code
|
|
|
|
|
etc. For example:
|
|
|
|
|
: ;; Some Lisp examples
|
|
|
|
|
: (while (defc cnt)
|
|
|
|
|
: (ding))
|
|
|
|
|
will be looking just like this in also HTML. See also the QUOTE
|
|
|
|
|
keyword. Not all export backends support this.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line, e.g. \"::nil\"."
|
|
|
|
|
:group 'org-export-translation
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-footnotes t
|
|
|
|
|
"Non-nil means Org footnotes should be exported.
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"f:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-headline-levels 3
|
|
|
|
|
"The last level which is still exported as a headline.
|
|
|
|
|
|
2012-08-16 06:46:49 -04:00
|
|
|
|
Inferior levels will produce itemize lists when exported.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line, e.g. \"H:2\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'integer)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-default-language "en"
|
|
|
|
|
"The default language for export and clocktable translations, as a string.
|
|
|
|
|
This may have an association in
|
|
|
|
|
`org-clock-clocktable-language-setup'."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(string :tag "Language"))
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-preserve-breaks nil
|
|
|
|
|
"Non-nil means preserve all line breaks when exporting.
|
|
|
|
|
|
|
|
|
|
Normally, in HTML output paragraphs will be reformatted.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"\\n:t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-entities t
|
|
|
|
|
"Non-nil means interpret entities when exporting.
|
|
|
|
|
|
|
|
|
|
For example, HTML export converts \\alpha to α and \\AA to
|
|
|
|
|
Å.
|
|
|
|
|
|
|
|
|
|
For a list of supported names, see the constant `org-entities'
|
|
|
|
|
and the user option `org-entities-user'.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"e:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2012-08-16 06:46:49 -04:00
|
|
|
|
(defcustom org-export-with-inlinetasks t
|
|
|
|
|
"Non-nil means inlinetasks should be exported.
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"inline:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(defcustom org-export-with-planning nil
|
|
|
|
|
"Non-nil means include planning info in export.
|
|
|
|
|
This option can also be set with the #+OPTIONS: line,
|
|
|
|
|
e.g. \"p:t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defcustom org-export-with-priority nil
|
|
|
|
|
"Non-nil means include priority cookies in export.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"pri:t\"."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-section-numbers t
|
|
|
|
|
"Non-nil means add section numbers to headlines when exporting.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
When set to an integer n, numbering will only happen for
|
|
|
|
|
headlines whose relative level is higher or equal to n.
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"num:t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-select-tags '("export")
|
|
|
|
|
"Tags that select a tree for export.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
If any such tag is found in a buffer, all trees that do not carry
|
2012-03-19 16:38:12 -04:00
|
|
|
|
one of these tags will be ignored during export. Inside trees
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
that are selected like this, you can still deselect a subtree by
|
2012-03-19 16:38:12 -04:00
|
|
|
|
tagging it with one of the `org-export-exclude-tags'.
|
|
|
|
|
|
2012-07-05 17:42:09 -04:00
|
|
|
|
This option can also be set with the #+SELECT_TAGS: keyword."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(repeat (string :tag "Tag")))
|
|
|
|
|
|
2012-10-25 17:54:53 -04:00
|
|
|
|
(defcustom org-export-with-smart-quotes nil
|
|
|
|
|
"Non-nil means activate smart quotes during export.
|
|
|
|
|
This option can also be set with the #+OPTIONS: line,
|
|
|
|
|
e.g. \"':t\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defcustom org-export-with-special-strings t
|
2012-08-27 08:17:27 -04:00
|
|
|
|
"Non-nil means interpret \"\\-\", \"--\" and \"---\" for export.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
When this option is turned on, these strings will be exported as:
|
|
|
|
|
|
2012-08-27 08:17:27 -04:00
|
|
|
|
Org HTML LaTeX UTF-8
|
|
|
|
|
-----+----------+--------+-------
|
|
|
|
|
\\- ­ \\-
|
|
|
|
|
-- – -- –
|
|
|
|
|
--- — --- —
|
|
|
|
|
... … \\ldots …
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"-:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2012-08-27 06:31:05 -04:00
|
|
|
|
(defcustom org-export-with-statistics-cookies t
|
|
|
|
|
"Non-nil means include statistics cookies in export.
|
|
|
|
|
This option can also be set with the #+OPTIONS: line,
|
|
|
|
|
e.g. \"stat:nil\""
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defcustom org-export-with-sub-superscripts t
|
|
|
|
|
"Non-nil means interpret \"_\" and \"^\" for export.
|
|
|
|
|
|
|
|
|
|
When this option is turned on, you can use TeX-like syntax for
|
|
|
|
|
sub- and superscripts. Several characters after \"_\" or \"^\"
|
|
|
|
|
will be considered as a single item - so grouping with {} is
|
|
|
|
|
normally not needed. For example, the following things will be
|
|
|
|
|
parsed as single sub- or superscripts.
|
|
|
|
|
|
|
|
|
|
10^24 or 10^tau several digits will be considered 1 item.
|
|
|
|
|
10^-12 or 10^-tau a leading sign with digits or a word
|
|
|
|
|
x^2-y^3 will be read as x^2 - y^3, because items are
|
2011-12-09 08:38:36 -05:00
|
|
|
|
terminated by almost any nonword/nondigit char.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
x_{i^2} or x^(2-i) braces or parenthesis do grouping.
|
|
|
|
|
|
|
|
|
|
Still, ambiguity is possible - so when in doubt use {} to enclose
|
|
|
|
|
the sub/superscript. If you set this variable to the symbol
|
|
|
|
|
`{}', the braces are *required* in order to trigger
|
|
|
|
|
interpretations as sub/superscript. This can be helpful in
|
|
|
|
|
documents that need \"_\" frequently in plain text.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"^:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "Interpret them" t)
|
|
|
|
|
(const :tag "Curly brackets only" {})
|
|
|
|
|
(const :tag "Do not interpret them" nil)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-toc t
|
|
|
|
|
"Non-nil means create a table of contents in exported files.
|
|
|
|
|
|
|
|
|
|
The TOC contains headlines with levels up
|
|
|
|
|
to`org-export-headline-levels'. When an integer, include levels
|
|
|
|
|
up to N in the toc, this may then be different from
|
|
|
|
|
`org-export-headline-levels', but it will not be allowed to be
|
|
|
|
|
larger than the number of headline levels. When nil, no table of
|
|
|
|
|
contents is made.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"toc:nil\" or \"toc:3\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "No Table of Contents" nil)
|
|
|
|
|
(const :tag "Full Table of Contents" t)
|
|
|
|
|
(integer :tag "TOC to level")))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-tables t
|
|
|
|
|
"If non-nil, lines starting with \"|\" define a table.
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
|
|
| Name | Address | Birthday |
|
|
|
|
|
|-------------+----------+-----------|
|
|
|
|
|
| Arthur Dent | England | 29.2.2100 |
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line, e.g. \"|:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-tags t
|
|
|
|
|
"If nil, do not export tags, just remove them from headlines.
|
|
|
|
|
|
|
|
|
|
If this is the symbol `not-in-toc', tags will be removed from
|
|
|
|
|
table of contents entries, but still be shown in the headlines of
|
|
|
|
|
the document.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"tags:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "Off" nil)
|
|
|
|
|
(const :tag "Not in TOC" not-in-toc)
|
|
|
|
|
(const :tag "On" t)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-tasks t
|
|
|
|
|
"Non-nil means include TODO items for export.
|
2012-10-30 11:28:14 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
This may have the following values:
|
|
|
|
|
t include tasks independent of state.
|
2012-10-30 11:28:14 -04:00
|
|
|
|
`todo' include only tasks that are not yet done.
|
|
|
|
|
`done' include only tasks that are already done.
|
|
|
|
|
nil ignore all tasks.
|
|
|
|
|
list of keywords include tasks with these keywords.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"tasks:nil\"."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "All tasks" t)
|
|
|
|
|
(const :tag "No tasks" nil)
|
|
|
|
|
(const :tag "Not-done tasks" todo)
|
|
|
|
|
(const :tag "Only done tasks" done)
|
|
|
|
|
(repeat :tag "Specific TODO keywords"
|
|
|
|
|
(string :tag "Keyword"))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-time-stamp-file t
|
|
|
|
|
"Non-nil means insert a time stamp into the exported file.
|
|
|
|
|
The time stamp shows when the file was created.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line,
|
|
|
|
|
e.g. \"timestamp:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-timestamps t
|
2012-04-29 16:55:37 -04:00
|
|
|
|
"Non nil means allow timestamps in export.
|
|
|
|
|
|
|
|
|
|
It can be set to `active', `inactive', t or nil, in order to
|
|
|
|
|
export, respectively, only active timestamps, only inactive ones,
|
|
|
|
|
all of them or none.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the #+OPTIONS line, e.g.
|
|
|
|
|
\"<:nil\"."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
2012-04-29 16:55:37 -04:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "All timestamps" t)
|
|
|
|
|
(const :tag "Only active timestamps" active)
|
|
|
|
|
(const :tag "Only inactive timestamps" inactive)
|
|
|
|
|
(const :tag "No timestamp" nil)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-todo-keywords t
|
|
|
|
|
"Non-nil means include TODO keywords in export.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
When nil, remove all these keywords from the export."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-allow-BIND 'confirm
|
|
|
|
|
"Non-nil means allow #+BIND to define local variable values for export.
|
|
|
|
|
This is a potential security risk, which is why the user must
|
|
|
|
|
confirm the use of these lines."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "Never" nil)
|
|
|
|
|
(const :tag "Always" t)
|
|
|
|
|
(const :tag "Ask a confirmation for each file" confirm)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-snippet-translation-alist nil
|
|
|
|
|
"Alist between export snippets back-ends and exporter back-ends.
|
|
|
|
|
|
|
|
|
|
This variable allows to provide shortcuts for export snippets.
|
|
|
|
|
|
2012-06-30 04:01:28 -04:00
|
|
|
|
For example, with a value of '\(\(\"h\" . \"e-html\"\)\), the
|
|
|
|
|
HTML back-end will recognize the contents of \"@@h:<b>@@\" as
|
|
|
|
|
HTML code while every other back-end will ignore it."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cons
|
|
|
|
|
(string :tag "Shortcut")
|
|
|
|
|
(string :tag "Back-end"))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defcustom org-export-coding-system nil
|
|
|
|
|
"Coding system for the exported file."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'coding-system)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-copy-to-kill-ring t
|
|
|
|
|
"Non-nil means exported stuff will also be pushed onto the kill ring."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-initial-scope 'buffer
|
|
|
|
|
"The initial scope when exporting with `org-export-dispatch'.
|
|
|
|
|
This variable can be either set to `buffer' or `subtree'."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "Export current buffer" 'buffer)
|
|
|
|
|
(const :tag "Export current subtree" 'subtree)))
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-show-temporary-export-buffer t
|
|
|
|
|
"Non-nil means show buffer after exporting to temp buffer.
|
|
|
|
|
When Org exports to a file, the buffer visiting that file is ever
|
2012-04-27 18:57:38 -04:00
|
|
|
|
shown, but remains buried. However, when exporting to
|
|
|
|
|
a temporary buffer, that buffer is popped up in a second window.
|
|
|
|
|
When this variable is nil, the buffer remains buried also in
|
|
|
|
|
these cases."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
(defcustom org-export-dispatch-use-expert-ui nil
|
|
|
|
|
"Non-nil means using a non-intrusive `org-export-dispatch'.
|
|
|
|
|
In that case, no help buffer is displayed. Though, an indicator
|
2012-10-11 15:30:12 -04:00
|
|
|
|
for current export scope is added to the prompt (\"b\" when
|
2012-03-19 16:38:12 -04:00
|
|
|
|
output is restricted to body only, \"s\" when it is restricted to
|
2012-10-11 15:30:12 -04:00
|
|
|
|
the current subtree, \"v\" when only visible elements are
|
|
|
|
|
considered for export and \"f\" when publishing functions should
|
|
|
|
|
be passed the FORCE argument). Also, \[?] allows to switch back
|
|
|
|
|
to standard mode."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;;; Defining Back-ends
|
2012-09-24 16:35:55 -04:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-define-backend' is the standard way to define an export
|
|
|
|
|
;; back-end. It allows to specify translators, filters, buffer
|
|
|
|
|
;; options and a menu entry. If the new back-end shares translators
|
|
|
|
|
;; with another back-end, `org-export-define-derived-backend' may be
|
|
|
|
|
;; used instead.
|
|
|
|
|
;;
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Internally, a back-end is stored as a list, of which CAR is the
|
|
|
|
|
;; name of the back-end, as a symbol, and CDR a plist. Accessors to
|
|
|
|
|
;; properties of a given back-end are: `org-export-backend-filters',
|
|
|
|
|
;; `org-export-backend-menu', `org-export-backend-options' and
|
|
|
|
|
;; `org-export-backend-translate-table'.
|
|
|
|
|
;;
|
2012-09-24 16:35:55 -04:00
|
|
|
|
;; Eventually `org-export-barf-if-invalid-backend' returns an error
|
|
|
|
|
;; when a given back-end hasn't been registered yet.
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
2012-07-23 08:06:13 -04:00
|
|
|
|
(defmacro org-export-define-backend (backend translators &rest body)
|
|
|
|
|
"Define a new back-end BACKEND.
|
|
|
|
|
|
|
|
|
|
TRANSLATORS is an alist between object or element types and
|
|
|
|
|
functions handling them.
|
|
|
|
|
|
|
|
|
|
These functions should return a string without any trailing
|
|
|
|
|
space, or nil. They must accept three arguments: the object or
|
|
|
|
|
element itself, its contents or nil when it isn't recursive and
|
|
|
|
|
the property list used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Contents, when not nil, are stripped from any global indentation
|
|
|
|
|
\(although the relative one is preserved). They also always end
|
|
|
|
|
with a single newline character.
|
|
|
|
|
|
|
|
|
|
If, for a given type, no function is found, that element or
|
|
|
|
|
object type will simply be ignored, along with any blank line or
|
|
|
|
|
white space at its end. The same will happen if the function
|
|
|
|
|
returns the nil value. If that function returns the empty
|
|
|
|
|
string, the type will be ignored, but the blank lines or white
|
|
|
|
|
spaces will be kept.
|
|
|
|
|
|
|
|
|
|
In addition to element and object types, one function can be
|
|
|
|
|
associated to the `template' symbol and another one to the
|
|
|
|
|
`plain-text' symbol.
|
|
|
|
|
|
|
|
|
|
The former returns the final transcoded string, and can be used
|
|
|
|
|
to add a preamble and a postamble to document's body. It must
|
|
|
|
|
accept two arguments: the transcoded string and the property list
|
|
|
|
|
containing export options.
|
|
|
|
|
|
|
|
|
|
The latter, when defined, is to be called on every text not
|
|
|
|
|
recognized as an element or an object. It must accept two
|
|
|
|
|
arguments: the text string and the information channel. It is an
|
|
|
|
|
appropriate place to protect special chars relative to the
|
|
|
|
|
back-end.
|
|
|
|
|
|
|
|
|
|
BODY can start with pre-defined keyword arguments. The following
|
|
|
|
|
keywords are understood:
|
|
|
|
|
|
|
|
|
|
:export-block
|
|
|
|
|
|
|
|
|
|
String, or list of strings, representing block names that
|
|
|
|
|
will not be parsed. This is used to specify blocks that will
|
|
|
|
|
contain raw code specific to the back-end. These blocks
|
|
|
|
|
still have to be handled by the relative `export-block' type
|
|
|
|
|
translator.
|
|
|
|
|
|
|
|
|
|
:filters-alist
|
|
|
|
|
|
|
|
|
|
Alist between filters and function, or list of functions,
|
|
|
|
|
specific to the back-end. See `org-export-filters-alist' for
|
2012-08-24 04:41:41 -04:00
|
|
|
|
a list of all allowed filters. Filters defined here
|
|
|
|
|
shouldn't make a back-end test, as it may prevent back-ends
|
|
|
|
|
derived from this one to behave properly.
|
2012-07-23 08:06:13 -04:00
|
|
|
|
|
2012-09-09 07:06:36 -04:00
|
|
|
|
:menu-entry
|
|
|
|
|
|
|
|
|
|
Menu entry for the export dispatcher. It should be a list
|
|
|
|
|
like:
|
|
|
|
|
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
\(KEY DESCRIPTION-OR-ORDINAL ACTION-OR-MENU)
|
2012-09-09 07:06:36 -04:00
|
|
|
|
|
|
|
|
|
where :
|
|
|
|
|
|
|
|
|
|
KEY is a free character selecting the back-end.
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
|
|
|
|
|
DESCRIPTION-OR-ORDINAL is either a string or a number.
|
|
|
|
|
|
|
|
|
|
If it is a string, is will be used to name the back-end in
|
|
|
|
|
its menu entry. If it is a number, the following menu will
|
|
|
|
|
be displayed as a sub-menu of the back-end with the same
|
|
|
|
|
KEY. Also, the number will be used to determine in which
|
|
|
|
|
order such sub-menus will appear (lowest first).
|
|
|
|
|
|
2012-09-09 07:06:36 -04:00
|
|
|
|
ACTION-OR-MENU is either a function or an alist.
|
|
|
|
|
|
|
|
|
|
If it is an action, it will be called with three arguments:
|
|
|
|
|
SUBTREEP, VISIBLE-ONLY and BODY-ONLY. See `org-export-as'
|
|
|
|
|
for further explanations.
|
|
|
|
|
|
|
|
|
|
If it is an alist, associations should follow the
|
|
|
|
|
pattern:
|
|
|
|
|
|
|
|
|
|
\(KEY DESCRIPTION ACTION)
|
|
|
|
|
|
|
|
|
|
where KEY, DESCRIPTION and ACTION are described above.
|
|
|
|
|
|
|
|
|
|
Valid values include:
|
|
|
|
|
|
|
|
|
|
\(?m \"My Special Back-end\" my-special-export-function)
|
|
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
|
|
\(?l \"Export to LaTeX\"
|
|
|
|
|
\((?b \"TEX (buffer)\" org-e-latex-export-as-latex)
|
|
|
|
|
\(?l \"TEX (file)\" org-e-latex-export-to-latex)
|
|
|
|
|
\(?p \"PDF file\" org-e-latex-export-to-pdf)
|
|
|
|
|
\(?o \"PDF file and open\"
|
|
|
|
|
\(lambda (subtree visible body-only)
|
|
|
|
|
\(org-open-file
|
|
|
|
|
\(org-e-latex-export-to-pdf subtree visible body-only))))))
|
|
|
|
|
|
2012-07-23 08:06:13 -04:00
|
|
|
|
:options-alist
|
|
|
|
|
|
|
|
|
|
Alist between back-end specific properties introduced in
|
|
|
|
|
communication channel and how their value are acquired. See
|
|
|
|
|
`org-export-options-alist' for more information about
|
2012-09-09 07:06:36 -04:00
|
|
|
|
structure of the values."
|
2012-07-23 08:06:13 -04:00
|
|
|
|
(declare (debug (&define name sexp [&rest [keywordp sexp]] defbody))
|
|
|
|
|
(indent 1))
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(let (export-block filters menu-entry options contents)
|
2012-07-23 08:06:13 -04:00
|
|
|
|
(while (keywordp (car body))
|
|
|
|
|
(case (pop body)
|
|
|
|
|
(:export-block (let ((names (pop body)))
|
|
|
|
|
(setq export-block
|
|
|
|
|
(if (consp names) (mapcar 'upcase names)
|
|
|
|
|
(list (upcase names))))))
|
|
|
|
|
(:filters-alist (setq filters (pop body)))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(:menu-entry (setq menu-entry (pop body)))
|
2012-07-23 08:06:13 -04:00
|
|
|
|
(:options-alist (setq options (pop body)))
|
|
|
|
|
(t (pop body))))
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(setq contents (append (list :translate-alist translators)
|
|
|
|
|
(and filters (list :filters-alist filters))
|
|
|
|
|
(and options (list :options-alist options))
|
|
|
|
|
(and menu-entry (list :menu-entry menu-entry))))
|
2012-07-23 08:06:13 -04:00
|
|
|
|
`(progn
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Register back-end.
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(let ((registeredp (assq ',backend org-export-registered-backends)))
|
|
|
|
|
(if registeredp (setcdr registeredp ',contents)
|
|
|
|
|
(push (cons ',backend ',contents) org-export-registered-backends)))
|
2012-07-23 08:06:13 -04:00
|
|
|
|
;; Tell parser to not parse EXPORT-BLOCK blocks.
|
|
|
|
|
,(when export-block
|
|
|
|
|
`(mapc
|
|
|
|
|
(lambda (name)
|
|
|
|
|
(add-to-list 'org-element-block-name-alist
|
|
|
|
|
`(,name . org-element-export-block-parser)))
|
|
|
|
|
',export-block))
|
|
|
|
|
;; Splice in the body, if any.
|
|
|
|
|
,@body)))
|
|
|
|
|
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(defmacro org-export-define-derived-backend (child parent &rest body)
|
|
|
|
|
"Create a new back-end as a variant of an existing one.
|
|
|
|
|
|
|
|
|
|
CHILD is the name of the derived back-end. PARENT is the name of
|
|
|
|
|
the parent back-end.
|
|
|
|
|
|
|
|
|
|
BODY can start with pre-defined keyword arguments. The following
|
|
|
|
|
keywords are understood:
|
|
|
|
|
|
2012-07-23 08:07:16 -04:00
|
|
|
|
:export-block
|
|
|
|
|
|
|
|
|
|
String, or list of strings, representing block names that
|
|
|
|
|
will not be parsed. This is used to specify blocks that will
|
|
|
|
|
contain raw code specific to the back-end. These blocks
|
|
|
|
|
still have to be handled by the relative `export-block' type
|
|
|
|
|
translator.
|
|
|
|
|
|
|
|
|
|
:filters-alist
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
|
|
|
|
Alist of filters that will overwrite or complete filters
|
2012-07-23 08:07:16 -04:00
|
|
|
|
defined in PARENT back-end. See `org-export-filters-alist'
|
2012-09-09 07:06:36 -04:00
|
|
|
|
for a list of allowed filters.
|
|
|
|
|
|
|
|
|
|
:menu-entry
|
|
|
|
|
|
|
|
|
|
Menu entry for the export dispatcher. See
|
|
|
|
|
`org-export-define-backend' for more information about the
|
|
|
|
|
expected value.
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
2012-07-23 08:07:16 -04:00
|
|
|
|
:options-alist
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
2012-07-23 08:07:16 -04:00
|
|
|
|
Alist of back-end specific properties that will overwrite or
|
|
|
|
|
complete those defined in PARENT back-end. Refer to
|
|
|
|
|
`org-export-options-alist' for more information about
|
|
|
|
|
structure of the values.
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
2012-07-23 08:07:16 -04:00
|
|
|
|
:translate-alist
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
|
|
|
|
Alist of element and object types and transcoders that will
|
|
|
|
|
overwrite or complete transcode table from PARENT back-end.
|
2012-07-23 08:07:16 -04:00
|
|
|
|
Refer to `org-export-define-backend' for detailed information
|
|
|
|
|
about transcoders.
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
|
|
|
|
As an example, here is how one could define \"my-latex\" back-end
|
|
|
|
|
as a variant of `e-latex' back-end with a custom template
|
|
|
|
|
function:
|
|
|
|
|
|
|
|
|
|
\(org-export-define-derived-backend my-latex e-latex
|
|
|
|
|
:translate-alist ((template . my-latex-template-fun)))
|
|
|
|
|
|
|
|
|
|
The back-end could then be called with, for example:
|
|
|
|
|
|
2012-07-23 08:07:16 -04:00
|
|
|
|
\(org-export-to-buffer 'my-latex \"*Test my-latex*\")"
|
|
|
|
|
(declare (debug (&define name sexp [&rest [keywordp sexp]] def-body))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(indent 2))
|
2012-11-17 07:33:38 -05:00
|
|
|
|
(org-export-barf-if-invalid-backend parent)
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(let (export-block filters menu-entry options translators contents)
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(while (keywordp (car body))
|
|
|
|
|
(case (pop body)
|
2012-07-23 08:07:16 -04:00
|
|
|
|
(:export-block (let ((names (pop body)))
|
|
|
|
|
(setq export-block
|
|
|
|
|
(if (consp names) (mapcar 'upcase names)
|
|
|
|
|
(list (upcase names))))))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(:filters-alist (setq filters (pop body)))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(:menu-entry (setq menu-entry (pop body)))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(:options-alist (setq options (pop body)))
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(:translate-alist (setq translators (pop body)))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
(t (pop body))))
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(setq contents (append
|
2012-11-17 07:33:38 -05:00
|
|
|
|
(list :parent parent)
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(let ((p-table (org-export-backend-translate-table parent)))
|
|
|
|
|
(list :translate-alist (append translators p-table)))
|
|
|
|
|
(let ((p-filters (org-export-backend-filters parent)))
|
|
|
|
|
(list :filters-alist (append filters p-filters)))
|
|
|
|
|
(let ((p-options (org-export-backend-options parent)))
|
|
|
|
|
(list :options-alist (append options p-options)))
|
|
|
|
|
(and menu-entry (list :menu-entry menu-entry))))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
`(progn
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Register back-end.
|
2012-11-14 08:41:27 -05:00
|
|
|
|
(let ((registeredp (assq ',child org-export-registered-backends)))
|
|
|
|
|
(if registeredp (setcdr registeredp ',contents)
|
|
|
|
|
(push (cons ',child ',contents) org-export-registered-backends)))
|
2012-07-23 08:07:16 -04:00
|
|
|
|
;; Tell parser to not parse EXPORT-BLOCK blocks.
|
|
|
|
|
,(when export-block
|
|
|
|
|
`(mapc
|
|
|
|
|
(lambda (name)
|
|
|
|
|
(add-to-list 'org-element-block-name-alist
|
|
|
|
|
`(,name . org-element-export-block-parser)))
|
|
|
|
|
',export-block))
|
2012-05-18 04:19:10 -04:00
|
|
|
|
;; Splice in the body, if any.
|
|
|
|
|
,@body)))
|
|
|
|
|
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(defun org-export-backend-filters (backend)
|
|
|
|
|
"Return filters for BACKEND."
|
|
|
|
|
(plist-get (cdr (assq backend org-export-registered-backends))
|
|
|
|
|
:filters-alist))
|
|
|
|
|
|
|
|
|
|
(defun org-export-backend-menu (backend)
|
|
|
|
|
"Return menu entry for BACKEND."
|
|
|
|
|
(plist-get (cdr (assq backend org-export-registered-backends))
|
|
|
|
|
:menu-entry))
|
|
|
|
|
|
|
|
|
|
(defun org-export-backend-options (backend)
|
|
|
|
|
"Return export options for BACKEND."
|
|
|
|
|
(plist-get (cdr (assq backend org-export-registered-backends))
|
|
|
|
|
:options-alist))
|
|
|
|
|
|
|
|
|
|
(defun org-export-backend-translate-table (backend)
|
|
|
|
|
"Return translate table for BACKEND."
|
|
|
|
|
(plist-get (cdr (assq backend org-export-registered-backends))
|
|
|
|
|
:translate-alist))
|
|
|
|
|
|
2012-09-24 16:35:55 -04:00
|
|
|
|
(defun org-export-barf-if-invalid-backend (backend)
|
|
|
|
|
"Signal an error if BACKEND isn't defined."
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(unless (org-export-backend-translate-table backend)
|
2012-09-24 16:35:55 -04:00
|
|
|
|
(error "Unknown \"%s\" back-end: Aborting export" backend)))
|
|
|
|
|
|
2012-11-17 07:33:38 -05:00
|
|
|
|
(defun org-export-derived-backend-p (backend &rest backends)
|
|
|
|
|
"Non-nil if BACKEND is derived from one of BACKENDS."
|
|
|
|
|
(let ((parent backend))
|
|
|
|
|
(while (and (not (memq parent backends))
|
|
|
|
|
(setq parent
|
|
|
|
|
(plist-get (cdr (assq parent
|
|
|
|
|
org-export-registered-backends))
|
|
|
|
|
:parent))))
|
|
|
|
|
parent))
|
|
|
|
|
|
2012-05-18 04:19:10 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;;; The Communication Channel
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; During export process, every function has access to a number of
|
2012-05-20 06:01:10 -04:00
|
|
|
|
;; properties. They are of two types:
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; 1. Environment options are collected once at the very beginning of
|
|
|
|
|
;; the process, out of the original buffer and configuration.
|
|
|
|
|
;; Collecting them is handled by `org-export-get-environment'
|
|
|
|
|
;; function.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Most environment options are defined through the
|
2012-05-18 04:33:21 -04:00
|
|
|
|
;; `org-export-options-alist' variable.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; 2. Tree properties are extracted directly from the parsed tree,
|
|
|
|
|
;; just before export, by `org-export-collect-tree-properties'.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;;
|
|
|
|
|
;; Here is the full list of properties available during transcode
|
2012-09-01 07:04:14 -04:00
|
|
|
|
;; process, with their category and their value type.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:author' :: Author's name.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:back-end' :: Current back-end used for transcoding.
|
|
|
|
|
;; - category :: tree
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - type :: symbol
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:creator' :: String to write as creation information.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:date' :: String to use as date.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:description' :: Description text for the current data.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:email' :: Author's email.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:exclude-tags' :: Tags for exclusion of subtrees from export
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; process.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: list of strings
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-07-24 11:02:48 -04:00
|
|
|
|
;; + `:exported-data' :: Hash table used for memoizing
|
|
|
|
|
;; `org-export-data'.
|
|
|
|
|
;; - category :: tree
|
|
|
|
|
;; - type :: hash table
|
|
|
|
|
;;
|
2012-10-30 11:03:59 -04:00
|
|
|
|
;; + `:filetags' :: List of global tags for buffer. Used by
|
|
|
|
|
;; `org-export-get-tags' to get tags with inheritance.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: list of strings
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:footnote-definition-alist' :: Alist between footnote labels and
|
2011-12-23 08:46:20 -05:00
|
|
|
|
;; their definition, as parsed data. Only non-inlined footnotes
|
|
|
|
|
;; are represented in this alist. Also, every definition isn't
|
|
|
|
|
;; guaranteed to be referenced in the parse tree. The purpose of
|
|
|
|
|
;; this property is to preserve definitions from oblivion
|
|
|
|
|
;; (i.e. when the parse tree comes from a part of the original
|
|
|
|
|
;; buffer), it isn't meant for direct use in a back-end. To
|
|
|
|
|
;; retrieve a definition relative to a reference, use
|
|
|
|
|
;; `org-export-get-footnote-definition' instead.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: alist (STRING . LIST)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:headline-levels' :: Maximum level being exported as an
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; headline. Comparison is done with the relative level of
|
|
|
|
|
;; headlines in the parse tree, not necessarily with their
|
|
|
|
|
;; actual level.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: integer
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:headline-offset' :: Difference between relative and real level
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; of headlines in the parse tree. For example, a value of -1
|
|
|
|
|
;; means a level 2 headline should be considered as level
|
|
|
|
|
;; 1 (cf. `org-export-get-relative-level').
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; - category :: tree
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - type :: integer
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:headline-numbering' :: Alist between headlines and their
|
|
|
|
|
;; numbering, as a list of numbers
|
2011-12-01 08:01:32 -05:00
|
|
|
|
;; (cf. `org-export-get-headline-number').
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; - category :: tree
|
2011-12-01 08:01:32 -05:00
|
|
|
|
;; - type :: alist (INTEGER . LIST)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;; + `:id-alist' :: Alist between ID strings and destination file's
|
|
|
|
|
;; path, relative to current directory. It is used by
|
|
|
|
|
;; `org-export-resolve-id-link' to resolve ID links targeting an
|
|
|
|
|
;; external file.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: alist (STRING . STRING)
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:ignore-list' :: List of elements and objects that should be
|
|
|
|
|
;; ignored during export.
|
2012-05-20 06:01:10 -04:00
|
|
|
|
;; - category :: tree
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; - type :: list of elements and objects
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:input-file' :: Full path to input file, if any.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string or nil
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:keywords' :: List of keywords attached to data.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:language' :: Default language used for translations.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: string
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:parse-tree' :: Whole parse tree, available at any time during
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; transcoding.
|
2012-05-20 06:01:10 -04:00
|
|
|
|
;; - category :: option
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - type :: list (as returned by `org-element-parse-buffer')
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:preserve-breaks' :: Non-nil means transcoding should preserve
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; all line breaks.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:section-numbers' :: Non-nil means transcoding should add
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; section numbers to headlines.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:select-tags' :: List of tags enforcing inclusion of sub-trees
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; in transcoding. When such a tag is present, subtrees without
|
|
|
|
|
;; it are de facto excluded from the process. See
|
|
|
|
|
;; `use-select-tags'.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: list of strings
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:target-list' :: List of targets encountered in the parse tree.
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; This is used to partly resolve "fuzzy" links
|
|
|
|
|
;; (cf. `org-export-resolve-fuzzy-link').
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; - category :: tree
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - type :: list of strings
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:time-stamp-file' :: Non-nil means transcoding should insert
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; a time stamp in the output.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-05-20 06:01:10 -04:00
|
|
|
|
;; + `:translate-alist' :: Alist between element and object types and
|
|
|
|
|
;; transcoding functions relative to the current back-end.
|
|
|
|
|
;; Special keys `template' and `plain-text' are also possible.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: alist (SYMBOL . FUNCTION)
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-archived-trees' :: Non-nil when archived subtrees should
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; also be transcoded. If it is set to the `headline' symbol,
|
|
|
|
|
;; only the archived headline's name is retained.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t, `headline')
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-author' :: Non-nil means author's name should be included
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; in the output.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-11-09 05:04:07 -05:00
|
|
|
|
;; + `:with-clocks' :: Non-nil means clock keywords should be exported.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
|
|
|
|
;;
|
2012-11-09 05:04:07 -05:00
|
|
|
|
;; + `:with-creator' :: Non-nil means a creation sentence should be
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; inserted at the end of the transcoded string. If the value
|
|
|
|
|
;; is `comment', it should be commented.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (`comment', nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-11-09 05:04:07 -05:00
|
|
|
|
;; + `:with-date' :: Non-nil means output should contain a date.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :. symbol (nil, t)
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-drawers' :: Non-nil means drawers should be exported. If
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; its value is a list of names, only drawers with such names
|
|
|
|
|
;; will be transcoded.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t) or list of strings
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-email' :: Non-nil means output should contain author's
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; email.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-emphasize' :: Non-nil means emphasized text should be
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; interpreted.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-fixed-width' :: Non-nil if transcoder should interpret
|
|
|
|
|
;; strings starting with a colon as a fixed-with (verbatim) area.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-footnotes' :: Non-nil if transcoder should interpret
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; footnotes.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
|
|
|
|
;; + `:with-plannings' :: Non-nil means transcoding should include
|
|
|
|
|
;; planning info.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-priority' :: Non-nil means transcoding should include
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; priority cookies.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; + `:with-smart-quotes' :: Non-nil means activate smart quotes in
|
|
|
|
|
;; plain text.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-special-strings' :: Non-nil means transcoding should
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; interpret special strings in plain text.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-sub-superscript' :: Non-nil means transcoding should
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; interpret subscript and superscript. With a value of "{}",
|
|
|
|
|
;; only interpret those using curly brackets.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, {}, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-tables' :: Non-nil means transcoding should interpret
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; tables.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-tags' :: Non-nil means transcoding should keep tags in
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; headlines. A `not-in-toc' value will remove them from the
|
|
|
|
|
;; table of contents, if any, nonetheless.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t, `not-in-toc')
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-tasks' :: Non-nil means transcoding should include
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; headlines with a TODO keyword. A `todo' value will only
|
|
|
|
|
;; include headlines with a todo type keyword while a `done'
|
|
|
|
|
;; value will do the contrary. If a list of strings is provided,
|
|
|
|
|
;; only tasks with keywords belonging to that list will be kept.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (t, todo, done, nil) or list of strings
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-timestamps' :: Non-nil means transcoding should include
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; time stamps. Special value `active' (resp. `inactive') ask to
|
|
|
|
|
;; export only active (resp. inactive) timestamps. Otherwise,
|
|
|
|
|
;; completely remove them.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; - type :: symbol: (`active', `inactive', t, nil)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-toc' :: Non-nil means that a table of contents has to be
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; added to the output. An integer value limits its depth.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t or integer)
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; + `:with-todo-keywords' :: Non-nil means transcoding should
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; include TODO keywords.
|
|
|
|
|
;; - category :: option
|
|
|
|
|
;; - type :: symbol (nil, t)
|
|
|
|
|
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;;;; Environment Options
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Environment options encompass all parameters defined outside the
|
|
|
|
|
;; scope of the parsed data. They come from five sources, in
|
|
|
|
|
;; increasing precedence order:
|
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - Global variables,
|
2012-04-13 09:30:02 -04:00
|
|
|
|
;; - Buffer's attributes,
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; - Options keyword symbols,
|
|
|
|
|
;; - Buffer keywords,
|
|
|
|
|
;; - Subtree properties.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; The central internal function with regards to environment options
|
|
|
|
|
;; is `org-export-get-environment'. It updates global variables with
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; "#+BIND:" keywords, then retrieve and prioritize properties from
|
|
|
|
|
;; the different sources.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; The internal functions doing the retrieval are:
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; `org-export--get-global-options',
|
|
|
|
|
;; `org-export--get-buffer-attributes',
|
|
|
|
|
;; `org-export--parse-option-keyword',
|
|
|
|
|
;; `org-export--get-subtree-options' and
|
|
|
|
|
;; `org-export--get-inbuffer-options'
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; Also, `org-export--confirm-letbind' and `org-export--install-letbind'
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; take care of the part relative to "#+BIND:" keywords.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-get-environment (&optional backend subtreep ext-plist)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Collect export options from the current buffer.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional argument BACKEND is a symbol specifying which back-end
|
|
|
|
|
specific options to read, if any.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
When optional argument SUBTREEP is non-nil, assume the export is
|
|
|
|
|
done against the current sub-tree.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Third optional argument EXT-PLIST is a property list with
|
|
|
|
|
external parameters overriding Org default settings, but still
|
|
|
|
|
inferior to file-local settings."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; First install #+BIND variables.
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(org-export--install-letbind-maybe)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Get and prioritize export options...
|
2012-05-20 06:01:10 -04:00
|
|
|
|
(org-combine-plists
|
|
|
|
|
;; ... from global variables...
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(org-export--get-global-options backend)
|
2012-05-20 06:01:10 -04:00
|
|
|
|
;; ... from an external property list...
|
|
|
|
|
ext-plist
|
|
|
|
|
;; ... from in-buffer settings...
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(org-export--get-inbuffer-options
|
2012-05-20 06:01:10 -04:00
|
|
|
|
backend
|
|
|
|
|
(and buffer-file-name (org-remove-double-quotes buffer-file-name)))
|
|
|
|
|
;; ... and from subtree, when appropriate.
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(and subtreep (org-export--get-subtree-options backend))
|
2012-10-30 10:07:44 -04:00
|
|
|
|
;; Eventually add misc. properties.
|
|
|
|
|
(list
|
|
|
|
|
:back-end
|
|
|
|
|
backend
|
|
|
|
|
:translate-alist
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(org-export-backend-translate-table backend)
|
2012-10-30 10:07:44 -04:00
|
|
|
|
:footnote-definition-alist
|
|
|
|
|
;; Footnotes definitions must be collected in the original
|
|
|
|
|
;; buffer, as there's no insurance that they will still be in
|
|
|
|
|
;; the parse tree, due to possible narrowing.
|
|
|
|
|
(let (alist)
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward org-footnote-definition-re nil t)
|
|
|
|
|
(let ((def (save-match-data (org-element-at-point))))
|
|
|
|
|
(when (eq (org-element-type def) 'footnote-definition)
|
|
|
|
|
(push
|
|
|
|
|
(cons (org-element-property :label def)
|
|
|
|
|
(let ((cbeg (org-element-property :contents-begin def)))
|
|
|
|
|
(when cbeg
|
|
|
|
|
(org-element--parse-elements
|
|
|
|
|
cbeg (org-element-property :contents-end def)
|
|
|
|
|
nil nil nil nil (list 'org-data nil)))))
|
|
|
|
|
alist))))
|
|
|
|
|
alist))
|
|
|
|
|
:id-alist
|
|
|
|
|
;; Collect id references.
|
|
|
|
|
(let (alist)
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\[\\[id:\\S-+?\\]" nil t)
|
|
|
|
|
(let ((link (org-element-context)))
|
|
|
|
|
(when (eq (org-element-type link) 'link)
|
|
|
|
|
(let* ((id (org-element-property :path link))
|
|
|
|
|
(file (org-id-find-id-file id)))
|
|
|
|
|
(when file
|
|
|
|
|
(push (cons id (file-relative-name file)) alist)))))))
|
|
|
|
|
alist))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--parse-option-keyword (options &optional backend)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Parse an OPTIONS line and return values as a plist.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional argument BACKEND is a symbol specifying which back-end
|
|
|
|
|
specific items to read, if any."
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(let* ((all (append org-export-options-alist
|
|
|
|
|
(and backend (org-export-backend-options backend))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Build an alist between #+OPTION: item and property-name.
|
|
|
|
|
(alist (delq nil
|
|
|
|
|
(mapcar (lambda (e)
|
|
|
|
|
(when (nth 2 e) (cons (regexp-quote (nth 2 e))
|
|
|
|
|
(car e))))
|
|
|
|
|
all)))
|
|
|
|
|
plist)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(mapc (lambda (e)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(when (string-match (concat "\\(\\`\\|[ \t]\\)"
|
|
|
|
|
(car e)
|
|
|
|
|
":\\(([^)\n]+)\\|[^ \t\n\r;,.]*\\)")
|
|
|
|
|
options)
|
|
|
|
|
(setq plist (plist-put plist
|
|
|
|
|
(cdr e)
|
|
|
|
|
(car (read-from-string
|
|
|
|
|
(match-string 2 options)))))))
|
|
|
|
|
alist)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
plist))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--get-subtree-options (&optional backend)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Get export options in subtree at point.
|
2012-07-01 16:29:23 -04:00
|
|
|
|
Optional argument BACKEND is a symbol specifying back-end used
|
|
|
|
|
for export. Return options as a plist."
|
2012-07-04 17:30:23 -04:00
|
|
|
|
;; For each buffer keyword, create an headline property setting the
|
|
|
|
|
;; same property in communication channel. The name for the property
|
|
|
|
|
;; is the keyword with "EXPORT_" appended to it.
|
2012-06-17 19:34:57 -04:00
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(let (prop plist)
|
|
|
|
|
;; Make sure point is at an heading.
|
|
|
|
|
(unless (org-at-heading-p) (org-back-to-heading t))
|
2012-07-04 17:30:23 -04:00
|
|
|
|
;; Take care of EXPORT_TITLE. If it isn't defined, use headline's
|
|
|
|
|
;; title as its fallback value.
|
2012-11-18 08:44:20 -05:00
|
|
|
|
(when (setq prop (or (org-entry-get (point) "EXPORT_TITLE")
|
|
|
|
|
(progn (looking-at org-todo-line-regexp)
|
2012-06-17 19:34:57 -04:00
|
|
|
|
(org-match-string-no-properties 3))))
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist :title
|
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
prop (org-element-restriction 'keyword)))))
|
2012-07-04 17:30:23 -04:00
|
|
|
|
;; EXPORT_OPTIONS are parsed in a non-standard way.
|
2012-06-17 19:34:57 -04:00
|
|
|
|
(when (setq prop (org-entry-get (point) "EXPORT_OPTIONS"))
|
2012-07-01 16:29:23 -04:00
|
|
|
|
(setq plist
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(nconc plist (org-export--parse-option-keyword prop backend))))
|
2012-09-30 14:02:28 -04:00
|
|
|
|
;; Handle other keywords. TITLE keyword is excluded as it has
|
2012-10-29 16:57:46 -04:00
|
|
|
|
;; been handled already.
|
2012-07-04 17:30:23 -04:00
|
|
|
|
(let ((seen '("TITLE")))
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (option)
|
|
|
|
|
(let ((property (nth 1 option)))
|
|
|
|
|
(when (and property (not (member property seen)))
|
|
|
|
|
(let* ((subtree-prop (concat "EXPORT_" property))
|
2012-07-25 04:12:53 -04:00
|
|
|
|
;; Export properties are not case-sensitive.
|
|
|
|
|
(value (let ((case-fold-search t))
|
|
|
|
|
(org-entry-get (point) subtree-prop))))
|
2012-07-04 17:30:23 -04:00
|
|
|
|
(push property seen)
|
|
|
|
|
(when value
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist
|
|
|
|
|
(car option)
|
2012-11-18 08:44:20 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Parse VALUE if required.
|
|
|
|
|
((member property org-element-document-properties)
|
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
value (org-element-restriction 'keyword)))
|
|
|
|
|
;; If BEHAVIOUR is `split' expected value is
|
|
|
|
|
;; a list of strings, not a string.
|
|
|
|
|
((eq (nth 4 option) 'split) (org-split-string value))
|
|
|
|
|
(t value)))))))))
|
2012-07-04 17:30:23 -04:00
|
|
|
|
;; Also look for both general keywords and back-end specific
|
|
|
|
|
;; options if BACKEND is provided.
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(append (and backend (org-export-backend-options backend))
|
2012-07-04 17:30:23 -04:00
|
|
|
|
org-export-options-alist)))
|
|
|
|
|
;; Return value.
|
2012-06-17 19:34:57 -04:00
|
|
|
|
plist)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--get-inbuffer-options (&optional backend files)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return current buffer export options, as a plist.
|
|
|
|
|
|
|
|
|
|
Optional argument BACKEND, when non-nil, is a symbol specifying
|
|
|
|
|
which back-end specific options should also be read in the
|
|
|
|
|
process.
|
|
|
|
|
|
|
|
|
|
Optional argument FILES is a list of setup files names read so
|
|
|
|
|
far, used to avoid circular dependencies.
|
|
|
|
|
|
|
|
|
|
Assume buffer is in Org mode. Narrowing, if any, is ignored."
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(let ((case-fold-search t) plist)
|
|
|
|
|
;; 1. Special keywords, as in `org-export-special-keywords'.
|
2012-09-01 07:04:14 -04:00
|
|
|
|
(let ((special-re
|
|
|
|
|
(format "^[ \t]*#\\+%s:" (regexp-opt org-export-special-keywords))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(while (re-search-forward special-re nil t)
|
|
|
|
|
(let ((element (org-element-at-point)))
|
|
|
|
|
(when (eq (org-element-type element) 'keyword)
|
2012-03-28 08:04:26 -04:00
|
|
|
|
(let* ((key (org-element-property :key element))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(val (org-element-property :value element))
|
|
|
|
|
(prop
|
|
|
|
|
(cond
|
2012-10-30 11:03:59 -04:00
|
|
|
|
((equal key "SETUP_FILE")
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((file
|
|
|
|
|
(expand-file-name
|
|
|
|
|
(org-remove-double-quotes (org-trim val)))))
|
|
|
|
|
;; Avoid circular dependencies.
|
|
|
|
|
(unless (member file files)
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert (org-file-contents file 'noerror))
|
|
|
|
|
(org-mode)
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(org-export--get-inbuffer-options
|
2012-03-19 16:38:12 -04:00
|
|
|
|
backend (cons file files))))))
|
2012-10-30 11:03:59 -04:00
|
|
|
|
((equal key "OPTIONS")
|
|
|
|
|
(org-export--parse-option-keyword val backend))
|
|
|
|
|
((equal key "FILETAGS")
|
|
|
|
|
(list :filetags
|
|
|
|
|
(org-uniquify
|
|
|
|
|
(append (org-split-string val ":")
|
|
|
|
|
(plist-get plist :filetags))))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(setq plist (org-combine-plists plist prop)))))))
|
2012-05-18 04:33:21 -04:00
|
|
|
|
;; 2. Standard options, as in `org-export-options-alist'.
|
|
|
|
|
(let* ((all (append org-export-options-alist
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Also look for back-end specific options if
|
|
|
|
|
;; BACKEND is defined.
|
|
|
|
|
(and backend (org-export-backend-options backend))))
|
2012-09-01 07:04:14 -04:00
|
|
|
|
;; Build ALIST between keyword name and property name.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(alist
|
|
|
|
|
(delq nil (mapcar
|
|
|
|
|
(lambda (e) (when (nth 1 e) (cons (nth 1 e) (car e))))
|
|
|
|
|
all)))
|
|
|
|
|
;; Build regexp matching all keywords associated to export
|
|
|
|
|
;; options. Note: the search is case insensitive.
|
2012-09-01 07:04:14 -04:00
|
|
|
|
(opt-re (format "^[ \t]*#\\+%s:"
|
2012-09-30 14:02:28 -04:00
|
|
|
|
(regexp-opt
|
|
|
|
|
(delq nil (mapcar (lambda (e) (nth 1 e)) all))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward opt-re nil t)
|
|
|
|
|
(let ((element (org-element-at-point)))
|
|
|
|
|
(when (eq (org-element-type element) 'keyword)
|
2012-03-28 08:04:26 -04:00
|
|
|
|
(let* ((key (org-element-property :key element))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(val (org-element-property :value element))
|
|
|
|
|
(prop (cdr (assoc key alist)))
|
|
|
|
|
(behaviour (nth 4 (assq prop all))))
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist prop
|
|
|
|
|
;; Handle value depending on specified BEHAVIOUR.
|
|
|
|
|
(case behaviour
|
|
|
|
|
(space
|
|
|
|
|
(if (not (plist-get plist prop)) (org-trim val)
|
|
|
|
|
(concat (plist-get plist prop) " " (org-trim val))))
|
|
|
|
|
(newline
|
|
|
|
|
(org-trim
|
|
|
|
|
(concat (plist-get plist prop) "\n" (org-trim val))))
|
|
|
|
|
(split
|
|
|
|
|
`(,@(plist-get plist prop) ,@(org-split-string val)))
|
|
|
|
|
('t val)
|
|
|
|
|
(otherwise (if (not (plist-member plist prop)) val
|
|
|
|
|
(plist-get plist prop))))))))))
|
2012-09-30 14:02:28 -04:00
|
|
|
|
;; Parse keywords specified in
|
|
|
|
|
;; `org-element-document-properties'.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(mapc
|
|
|
|
|
(lambda (key)
|
|
|
|
|
(let* ((prop (cdr (assoc key alist)))
|
|
|
|
|
(value (and prop (plist-get plist prop))))
|
|
|
|
|
(when (stringp value)
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist prop
|
|
|
|
|
(org-element-parse-secondary-string
|
2012-04-22 04:03:31 -04:00
|
|
|
|
value (org-element-restriction 'keyword)))))))
|
2012-09-30 14:02:28 -04:00
|
|
|
|
org-element-document-properties))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; 3. Return final value.
|
|
|
|
|
plist)))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--get-buffer-attributes ()
|
2012-04-13 09:30:02 -04:00
|
|
|
|
"Return properties related to buffer attributes, as a plist."
|
|
|
|
|
(let ((visited-file (buffer-file-name (buffer-base-buffer))))
|
|
|
|
|
(list
|
|
|
|
|
;; Store full path of input file name, or nil. For internal use.
|
|
|
|
|
:input-file visited-file
|
|
|
|
|
:title (or (and visited-file
|
|
|
|
|
(file-name-sans-extension
|
|
|
|
|
(file-name-nondirectory visited-file)))
|
2012-10-30 10:07:44 -04:00
|
|
|
|
(buffer-name (buffer-base-buffer))))))
|
2012-04-13 09:30:02 -04:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--get-global-options (&optional backend)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Return global export options as a plist.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
Optional argument BACKEND, if non-nil, is a symbol specifying
|
|
|
|
|
which back-end specific export options should also be read in the
|
|
|
|
|
process."
|
2012-05-18 04:33:21 -04:00
|
|
|
|
(let ((all (append org-export-options-alist
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(and backend (org-export-backend-options backend))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Output value.
|
|
|
|
|
plist)
|
2012-06-22 09:07:07 -04:00
|
|
|
|
(mapc
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist
|
|
|
|
|
(car cell)
|
|
|
|
|
;; Eval default value provided. If keyword is a member
|
2012-09-30 14:02:28 -04:00
|
|
|
|
;; of `org-element-document-properties', parse it as
|
2012-06-22 09:07:07 -04:00
|
|
|
|
;; a secondary string before storing it.
|
|
|
|
|
(let ((value (eval (nth 3 cell))))
|
|
|
|
|
(if (not (stringp value)) value
|
|
|
|
|
(let ((keyword (nth 1 cell)))
|
2012-09-30 14:02:28 -04:00
|
|
|
|
(if (not (member keyword org-element-document-properties))
|
|
|
|
|
value
|
2012-06-22 09:07:07 -04:00
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
value (org-element-restriction 'keyword)))))))))
|
|
|
|
|
all)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Return value.
|
|
|
|
|
plist))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defvar org-export--allow-BIND-local nil)
|
|
|
|
|
(defun org-export--confirm-letbind ()
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Can we use #+BIND values during export?
|
|
|
|
|
By default this will ask for confirmation by the user, to divert
|
|
|
|
|
possible security risks."
|
|
|
|
|
(cond
|
|
|
|
|
((not org-export-allow-BIND) nil)
|
|
|
|
|
((eq org-export-allow-BIND t) t)
|
2012-07-24 10:04:35 -04:00
|
|
|
|
((local-variable-p 'org-export--allow-BIND-local)
|
|
|
|
|
org-export--allow-BIND-local)
|
|
|
|
|
(t (org-set-local 'org-export--allow-BIND-local
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(yes-or-no-p "Allow BIND values in this buffer? ")))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--install-letbind-maybe ()
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Install the values from #+BIND lines as local variables.
|
|
|
|
|
Variables must be installed before in-buffer options are
|
|
|
|
|
retrieved."
|
2012-09-01 08:19:42 -04:00
|
|
|
|
(let ((case-fold-search t) letbind pair)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-min))
|
2012-09-01 06:59:57 -04:00
|
|
|
|
(while (re-search-forward "^[ \t]*#\\+BIND:" nil t)
|
|
|
|
|
(let* ((element (org-element-at-point))
|
|
|
|
|
(value (org-element-property :value element)))
|
|
|
|
|
(when (and (eq (org-element-type element) 'keyword)
|
|
|
|
|
(not (equal value ""))
|
|
|
|
|
(org-export--confirm-letbind))
|
|
|
|
|
(push (read (format "(%s)" value)) letbind)))))
|
|
|
|
|
(dolist (pair (nreverse letbind))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(org-set-local (car pair) (nth 1 pair)))))
|
|
|
|
|
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;;;; Tree Properties
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-09-30 14:02:28 -04:00
|
|
|
|
;; Tree properties are information extracted from parse tree. They
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; are initialized at the beginning of the transcoding process by
|
|
|
|
|
;; `org-export-collect-tree-properties'.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Dedicated functions focus on computing the value of specific tree
|
|
|
|
|
;; properties during initialization. Thus,
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; `org-export--populate-ignore-list' lists elements and objects that
|
|
|
|
|
;; should be skipped during export, `org-export--get-min-level' gets
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; the minimal exportable level, used as a basis to compute relative
|
|
|
|
|
;; level for headlines. Eventually
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; `org-export--collect-headline-numbering' builds an alist between
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; headlines and their numbering.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
(defun org-export-collect-tree-properties (data info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Extract tree properties from parse tree.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
DATA is the parse tree from which information is retrieved. INFO
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
is a list holding export options.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-04-17 07:29:21 -04:00
|
|
|
|
Following tree properties are set or updated:
|
2012-07-24 11:02:48 -04:00
|
|
|
|
|
|
|
|
|
`:exported-data' Hash table used to memoize results from
|
|
|
|
|
`org-export-data'.
|
|
|
|
|
|
2012-04-17 07:29:21 -04:00
|
|
|
|
`:footnote-definition-alist' List of footnotes definitions in
|
|
|
|
|
original buffer and current parse tree.
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
`:headline-offset' Offset between true level of headlines and
|
2012-03-19 16:38:12 -04:00
|
|
|
|
local level. An offset of -1 means an headline
|
2011-12-09 08:38:36 -05:00
|
|
|
|
of level 2 should be considered as a level
|
|
|
|
|
1 headline in the context.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
`:headline-numbering' Alist of all headlines as key an the
|
|
|
|
|
associated numbering as value.
|
|
|
|
|
|
|
|
|
|
`:ignore-list' List of elements that should be ignored during
|
|
|
|
|
export.
|
2012-02-22 11:35:52 -05:00
|
|
|
|
|
2012-06-06 17:39:04 -04:00
|
|
|
|
`:target-list' List of all targets in the parse tree.
|
|
|
|
|
|
|
|
|
|
Return updated plist."
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; Install the parse tree in the communication channel, in order to
|
|
|
|
|
;; use `org-export-get-genealogy' and al.
|
|
|
|
|
(setq info (plist-put info :parse-tree data))
|
2012-04-17 07:29:21 -04:00
|
|
|
|
;; Get the list of elements and objects to ignore, and put it into
|
|
|
|
|
;; `:ignore-list'. Do not overwrite any user ignore that might have
|
|
|
|
|
;; been done during parse tree filtering.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(setq info
|
|
|
|
|
(plist-put info
|
|
|
|
|
:ignore-list
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(append (org-export--populate-ignore-list data info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(plist-get info :ignore-list))))
|
2012-04-17 07:29:21 -04:00
|
|
|
|
;; Compute `:headline-offset' in order to be able to use
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-get-relative-level'.
|
|
|
|
|
(setq info
|
|
|
|
|
(plist-put info
|
2012-07-24 10:04:35 -04:00
|
|
|
|
:headline-offset
|
|
|
|
|
(- 1 (org-export--get-min-level data info))))
|
2012-04-17 07:29:21 -04:00
|
|
|
|
;; Update footnotes definitions list with definitions in parse tree.
|
|
|
|
|
;; This is required since buffer expansion might have modified
|
|
|
|
|
;; boundaries of footnote definitions contained in the parse tree.
|
|
|
|
|
;; This way, definitions in `footnote-definition-alist' are bound to
|
|
|
|
|
;; match those in the parse tree.
|
|
|
|
|
(let ((defs (plist-get info :footnote-definition-alist)))
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'footnote-definition
|
|
|
|
|
(lambda (fn)
|
|
|
|
|
(push (cons (org-element-property :label fn)
|
|
|
|
|
`(org-data nil ,@(org-element-contents fn)))
|
|
|
|
|
defs)))
|
|
|
|
|
(setq info (plist-put info :footnote-definition-alist defs)))
|
|
|
|
|
;; Properties order doesn't matter: get the rest of the tree
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; properties.
|
|
|
|
|
(nconc
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
`(:target-list
|
2012-03-19 16:38:12 -04:00
|
|
|
|
,(org-element-map
|
|
|
|
|
data '(keyword target)
|
|
|
|
|
(lambda (blob)
|
|
|
|
|
(when (or (eq (org-element-type blob) 'target)
|
2012-03-28 08:04:26 -04:00
|
|
|
|
(string= (org-element-property :key blob) "TARGET"))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
blob)) info)
|
2012-07-24 11:02:48 -04:00
|
|
|
|
:headline-numbering ,(org-export--collect-headline-numbering data info)
|
|
|
|
|
:exported-data ,(make-hash-table :test 'eq :size 4001))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
info))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--get-min-level (data options)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Return minimum exportable headline's level in DATA.
|
|
|
|
|
DATA is parsed tree as returned by `org-element-parse-buffer'.
|
|
|
|
|
OPTIONS is a plist holding export options."
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(let ((min-level 10000))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(mapc
|
|
|
|
|
(lambda (blob)
|
|
|
|
|
(when (and (eq (org-element-type blob) 'headline)
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(not (memq blob (plist-get options :ignore-list))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(setq min-level
|
|
|
|
|
(min (org-element-property :level blob) min-level)))
|
|
|
|
|
(when (= min-level 1) (throw 'exit 1)))
|
|
|
|
|
(org-element-contents data))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; If no headline was found, for the sake of consistency, set
|
|
|
|
|
;; minimum level to 1 nonetheless.
|
|
|
|
|
(if (= min-level 10000) 1 min-level))))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--collect-headline-numbering (data options)
|
2011-12-01 08:01:32 -05:00
|
|
|
|
"Return numbering of all exportable headlines in a parse tree.
|
|
|
|
|
|
|
|
|
|
DATA is the parse tree. OPTIONS is the plist holding export
|
|
|
|
|
options.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return an alist whose key is an headline and value is its
|
|
|
|
|
associated numbering \(in the shape of a list of numbers\)."
|
2011-12-01 08:01:32 -05:00
|
|
|
|
(let ((numbering (make-vector org-export-max-depth 0)))
|
|
|
|
|
(org-element-map
|
|
|
|
|
data
|
|
|
|
|
'headline
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(lambda (headline)
|
2011-12-24 08:08:12 -05:00
|
|
|
|
(let ((relative-level
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(1- (org-export-get-relative-level headline options))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cons
|
2012-03-19 16:38:12 -04:00
|
|
|
|
headline
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(loop for n across numbering
|
|
|
|
|
for idx from 0 to org-export-max-depth
|
|
|
|
|
when (< idx relative-level) collect n
|
|
|
|
|
when (= idx relative-level) collect (aset numbering idx (1+ n))
|
|
|
|
|
when (> idx relative-level) do (aset numbering idx 0)))))
|
2011-12-01 08:01:32 -05:00
|
|
|
|
options)))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--populate-ignore-list (data options)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return list of elements and objects to ignore during export.
|
|
|
|
|
DATA is the parse tree to traverse. OPTIONS is the plist holding
|
2012-05-26 05:04:29 -04:00
|
|
|
|
export options."
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(let* (ignore
|
2012-08-27 08:41:33 -04:00
|
|
|
|
walk-data
|
|
|
|
|
;; First find trees containing a select tag, if any.
|
|
|
|
|
(selected (org-export--selected-trees data options))
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(walk-data
|
2012-08-27 08:41:33 -04:00
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Collect ignored elements or objects into IGNORE-LIST.
|
|
|
|
|
(let ((type (org-element-type data)))
|
|
|
|
|
(if (org-export--skip-p data options selected) (push data ignore)
|
|
|
|
|
(if (and (eq type 'headline)
|
|
|
|
|
(eq (plist-get options :with-archived-trees) 'headline)
|
|
|
|
|
(org-element-property :archivedp data))
|
|
|
|
|
;; If headline is archived but tree below has
|
|
|
|
|
;; to be skipped, add it to ignore list.
|
|
|
|
|
(mapc (lambda (e) (push e ignore))
|
|
|
|
|
(org-element-contents data))
|
|
|
|
|
;; Move into secondary string, if any.
|
|
|
|
|
(let ((sec-prop
|
|
|
|
|
(cdr (assq type org-element-secondary-value-alist))))
|
|
|
|
|
(when sec-prop
|
|
|
|
|
(mapc walk-data (org-element-property sec-prop data))))
|
|
|
|
|
;; Move into recursive objects/elements.
|
|
|
|
|
(mapc walk-data (org-element-contents data))))))))
|
|
|
|
|
;; Main call.
|
|
|
|
|
(funcall walk-data data)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Return value.
|
|
|
|
|
ignore))
|
2012-02-23 08:52:25 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export--selected-trees (data info)
|
|
|
|
|
"Return list of headlines containing a select tag in their tree.
|
|
|
|
|
DATA is parsed data as returned by `org-element-parse-buffer'.
|
|
|
|
|
INFO is a plist holding export options."
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(let* (selected-trees
|
|
|
|
|
walk-data ; for byte-compiler.
|
|
|
|
|
(walk-data
|
|
|
|
|
(function
|
|
|
|
|
(lambda (data genealogy)
|
|
|
|
|
(case (org-element-type data)
|
|
|
|
|
(org-data (mapc (lambda (el) (funcall walk-data el genealogy))
|
|
|
|
|
(org-element-contents data)))
|
|
|
|
|
(headline
|
|
|
|
|
(let ((tags (org-element-property :tags data)))
|
|
|
|
|
(if (loop for tag in (plist-get info :select-tags)
|
|
|
|
|
thereis (member tag tags))
|
|
|
|
|
;; When a select tag is found, mark full
|
|
|
|
|
;; genealogy and every headline within the tree
|
|
|
|
|
;; as acceptable.
|
|
|
|
|
(setq selected-trees
|
|
|
|
|
(append
|
|
|
|
|
genealogy
|
|
|
|
|
(org-element-map data 'headline 'identity)
|
|
|
|
|
selected-trees))
|
|
|
|
|
;; Else, continue searching in tree, recursively.
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (el) (funcall walk-data el (cons data genealogy)))
|
|
|
|
|
(org-element-contents data))))))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(funcall walk-data data nil) selected-trees))
|
|
|
|
|
|
2012-05-26 05:04:29 -04:00
|
|
|
|
(defun org-export--skip-p (blob options selected)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Non-nil when element or object BLOB should be skipped during export.
|
2012-05-26 05:04:29 -04:00
|
|
|
|
OPTIONS is the plist holding export options. SELECTED, when
|
|
|
|
|
non-nil, is a list of headlines belonging to a tree with a select
|
|
|
|
|
tag."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(case (org-element-type blob)
|
2012-08-27 06:31:05 -04:00
|
|
|
|
(clock (not (plist-get options :with-clocks)))
|
|
|
|
|
(drawer
|
|
|
|
|
(or (not (plist-get options :with-drawers))
|
|
|
|
|
(and (consp (plist-get options :with-drawers))
|
|
|
|
|
(not (member (org-element-property :drawer-name blob)
|
|
|
|
|
(plist-get options :with-drawers))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(headline
|
|
|
|
|
(let ((with-tasks (plist-get options :with-tasks))
|
|
|
|
|
(todo (org-element-property :todo-keyword blob))
|
|
|
|
|
(todo-type (org-element-property :todo-type blob))
|
|
|
|
|
(archived (plist-get options :with-archived-trees))
|
org-element: Internally store headline/inlinetask's tags as a list of strings
* contrib/lisp/org-element.el (org-element-headline-parser,
org-element-headline-interpreter, org-element-inlinetask-parser,
org-element-inlinetask-interpreter): Store headline/inlinetask's
tags as a list of strings.
* contrib/lisp/org-export.el (org-export--selected-trees,
org-export--skip-p): Use new tag representation.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii-format-inlinetask-function, org-e-ascii-inlinetask): Use
new tag representation.
* contrib/lisp/org-e-html.el (org-e-html-format-headline-function,
org-e-html-format-inlinetask-function, org-e-html--tags): Use new
tag representation.
* contrib/lisp/org-e-latex.el (org-e-latex-format-headline-function,
org-e-latex-format-inlinetask-function, org-e-latex-headline,
org-e-latex-inlinetask): Use new tag representation.
* contrib/lisp/org-e-odt.el (org-e-odt-format-org-tags): Use new tag
representation.
* testing/lisp/test-org-element.el: Update test.
2012-05-01 08:10:12 -04:00
|
|
|
|
(tags (org-element-property :tags blob)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(or
|
|
|
|
|
;; Ignore subtrees with an exclude tag.
|
|
|
|
|
(loop for k in (plist-get options :exclude-tags)
|
org-element: Internally store headline/inlinetask's tags as a list of strings
* contrib/lisp/org-element.el (org-element-headline-parser,
org-element-headline-interpreter, org-element-inlinetask-parser,
org-element-inlinetask-interpreter): Store headline/inlinetask's
tags as a list of strings.
* contrib/lisp/org-export.el (org-export--selected-trees,
org-export--skip-p): Use new tag representation.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii-format-inlinetask-function, org-e-ascii-inlinetask): Use
new tag representation.
* contrib/lisp/org-e-html.el (org-e-html-format-headline-function,
org-e-html-format-inlinetask-function, org-e-html--tags): Use new
tag representation.
* contrib/lisp/org-e-latex.el (org-e-latex-format-headline-function,
org-e-latex-format-inlinetask-function, org-e-latex-headline,
org-e-latex-inlinetask): Use new tag representation.
* contrib/lisp/org-e-odt.el (org-e-odt-format-org-tags): Use new tag
representation.
* testing/lisp/test-org-element.el: Update test.
2012-05-01 08:10:12 -04:00
|
|
|
|
thereis (member k tags))
|
2012-05-26 05:04:29 -04:00
|
|
|
|
;; When a select tag is present in the buffer, ignore any tree
|
|
|
|
|
;; without it.
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(and selected (not (memq blob selected)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Ignore commented sub-trees.
|
|
|
|
|
(org-element-property :commentedp blob)
|
|
|
|
|
;; Ignore archived subtrees if `:with-archived-trees' is nil.
|
|
|
|
|
(and (not archived) (org-element-property :archivedp blob))
|
|
|
|
|
;; Ignore tasks, if specified by `:with-tasks' property.
|
|
|
|
|
(and todo
|
|
|
|
|
(or (not with-tasks)
|
|
|
|
|
(and (memq with-tasks '(todo done))
|
|
|
|
|
(not (eq todo-type with-tasks)))
|
|
|
|
|
(and (consp with-tasks) (not (member todo with-tasks))))))))
|
2012-08-16 06:46:49 -04:00
|
|
|
|
(inlinetask (not (plist-get options :with-inlinetasks)))
|
2012-08-27 06:31:05 -04:00
|
|
|
|
(planning (not (plist-get options :with-plannings)))
|
|
|
|
|
(statistics-cookie (not (plist-get options :with-statistics-cookies)))
|
|
|
|
|
(table-cell
|
|
|
|
|
(and (org-export-table-has-special-column-p
|
|
|
|
|
(org-export-get-parent-table blob))
|
|
|
|
|
(not (org-export-get-previous-element blob options))))
|
|
|
|
|
(table-row (org-export-table-row-is-special-p blob options))
|
2012-04-29 16:55:37 -04:00
|
|
|
|
(timestamp
|
|
|
|
|
(case (plist-get options :with-timestamps)
|
|
|
|
|
;; No timestamp allowed.
|
|
|
|
|
('nil t)
|
|
|
|
|
;; Only active timestamps allowed and the current one isn't
|
|
|
|
|
;; active.
|
|
|
|
|
(active
|
|
|
|
|
(not (memq (org-element-property :type blob)
|
|
|
|
|
'(active active-range))))
|
|
|
|
|
;; Only inactive timestamps allowed and the current one isn't
|
|
|
|
|
;; inactive.
|
|
|
|
|
(inactive
|
|
|
|
|
(not (memq (org-element-property :type blob)
|
2012-08-27 06:31:05 -04:00
|
|
|
|
'(inactive inactive-range))))))))
|
2012-02-22 11:35:52 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; The Transcoder
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-04-29 16:55:37 -04:00
|
|
|
|
;; `org-export-data' reads a parse tree (obtained with, i.e.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-element-parse-buffer') and transcodes it into a specified
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
;; back-end output. It takes care of filtering out elements or
|
|
|
|
|
;; objects according to export options and organizing the output blank
|
2012-07-24 11:02:48 -04:00
|
|
|
|
;; lines and white space are preserved. The function memoizes its
|
|
|
|
|
;; results, so it is cheap to call it within translators.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Internally, three functions handle the filtering of objects and
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; elements during the export. In particular,
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; `org-export-ignore-element' marks an element or object so future
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; parse tree traversals skip it, `org-export--interpret-p' tells which
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; elements or objects should be seen as real Org syntax and
|
|
|
|
|
;; `org-export-expand' transforms the others back into their original
|
2012-05-18 04:18:42 -04:00
|
|
|
|
;; shape
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-transcoder' is an accessor returning appropriate
|
|
|
|
|
;; translator function for a given element or object.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
(defun org-export-transcoder (blob info)
|
|
|
|
|
"Return appropriate transcoder for BLOB.
|
|
|
|
|
INFO is a plist containing export directives."
|
|
|
|
|
(let ((type (org-element-type blob)))
|
|
|
|
|
;; Return contents only for complete parse trees.
|
|
|
|
|
(if (eq type 'org-data) (lambda (blob contents info) contents)
|
2012-05-20 06:01:10 -04:00
|
|
|
|
(let ((transcoder (cdr (assq type (plist-get info :translate-alist)))))
|
2012-07-15 14:02:22 -04:00
|
|
|
|
(and (functionp transcoder) transcoder)))))
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
(defun org-export-data (data info)
|
|
|
|
|
"Convert DATA into current back-end format.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
DATA is a parse tree, an element or an object or a secondary
|
|
|
|
|
string. INFO is a plist holding export options.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
Return transcoded string."
|
2012-07-24 11:02:48 -04:00
|
|
|
|
(let ((memo (gethash data (plist-get info :exported-data) 'no-memo)))
|
|
|
|
|
(if (not (eq memo 'no-memo)) memo
|
|
|
|
|
(let* ((type (org-element-type data))
|
|
|
|
|
(results
|
|
|
|
|
(cond
|
|
|
|
|
;; Ignored element/object.
|
|
|
|
|
((memq data (plist-get info :ignore-list)) nil)
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; Plain text. All residual text properties from parse
|
|
|
|
|
;; tree (i.e. `:parent' property) are removed.
|
2012-07-24 11:02:48 -04:00
|
|
|
|
((eq type 'plain-text)
|
2012-10-25 17:54:53 -04:00
|
|
|
|
(org-no-properties
|
|
|
|
|
(org-export-filter-apply-functions
|
|
|
|
|
(plist-get info :filter-plain-text)
|
|
|
|
|
(let ((transcoder (org-export-transcoder data info)))
|
|
|
|
|
(if transcoder (funcall transcoder data info) data))
|
|
|
|
|
info)))
|
2012-07-24 11:02:48 -04:00
|
|
|
|
;; Uninterpreted element/object: change it back to Org
|
|
|
|
|
;; syntax and export again resulting raw string.
|
|
|
|
|
((not (org-export--interpret-p data info))
|
|
|
|
|
(org-export-data
|
|
|
|
|
(org-export-expand
|
|
|
|
|
data
|
|
|
|
|
(mapconcat (lambda (blob) (org-export-data blob info))
|
|
|
|
|
(org-element-contents data)
|
|
|
|
|
""))
|
|
|
|
|
info))
|
|
|
|
|
;; Secondary string.
|
|
|
|
|
((not type)
|
|
|
|
|
(mapconcat (lambda (obj) (org-export-data obj info)) data ""))
|
|
|
|
|
;; Element/Object without contents or, as a special case,
|
|
|
|
|
;; headline with archive tag and archived trees restricted
|
|
|
|
|
;; to title only.
|
|
|
|
|
((or (not (org-element-contents data))
|
|
|
|
|
(and (eq type 'headline)
|
|
|
|
|
(eq (plist-get info :with-archived-trees) 'headline)
|
|
|
|
|
(org-element-property :archivedp data)))
|
|
|
|
|
(let ((transcoder (org-export-transcoder data info)))
|
|
|
|
|
(and (functionp transcoder)
|
|
|
|
|
(funcall transcoder data nil info))))
|
|
|
|
|
;; Element/Object with contents.
|
|
|
|
|
(t
|
|
|
|
|
(let ((transcoder (org-export-transcoder data info)))
|
|
|
|
|
(when transcoder
|
|
|
|
|
(let* ((greaterp (memq type org-element-greater-elements))
|
|
|
|
|
(objectp
|
|
|
|
|
(and (not greaterp)
|
|
|
|
|
(memq type org-element-recursive-objects)))
|
|
|
|
|
(contents
|
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (element) (org-export-data element info))
|
|
|
|
|
(org-element-contents
|
|
|
|
|
(if (or greaterp objectp) data
|
|
|
|
|
;; Elements directly containing objects
|
|
|
|
|
;; must have their indentation normalized
|
|
|
|
|
;; first.
|
|
|
|
|
(org-element-normalize-contents
|
|
|
|
|
data
|
|
|
|
|
;; When normalizing contents of the first
|
|
|
|
|
;; paragraph in an item or a footnote
|
|
|
|
|
;; definition, ignore first line's
|
|
|
|
|
;; indentation: there is none and it
|
|
|
|
|
;; might be misleading.
|
|
|
|
|
(when (eq type 'paragraph)
|
|
|
|
|
(let ((parent (org-export-get-parent data)))
|
|
|
|
|
(and
|
|
|
|
|
(eq (car (org-element-contents parent))
|
|
|
|
|
data)
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
(memq (org-element-type parent)
|
|
|
|
|
'(footnote-definition item))))))))
|
2012-07-24 11:02:48 -04:00
|
|
|
|
"")))
|
|
|
|
|
(funcall transcoder data
|
|
|
|
|
(if (not greaterp) contents
|
|
|
|
|
(org-element-normalize-string contents))
|
|
|
|
|
info))))))))
|
|
|
|
|
;; Final result will be memoized before being returned.
|
|
|
|
|
(puthash
|
|
|
|
|
data
|
|
|
|
|
(cond
|
|
|
|
|
((not results) nil)
|
|
|
|
|
((memq type '(org-data plain-text nil)) results)
|
|
|
|
|
;; Append the same white space between elements or objects as in
|
|
|
|
|
;; the original buffer, and call appropriate filters.
|
|
|
|
|
(t
|
|
|
|
|
(let ((results
|
|
|
|
|
(org-export-filter-apply-functions
|
|
|
|
|
(plist-get info (intern (format ":filter-%s" type)))
|
|
|
|
|
(let ((post-blank (or (org-element-property :post-blank data)
|
|
|
|
|
0)))
|
|
|
|
|
(if (memq type org-element-all-elements)
|
|
|
|
|
(concat (org-element-normalize-string results)
|
|
|
|
|
(make-string post-blank ?\n))
|
|
|
|
|
(concat results (make-string post-blank ? ))))
|
|
|
|
|
info)))
|
|
|
|
|
results)))
|
|
|
|
|
(plist-get info :exported-data))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--interpret-p (blob info)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Non-nil if element or object BLOB should be interpreted as Org syntax.
|
|
|
|
|
Check is done according to export options INFO, stored as
|
|
|
|
|
a plist."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(case (org-element-type blob)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; ... entities...
|
|
|
|
|
(entity (plist-get info :with-entities))
|
|
|
|
|
;; ... emphasis...
|
2012-11-28 07:34:22 -05:00
|
|
|
|
((bold italic strike-through underline)
|
|
|
|
|
(plist-get info :with-emphasize))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; ... fixed-width areas.
|
|
|
|
|
(fixed-width (plist-get info :with-fixed-width))
|
|
|
|
|
;; ... footnotes...
|
|
|
|
|
((footnote-definition footnote-reference)
|
|
|
|
|
(plist-get info :with-footnotes))
|
|
|
|
|
;; ... sub/superscripts...
|
|
|
|
|
((subscript superscript)
|
|
|
|
|
(let ((sub/super-p (plist-get info :with-sub-superscript)))
|
|
|
|
|
(if (eq sub/super-p '{})
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-element-property :use-brackets-p blob)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
sub/super-p)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; ... tables...
|
|
|
|
|
(table (plist-get info :with-tables))
|
|
|
|
|
(otherwise t)))
|
|
|
|
|
|
2012-07-01 16:29:23 -04:00
|
|
|
|
(defun org-export-expand (blob contents)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Expand a parsed element or object to its original state.
|
|
|
|
|
BLOB is either an element or an object. CONTENTS is its
|
|
|
|
|
contents, as a string or nil."
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
(funcall
|
|
|
|
|
(intern (format "org-element-%s-interpreter" (org-element-type blob)))
|
|
|
|
|
blob contents))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-ignore-element (element info)
|
|
|
|
|
"Add ELEMENT to `:ignore-list' in INFO.
|
|
|
|
|
|
|
|
|
|
Any element in `:ignore-list' will be skipped when using
|
|
|
|
|
`org-element-map'. INFO is modified by side effects."
|
|
|
|
|
(plist-put info :ignore-list (cons element (plist-get info :ignore-list))))
|
2012-02-22 11:35:52 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; The Filter System
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Filters allow end-users to tweak easily the transcoded output.
|
|
|
|
|
;; They are the functional counterpart of hooks, as every filter in
|
|
|
|
|
;; a set is applied to the return value of the previous one.
|
2012-04-27 18:57:38 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Every set is back-end agnostic. Although, a filter is always
|
|
|
|
|
;; called, in addition to the string it applies to, with the back-end
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;; used as argument, so it's easy for the end-user to add back-end
|
|
|
|
|
;; specific filters in the set. The communication channel, as
|
|
|
|
|
;; a plist, is required as the third argument.
|
|
|
|
|
;;
|
|
|
|
|
;; From the developer side, filters sets can be installed in the
|
2012-07-23 08:07:16 -04:00
|
|
|
|
;; process with the help of `org-export-define-backend', which
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; internally stores filters as an alist. Each association has a key
|
|
|
|
|
;; among the following symbols and a function or a list of functions
|
|
|
|
|
;; as value.
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;;
|
|
|
|
|
;; - `:filter-parse-tree' applies directly on the complete parsed
|
|
|
|
|
;; tree. It's the only filters set that doesn't apply to a string.
|
|
|
|
|
;; Users can set it through `org-export-filter-parse-tree-functions'
|
|
|
|
|
;; variable.
|
|
|
|
|
;;
|
|
|
|
|
;; - `:filter-final-output' applies to the final transcoded string.
|
|
|
|
|
;; Users can set it with `org-export-filter-final-output-functions'
|
|
|
|
|
;; variable
|
|
|
|
|
;;
|
|
|
|
|
;; - `:filter-plain-text' applies to any string not recognized as Org
|
|
|
|
|
;; syntax. `org-export-filter-plain-text-functions' allows users to
|
|
|
|
|
;; configure it.
|
|
|
|
|
;;
|
|
|
|
|
;; - `:filter-TYPE' applies on the string returned after an element or
|
|
|
|
|
;; object of type TYPE has been transcoded. An user can modify
|
|
|
|
|
;; `org-export-filter-TYPE-functions'
|
|
|
|
|
;;
|
|
|
|
|
;; All filters sets are applied with
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-filter-apply-functions' function. Filters in a set are
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; applied in a LIFO fashion. It allows developers to be sure that
|
|
|
|
|
;; their filters will be applied first.
|
2012-04-27 18:57:38 -04:00
|
|
|
|
;;
|
|
|
|
|
;; Filters properties are installed in communication channel with
|
|
|
|
|
;; `org-export-install-filters' function.
|
|
|
|
|
;;
|
2012-11-02 09:06:50 -04:00
|
|
|
|
;; Eventually, two hooks (`org-export-before-processing-hook' and
|
|
|
|
|
;; `org-export-before-parsing-hook') are run at the beginning of the
|
|
|
|
|
;; export process and just before parsing to allow for heavy structure
|
|
|
|
|
;; modifications.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-04-27 18:57:38 -04:00
|
|
|
|
|
2012-11-02 09:06:50 -04:00
|
|
|
|
;;;; Hooks
|
|
|
|
|
|
|
|
|
|
(defvar org-export-before-processing-hook nil
|
|
|
|
|
"Hook run at the beginning of the export process.
|
|
|
|
|
|
|
|
|
|
This is run before include keywords and macros are expanded and
|
|
|
|
|
Babel code blocks executed, on a copy of the original buffer
|
|
|
|
|
being exported. Visibility and narrowing are preserved. Point
|
|
|
|
|
is at the beginning of the buffer.
|
|
|
|
|
|
|
|
|
|
Every function in this hook will be called with one argument: the
|
|
|
|
|
back-end currently used, as a symbol.")
|
2012-04-27 18:57:38 -04:00
|
|
|
|
|
|
|
|
|
(defvar org-export-before-parsing-hook nil
|
|
|
|
|
"Hook run before parsing an export buffer.
|
2012-08-24 04:06:14 -04:00
|
|
|
|
|
2012-11-02 09:06:50 -04:00
|
|
|
|
This is run after include keywords and macros have been expanded
|
|
|
|
|
and Babel code blocks executed, on a copy of the original buffer
|
|
|
|
|
being exported. Visibility and narrowing are preserved. Point
|
|
|
|
|
is at the beginning of the buffer.
|
2012-08-24 04:06:14 -04:00
|
|
|
|
|
|
|
|
|
Every function in this hook will be called with one argument: the
|
|
|
|
|
back-end currently used, as a symbol.")
|
2012-02-13 07:50:28 -05:00
|
|
|
|
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;;;; Special Filters
|
2012-04-27 18:57:38 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defvar org-export-filter-parse-tree-functions nil
|
2012-04-27 18:57:38 -04:00
|
|
|
|
"List of functions applied to the parsed tree.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Each filter is called with three arguments: the parse tree, as
|
|
|
|
|
returned by `org-element-parse-buffer', the back-end, as
|
|
|
|
|
a symbol, and the communication channel, as a plist. It must
|
|
|
|
|
return the modified parse tree to transcode.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-final-output-functions nil
|
2012-04-27 18:57:38 -04:00
|
|
|
|
"List of functions applied to the transcoded string.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Each filter is called with three arguments: the full transcoded
|
|
|
|
|
string, the back-end, as a symbol, and the communication channel,
|
|
|
|
|
as a plist. It must return a string that will be used as the
|
|
|
|
|
final export output.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-plain-text-functions nil
|
2012-04-27 18:57:38 -04:00
|
|
|
|
"List of functions applied to plain text.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Each filter is called with three arguments: a string which
|
|
|
|
|
contains no Org syntax, the back-end, as a symbol, and the
|
|
|
|
|
communication channel, as a plist. It must return a string or
|
|
|
|
|
nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Elements Filters
|
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-babel-call-functions nil
|
|
|
|
|
"List of functions applied to a transcoded babel-call.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-center-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded center block.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-clock-functions nil
|
|
|
|
|
"List of functions applied to a transcoded clock.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-comment-functions nil
|
|
|
|
|
"List of functions applied to a transcoded comment.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-comment-block-functions nil
|
2012-10-28 18:00:04 -04:00
|
|
|
|
"List of functions applied to a transcoded comment-block.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-diary-sexp-functions nil
|
|
|
|
|
"List of functions applied to a transcoded diary-sexp.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-drawer-functions nil
|
|
|
|
|
"List of functions applied to a transcoded drawer.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-dynamic-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded dynamic-block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-example-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded example-block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 16:38:12 -04:00
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-export-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded export-block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-fixed-width-functions nil
|
|
|
|
|
"List of functions applied to a transcoded fixed-width.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-footnote-definition-functions nil
|
|
|
|
|
"List of functions applied to a transcoded footnote-definition.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-headline-functions nil
|
|
|
|
|
"List of functions applied to a transcoded headline.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-horizontal-rule-functions nil
|
|
|
|
|
"List of functions applied to a transcoded horizontal-rule.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-inlinetask-functions nil
|
|
|
|
|
"List of functions applied to a transcoded inlinetask.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-item-functions nil
|
|
|
|
|
"List of functions applied to a transcoded item.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-keyword-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded keyword.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-latex-environment-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded latex-environment.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-23 16:50:33 -04:00
|
|
|
|
(defvar org-export-filter-node-property-functions nil
|
|
|
|
|
"List of functions applied to a transcoded node-property.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defvar org-export-filter-paragraph-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded paragraph.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-09-24 02:29:54 -04:00
|
|
|
|
(defvar org-export-filter-plain-list-functions nil
|
|
|
|
|
"List of functions applied to a transcoded plain-list.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
2012-04-28 20:11:22 -04:00
|
|
|
|
(defvar org-export-filter-planning-functions nil
|
|
|
|
|
"List of functions applied to a transcoded planning.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defvar org-export-filter-property-drawer-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded property-drawer.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-quote-block-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded quote block.
|
|
|
|
|
Each filter is called with three arguments: the transcoded quote
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
data, as a string, the back-end, as a symbol, and the
|
2012-03-19 16:38:12 -04:00
|
|
|
|
communication channel, as a plist. It must return a string or
|
|
|
|
|
nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-quote-section-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded quote-section.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-section-functions nil
|
|
|
|
|
"List of functions applied to a transcoded section.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
2012-01-08 06:37:22 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defvar org-export-filter-special-block-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded special block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-src-block-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded src-block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-table-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded table.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 16:38:12 -04:00
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(defvar org-export-filter-table-cell-functions nil
|
|
|
|
|
"List of functions applied to a transcoded table-cell.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-table-row-functions nil
|
|
|
|
|
"List of functions applied to a transcoded table-row.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defvar org-export-filter-verse-block-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded verse block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Objects Filters
|
|
|
|
|
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
(defvar org-export-filter-bold-functions nil
|
|
|
|
|
"List of functions applied to transcoded bold text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-code-functions nil
|
|
|
|
|
"List of functions applied to transcoded code text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-entity-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded entity.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-export-snippet-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded export-snippet.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-footnote-reference-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded footnote-reference.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-inline-babel-call-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded inline-babel-call.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-inline-src-block-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded inline-src-block.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-italic-functions nil
|
|
|
|
|
"List of functions applied to transcoded italic text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-latex-fragment-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded latex-fragment.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-line-break-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded line-break.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-link-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded link.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 16:38:12 -04:00
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-macro-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded macro.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 16:38:12 -04:00
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-radio-target-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded radio-target.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-statistics-cookie-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded statistics-cookie.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-strike-through-functions nil
|
|
|
|
|
"List of functions applied to transcoded strike-through text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-subscript-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded subscript.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-superscript-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded superscript.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-target-functions nil
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"List of functions applied to a transcoded target.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-04-28 20:23:09 -04:00
|
|
|
|
(defvar org-export-filter-timestamp-functions nil
|
|
|
|
|
"List of functions applied to a transcoded timestamp.
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-underline-functions nil
|
|
|
|
|
"List of functions applied to transcoded underline text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-verbatim-functions nil
|
org-element: Define new objects (bold, code, italic, ...)
* contrib/lisp/org-e-ascii.el (org-e-ascii-option-alist): Fix typo.
(org-e-ascii-bold, org-e-ascii-code, org-e-ascii-strike-through,
org-e-ascii-underline): New functions.
(org-e-ascii-emphasis): Remove function.
* contrib/lisp/org-e-html.el (org-e-html-text-markup-alist): Variable
renamed from `org-e-html-emphasis-alist'. Change value type.
(org-e-html-bold, org-e-html-italic, org-e-html-strike-through,
org-e-html-underline): New functions.
(org-e-html-verbatim): Update function.
(org-e-html-emphasis): Remove function.
* contrib/lisp/org-e-latex.el (org-e-latex-text-markup-alist):
Variable renamed from `org-e-latex-emphasis-alist'. Change value
type.
(org-e-latex-center-block): Fix docstring.
(org-e-latex--text-markup, org-e-latex-bold, org-e-latex-code,
org-e-latex-italic, org-e-latex-strike-through,
org-e-latex-underline): New functions.
(org-e-latex-verbatim): Update function.
(org-e-latex-emphasis): Remove function.
* contrib/lisp/org-e-odt.el (org-e-odt-bold, org-e-odt-code,
org-e-odt-italic, org-e-odt-strike-through, org-e-odt-underline):
New functions.
(org-e-odt-verbatim): Update function.
(org-e-odt-center-block): Fix docstring.
(org-e-odt-emphasis): Remove function.
* contrib/lisp/org-element.el (org-element-bold-parser):
(org-element-bold-interpreter, org-element-code-parser,
org-element-code-interpreter, org-element-italic-parser,
org-element-italic-interpreter, org-element-strike-through-parser,
org-element-strike-through-interpreter, org-element-underline-parser,
org-element-underline-interpreter): New functions.
(org-element-emphasis-parser, org-element-emphasis-interpreter):
Remove functions.
(org-element-verbatim-parser, org-element-verbatim-interpreter,
org-element-text-markup-successor): Update function.
(org-element-object-successor-alist): Add associations for new object
types.
(org-element-recursive-objects): Add `bold', `italic',
`strike-through' and `underline' as recursive types.
(org-element-object-restrictions): Add restrictions for new recursive
object types.
* contrib/lisp/org-export.el (org-export-filters-alist): Add filters
for new object types.
(org-export-with-todo-keywords): Add missing keywords.
(org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions, org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-section-functions,
org-export-filter-quote-block-functions,
org-export-filter-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-table-cell-functions,
org-export-filter-table-row-functions,
org-export-filter-verse-block-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions, org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): Fix docstring.
(org-export-filter-bold-functions, org-export-filter-code-functions,
org-export-filter-italic-functions,
org-export-filter-strike-through-functions,
org-export-filter-underline-functions): New variables.
(org-export-filter-emphasis-functions): Remove variable.
* testing/lisp/test-org-element.el: Add tests.
2012-04-28 12:00:50 -04:00
|
|
|
|
"List of functions applied to transcoded verbatim text.
|
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
|
|
|
|
channel, as a plist. It must return a string or nil.")
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-06-08 17:57:45 -04:00
|
|
|
|
|
|
|
|
|
;;;; Filters Tools
|
|
|
|
|
;;
|
|
|
|
|
;; Internal function `org-export-install-filters' installs filters
|
|
|
|
|
;; hard-coded in back-ends (developer filters) and filters from global
|
|
|
|
|
;; variables (user filters) in the communication channel.
|
|
|
|
|
;;
|
|
|
|
|
;; Internal function `org-export-filter-apply-functions' takes care
|
2012-08-22 07:48:12 -04:00
|
|
|
|
;; about applying each filter in order to a given data. It ignores
|
|
|
|
|
;; filters returning a nil value but stops whenever a filter returns
|
|
|
|
|
;; an empty string.
|
2012-06-08 17:57:45 -04:00
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
(defun org-export-filter-apply-functions (filters value info)
|
|
|
|
|
"Call every function in FILTERS.
|
2012-08-22 07:48:12 -04:00
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
Functions are called with arguments VALUE, current export
|
2012-08-22 07:48:12 -04:00
|
|
|
|
back-end and INFO. A function returning a nil value will be
|
|
|
|
|
skipped. If it returns the empty string, the process ends and
|
|
|
|
|
VALUE is ignored.
|
|
|
|
|
|
|
|
|
|
Call is done in a LIFO fashion, to be sure that developer
|
|
|
|
|
specified filters, if any, are called first."
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(dolist (filter filters value)
|
|
|
|
|
(let ((result (funcall filter value (plist-get info :back-end) info)))
|
2012-08-27 08:34:39 -04:00
|
|
|
|
(cond ((not result) value)
|
2012-08-22 07:48:12 -04:00
|
|
|
|
((equal value "") (throw 'exit nil))
|
|
|
|
|
(t (setq value result)))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
(defun org-export-install-filters (info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Install filters properties in communication channel.
|
|
|
|
|
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
INFO is a plist containing the current communication channel.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
Return the updated communication channel."
|
|
|
|
|
(let (plist)
|
|
|
|
|
;; Install user defined filters with `org-export-filters-alist'.
|
|
|
|
|
(mapc (lambda (p)
|
|
|
|
|
(setq plist (plist-put plist (car p) (eval (cdr p)))))
|
|
|
|
|
org-export-filters-alist)
|
|
|
|
|
;; Prepend back-end specific filters to that list.
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(mapc (lambda (p)
|
|
|
|
|
;; Single values get consed, lists are prepended.
|
|
|
|
|
(let ((key (car p)) (value (cdr p)))
|
|
|
|
|
(when value
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist key
|
|
|
|
|
(if (atom value) (cons value (plist-get plist key))
|
|
|
|
|
(append value (plist-get plist key))))))))
|
|
|
|
|
(org-export-backend-filters (plist-get info :back-end)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Return new communication channel.
|
|
|
|
|
(org-combine-plists info plist)))
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Core functions
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; This is the room for the main function, `org-export-as', along with
|
2011-12-20 07:49:06 -05:00
|
|
|
|
;; its derivatives, `org-export-to-buffer' and `org-export-to-file'.
|
|
|
|
|
;; They differ only by the way they output the resulting code.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-output-file-name' is an auxiliary function meant to be
|
|
|
|
|
;; used with `org-export-to-file'. With a given extension, it tries
|
|
|
|
|
;; to provide a canonical file name to write export output to.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Note that `org-export-as' doesn't really parse the current buffer,
|
|
|
|
|
;; but a copy of it (with the same buffer-local variables and
|
2012-08-31 18:03:04 -04:00
|
|
|
|
;; visibility), where macros and include keywords are expanded and
|
|
|
|
|
;; Babel blocks are executed, if appropriate.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-with-current-buffer-copy' macro prepares that copy.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; File inclusion is taken care of by
|
|
|
|
|
;; `org-export-expand-include-keyword' and
|
2012-07-24 10:04:35 -04:00
|
|
|
|
;; `org-export--prepare-file-contents'. Structure wise, including
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; a whole Org file in a buffer often makes little sense. For
|
|
|
|
|
;; example, if the file contains an headline and the include keyword
|
|
|
|
|
;; was within an item, the item should contain the headline. That's
|
|
|
|
|
;; why file inclusion should be done before any structure can be
|
|
|
|
|
;; associated to the file, that is before parsing.
|
|
|
|
|
|
|
|
|
|
(defun org-export-as
|
|
|
|
|
(backend &optional subtreep visible-only body-only ext-plist noexpand)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Transcode current Org buffer into BACKEND code.
|
|
|
|
|
|
|
|
|
|
If narrowing is active in the current buffer, only transcode its
|
|
|
|
|
narrowed part.
|
|
|
|
|
|
|
|
|
|
If a region is active, transcode that region.
|
|
|
|
|
|
|
|
|
|
When optional argument SUBTREEP is non-nil, transcode 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 return body
|
|
|
|
|
code, without preamble nor postamble.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional argument EXT-PLIST, when provided, is a property list
|
|
|
|
|
with external parameters overriding Org default settings, but
|
|
|
|
|
still inferior to file-local settings.
|
|
|
|
|
|
|
|
|
|
Optional argument NOEXPAND, when non-nil, prevents included files
|
|
|
|
|
to be expanded and Babel code to be executed.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
Return code as a string."
|
2012-09-24 16:35:55 -04:00
|
|
|
|
;; Barf if BACKEND isn't registered.
|
|
|
|
|
(org-export-barf-if-invalid-backend backend)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(save-excursion
|
|
|
|
|
(save-restriction
|
2012-04-13 09:30:02 -04:00
|
|
|
|
;; Narrow buffer to an appropriate region or subtree for
|
|
|
|
|
;; parsing. If parsing subtree, be sure to remove main headline
|
|
|
|
|
;; too.
|
|
|
|
|
(cond ((org-region-active-p)
|
|
|
|
|
(narrow-to-region (region-beginning) (region-end)))
|
|
|
|
|
(subtreep
|
|
|
|
|
(org-narrow-to-subtree)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(forward-line)
|
|
|
|
|
(narrow-to-region (point) (point-max))))
|
2012-10-30 10:07:44 -04:00
|
|
|
|
;; Initialize communication channel with original buffer
|
|
|
|
|
;; attributes, unavailable in its copy.
|
|
|
|
|
(let ((info (org-export--get-buffer-attributes)) tree)
|
2012-10-29 08:42:30 -04:00
|
|
|
|
(org-export-with-current-buffer-copy
|
2012-11-02 09:06:50 -04:00
|
|
|
|
;; Run first hook with current back-end as argument.
|
|
|
|
|
(run-hook-with-args 'org-export-before-processing-hook backend)
|
2012-10-29 08:42:30 -04:00
|
|
|
|
;; Update communication channel and get parse tree. Buffer
|
|
|
|
|
;; isn't parsed directly. Instead, a temporary copy is
|
|
|
|
|
;; created, where include keywords, macros are expanded and
|
|
|
|
|
;; code blocks are evaluated.
|
|
|
|
|
(unless noexpand
|
|
|
|
|
(org-export-expand-include-keyword)
|
|
|
|
|
;; Update macro templates since #+INCLUDE keywords might
|
|
|
|
|
;; have added some new ones.
|
|
|
|
|
(org-macro-initialize-templates)
|
|
|
|
|
(org-macro-replace-all org-macro-templates)
|
2012-11-24 18:24:25 -05:00
|
|
|
|
(org-export-execute-babel-code))
|
2012-10-29 08:42:30 -04:00
|
|
|
|
;; Update radio targets since keyword inclusion might have
|
|
|
|
|
;; added some more.
|
|
|
|
|
(org-update-radio-target-regexp)
|
2012-11-02 09:06:50 -04:00
|
|
|
|
;; Run last hook with current back-end as argument.
|
2012-10-29 08:42:30 -04:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(run-hook-with-args 'org-export-before-parsing-hook backend)
|
2012-10-30 10:07:44 -04:00
|
|
|
|
;; Update communication channel with environment. Also
|
|
|
|
|
;; install user's and developer's filters.
|
2012-10-29 08:42:30 -04:00
|
|
|
|
(setq info
|
|
|
|
|
(org-export-install-filters
|
2012-10-30 10:07:44 -04:00
|
|
|
|
(org-combine-plists
|
|
|
|
|
info (org-export-get-environment backend subtreep ext-plist))))
|
2012-10-29 08:42:30 -04:00
|
|
|
|
;; Expand export-specific set of macros: {{{author}}},
|
|
|
|
|
;; {{{date}}}, {{{email}}} and {{{title}}}. It must be done
|
|
|
|
|
;; once regular macros have been expanded, since document
|
|
|
|
|
;; keywords may contain one of them.
|
|
|
|
|
(unless noexpand
|
|
|
|
|
(org-macro-replace-all
|
|
|
|
|
(list (cons "author"
|
|
|
|
|
(org-element-interpret-data (plist-get info :author)))
|
|
|
|
|
(cons "date"
|
|
|
|
|
(org-element-interpret-data (plist-get info :date)))
|
|
|
|
|
;; EMAIL is not a parsed keyword: store it as-is.
|
|
|
|
|
(cons "email" (or (plist-get info :email) ""))
|
|
|
|
|
(cons "title"
|
|
|
|
|
(org-element-interpret-data (plist-get info :title))))))
|
|
|
|
|
;; Eventually parse buffer. Call parse-tree filters to get
|
|
|
|
|
;; the final tree.
|
|
|
|
|
(setq tree
|
|
|
|
|
(org-export-filter-apply-functions
|
|
|
|
|
(plist-get info :filter-parse-tree)
|
|
|
|
|
(org-element-parse-buffer nil visible-only) info)))
|
|
|
|
|
;; Now tree is complete, compute its properties and add them
|
|
|
|
|
;; to communication channel.
|
2012-04-07 09:14:58 -04:00
|
|
|
|
(setq info
|
|
|
|
|
(org-combine-plists
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
info (org-export-collect-tree-properties tree info)))
|
2012-10-29 08:42:30 -04:00
|
|
|
|
;; Eventually transcode TREE. Wrap the resulting string into
|
|
|
|
|
;; a template, if required. Finally call final-output filter.
|
2012-11-02 19:25:13 -04:00
|
|
|
|
(let* ((body (org-element-normalize-string
|
|
|
|
|
(or (org-export-data tree info) "")))
|
2012-06-12 07:48:19 -04:00
|
|
|
|
(template (cdr (assq 'template
|
|
|
|
|
(plist-get info :translate-alist))))
|
2012-04-07 09:14:58 -04:00
|
|
|
|
(output (org-export-filter-apply-functions
|
|
|
|
|
(plist-get info :filter-final-output)
|
2012-07-15 14:02:22 -04:00
|
|
|
|
(if (or (not (functionp template)) body-only) body
|
2012-04-07 09:14:58 -04:00
|
|
|
|
(funcall template body info))
|
org-export: Remove unnecessary back-end arguments
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-dynamic-block,
org-e-ascii-inlinetask, org-e-ascii-item, org-e-ascii-link,
org-e-ascii-quote-section, org-e-ascii--table-cell-width): Do not
provide back-end symbol.
* contrib/lisp/org-e-html.el (org-e-html--caption/label-string,
org-e-html-footnote-section, org-e-html-template,
org-e-html-dynamic-block, org-e-html-format-headline--wrap,
org-e-html-headline, org-e-html-item, org-e-html-link,
org-e-html-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-dynamic-block,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-inlinetask, org-e-latex-item, org-e-latex-link,
org-e-latex-src-block): Do not provide back-end symbol.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-write-manifest-file,
org-e-odt--caption/label-string, org-e-odt-dynamic-block,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block,
org-e-odt-time-stamp): Do not provide back-end symbol.
* contrib/lisp/org-export.el (org-export-get-environment): Provide
back-end symbol under `:back-end' property.
(org-export-collect-tree-properties, org-export-data,
org-export-filter-verbatim-functions, org-export-install-filters,
org-export-as, org-export-expand-macro,
org-export-filter-apply-functions, org-export-secondary-string):
Remove back-end references.
* testing/lisp/test-org-export.el: Update tests.
Back-end can be found in communication channel with (plist-get
info :back-end). Hence back-ends do not have to hard-code their name
in any transcoder. It will allow to derive a back-end from another
one.
2012-04-28 05:33:16 -04:00
|
|
|
|
info)))
|
2012-04-07 09:14:58 -04:00
|
|
|
|
;; Maybe add final OUTPUT to kill ring, then return it.
|
2012-11-02 19:25:13 -04:00
|
|
|
|
(when (and org-export-copy-to-kill-ring (org-string-nw-p output))
|
|
|
|
|
(org-kill-new output))
|
2012-04-07 09:14:58 -04:00
|
|
|
|
output)))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-to-buffer
|
|
|
|
|
(backend buffer &optional subtreep visible-only body-only ext-plist noexpand)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Call `org-export-as' with output to a specified buffer.
|
|
|
|
|
|
|
|
|
|
BACKEND is the back-end used for transcoding, as a symbol.
|
|
|
|
|
|
|
|
|
|
BUFFER is the output buffer. If it already exists, it will be
|
|
|
|
|
erased first, otherwise, it will be created.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY, EXT-PLIST
|
|
|
|
|
and NOEXPAND are similar to those used in `org-export-as', which
|
|
|
|
|
see.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
Return buffer."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((out (org-export-as
|
|
|
|
|
backend subtreep visible-only body-only ext-plist noexpand))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(buffer (get-buffer-create buffer)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(with-current-buffer buffer
|
|
|
|
|
(erase-buffer)
|
|
|
|
|
(insert out)
|
|
|
|
|
(goto-char (point-min)))
|
|
|
|
|
buffer))
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-to-file
|
|
|
|
|
(backend file &optional subtreep visible-only body-only ext-plist noexpand)
|
2011-12-20 07:49:06 -05:00
|
|
|
|
"Call `org-export-as' with output to a specified file.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
BACKEND is the back-end used for transcoding, as a symbol. FILE
|
|
|
|
|
is the name of the output file, as a string.
|
2011-12-20 07:49:06 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY, EXT-PLIST
|
|
|
|
|
and NOEXPAND are similar to those used in `org-export-as', which
|
2011-12-20 07:49:06 -05:00
|
|
|
|
see.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return output file's name."
|
|
|
|
|
;; Checks for FILE permissions. `write-file' would do the same, but
|
|
|
|
|
;; we'd rather avoid needless transcoding of parse tree.
|
|
|
|
|
(unless (file-writable-p file) (error "Output file not writable"))
|
|
|
|
|
;; Insert contents to a temporary buffer and write it to FILE.
|
|
|
|
|
(let ((out (org-export-as
|
|
|
|
|
backend subtreep visible-only body-only ext-plist noexpand)))
|
2012-01-16 15:34:12 -05:00
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert out)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((coding-system-for-write org-export-coding-system))
|
|
|
|
|
(write-file file))))
|
|
|
|
|
;; Return full path.
|
|
|
|
|
file)
|
|
|
|
|
|
|
|
|
|
(defun org-export-output-file-name (extension &optional subtreep pub-dir)
|
|
|
|
|
"Return output file's name according to buffer specifications.
|
|
|
|
|
|
|
|
|
|
EXTENSION is a string representing the output file extension,
|
|
|
|
|
with the leading dot.
|
|
|
|
|
|
|
|
|
|
With a non-nil optional argument SUBTREEP, try to determine
|
|
|
|
|
output file's name by looking for \"EXPORT_FILE_NAME\" property
|
|
|
|
|
of subtree at point.
|
|
|
|
|
|
|
|
|
|
When optional argument PUB-DIR is set, use it as the publishing
|
|
|
|
|
directory.
|
|
|
|
|
|
2012-06-08 10:12:47 -04:00
|
|
|
|
When optional argument VISIBLE-ONLY is non-nil, don't export
|
|
|
|
|
contents of hidden elements.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return file name as a string, or nil if it couldn't be
|
|
|
|
|
determined."
|
|
|
|
|
(let ((base-name
|
|
|
|
|
;; File name may come from EXPORT_FILE_NAME subtree property,
|
|
|
|
|
;; assuming point is at beginning of said sub-tree.
|
|
|
|
|
(file-name-sans-extension
|
|
|
|
|
(or (and subtreep
|
|
|
|
|
(org-entry-get
|
|
|
|
|
(save-excursion
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(ignore-errors (org-back-to-heading) (point)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"EXPORT_FILE_NAME" t))
|
|
|
|
|
;; File name may be extracted from buffer's associated
|
|
|
|
|
;; file, if any.
|
2012-10-26 18:02:28 -04:00
|
|
|
|
(let ((visited-file (buffer-file-name (buffer-base-buffer))))
|
|
|
|
|
(and visited-file (file-name-nondirectory visited-file)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Can't determine file name on our own: Ask user.
|
|
|
|
|
(let ((read-file-name-function
|
|
|
|
|
(and org-completion-use-ido 'ido-read-file-name)))
|
|
|
|
|
(read-file-name
|
|
|
|
|
"Output file: " pub-dir nil nil nil
|
|
|
|
|
(lambda (name)
|
|
|
|
|
(string= (file-name-extension name t) extension))))))))
|
2012-10-22 14:58:27 -04:00
|
|
|
|
;; Build file name. Enforce EXTENSION over whatever user may have
|
|
|
|
|
;; come up with. PUB-DIR, if defined, always has precedence over
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; any provided path.
|
|
|
|
|
(cond
|
|
|
|
|
(pub-dir
|
|
|
|
|
(concat (file-name-as-directory pub-dir)
|
|
|
|
|
(file-name-nondirectory base-name)
|
|
|
|
|
extension))
|
2012-10-22 14:58:27 -04:00
|
|
|
|
((file-name-absolute-p base-name) (concat base-name extension))
|
|
|
|
|
(t (concat (file-name-as-directory ".") base-name extension)))))
|
2011-12-20 07:49:06 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defmacro org-export-with-current-buffer-copy (&rest body)
|
|
|
|
|
"Apply BODY in a copy of the current buffer.
|
|
|
|
|
|
|
|
|
|
The copy preserves local variables and visibility of the original
|
|
|
|
|
buffer.
|
|
|
|
|
|
|
|
|
|
Point is at buffer's beginning when BODY is applied."
|
2012-10-18 14:44:24 -04:00
|
|
|
|
(declare (debug (body)))
|
|
|
|
|
(org-with-gensyms (original-buffer offset buffer-string overlays region)
|
|
|
|
|
`(let* ((,original-buffer (current-buffer))
|
|
|
|
|
(,region (list (point-min) (point-max)))
|
|
|
|
|
(,buffer-string (org-with-wide-buffer (buffer-string)))
|
|
|
|
|
(,overlays (mapcar 'copy-overlay (apply 'overlays-in ,region))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(with-temp-buffer
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(let ((buffer-invisibility-spec nil))
|
2011-11-28 14:14:20 -05:00
|
|
|
|
(org-clone-local-variables
|
2012-03-19 16:38:12 -04:00
|
|
|
|
,original-buffer
|
|
|
|
|
"^\\(org-\\|orgtbl-\\|major-mode$\\|outline-\\(regexp\\|level\\)$\\)")
|
2011-11-28 14:14:20 -05:00
|
|
|
|
(insert ,buffer-string)
|
2012-10-18 14:44:24 -04:00
|
|
|
|
(apply 'narrow-to-region ,region)
|
2011-11-28 14:14:20 -05:00
|
|
|
|
(mapc (lambda (ov)
|
|
|
|
|
(move-overlay
|
2012-10-18 14:44:24 -04:00
|
|
|
|
ov (overlay-start ov) (overlay-end ov) (current-buffer)))
|
2011-11-28 14:14:20 -05:00
|
|
|
|
,overlays)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(progn ,@body))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-expand-include-keyword (&optional included dir)
|
|
|
|
|
"Expand every include keyword in buffer.
|
|
|
|
|
Optional argument INCLUDED is a list of included file names along
|
|
|
|
|
with their line restriction, when appropriate. It is used to
|
|
|
|
|
avoid infinite recursion. Optional argument DIR is the current
|
|
|
|
|
working directory. It is used to properly resolve relative
|
|
|
|
|
paths."
|
|
|
|
|
(let ((case-fold-search t))
|
|
|
|
|
(goto-char (point-min))
|
2012-10-29 06:31:19 -04:00
|
|
|
|
(while (re-search-forward "^[ \t]*#\\+INCLUDE: +\\(.*\\)[ \t]*$" nil t)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(when (eq (org-element-type (save-match-data (org-element-at-point)))
|
|
|
|
|
'keyword)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; Extract arguments from keyword's value.
|
|
|
|
|
(let* ((value (match-string 1))
|
|
|
|
|
(ind (org-get-indentation))
|
|
|
|
|
(file (and (string-match "^\"\\(\\S-+\\)\"" value)
|
|
|
|
|
(prog1 (expand-file-name (match-string 1 value) dir)
|
|
|
|
|
(setq value (replace-match "" nil nil value)))))
|
|
|
|
|
(lines
|
|
|
|
|
(and (string-match
|
|
|
|
|
":lines +\"\\(\\(?:[0-9]+\\)?-\\(?:[0-9]+\\)?\\)\"" value)
|
|
|
|
|
(prog1 (match-string 1 value)
|
|
|
|
|
(setq value (replace-match "" nil nil value)))))
|
|
|
|
|
(env (cond ((string-match "\\<example\\>" value) 'example)
|
|
|
|
|
((string-match "\\<src\\(?: +\\(.*\\)\\)?" value)
|
|
|
|
|
(match-string 1 value))))
|
|
|
|
|
;; Minimal level of included file defaults to the child
|
|
|
|
|
;; level of the current headline, if any, or one. It
|
|
|
|
|
;; only applies is the file is meant to be included as
|
|
|
|
|
;; an Org one.
|
|
|
|
|
(minlevel
|
|
|
|
|
(and (not env)
|
|
|
|
|
(if (string-match ":minlevel +\\([0-9]+\\)" value)
|
|
|
|
|
(prog1 (string-to-number (match-string 1 value))
|
|
|
|
|
(setq value (replace-match "" nil nil value)))
|
|
|
|
|
(let ((cur (org-current-level)))
|
|
|
|
|
(if cur (1+ (org-reduced-level cur)) 1))))))
|
|
|
|
|
;; Remove keyword.
|
|
|
|
|
(delete-region (point) (progn (forward-line) (point)))
|
|
|
|
|
(cond
|
2012-10-29 06:31:19 -04:00
|
|
|
|
((not file) (error "Invalid syntax in INCLUDE keyword"))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
((not (file-readable-p file)) (error "Cannot include file %s" file))
|
|
|
|
|
;; Check if files has already been parsed. Look after
|
|
|
|
|
;; inclusion lines too, as different parts of the same file
|
|
|
|
|
;; can be included too.
|
|
|
|
|
((member (list file lines) included)
|
|
|
|
|
(error "Recursive file inclusion: %s" file))
|
|
|
|
|
(t
|
|
|
|
|
(cond
|
|
|
|
|
((eq env 'example)
|
|
|
|
|
(insert
|
|
|
|
|
(let ((ind-str (make-string ind ? ))
|
|
|
|
|
(contents
|
2012-10-06 03:19:41 -04:00
|
|
|
|
(org-escape-code-in-string
|
|
|
|
|
(org-export--prepare-file-contents file lines))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(format "%s#+BEGIN_EXAMPLE\n%s%s#+END_EXAMPLE\n"
|
|
|
|
|
ind-str contents ind-str))))
|
|
|
|
|
((stringp env)
|
|
|
|
|
(insert
|
|
|
|
|
(let ((ind-str (make-string ind ? ))
|
|
|
|
|
(contents
|
2012-10-06 03:19:41 -04:00
|
|
|
|
(org-escape-code-in-string
|
|
|
|
|
(org-export--prepare-file-contents file lines))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(format "%s#+BEGIN_SRC %s\n%s%s#+END_SRC\n"
|
|
|
|
|
ind-str env contents ind-str))))
|
|
|
|
|
(t
|
|
|
|
|
(insert
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(org-mode)
|
|
|
|
|
(insert
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(org-export--prepare-file-contents file lines ind minlevel))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-export-expand-include-keyword
|
|
|
|
|
(cons (list file lines) included)
|
|
|
|
|
(file-name-directory file))
|
|
|
|
|
(buffer-string))))))))))))
|
|
|
|
|
|
2012-07-24 10:04:35 -04:00
|
|
|
|
(defun org-export--prepare-file-contents (file &optional lines ind minlevel)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Prepare the contents of FILE for inclusion and return them as a string.
|
|
|
|
|
|
|
|
|
|
When optional argument LINES is a string specifying a range of
|
|
|
|
|
lines, include only those lines.
|
|
|
|
|
|
|
|
|
|
Optional argument IND, when non-nil, is an integer specifying the
|
|
|
|
|
global indentation of returned contents. Since its purpose is to
|
|
|
|
|
allow an included file to stay in the same environment it was
|
|
|
|
|
created \(i.e. a list item), it doesn't apply past the first
|
|
|
|
|
headline encountered.
|
|
|
|
|
|
|
|
|
|
Optional argument MINLEVEL, when non-nil, is an integer
|
|
|
|
|
specifying the level that any top-level headline in the included
|
|
|
|
|
file should have."
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert-file-contents file)
|
|
|
|
|
(when lines
|
|
|
|
|
(let* ((lines (split-string lines "-"))
|
|
|
|
|
(lbeg (string-to-number (car lines)))
|
|
|
|
|
(lend (string-to-number (cadr lines)))
|
|
|
|
|
(beg (if (zerop lbeg) (point-min)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(forward-line (1- lbeg))
|
|
|
|
|
(point)))
|
|
|
|
|
(end (if (zerop lend) (point-max)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(forward-line (1- lend))
|
|
|
|
|
(point))))
|
|
|
|
|
(narrow-to-region beg end)))
|
|
|
|
|
;; Remove blank lines at beginning and end of contents. The logic
|
|
|
|
|
;; behind that removal is that blank lines around include keyword
|
|
|
|
|
;; override blank lines in included file.
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(org-skip-whitespace)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(delete-region (point-min) (point))
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
(skip-chars-backward " \r\t\n")
|
|
|
|
|
(forward-line)
|
|
|
|
|
(delete-region (point) (point-max))
|
|
|
|
|
;; If IND is set, preserve indentation of include keyword until
|
|
|
|
|
;; the first headline encountered.
|
|
|
|
|
(when ind
|
|
|
|
|
(unless (eq major-mode 'org-mode) (org-mode))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(let ((ind-str (make-string ind ? )))
|
|
|
|
|
(while (not (or (eobp) (looking-at org-outline-regexp-bol)))
|
|
|
|
|
;; Do not move footnote definitions out of column 0.
|
|
|
|
|
(unless (and (looking-at org-footnote-definition-re)
|
|
|
|
|
(eq (org-element-type (org-element-at-point))
|
|
|
|
|
'footnote-definition))
|
|
|
|
|
(insert ind-str))
|
|
|
|
|
(forward-line))))
|
|
|
|
|
;; When MINLEVEL is specified, compute minimal level for headlines
|
|
|
|
|
;; in the file (CUR-MIN), and remove stars to each headline so
|
|
|
|
|
;; that headlines with minimal level have a level of MINLEVEL.
|
|
|
|
|
(when minlevel
|
|
|
|
|
(unless (eq major-mode 'org-mode) (org-mode))
|
2012-10-16 16:00:39 -04:00
|
|
|
|
(org-with-limited-levels
|
|
|
|
|
(let ((levels (org-map-entries
|
|
|
|
|
(lambda () (org-reduced-level (org-current-level))))))
|
|
|
|
|
(when levels
|
|
|
|
|
(let ((offset (- minlevel (apply 'min levels))))
|
|
|
|
|
(unless (zerop offset)
|
|
|
|
|
(when org-odd-levels-only (setq offset (* offset 2)))
|
|
|
|
|
;; Only change stars, don't bother moving whole
|
|
|
|
|
;; sections.
|
|
|
|
|
(org-map-entries
|
|
|
|
|
(lambda () (if (< offset 0) (delete-char (abs offset))
|
|
|
|
|
(insert (make-string offset ?*)))))))))))
|
2012-10-30 08:53:28 -04:00
|
|
|
|
(org-element-normalize-string (buffer-string))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-11-24 18:24:25 -05:00
|
|
|
|
(defun org-export-execute-babel-code ()
|
|
|
|
|
"Execute every Babel code in the visible part of current buffer.
|
|
|
|
|
This function will return an error if the current buffer is
|
|
|
|
|
visiting a file."
|
|
|
|
|
;; Get a pristine copy of current buffer so Babel references can be
|
|
|
|
|
;; properly resolved.
|
|
|
|
|
(let* (clone-buffer-hook (reference (clone-buffer)))
|
|
|
|
|
(unwind-protect (let ((org-current-export-file reference))
|
|
|
|
|
(org-export-blocks-preprocess))
|
|
|
|
|
(kill-buffer reference))))
|
|
|
|
|
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
;;; Tools For Back-Ends
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; A whole set of tools is available to help build new exporters. Any
|
|
|
|
|
;; function general enough to have its use across many back-ends
|
|
|
|
|
;; should be added here.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-06-12 04:25:00 -04:00
|
|
|
|
;;;; For Affiliated Keywords
|
|
|
|
|
;;
|
2012-06-12 11:31:48 -04:00
|
|
|
|
;; `org-export-read-attribute' reads a property from a given element
|
|
|
|
|
;; as a plist. It can be used to normalize affiliated keywords'
|
|
|
|
|
;; syntax.
|
2012-09-13 15:00:25 -04:00
|
|
|
|
;;
|
|
|
|
|
;; Since captions can span over multiple lines and accept dual values,
|
|
|
|
|
;; their internal representation is a bit tricky. Therefore,
|
|
|
|
|
;; `org-export-get-caption' transparently returns a given element's
|
|
|
|
|
;; caption as a secondary string.
|
2012-06-12 04:25:00 -04:00
|
|
|
|
|
2012-07-21 09:12:02 -04:00
|
|
|
|
(defun org-export-read-attribute (attribute element &optional property)
|
2012-06-12 04:25:00 -04:00
|
|
|
|
"Turn ATTRIBUTE property from ELEMENT into a plist.
|
2012-07-21 09:12:02 -04:00
|
|
|
|
|
|
|
|
|
When optional argument PROPERTY is non-nil, return the value of
|
|
|
|
|
that property within attributes.
|
|
|
|
|
|
2012-06-12 04:25:00 -04:00
|
|
|
|
This function assumes attributes are defined as \":keyword
|
|
|
|
|
value\" pairs. It is appropriate for `:attr_html' like
|
|
|
|
|
properties."
|
2012-07-21 09:12:02 -04:00
|
|
|
|
(let ((attributes
|
|
|
|
|
(let ((value (org-element-property attribute element)))
|
|
|
|
|
(and value
|
|
|
|
|
(read (format "(%s)" (mapconcat 'identity value " ")))))))
|
|
|
|
|
(if property (plist-get attributes property) attributes)))
|
2012-06-12 04:25:00 -04:00
|
|
|
|
|
2012-09-13 10:51:54 -04:00
|
|
|
|
(defun org-export-get-caption (element &optional shortp)
|
|
|
|
|
"Return caption from ELEMENT as a secondary string.
|
|
|
|
|
|
|
|
|
|
When optional argument SHORTP is non-nil, return short caption,
|
|
|
|
|
as a secondary string, instead.
|
|
|
|
|
|
|
|
|
|
Caption lines are separated by a white space."
|
|
|
|
|
(let ((full-caption (org-element-property :caption element)) caption)
|
|
|
|
|
(dolist (line full-caption (cdr caption))
|
|
|
|
|
(let ((cap (funcall (if shortp 'cdr 'car) line)))
|
|
|
|
|
(when cap
|
org-element: Optimize affiliated keywords parsing
* lisp/org-element.el (org-element-center-block-parser,
org-element-drawer-parser, org-element-dynamic-block-parser,
org-element-footnote-definition-parser,
org-element-plain-list-parser, org-element-quote-block-parser,
org-element-special-block-parser, org-element-babel-call-parser,
org-element-comment-parser, org-element-comment-block-parser,
org-element-example-block-parser, org-element-export-block-parser,
org-element-fixed-width-parser, org-element-horizontal-rule-parser,
org-element-keyword-parser, org-element-latex-environment-parser,
org-element-paragraph-parser, org-element-property-drawer-parser,
org-element-src-block-parser, org-element-table-parser,
org-element-verse-block-parser): Change signature. Now use an
additional argument: affiliated.
(org-element--current-element): Skip affiliated keywords and pass them
as an argument to parsers. It prevents to walk through these
keywords twice: the first time to get to the first line of the
element, and a second time to collect the affiliated keywords.
* contrib/lisp/org-export.el (org-export-get-caption): Update function
since multiple affiliated keywords are now reversed.
* testing/lisp/test-org-element.el: Update tests.
2012-09-20 13:10:39 -04:00
|
|
|
|
(setq caption (nconc (list " ") (copy-sequence cap) caption)))))))
|
2012-09-13 10:51:54 -04:00
|
|
|
|
|
2012-06-12 04:25:00 -04:00
|
|
|
|
|
2012-11-03 12:43:04 -04:00
|
|
|
|
;;;; For Derived Back-ends
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-with-backend' is a function allowing to locally use
|
|
|
|
|
;; another back-end to transcode some object or element. In a derived
|
|
|
|
|
;; back-end, it may be used as a fall-back function once all specific
|
|
|
|
|
;; cases have been treated.
|
|
|
|
|
|
2012-11-22 09:02:21 -05:00
|
|
|
|
(defun org-export-with-backend (back-end data &optional contents info)
|
|
|
|
|
"Call a transcoder from BACK-END on DATA.
|
|
|
|
|
CONTENTS, when non-nil, is the transcoded contents of DATA
|
|
|
|
|
element, as a string. INFO, when non-nil, is the communication
|
|
|
|
|
channel used for export, as a plist.."
|
2012-11-03 12:43:04 -04:00
|
|
|
|
(org-export-barf-if-invalid-backend back-end)
|
|
|
|
|
(let ((type (org-element-type data)))
|
2012-11-22 09:02:21 -05:00
|
|
|
|
(if (memq type '(nil org-data)) (error "No foreign transcoder available")
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(let ((transcoder
|
|
|
|
|
(cdr (assq type (org-export-backend-translate-table back-end)))))
|
2012-11-22 11:44:10 -05:00
|
|
|
|
(if (functionp transcoder) (funcall transcoder data contents info)
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
(error "No foreign transcoder available"))))))
|
2012-11-03 12:43:04 -04:00
|
|
|
|
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;;;; For Export Snippets
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Every export snippet is transmitted to the back-end. Though, the
|
|
|
|
|
;; latter will only retain one type of export-snippet, ignoring
|
|
|
|
|
;; others, based on the former's target back-end. The function
|
|
|
|
|
;; `org-export-snippet-backend' returns that back-end for a given
|
|
|
|
|
;; export-snippet.
|
|
|
|
|
|
|
|
|
|
(defun org-export-snippet-backend (export-snippet)
|
|
|
|
|
"Return EXPORT-SNIPPET targeted back-end as a symbol.
|
|
|
|
|
Translation, with `org-export-snippet-translation-alist', is
|
|
|
|
|
applied."
|
|
|
|
|
(let ((back-end (org-element-property :back-end export-snippet)))
|
|
|
|
|
(intern
|
|
|
|
|
(or (cdr (assoc back-end org-export-snippet-translation-alist))
|
|
|
|
|
back-end))))
|
|
|
|
|
|
2012-02-23 12:10:14 -05:00
|
|
|
|
|
2011-12-23 08:46:20 -05:00
|
|
|
|
;;;; For Footnotes
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2011-12-23 08:46:20 -05:00
|
|
|
|
;; `org-export-collect-footnote-definitions' is a tool to list
|
|
|
|
|
;; actually used footnotes definitions in the whole parse tree, or in
|
|
|
|
|
;; an headline, in order to add footnote listings throughout the
|
|
|
|
|
;; transcoded data.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2011-12-23 08:46:20 -05:00
|
|
|
|
;; `org-export-footnote-first-reference-p' is a predicate used by some
|
|
|
|
|
;; back-ends, when they need to attach the footnote definition only to
|
|
|
|
|
;; the first occurrence of the corresponding label.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2011-12-23 08:46:20 -05:00
|
|
|
|
;; `org-export-get-footnote-definition' and
|
|
|
|
|
;; `org-export-get-footnote-number' provide easier access to
|
|
|
|
|
;; additional information relative to a footnote reference.
|
|
|
|
|
|
|
|
|
|
(defun org-export-collect-footnote-definitions (data info)
|
2011-12-26 03:57:09 -05:00
|
|
|
|
"Return an alist between footnote numbers, labels and definitions.
|
2011-12-23 08:46:20 -05:00
|
|
|
|
|
|
|
|
|
DATA is the parse tree from which definitions are collected.
|
|
|
|
|
INFO is the plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Definitions are sorted by order of references. They either
|
org-export: Secondary strings are transcoded with `org-export-data'
* contrib/lisp/org-export.el (org-export-transcoder): New function.
(org-export-data): Also export secondary strings. Refactored.
(org-export-secondary-string): Remove function.
(org-export-expand): Fix code indentation.
(org-export-expand-macro): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-ascii.el (org-e-ascii--build-title,
org-e-ascii--build-caption, org-e-ascii--list-listings,
org-e-ascii--list-tables, org-e-ascii--describe-links,
org-e-ascii-template--document-title, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-link, org-e-ascii-quote-section,
org-e-ascii--table-cell-width): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html--caption/label-string, org-e-html-meta-info,
org-e-html-preamble, org-e-html-template,
org-e-html-format-headline--wrap, org-e-html-headline,
org-e-html-item, org-e-html-link): Use `org-export-data' instead of
`org-export-secondary-string'.
* contrib/lisp/org-e-latex.el (org-e-latex--caption/label-string,
org-e-latex-template, org-e-latex-footnote-reference,
org-e-latex-headline, org-e-latex-inlinetask, org-e-latex-item,
org-e-latex-link, org-e-latex-src-block): Use `org-export-data'
instead of `org-export-secondary-string'.
* contrib/lisp/org-e-odt.el (org-e-odt-format-preamble,
org-e-odt-format-label, org-e-odt-update-meta-file,
org-e-odt--caption/label-string, org-e-odt-footnote-def,
org-e-odt-format-headline--wrap, org-e-odt-headline, org-e-odt-item,
org-e-odt-latex-environment, org-e-odt-link, org-e-odt-src-block):
Use `org-export-data' instead of `org-export-secondary-string'.
2012-04-29 20:04:03 -04:00
|
|
|
|
appear as Org data or as a secondary string for inlined
|
|
|
|
|
footnotes. Unreferenced definitions are ignored."
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(let* (num-alist
|
|
|
|
|
collect-fn ; for byte-compiler.
|
|
|
|
|
(collect-fn
|
|
|
|
|
(function
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Collect footnote number, label and definition in DATA.
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'footnote-reference
|
|
|
|
|
(lambda (fn)
|
|
|
|
|
(when (org-export-footnote-first-reference-p fn info)
|
|
|
|
|
(let ((def (org-export-get-footnote-definition fn info)))
|
|
|
|
|
(push
|
|
|
|
|
(list (org-export-get-footnote-number fn info)
|
|
|
|
|
(org-element-property :label fn)
|
|
|
|
|
def)
|
|
|
|
|
num-alist)
|
|
|
|
|
;; Also search in definition for nested footnotes.
|
|
|
|
|
(when (eq (org-element-property :type fn) 'standard)
|
|
|
|
|
(funcall collect-fn def)))))
|
|
|
|
|
;; Don't enter footnote definitions since it will happen
|
|
|
|
|
;; when their first reference is found.
|
|
|
|
|
info nil 'footnote-definition)))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(funcall collect-fn (plist-get info :parse-tree))
|
|
|
|
|
(reverse num-alist)))
|
2011-12-23 08:46:20 -05:00
|
|
|
|
|
|
|
|
|
(defun org-export-footnote-first-reference-p (footnote-reference info)
|
|
|
|
|
"Non-nil when a footnote reference is the first one for its label.
|
|
|
|
|
|
|
|
|
|
FOOTNOTE-REFERENCE is the footnote reference being considered.
|
|
|
|
|
INFO is the plist used as a communication channel."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((label (org-element-property :label footnote-reference)))
|
|
|
|
|
;; Anonymous footnotes are always a first reference.
|
|
|
|
|
(if (not label) t
|
|
|
|
|
;; Otherwise, return the first footnote with the same LABEL and
|
|
|
|
|
;; test if it is equal to FOOTNOTE-REFERENCE.
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(let* (search-refs ; for byte-compiler.
|
|
|
|
|
(search-refs
|
|
|
|
|
(function
|
|
|
|
|
(lambda (data)
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'footnote-reference
|
|
|
|
|
(lambda (fn)
|
|
|
|
|
(cond
|
|
|
|
|
((string= (org-element-property :label fn) label)
|
|
|
|
|
(throw 'exit fn))
|
|
|
|
|
;; If FN isn't inlined, be sure to traverse its
|
|
|
|
|
;; definition before resuming search. See
|
|
|
|
|
;; comments in `org-export-get-footnote-number'
|
|
|
|
|
;; for more information.
|
|
|
|
|
((eq (org-element-property :type fn) 'standard)
|
|
|
|
|
(funcall search-refs
|
|
|
|
|
(org-export-get-footnote-definition fn info)))))
|
|
|
|
|
;; Don't enter footnote definitions since it will
|
|
|
|
|
;; happen when their first reference is found.
|
|
|
|
|
info 'first-match 'footnote-definition)))))
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(eq (catch 'exit (funcall search-refs (plist-get info :parse-tree)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
footnote-reference)))))
|
2011-12-23 08:46:20 -05:00
|
|
|
|
|
|
|
|
|
(defun org-export-get-footnote-definition (footnote-reference info)
|
|
|
|
|
"Return definition of FOOTNOTE-REFERENCE as parsed data.
|
|
|
|
|
INFO is the plist used as a communication channel."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((label (org-element-property :label footnote-reference)))
|
|
|
|
|
(or (org-element-property :inline-definition footnote-reference)
|
2011-12-23 08:46:20 -05:00
|
|
|
|
(cdr (assoc label (plist-get info :footnote-definition-alist))))))
|
|
|
|
|
|
2011-12-25 10:46:38 -05:00
|
|
|
|
(defun org-export-get-footnote-number (footnote info)
|
|
|
|
|
"Return number associated to a footnote.
|
|
|
|
|
|
|
|
|
|
FOOTNOTE is either a footnote reference or a footnote definition.
|
2011-12-23 08:46:20 -05:00
|
|
|
|
INFO is the plist used as a communication channel."
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(let* ((label (org-element-property :label footnote))
|
|
|
|
|
seen-refs
|
2012-08-20 04:25:05 -04:00
|
|
|
|
search-ref ; For byte-compiler.
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(search-ref
|
|
|
|
|
(function
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Search footnote references through DATA, filling
|
|
|
|
|
;; SEEN-REFS along the way.
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'footnote-reference
|
|
|
|
|
(lambda (fn)
|
|
|
|
|
(let ((fn-lbl (org-element-property :label fn)))
|
|
|
|
|
(cond
|
|
|
|
|
;; Anonymous footnote match: return number.
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
((and (not fn-lbl) (eq fn footnote))
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(throw 'exit (1+ (length seen-refs))))
|
|
|
|
|
;; Labels match: return number.
|
|
|
|
|
((and label (string= label fn-lbl))
|
|
|
|
|
(throw 'exit (1+ (length seen-refs))))
|
|
|
|
|
;; Anonymous footnote: it's always a new one. Also,
|
|
|
|
|
;; be sure to return nil from the `cond' so
|
|
|
|
|
;; `first-match' doesn't get us out of the loop.
|
|
|
|
|
((not fn-lbl) (push 'inline seen-refs) nil)
|
|
|
|
|
;; Label not seen so far: add it so SEEN-REFS.
|
|
|
|
|
;;
|
2012-08-20 04:25:05 -04:00
|
|
|
|
;; Also search for subsequent references in
|
|
|
|
|
;; footnote definition so numbering follows reading
|
|
|
|
|
;; logic. Note that we don't have to care about
|
|
|
|
|
;; inline definitions, since `org-element-map'
|
|
|
|
|
;; already traverses them at the right time.
|
2012-06-08 10:12:47 -04:00
|
|
|
|
;;
|
|
|
|
|
;; Once again, return nil to stay in the loop.
|
|
|
|
|
((not (member fn-lbl seen-refs))
|
|
|
|
|
(push fn-lbl seen-refs)
|
|
|
|
|
(funcall search-ref
|
|
|
|
|
(org-export-get-footnote-definition fn info))
|
|
|
|
|
nil))))
|
|
|
|
|
;; Don't enter footnote definitions since it will happen
|
|
|
|
|
;; when their first reference is found.
|
|
|
|
|
info 'first-match 'footnote-definition)))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(catch 'exit (funcall search-ref (plist-get info :parse-tree)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Headlines
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-get-relative-level' is a shortcut to get headline
|
|
|
|
|
;; level, relatively to the lower headline level in the parsed tree.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-get-headline-number' returns the section number of an
|
|
|
|
|
;; headline, while `org-export-number-to-roman' allows to convert it
|
|
|
|
|
;; to roman numbers.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-low-level-p', `org-export-first-sibling-p' and
|
|
|
|
|
;; `org-export-last-sibling-p' are three useful predicates when it
|
|
|
|
|
;; comes to fulfill the `:headline-levels' property.
|
2012-11-03 12:43:04 -04:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-get-tags', `org-export-get-category' and
|
|
|
|
|
;; `org-export-get-node-property' extract useful information from an
|
|
|
|
|
;; headline or a parent headline. They all handle inheritance.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defun org-export-get-relative-level (headline info)
|
|
|
|
|
"Return HEADLINE relative level within current parsed tree.
|
|
|
|
|
INFO is a plist holding contextual information."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(+ (org-element-property :level headline)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(or (plist-get info :headline-offset) 0)))
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-low-level-p (headline info)
|
|
|
|
|
"Non-nil when HEADLINE is considered as low level.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
A low level headlines has a relative level greater than
|
|
|
|
|
`:headline-levels' property value.
|
|
|
|
|
|
|
|
|
|
Return value is the difference between HEADLINE relative level
|
|
|
|
|
and the last level being considered as high enough, or nil."
|
|
|
|
|
(let ((limit (plist-get info :headline-levels)))
|
|
|
|
|
(when (wholenump limit)
|
|
|
|
|
(let ((level (org-export-get-relative-level headline info)))
|
|
|
|
|
(and (> level limit) (- level limit))))))
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defun org-export-get-headline-number (headline info)
|
|
|
|
|
"Return HEADLINE numbering as a list of numbers.
|
|
|
|
|
INFO is a plist holding contextual information."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(cdr (assoc headline (plist-get info :headline-numbering))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-numbered-headline-p (headline info)
|
|
|
|
|
"Return a non-nil value if HEADLINE element should be numbered.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(let ((sec-num (plist-get info :section-numbers))
|
|
|
|
|
(level (org-export-get-relative-level headline info)))
|
|
|
|
|
(if (wholenump sec-num) (<= level sec-num) sec-num)))
|
2012-02-29 13:05:45 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defun org-export-number-to-roman (n)
|
|
|
|
|
"Convert integer N into a roman numeral."
|
|
|
|
|
(let ((roman '((1000 . "M") (900 . "CM") (500 . "D") (400 . "CD")
|
2011-12-09 08:38:36 -05:00
|
|
|
|
( 100 . "C") ( 90 . "XC") ( 50 . "L") ( 40 . "XL")
|
|
|
|
|
( 10 . "X") ( 9 . "IX") ( 5 . "V") ( 4 . "IV")
|
|
|
|
|
( 1 . "I")))
|
|
|
|
|
(res ""))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(if (<= n 0)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(number-to-string n)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(while roman
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(if (>= n (caar roman))
|
|
|
|
|
(setq n (- n (caar roman))
|
|
|
|
|
res (concat res (cdar roman)))
|
|
|
|
|
(pop roman)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
res)))
|
|
|
|
|
|
2012-10-14 07:19:12 -04:00
|
|
|
|
(defun org-export-get-tags (element info &optional tags inherited)
|
2012-05-26 07:44:13 -04:00
|
|
|
|
"Return list of tags associated to ELEMENT.
|
|
|
|
|
|
|
|
|
|
ELEMENT has either an `headline' or an `inlinetask' type. INFO
|
|
|
|
|
is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Select tags (see `org-export-select-tags') and exclude tags (see
|
|
|
|
|
`org-export-exclude-tags') are removed from the list.
|
|
|
|
|
|
|
|
|
|
When non-nil, optional argument TAGS should be a list of strings.
|
2012-10-14 07:19:12 -04:00
|
|
|
|
Any tag belonging to this list will also be removed.
|
|
|
|
|
|
|
|
|
|
When optional argument INHERITED is non-nil, tags can also be
|
2012-10-30 11:03:59 -04:00
|
|
|
|
inherited from parent headlines and FILETAGS keywords."
|
2012-10-14 07:19:12 -04:00
|
|
|
|
(org-remove-if
|
|
|
|
|
(lambda (tag) (or (member tag (plist-get info :select-tags))
|
|
|
|
|
(member tag (plist-get info :exclude-tags))
|
|
|
|
|
(member tag tags)))
|
|
|
|
|
(if (not inherited) (org-element-property :tags element)
|
|
|
|
|
;; Build complete list of inherited tags.
|
|
|
|
|
(let ((current-tag-list (org-element-property :tags element)))
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (parent)
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (tag)
|
|
|
|
|
(when (and (memq (org-element-type parent) '(headline inlinetask))
|
|
|
|
|
(not (member tag current-tag-list)))
|
|
|
|
|
(push tag current-tag-list)))
|
|
|
|
|
(org-element-property :tags parent)))
|
|
|
|
|
(org-export-get-genealogy element))
|
2012-10-30 11:03:59 -04:00
|
|
|
|
;; Add FILETAGS keywords and return results.
|
|
|
|
|
(org-uniquify (append (plist-get info :filetags) current-tag-list))))))
|
2012-05-26 07:44:13 -04:00
|
|
|
|
|
2012-09-23 13:37:21 -04:00
|
|
|
|
(defun org-export-get-node-property (property blob &optional inherited)
|
|
|
|
|
"Return node PROPERTY value for BLOB.
|
|
|
|
|
|
|
|
|
|
PROPERTY is normalized symbol (i.e. `:cookie-data'). BLOB is an
|
|
|
|
|
element or object.
|
|
|
|
|
|
|
|
|
|
If optional argument INHERITED is non-nil, the value can be
|
|
|
|
|
inherited from a parent headline.
|
|
|
|
|
|
|
|
|
|
Return value is a string or nil."
|
|
|
|
|
(let ((headline (if (eq (org-element-type blob) 'headline) blob
|
|
|
|
|
(org-export-get-parent-headline blob))))
|
|
|
|
|
(if (not inherited) (org-element-property property blob)
|
|
|
|
|
(let ((parent headline) value)
|
|
|
|
|
(catch 'found
|
|
|
|
|
(while parent
|
|
|
|
|
(when (plist-member (nth 1 parent) property)
|
|
|
|
|
(throw 'found (org-element-property property parent)))
|
|
|
|
|
(setq parent (org-element-property :parent parent))))))))
|
|
|
|
|
|
2012-11-02 08:44:46 -04:00
|
|
|
|
(defun org-export-get-category (blob info)
|
|
|
|
|
"Return category for element or object BLOB.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
CATEGORY is automatically inherited from a parent headline, from
|
|
|
|
|
#+CATEGORY: keyword or created out of original file name. If all
|
|
|
|
|
fail, the fall-back value is \"???\"."
|
|
|
|
|
(or (let ((headline (if (eq (org-element-type blob) 'headline) blob
|
|
|
|
|
(org-export-get-parent-headline blob))))
|
|
|
|
|
;; Almost like `org-export-node-property', but we cannot trust
|
|
|
|
|
;; `plist-member' as every headline has a `:category'
|
2012-11-03 06:24:28 -04:00
|
|
|
|
;; property, would it be nil or equal to "???" (which has the
|
|
|
|
|
;; same meaning).
|
2012-11-02 08:44:46 -04:00
|
|
|
|
(let ((parent headline) value)
|
|
|
|
|
(catch 'found
|
|
|
|
|
(while parent
|
|
|
|
|
(let ((category (org-element-property :category parent)))
|
2012-11-03 06:24:28 -04:00
|
|
|
|
(and category (not (equal "???" category))
|
|
|
|
|
(throw 'found category)))
|
2012-11-02 08:44:46 -04:00
|
|
|
|
(setq parent (org-element-property :parent parent))))))
|
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) 'keyword
|
|
|
|
|
(lambda (kwd)
|
|
|
|
|
(when (equal (org-element-property :key kwd) "CATEGORY")
|
|
|
|
|
(org-element-property :value kwd)))
|
|
|
|
|
info 'first-match)
|
|
|
|
|
(let ((file (plist-get info :input-file)))
|
|
|
|
|
(and file (file-name-sans-extension (file-name-nondirectory file))))
|
|
|
|
|
"???"))
|
|
|
|
|
|
2012-07-27 10:13:57 -04:00
|
|
|
|
(defun org-export-first-sibling-p (headline info)
|
|
|
|
|
"Non-nil when HEADLINE is the first sibling in its sub-tree.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(not (eq (org-element-type (org-export-get-previous-element headline info))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
'headline)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-07-27 10:13:57 -04:00
|
|
|
|
(defun org-export-last-sibling-p (headline info)
|
|
|
|
|
"Non-nil when HEADLINE is the last sibling in its sub-tree.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(not (org-export-get-next-element headline info)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Links
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-solidify-link-text' turns a string into a safer version
|
|
|
|
|
;; for links, replacing most non-standard characters with hyphens.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-get-coderef-format' returns an appropriate format
|
|
|
|
|
;; string for coderefs.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-inline-image-p' returns a non-nil value when the link
|
|
|
|
|
;; provided should be considered as an inline image.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; `org-export-resolve-fuzzy-link' searches destination of fuzzy links
|
|
|
|
|
;; (i.e. links with "fuzzy" as type) within the parsed tree, and
|
|
|
|
|
;; returns an appropriate unique identifier when found, or nil.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-resolve-id-link' returns the first headline with
|
2012-06-09 04:30:17 -04:00
|
|
|
|
;; specified id or custom-id in parse tree, the path to the external
|
|
|
|
|
;; file with the id or nil when neither was found.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-resolve-coderef' associates a reference to a line
|
|
|
|
|
;; number in the element it belongs, or returns the reference itself
|
|
|
|
|
;; when the element isn't numbered.
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defun org-export-solidify-link-text (s)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Take link text S and make a safe target out of it."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(save-match-data
|
2012-11-07 18:36:41 -05:00
|
|
|
|
(mapconcat 'identity (org-split-string s "[^a-zA-Z0-9_.-:]+") "-")))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
(defun org-export-get-coderef-format (path desc)
|
|
|
|
|
"Return format string for code reference link.
|
|
|
|
|
PATH is the link path. DESC is its description."
|
|
|
|
|
(save-match-data
|
2012-04-21 09:18:28 -04:00
|
|
|
|
(cond ((not desc) "%s")
|
|
|
|
|
((string-match (regexp-quote (concat "(" path ")")) desc)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(replace-match "%s" t t desc))
|
|
|
|
|
(t desc))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-inline-image-p (link &optional rules)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Non-nil if LINK object points to an inline image.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional argument is a set of RULES defining inline images. It
|
|
|
|
|
is an alist where associations have the following shape:
|
|
|
|
|
|
|
|
|
|
\(TYPE . REGEXP)
|
|
|
|
|
|
|
|
|
|
Applying a rule means apply REGEXP against LINK's path when its
|
|
|
|
|
type is TYPE. The function will return a non-nil value if any of
|
|
|
|
|
the provided rules is non-nil. The default rule is
|
|
|
|
|
`org-export-default-inline-image-rule'.
|
|
|
|
|
|
|
|
|
|
This only applies to links without a description."
|
|
|
|
|
(and (not (org-element-contents link))
|
|
|
|
|
(let ((case-fold-search t)
|
|
|
|
|
(rules (or rules org-export-default-inline-image-rule)))
|
2012-06-08 10:12:47 -04:00
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (rule)
|
|
|
|
|
(and (string= (org-element-property :type link) (car rule))
|
|
|
|
|
(string-match (cdr rule)
|
|
|
|
|
(org-element-property :path link))
|
|
|
|
|
(throw 'exit t)))
|
|
|
|
|
rules)
|
|
|
|
|
;; Return nil if no rule matched.
|
|
|
|
|
nil))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-05-18 05:20:00 -04:00
|
|
|
|
(defun org-export-resolve-coderef (ref info)
|
|
|
|
|
"Resolve a code reference REF.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Return associated line number in source code, or REF itself,
|
|
|
|
|
depending on src-block or example element's switches."
|
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) '(example-block src-block)
|
|
|
|
|
(lambda (el)
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert (org-trim (org-element-property :value el)))
|
|
|
|
|
(let* ((label-fmt (regexp-quote
|
|
|
|
|
(or (org-element-property :label-fmt el)
|
|
|
|
|
org-coderef-label-format)))
|
|
|
|
|
(ref-re
|
|
|
|
|
(format "^.*?\\S-.*?\\([ \t]*\\(%s\\)\\)[ \t]*$"
|
|
|
|
|
(replace-regexp-in-string "%s" ref label-fmt nil t))))
|
|
|
|
|
;; Element containing REF is found. Resolve it to either
|
|
|
|
|
;; a label or a line number, as needed.
|
|
|
|
|
(when (re-search-backward ref-re nil t)
|
|
|
|
|
(cond
|
|
|
|
|
((org-element-property :use-labels el) ref)
|
|
|
|
|
((eq (org-element-property :number-lines el) 'continued)
|
|
|
|
|
(+ (org-export-get-loc el info) (line-number-at-pos)))
|
|
|
|
|
(t (line-number-at-pos)))))))
|
|
|
|
|
info 'first-match))
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(defun org-export-resolve-fuzzy-link (link info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return LINK destination.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
INFO is a plist holding contextual information.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return value can be an object, an element, or nil:
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
- If LINK path matches a target object (i.e. <<path>>) or
|
2012-03-28 08:04:26 -04:00
|
|
|
|
element (i.e. \"#+TARGET: path\"), return it.
|
2012-02-20 16:24:38 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
- If LINK path exactly matches the name affiliated keyword
|
2012-03-28 08:04:26 -04:00
|
|
|
|
\(i.e. #+NAME: path) of an element, return that element.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
- If LINK path exactly matches any headline name, return that
|
|
|
|
|
element. If more than one headline share that name, priority
|
|
|
|
|
will be given to the one with the closest common ancestor, if
|
|
|
|
|
any, or the first one in the parse tree otherwise.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
- Otherwise, return nil.
|
|
|
|
|
|
|
|
|
|
Assume LINK type is \"fuzzy\"."
|
2012-06-06 18:06:19 -04:00
|
|
|
|
(let* ((path (org-element-property :path link))
|
|
|
|
|
(match-title-p (eq (aref path 0) ?*)))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(cond
|
|
|
|
|
;; First try to find a matching "<<path>>" unless user specified
|
|
|
|
|
;; he was looking for an headline (path starts with a *
|
|
|
|
|
;; character).
|
2012-06-06 18:06:19 -04:00
|
|
|
|
((and (not match-title-p)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(loop for target in (plist-get info :target-list)
|
|
|
|
|
when (string= (org-element-property :value target) path)
|
|
|
|
|
return target)))
|
2012-03-28 08:04:26 -04:00
|
|
|
|
;; Then try to find an element with a matching "#+NAME: path"
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; affiliated keyword.
|
2012-06-06 18:06:19 -04:00
|
|
|
|
((and (not match-title-p)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) org-element-all-elements
|
|
|
|
|
(lambda (el)
|
|
|
|
|
(when (string= (org-element-property :name el) path) el))
|
|
|
|
|
info 'first-match)))
|
|
|
|
|
;; Last case: link either points to an headline or to
|
|
|
|
|
;; nothingness. Try to find the source, with priority given to
|
|
|
|
|
;; headlines with the closest common ancestor. If such candidate
|
2012-05-12 04:45:06 -04:00
|
|
|
|
;; is found, return it, otherwise return nil.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(t
|
|
|
|
|
(let ((find-headline
|
2012-06-06 18:06:19 -04:00
|
|
|
|
(function
|
|
|
|
|
;; Return first headline whose `:raw-value' property
|
|
|
|
|
;; is NAME in parse tree DATA, or nil.
|
|
|
|
|
(lambda (name data)
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'headline
|
|
|
|
|
(lambda (headline)
|
|
|
|
|
(when (string=
|
|
|
|
|
(org-element-property :raw-value headline)
|
|
|
|
|
name)
|
|
|
|
|
headline))
|
|
|
|
|
info 'first-match)))))
|
|
|
|
|
;; Search among headlines sharing an ancestor with link,
|
|
|
|
|
;; from closest to farthest.
|
|
|
|
|
(or (catch 'exit
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (parent)
|
|
|
|
|
(when (eq (org-element-type parent) 'headline)
|
|
|
|
|
(let ((foundp (funcall find-headline path parent)))
|
|
|
|
|
(when foundp (throw 'exit foundp)))))
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-genealogy link)) nil)
|
2012-06-06 18:06:19 -04:00
|
|
|
|
;; No match with a common ancestor: try the full parse-tree.
|
|
|
|
|
(funcall find-headline
|
|
|
|
|
(if match-title-p (substring path 1) path)
|
|
|
|
|
(plist-get info :parse-tree))))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-resolve-id-link (link info)
|
|
|
|
|
"Return headline referenced as LINK destination.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-06-06 17:39:04 -04:00
|
|
|
|
Return value can be the headline element matched in current parse
|
|
|
|
|
tree, a file name or nil. Assume LINK type is either \"id\" or
|
|
|
|
|
\"custom-id\"."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((id (org-element-property :path link)))
|
2012-06-06 17:39:04 -04:00
|
|
|
|
;; First check if id is within the current parse tree.
|
|
|
|
|
(or (org-element-map
|
|
|
|
|
(plist-get info :parse-tree) 'headline
|
|
|
|
|
(lambda (headline)
|
|
|
|
|
(when (or (string= (org-element-property :id headline) id)
|
|
|
|
|
(string= (org-element-property :custom-id headline) id))
|
|
|
|
|
headline))
|
|
|
|
|
info 'first-match)
|
|
|
|
|
;; Otherwise, look for external files.
|
|
|
|
|
(cdr (assoc id (plist-get info :id-alist))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-05-18 05:20:00 -04:00
|
|
|
|
(defun org-export-resolve-radio-link (link info)
|
|
|
|
|
"Return radio-target object referenced as LINK destination.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-05-18 05:20:00 -04:00
|
|
|
|
Return value can be a radio-target object or nil. Assume LINK
|
|
|
|
|
has type \"radio\"."
|
|
|
|
|
(let ((path (org-element-property :path link)))
|
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) 'radio-target
|
|
|
|
|
(lambda (radio)
|
|
|
|
|
(when (equal (org-element-property :value radio) path) radio))
|
|
|
|
|
info 'first-match)))
|
2012-01-11 08:42:40 -05:00
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2011-12-20 14:09:03 -05:00
|
|
|
|
;;;; For References
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2011-12-20 14:09:03 -05:00
|
|
|
|
;; `org-export-get-ordinal' associates a sequence number to any object
|
|
|
|
|
;; or element.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-get-ordinal (element info &optional types predicate)
|
2011-12-20 14:09:03 -05:00
|
|
|
|
"Return ordinal number of an element or object.
|
|
|
|
|
|
|
|
|
|
ELEMENT is the element or object considered. INFO is the plist
|
|
|
|
|
used as a communication channel.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Optional argument TYPES, when non-nil, is a list of element or
|
|
|
|
|
object types, as symbols, that should also be counted in.
|
|
|
|
|
Otherwise, only provided element's type is considered.
|
2012-01-20 13:17:11 -05:00
|
|
|
|
|
2011-12-20 14:09:03 -05:00
|
|
|
|
Optional argument PREDICATE is a function returning a non-nil
|
|
|
|
|
value if the current element or object should be counted in. It
|
2012-03-19 16:38:12 -04:00
|
|
|
|
accepts two arguments: the element or object being considered and
|
|
|
|
|
the plist used as a communication channel. This allows to count
|
|
|
|
|
only a certain type of objects (i.e. inline images).
|
|
|
|
|
|
|
|
|
|
Return value is a list of numbers if ELEMENT is an headline or an
|
|
|
|
|
item. It is nil for keywords. It represents the footnote number
|
|
|
|
|
for footnote definitions and footnote references. If ELEMENT is
|
|
|
|
|
a target, return the same value as if ELEMENT was the closest
|
|
|
|
|
table, item or headline containing the target. In any other
|
|
|
|
|
case, return the sequence number of ELEMENT among elements or
|
|
|
|
|
objects of the same type."
|
|
|
|
|
;; A target keyword, representing an invisible target, never has
|
|
|
|
|
;; a sequence number.
|
|
|
|
|
(unless (eq (org-element-type element) 'keyword)
|
|
|
|
|
;; Ordinal of a target object refer to the ordinal of the closest
|
|
|
|
|
;; table, item, or headline containing the object.
|
|
|
|
|
(when (eq (org-element-type element) 'target)
|
|
|
|
|
(setq element
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(loop for parent in (org-export-get-genealogy element)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
when
|
|
|
|
|
(memq
|
|
|
|
|
(org-element-type parent)
|
|
|
|
|
'(footnote-definition footnote-reference headline item
|
|
|
|
|
table))
|
|
|
|
|
return parent)))
|
|
|
|
|
(case (org-element-type element)
|
|
|
|
|
;; Special case 1: An headline returns its number as a list.
|
|
|
|
|
(headline (org-export-get-headline-number element info))
|
|
|
|
|
;; Special case 2: An item returns its number as a list.
|
|
|
|
|
(item (let ((struct (org-element-property :structure element)))
|
|
|
|
|
(org-list-get-item-number
|
|
|
|
|
(org-element-property :begin element)
|
|
|
|
|
struct
|
|
|
|
|
(org-list-prevs-alist struct)
|
|
|
|
|
(org-list-parents-alist struct))))
|
2012-06-08 16:38:03 -04:00
|
|
|
|
((footnote-definition footnote-reference)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-export-get-footnote-number element info))
|
|
|
|
|
(otherwise
|
|
|
|
|
(let ((counter 0))
|
|
|
|
|
;; Increment counter until ELEMENT is found again.
|
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) (or types (org-element-type element))
|
|
|
|
|
(lambda (el)
|
|
|
|
|
(cond
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
((eq element el) (1+ counter))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
((not predicate) (incf counter) nil)
|
|
|
|
|
((funcall predicate el info) (incf counter) nil)))
|
|
|
|
|
info 'first-match))))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Src-Blocks
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-get-loc' counts number of code lines accumulated in
|
|
|
|
|
;; src-block or example-block elements with a "+n" switch until
|
|
|
|
|
;; a given element, excluded. Note: "-n" switches reset that count.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-unravel-code' extracts source code (along with a code
|
|
|
|
|
;; references alist) from an `element-block' or `src-block' type
|
|
|
|
|
;; element.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-format-code' applies a formatting function to each line
|
|
|
|
|
;; of code, providing relative line number and code reference when
|
|
|
|
|
;; appropriate. Since it doesn't access the original element from
|
|
|
|
|
;; which the source code is coming, it expects from the code calling
|
|
|
|
|
;; it to know if lines should be numbered and if code references
|
|
|
|
|
;; should appear.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Eventually, `org-export-format-code-default' is a higher-level
|
|
|
|
|
;; function (it makes use of the two previous functions) which handles
|
|
|
|
|
;; line numbering and code references inclusion, and returns source
|
|
|
|
|
;; code in a format suitable for plain text or verbatim output.
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-loc (element info)
|
|
|
|
|
"Return accumulated lines of code up to ELEMENT.
|
|
|
|
|
|
|
|
|
|
INFO is the plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
ELEMENT is excluded from count."
|
|
|
|
|
(let ((loc 0))
|
2012-01-11 08:42:40 -05:00
|
|
|
|
(org-element-map
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(plist-get info :parse-tree)
|
|
|
|
|
`(src-block example-block ,(org-element-type element))
|
|
|
|
|
(lambda (el)
|
2012-01-11 08:42:40 -05:00
|
|
|
|
(cond
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; ELEMENT is reached: Quit the loop.
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
((eq el element))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Only count lines from src-block and example-block elements
|
|
|
|
|
;; with a "+n" or "-n" switch. A "-n" switch resets counter.
|
|
|
|
|
((not (memq (org-element-type el) '(src-block example-block))) nil)
|
|
|
|
|
((let ((linums (org-element-property :number-lines el)))
|
|
|
|
|
(when linums
|
|
|
|
|
;; Accumulate locs or reset them.
|
|
|
|
|
(let ((lines (org-count-lines
|
|
|
|
|
(org-trim (org-element-property :value el)))))
|
|
|
|
|
(setq loc (if (eq linums 'new) lines (+ loc lines))))))
|
|
|
|
|
;; Return nil to stay in the loop.
|
|
|
|
|
nil)))
|
|
|
|
|
info 'first-match)
|
|
|
|
|
;; Return value.
|
|
|
|
|
loc))
|
2012-01-11 08:42:40 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-unravel-code (element)
|
|
|
|
|
"Clean source code and extract references out of it.
|
2012-01-11 08:42:40 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
ELEMENT has either a `src-block' an `example-block' type.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return a cons cell whose CAR is the source code, cleaned from any
|
|
|
|
|
reference and protective comma and CDR is an alist between
|
|
|
|
|
relative line number (integer) and name of code reference on that
|
|
|
|
|
line (string)."
|
|
|
|
|
(let* ((line 0) refs
|
2012-03-10 14:25:32 -05:00
|
|
|
|
;; Get code and clean it. Remove blank lines at its
|
2012-09-30 11:45:21 -04:00
|
|
|
|
;; beginning and end.
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(code (let ((c (replace-regexp-in-string
|
|
|
|
|
"\\`\\([ \t]*\n\\)+" ""
|
|
|
|
|
(replace-regexp-in-string
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"\\(:?[ \t]*\n\\)*[ \t]*\\'" "\n"
|
|
|
|
|
(org-element-property :value element)))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; If appropriate, remove global indentation.
|
2012-09-30 11:45:21 -04:00
|
|
|
|
(if (or org-src-preserve-indentation
|
|
|
|
|
(org-element-property :preserve-indent element))
|
|
|
|
|
c
|
|
|
|
|
(org-remove-indentation c))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Get format used for references.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(label-fmt (regexp-quote
|
|
|
|
|
(or (org-element-property :label-fmt element)
|
|
|
|
|
org-coderef-label-format)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Build a regexp matching a loc with a reference.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(with-ref-re
|
|
|
|
|
(format "^.*?\\S-.*?\\([ \t]*\\(%s\\)[ \t]*\\)$"
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"%s" "\\([-a-zA-Z0-9_ ]+\\)" label-fmt nil t))))
|
|
|
|
|
;; Return value.
|
|
|
|
|
(cons
|
|
|
|
|
;; Code with references removed.
|
|
|
|
|
(org-element-normalize-string
|
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (loc)
|
|
|
|
|
(incf line)
|
|
|
|
|
(if (not (string-match with-ref-re loc)) loc
|
|
|
|
|
;; Ref line: remove ref, and signal its position in REFS.
|
|
|
|
|
(push (cons line (match-string 3 loc)) refs)
|
|
|
|
|
(replace-match "" nil nil loc 1)))
|
|
|
|
|
(org-split-string code "\n") "\n"))
|
|
|
|
|
;; Reference alist.
|
|
|
|
|
refs)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-format-code (code fun &optional num-lines ref-alist)
|
|
|
|
|
"Format CODE by applying FUN line-wise and return it.
|
|
|
|
|
|
|
|
|
|
CODE is a string representing the code to format. FUN is
|
|
|
|
|
a function. It must accept three arguments: a line of
|
|
|
|
|
code (string), the current line number (integer) or nil and the
|
|
|
|
|
reference associated to the current line (string) or nil.
|
|
|
|
|
|
|
|
|
|
Optional argument NUM-LINES can be an integer representing the
|
|
|
|
|
number of code lines accumulated until the current code. Line
|
|
|
|
|
numbers passed to FUN will take it into account. If it is nil,
|
|
|
|
|
FUN's second argument will always be nil. This number can be
|
|
|
|
|
obtained with `org-export-get-loc' function.
|
|
|
|
|
|
|
|
|
|
Optional argument REF-ALIST can be an alist between relative line
|
|
|
|
|
number (i.e. ignoring NUM-LINES) and the name of the code
|
|
|
|
|
reference on it. If it is nil, FUN's third argument will always
|
|
|
|
|
be nil. It can be obtained through the use of
|
|
|
|
|
`org-export-unravel-code' function."
|
|
|
|
|
(let ((--locs (org-split-string code "\n"))
|
|
|
|
|
(--line 0))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(org-element-normalize-string
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (--loc)
|
|
|
|
|
(incf --line)
|
|
|
|
|
(let ((--ref (cdr (assq --line ref-alist))))
|
|
|
|
|
(funcall fun --loc (and num-lines (+ num-lines --line)) --ref)))
|
|
|
|
|
--locs "\n"))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-format-code-default (element info)
|
|
|
|
|
"Return source code from ELEMENT, formatted in a standard way.
|
|
|
|
|
|
|
|
|
|
ELEMENT is either a `src-block' or `example-block' element. INFO
|
|
|
|
|
is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
This function takes care of line numbering and code references
|
|
|
|
|
inclusion. Line numbers, when applicable, appear at the
|
|
|
|
|
beginning of the line, separated from the code by two white
|
|
|
|
|
spaces. Code references, on the other hand, appear flushed to
|
|
|
|
|
the right, separated by six white spaces from the widest line of
|
|
|
|
|
code."
|
|
|
|
|
;; Extract code and references.
|
|
|
|
|
(let* ((code-info (org-export-unravel-code element))
|
|
|
|
|
(code (car code-info))
|
|
|
|
|
(code-lines (org-split-string code "\n"))
|
|
|
|
|
(refs (and (org-element-property :retain-labels element)
|
|
|
|
|
(cdr code-info)))
|
|
|
|
|
;; Handle line numbering.
|
|
|
|
|
(num-start (case (org-element-property :number-lines element)
|
|
|
|
|
(continued (org-export-get-loc element info))
|
|
|
|
|
(new 0)))
|
|
|
|
|
(num-fmt
|
|
|
|
|
(and num-start
|
|
|
|
|
(format "%%%ds "
|
|
|
|
|
(length (number-to-string
|
|
|
|
|
(+ (length code-lines) num-start))))))
|
|
|
|
|
;; Prepare references display, if required. Any reference
|
|
|
|
|
;; should start six columns after the widest line of code,
|
|
|
|
|
;; wrapped with parenthesis.
|
|
|
|
|
(max-width
|
|
|
|
|
(+ (apply 'max (mapcar 'length code-lines))
|
|
|
|
|
(if (not num-start) 0 (length (format num-fmt num-start))))))
|
|
|
|
|
(org-export-format-code
|
|
|
|
|
code
|
|
|
|
|
(lambda (loc line-num ref)
|
|
|
|
|
(let ((number-str (and num-fmt (format num-fmt line-num))))
|
|
|
|
|
(concat
|
|
|
|
|
number-str
|
|
|
|
|
loc
|
|
|
|
|
(and ref
|
|
|
|
|
(concat (make-string
|
|
|
|
|
(- (+ 6 max-width)
|
|
|
|
|
(+ (length loc) (length number-str))) ? )
|
|
|
|
|
(format "(%s)" ref))))))
|
|
|
|
|
num-start refs)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Tables
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-05-23 17:21:25 -04:00
|
|
|
|
;; `org-export-table-has-special-column-p' and and
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; `org-export-table-row-is-special-p' are predicates used to look for
|
|
|
|
|
;; meta-information about the table structure.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-05-23 17:21:25 -04:00
|
|
|
|
;; `org-table-has-header-p' tells when the rows before the first rule
|
|
|
|
|
;; should be considered as table's header.
|
|
|
|
|
;;
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; `org-export-table-cell-width', `org-export-table-cell-alignment'
|
|
|
|
|
;; and `org-export-table-cell-borders' extract information from
|
|
|
|
|
;; a table-cell element.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; `org-export-table-dimensions' gives the number on rows and columns
|
|
|
|
|
;; in the table, ignoring horizontal rules and special columns.
|
|
|
|
|
;; `org-export-table-cell-address', given a table-cell object, returns
|
|
|
|
|
;; the absolute address of a cell. On the other hand,
|
|
|
|
|
;; `org-export-get-table-cell-at' does the contrary.
|
2012-05-23 17:21:25 -04:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-table-cell-starts-colgroup-p',
|
|
|
|
|
;; `org-export-table-cell-ends-colgroup-p',
|
|
|
|
|
;; `org-export-table-row-starts-rowgroup-p',
|
|
|
|
|
;; `org-export-table-row-ends-rowgroup-p',
|
|
|
|
|
;; `org-export-table-row-starts-header-p' and
|
|
|
|
|
;; `org-export-table-row-ends-header-p' indicate position of current
|
|
|
|
|
;; row or cell within the table.
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-table-has-special-column-p (table)
|
|
|
|
|
"Non-nil when TABLE has a special column.
|
|
|
|
|
All special columns will be ignored during export."
|
|
|
|
|
;; The table has a special column when every first cell of every row
|
|
|
|
|
;; has an empty value or contains a symbol among "/", "#", "!", "$",
|
|
|
|
|
;; "*" "_" and "^". Though, do not consider a first row containing
|
|
|
|
|
;; only empty cells as special.
|
|
|
|
|
(let ((special-column-p 'empty))
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(when (eq (org-element-property :type row) 'standard)
|
|
|
|
|
(let ((value (org-element-contents
|
|
|
|
|
(car (org-element-contents row)))))
|
|
|
|
|
(cond ((member value '(("/") ("#") ("!") ("$") ("*") ("_") ("^")))
|
|
|
|
|
(setq special-column-p 'special))
|
|
|
|
|
((not value))
|
|
|
|
|
(t (throw 'exit nil))))))
|
|
|
|
|
(org-element-contents table))
|
|
|
|
|
(eq special-column-p 'special))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-has-header-p (table info)
|
|
|
|
|
"Non-nil when TABLE has an header.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
A table has an header when it contains at least two row groups."
|
|
|
|
|
(let ((rowgroup 1) row-flag)
|
|
|
|
|
(org-element-map
|
|
|
|
|
table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond
|
|
|
|
|
((> rowgroup 1) t)
|
|
|
|
|
((and row-flag (eq (org-element-property :type row) 'rule))
|
|
|
|
|
(incf rowgroup) (setq row-flag nil))
|
|
|
|
|
((and (not row-flag) (eq (org-element-property :type row) 'standard))
|
|
|
|
|
(setq row-flag t) nil)))
|
|
|
|
|
info)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-is-special-p (table-row info)
|
|
|
|
|
"Non-nil if TABLE-ROW is considered special.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as the communication channel.
|
|
|
|
|
|
|
|
|
|
All special rows will be ignored during export."
|
|
|
|
|
(when (eq (org-element-property :type table-row) 'standard)
|
|
|
|
|
(let ((first-cell (org-element-contents
|
|
|
|
|
(car (org-element-contents table-row)))))
|
|
|
|
|
;; A row is special either when...
|
|
|
|
|
(or
|
|
|
|
|
;; ... it starts with a field only containing "/",
|
|
|
|
|
(equal first-cell '("/"))
|
|
|
|
|
;; ... the table contains a special column and the row start
|
|
|
|
|
;; with a marking character among, "^", "_", "$" or "!",
|
|
|
|
|
(and (org-export-table-has-special-column-p
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-parent table-row))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(member first-cell '(("^") ("_") ("$") ("!"))))
|
|
|
|
|
;; ... it contains only alignment cookies and empty cells.
|
|
|
|
|
(let ((special-row-p 'empty))
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(let ((value (org-element-contents cell)))
|
2012-05-03 08:29:30 -04:00
|
|
|
|
;; Since VALUE is a secondary string, the following
|
|
|
|
|
;; checks avoid expanding it with `org-export-data'.
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(cond ((not value))
|
|
|
|
|
((and (not (cdr value))
|
2012-05-03 08:29:30 -04:00
|
|
|
|
(stringp (car value))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(string-match "\\`<[lrc]?\\([0-9]+\\)?>\\'"
|
|
|
|
|
(car value)))
|
|
|
|
|
(setq special-row-p 'cookie))
|
|
|
|
|
(t (throw 'exit nil)))))
|
|
|
|
|
(org-element-contents table-row))
|
|
|
|
|
(eq special-row-p 'cookie)))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-group (table-row info)
|
|
|
|
|
"Return TABLE-ROW's group.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as the communication channel.
|
|
|
|
|
|
|
|
|
|
Return value is the group number, as an integer, or nil special
|
|
|
|
|
rows and table rules. Group 1 is also table's header."
|
|
|
|
|
(unless (or (eq (org-element-property :type table-row) 'rule)
|
|
|
|
|
(org-export-table-row-is-special-p table-row info))
|
|
|
|
|
(let ((group 0) row-flag)
|
|
|
|
|
(catch 'found
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond
|
|
|
|
|
((and (eq (org-element-property :type row) 'standard)
|
|
|
|
|
(not (org-export-table-row-is-special-p row info)))
|
|
|
|
|
(unless row-flag (incf group) (setq row-flag t)))
|
|
|
|
|
((eq (org-element-property :type row) 'rule)
|
|
|
|
|
(setq row-flag nil)))
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(when (eq table-row row) (throw 'found group)))
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-element-contents (org-export-get-parent table-row)))))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-width (table-cell info)
|
|
|
|
|
"Return TABLE-CELL contents width.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as the communication channel.
|
|
|
|
|
|
|
|
|
|
Return value is the width given by the last width cookie in the
|
|
|
|
|
same column as TABLE-CELL, or nil."
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(let* ((row (org-export-get-parent table-cell))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(column (let ((cells (org-element-contents row)))
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(- (length cells) (length (memq table-cell cells)))))
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(table (org-export-get-parent-table table-cell))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
cookie-width)
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond
|
|
|
|
|
;; In a special row, try to find a width cookie at COLUMN.
|
|
|
|
|
((org-export-table-row-is-special-p row info)
|
|
|
|
|
(let ((value (org-element-contents
|
|
|
|
|
(elt (org-element-contents row) column))))
|
2012-05-03 08:29:30 -04:00
|
|
|
|
;; The following checks avoid expanding unnecessarily the
|
|
|
|
|
;; cell with `org-export-data'
|
|
|
|
|
(when (and value
|
|
|
|
|
(not (cdr value))
|
|
|
|
|
(stringp (car value))
|
|
|
|
|
(string-match "\\`<[lrc]?\\([0-9]+\\)?>\\'" (car value))
|
|
|
|
|
(match-string 1 (car value)))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(setq cookie-width
|
2012-05-03 08:29:30 -04:00
|
|
|
|
(string-to-number (match-string 1 (car value)))))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; Ignore table rules.
|
|
|
|
|
((eq (org-element-property :type row) 'rule))))
|
|
|
|
|
(org-element-contents table))
|
|
|
|
|
;; Return value.
|
|
|
|
|
cookie-width))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-alignment (table-cell info)
|
|
|
|
|
"Return TABLE-CELL contents alignment.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as the communication channel.
|
|
|
|
|
|
|
|
|
|
Return alignment as specified by the last alignment cookie in the
|
|
|
|
|
same column as TABLE-CELL. If no such cookie is found, a default
|
|
|
|
|
alignment value will be deduced from fraction of numbers in the
|
|
|
|
|
column (see `org-table-number-fraction' for more information).
|
|
|
|
|
Possible values are `left', `right' and `center'."
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(let* ((row (org-export-get-parent table-cell))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(column (let ((cells (org-element-contents row)))
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(- (length cells) (length (memq table-cell cells)))))
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(table (org-export-get-parent-table table-cell))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(number-cells 0)
|
|
|
|
|
(total-cells 0)
|
|
|
|
|
cookie-align)
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond
|
|
|
|
|
;; In a special row, try to find an alignment cookie at
|
|
|
|
|
;; COLUMN.
|
|
|
|
|
((org-export-table-row-is-special-p row info)
|
|
|
|
|
(let ((value (org-element-contents
|
|
|
|
|
(elt (org-element-contents row) column))))
|
2012-05-03 08:29:30 -04:00
|
|
|
|
;; Since VALUE is a secondary string, the following checks
|
|
|
|
|
;; avoid useless expansion through `org-export-data'.
|
|
|
|
|
(when (and value
|
|
|
|
|
(not (cdr value))
|
|
|
|
|
(stringp (car value))
|
|
|
|
|
(string-match "\\`<\\([lrc]\\)?\\([0-9]+\\)?>\\'"
|
|
|
|
|
(car value))
|
|
|
|
|
(match-string 1 (car value)))
|
|
|
|
|
(setq cookie-align (match-string 1 (car value))))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; Ignore table rules.
|
|
|
|
|
((eq (org-element-property :type row) 'rule))
|
|
|
|
|
;; In a standard row, check if cell's contents are expressing
|
|
|
|
|
;; some kind of number. Increase NUMBER-CELLS accordingly.
|
|
|
|
|
;; Though, don't bother if an alignment cookie has already
|
|
|
|
|
;; defined cell's alignment.
|
|
|
|
|
((not cookie-align)
|
2012-05-03 08:29:30 -04:00
|
|
|
|
(let ((value (org-export-data
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(org-element-contents
|
2012-05-03 08:29:30 -04:00
|
|
|
|
(elt (org-element-contents row) column))
|
|
|
|
|
info)))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(incf total-cells)
|
|
|
|
|
(when (string-match org-table-number-regexp value)
|
|
|
|
|
(incf number-cells))))))
|
|
|
|
|
(org-element-contents table))
|
|
|
|
|
;; Return value. Alignment specified by cookies has precedence
|
|
|
|
|
;; over alignment deduced from cells contents.
|
|
|
|
|
(cond ((equal cookie-align "l") 'left)
|
|
|
|
|
((equal cookie-align "r") 'right)
|
|
|
|
|
((equal cookie-align "c") 'center)
|
|
|
|
|
((>= (/ (float number-cells) total-cells) org-table-number-fraction)
|
|
|
|
|
'right)
|
|
|
|
|
(t 'left))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-borders (table-cell info)
|
|
|
|
|
"Return TABLE-CELL borders.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Return value is a list of symbols, or nil. Possible values are:
|
|
|
|
|
`top', `bottom', `above', `below', `left' and `right'. Note:
|
|
|
|
|
`top' (resp. `bottom') only happen for a cell in the first
|
|
|
|
|
row (resp. last row) of the table, ignoring table rules, if any.
|
|
|
|
|
|
|
|
|
|
Returned borders ignore special rows."
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(let* ((row (org-export-get-parent table-cell))
|
|
|
|
|
(table (org-export-get-parent-table table-cell))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
borders)
|
|
|
|
|
;; Top/above border? TABLE-CELL has a border above when a rule
|
|
|
|
|
;; used to demarcate row groups can be found above. Hence,
|
|
|
|
|
;; finding a rule isn't sufficient to push `above' in BORDERS:
|
|
|
|
|
;; another regular row has to be found above that rule.
|
|
|
|
|
(let (rule-flag)
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc (lambda (row)
|
|
|
|
|
(cond ((eq (org-element-property :type row) 'rule)
|
|
|
|
|
(setq rule-flag t))
|
|
|
|
|
((not (org-export-table-row-is-special-p row info))
|
|
|
|
|
(if rule-flag (throw 'exit (push 'above borders))
|
|
|
|
|
(throw 'exit nil)))))
|
|
|
|
|
;; Look at every row before the current one.
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(cdr (memq row (reverse (org-element-contents table)))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; No rule above, or rule found starts the table (ignoring any
|
|
|
|
|
;; special row): TABLE-CELL is at the top of the table.
|
|
|
|
|
(when rule-flag (push 'above borders))
|
|
|
|
|
(push 'top borders)))
|
|
|
|
|
;; Bottom/below border? TABLE-CELL has a border below when next
|
|
|
|
|
;; non-regular row below is a rule.
|
|
|
|
|
(let (rule-flag)
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc (lambda (row)
|
|
|
|
|
(cond ((eq (org-element-property :type row) 'rule)
|
|
|
|
|
(setq rule-flag t))
|
|
|
|
|
((not (org-export-table-row-is-special-p row info))
|
|
|
|
|
(if rule-flag (throw 'exit (push 'below borders))
|
|
|
|
|
(throw 'exit nil)))))
|
|
|
|
|
;; Look at every row after the current one.
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(cdr (memq row (org-element-contents table))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; No rule below, or rule found ends the table (modulo some
|
|
|
|
|
;; special row): TABLE-CELL is at the bottom of the table.
|
|
|
|
|
(when rule-flag (push 'below borders))
|
|
|
|
|
(push 'bottom borders)))
|
|
|
|
|
;; Right/left borders? They can only be specified by column
|
|
|
|
|
;; groups. Column groups are defined in a row starting with "/".
|
|
|
|
|
;; Also a column groups row only contains "<", "<>", ">" or blank
|
|
|
|
|
;; cells.
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(let ((column (let ((cells (org-element-contents row)))
|
2012-07-17 14:49:31 -04:00
|
|
|
|
(- (length cells) (length (memq table-cell cells))))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(mapc
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(unless (eq (org-element-property :type row) 'rule)
|
|
|
|
|
(when (equal (org-element-contents
|
|
|
|
|
(car (org-element-contents row)))
|
|
|
|
|
'("/"))
|
|
|
|
|
(let ((column-groups
|
|
|
|
|
(mapcar
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(let ((value (org-element-contents cell)))
|
|
|
|
|
(when (member value '(("<") ("<>") (">") nil))
|
|
|
|
|
(car value))))
|
|
|
|
|
(org-element-contents row))))
|
|
|
|
|
;; There's a left border when previous cell, if
|
|
|
|
|
;; any, ends a group, or current one starts one.
|
|
|
|
|
(when (or (and (not (zerop column))
|
|
|
|
|
(member (elt column-groups (1- column))
|
|
|
|
|
'(">" "<>")))
|
|
|
|
|
(member (elt column-groups column) '("<" "<>")))
|
|
|
|
|
(push 'left borders))
|
|
|
|
|
;; There's a right border when next cell, if any,
|
|
|
|
|
;; starts a group, or current one ends one.
|
|
|
|
|
(when (or (and (/= (1+ column) (length column-groups))
|
|
|
|
|
(member (elt column-groups (1+ column))
|
|
|
|
|
'("<" "<>")))
|
|
|
|
|
(member (elt column-groups column) '(">" "<>")))
|
|
|
|
|
(push 'right borders))
|
|
|
|
|
(throw 'exit nil)))))
|
|
|
|
|
;; Table rows are read in reverse order so last column groups
|
|
|
|
|
;; row has precedence over any previous one.
|
|
|
|
|
(reverse (org-element-contents table)))))
|
|
|
|
|
;; Return value.
|
|
|
|
|
borders))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-starts-colgroup-p (table-cell info)
|
|
|
|
|
"Non-nil when TABLE-CELL is at the beginning of a row group.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
;; A cell starts a column group either when it is at the beginning
|
|
|
|
|
;; of a row (or after the special column, if any) or when it has
|
|
|
|
|
;; a left border.
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(or (eq (org-element-map
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-parent table-cell)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
'table-cell 'identity info 'first-match)
|
|
|
|
|
table-cell)
|
|
|
|
|
(memq 'left (org-export-table-cell-borders table-cell info))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-ends-colgroup-p (table-cell info)
|
|
|
|
|
"Non-nil when TABLE-CELL is at the end of a row group.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
;; A cell ends a column group either when it is at the end of a row
|
|
|
|
|
;; or when it has a right border.
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(or (eq (car (last (org-element-contents
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-parent table-cell))))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
table-cell)
|
|
|
|
|
(memq 'right (org-export-table-cell-borders table-cell info))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-starts-rowgroup-p (table-row info)
|
|
|
|
|
"Non-nil when TABLE-ROW is at the beginning of a column group.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(unless (or (eq (org-element-property :type table-row) 'rule)
|
|
|
|
|
(org-export-table-row-is-special-p table-row info))
|
|
|
|
|
(let ((borders (org-export-table-cell-borders
|
|
|
|
|
(car (org-element-contents table-row)) info)))
|
|
|
|
|
(or (memq 'top borders) (memq 'above borders)))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-ends-rowgroup-p (table-row info)
|
|
|
|
|
"Non-nil when TABLE-ROW is at the end of a column group.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(unless (or (eq (org-element-property :type table-row) 'rule)
|
|
|
|
|
(org-export-table-row-is-special-p table-row info))
|
|
|
|
|
(let ((borders (org-export-table-cell-borders
|
|
|
|
|
(car (org-element-contents table-row)) info)))
|
|
|
|
|
(or (memq 'bottom borders) (memq 'below borders)))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-starts-header-p (table-row info)
|
|
|
|
|
"Non-nil when TABLE-ROW is the first table header's row.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(and (org-export-table-has-header-p
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-parent-table table-row) info)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(org-export-table-row-starts-rowgroup-p table-row info)
|
|
|
|
|
(= (org-export-table-row-group table-row info) 1)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-ends-header-p (table-row info)
|
|
|
|
|
"Non-nil when TABLE-ROW is the last table header's row.
|
|
|
|
|
INFO is a plist used as a communication channel."
|
|
|
|
|
(and (org-export-table-has-header-p
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(org-export-get-parent-table table-row) info)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(org-export-table-row-ends-rowgroup-p table-row info)
|
|
|
|
|
(= (org-export-table-row-group table-row info) 1)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-dimensions (table info)
|
|
|
|
|
"Return TABLE dimensions.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Return value is a CONS like (ROWS . COLUMNS) where
|
|
|
|
|
ROWS (resp. COLUMNS) is the number of exportable
|
|
|
|
|
rows (resp. columns)."
|
|
|
|
|
(let (first-row (columns 0) (rows 0))
|
|
|
|
|
;; Set number of rows, and extract first one.
|
|
|
|
|
(org-element-map
|
|
|
|
|
table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(when (eq (org-element-property :type row) 'standard)
|
|
|
|
|
(incf rows)
|
|
|
|
|
(unless first-row (setq first-row row)))) info)
|
|
|
|
|
;; Set number of columns.
|
|
|
|
|
(org-element-map first-row 'table-cell (lambda (cell) (incf columns)) info)
|
|
|
|
|
;; Return value.
|
|
|
|
|
(cons rows columns)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-address (table-cell info)
|
|
|
|
|
"Return address of a regular TABLE-CELL object.
|
|
|
|
|
|
|
|
|
|
TABLE-CELL is the cell considered. INFO is a plist used as
|
|
|
|
|
a communication channel.
|
|
|
|
|
|
|
|
|
|
Address is a CONS cell (ROW . COLUMN), where ROW and COLUMN are
|
|
|
|
|
zero-based index. Only exportable cells are considered. The
|
|
|
|
|
function returns nil for other cells."
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(let* ((table-row (org-export-get-parent table-cell))
|
|
|
|
|
(table (org-export-get-parent-table table-cell)))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
;; Ignore cells in special rows or in special column.
|
|
|
|
|
(unless (or (org-export-table-row-is-special-p table-row info)
|
|
|
|
|
(and (org-export-table-has-special-column-p table)
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(eq (car (org-element-contents table-row)) table-cell)))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(cons
|
|
|
|
|
;; Row number.
|
|
|
|
|
(let ((row-count 0))
|
|
|
|
|
(org-element-map
|
|
|
|
|
table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond ((eq (org-element-property :type row) 'rule) nil)
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
((eq row table-row) row-count)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
(t (incf row-count) nil)))
|
|
|
|
|
info 'first-match))
|
|
|
|
|
;; Column number.
|
|
|
|
|
(let ((col-count 0))
|
|
|
|
|
(org-element-map
|
|
|
|
|
table-row 'table-cell
|
|
|
|
|
(lambda (cell)
|
org-export: Use `eq' instead of `equal' when possible
* contrib/lisp/org-export.el (org-export-data,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-ordinal,
org-export-get-loc, org-export-table-row-group,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-cell-address): Use `eq' instead of `equal' when
possible.
* contrib/lisp/org-e-ascii.el (org-e-ascii-table-row):
* contrib/lisp/org-e-beamer.el (org-e-beamer-select-environment):
* contrib/lisp/org-e-html.el (org-e-html-footnote-section,
org-e-html-latex-environment, org-e-html-paragraph): Use `eq'
instead of `equal' when possible.
* contrib/lisp/org-e-latex.el (org-e-latex--get-footnote-counter):
* contrib/lisp/org-e-odt.el (org-e-odt-do-format-code,
org-e-odt-footnote-def, org-e-odt-item, org-e-odt-latex-environment,
org-e-odt-latex-fragment, org-e-odt-plain-list, org-e-odt-table,
org-e-odt-enumerate-element): Use `eq' instead of `equal' when
possible.
In particular, comparing elements shouldn't be done with `equal' since
they are circular lists. On the other hand, using `eq' is fine if
they belong to the same tree.
2012-07-16 10:19:56 -04:00
|
|
|
|
(if (eq cell table-cell) col-count (incf col-count) nil))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
info 'first-match))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-table-cell-at (address table info)
|
|
|
|
|
"Return regular table-cell object at ADDRESS in TABLE.
|
|
|
|
|
|
|
|
|
|
Address is a CONS cell (ROW . COLUMN), where ROW and COLUMN are
|
|
|
|
|
zero-based index. TABLE is a table type element. INFO is
|
|
|
|
|
a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
If no table-cell, among exportable cells, is found at ADDRESS,
|
|
|
|
|
return nil."
|
|
|
|
|
(let ((column-pos (cdr address)) (column-count 0))
|
|
|
|
|
(org-element-map
|
|
|
|
|
;; Row at (car address) or nil.
|
|
|
|
|
(let ((row-pos (car address)) (row-count 0))
|
|
|
|
|
(org-element-map
|
|
|
|
|
table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond ((eq (org-element-property :type row) 'rule) nil)
|
|
|
|
|
((= row-count row-pos) row)
|
|
|
|
|
(t (incf row-count) nil)))
|
|
|
|
|
info 'first-match))
|
|
|
|
|
'table-cell
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(if (= column-count column-pos) cell
|
|
|
|
|
(incf column-count) nil))
|
|
|
|
|
info 'first-match)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Tables Of Contents
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2011-12-20 13:16:19 -05:00
|
|
|
|
;; `org-export-collect-headlines' builds a list of all exportable
|
|
|
|
|
;; headline elements, maybe limited to a certain depth. One can then
|
|
|
|
|
;; easily parse it and transcode it.
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
;; Building lists of tables, figures or listings is quite similar.
|
|
|
|
|
;; Once the generic function `org-export-collect-elements' is defined,
|
|
|
|
|
;; `org-export-collect-tables', `org-export-collect-figures' and
|
|
|
|
|
;; `org-export-collect-listings' can be derived from it.
|
|
|
|
|
|
2011-12-20 13:16:19 -05:00
|
|
|
|
(defun org-export-collect-headlines (info &optional n)
|
|
|
|
|
"Collect headlines in order to build a table of contents.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-08-24 03:33:58 -04:00
|
|
|
|
When optional argument N is an integer, it specifies the depth of
|
|
|
|
|
the table of contents. Otherwise, it is set to the value of the
|
|
|
|
|
last headline level. See `org-export-headline-levels' for more
|
|
|
|
|
information.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2011-12-20 13:16:19 -05:00
|
|
|
|
Return a list of all exportable headlines as parsed elements."
|
2012-08-24 03:33:58 -04:00
|
|
|
|
(unless (wholenump n) (setq n (plist-get info :headline-levels)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree)
|
|
|
|
|
'headline
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(lambda (headline)
|
2011-12-20 13:16:19 -05:00
|
|
|
|
;; Strip contents from HEADLINE.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(let ((relative-level (org-export-get-relative-level headline info)))
|
2012-08-24 03:33:58 -04:00
|
|
|
|
(unless (> relative-level n) headline)))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
info))
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-collect-elements (type info &optional predicate)
|
|
|
|
|
"Collect referenceable elements of a determined type.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
TYPE can be a symbol or a list of symbols specifying element
|
2012-05-21 15:38:42 -04:00
|
|
|
|
types to search. Only elements with a caption are collected.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
INFO is a plist used as a communication channel.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
When non-nil, optional argument PREDICATE is a function accepting
|
|
|
|
|
one argument, an element of type TYPE. It returns a non-nil
|
|
|
|
|
value when that element should be collected.
|
2012-03-17 11:28:46 -04:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return a list of all elements found, in order of appearance."
|
|
|
|
|
(org-element-map
|
|
|
|
|
(plist-get info :parse-tree) type
|
|
|
|
|
(lambda (element)
|
2012-05-21 15:38:42 -04:00
|
|
|
|
(and (org-element-property :caption element)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(or (not predicate) (funcall predicate element))
|
2012-05-21 15:38:42 -04:00
|
|
|
|
element))
|
|
|
|
|
info))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-collect-tables (info)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Build a list of tables.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
INFO is a plist used as a communication channel.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-05-21 15:38:42 -04:00
|
|
|
|
Return a list of table elements with a caption."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-export-collect-elements 'table info))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-collect-figures (info predicate)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Build a list of figures.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
INFO is a plist used as a communication channel. PREDICATE is
|
|
|
|
|
a function which accepts one argument: a paragraph element and
|
|
|
|
|
whose return value is non-nil when that element should be
|
|
|
|
|
collected.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-05-21 15:38:42 -04:00
|
|
|
|
A figure is a paragraph type element, with a caption, verifying
|
|
|
|
|
PREDICATE. The latter has to be provided since a \"figure\" is
|
|
|
|
|
a vague concept that may depend on back-end.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
Return a list of elements recognized as figures."
|
|
|
|
|
(org-export-collect-elements 'paragraph info predicate))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-collect-listings (info)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
"Build a list of src blocks.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-05-21 15:38:42 -04:00
|
|
|
|
Return a list of src-block elements with a caption."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(org-export-collect-elements 'src-block info))
|
|
|
|
|
|
|
|
|
|
|
2012-11-19 15:38:16 -05:00
|
|
|
|
;;;; For Timestamps
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-timestamp-has-time-p' is a predicate to know if hours
|
|
|
|
|
;; and minutes are defined in a given timestamp.
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-format-timestamp' allows to format a timestamp object
|
|
|
|
|
;; with an arbitrary format string.
|
|
|
|
|
|
|
|
|
|
(defun org-export-timestamp-has-time-p (timestamp)
|
|
|
|
|
"Non-nil when TIMESTAMP has a time specified."
|
|
|
|
|
(org-element-property :hour-start timestamp))
|
|
|
|
|
|
|
|
|
|
(defun org-export-format-timestamp (timestamp format &optional end utc)
|
|
|
|
|
"Format a TIMESTAMP element into a string.
|
|
|
|
|
|
|
|
|
|
FORMAT is a format specifier to be passed to
|
|
|
|
|
`format-time-string'.
|
|
|
|
|
|
|
|
|
|
When optional argument END is non-nil, use end of date-range or
|
|
|
|
|
time-range, if possible.
|
|
|
|
|
|
|
|
|
|
When optional argument UTC is non-nil, time will be expressed as
|
|
|
|
|
Universal Time."
|
|
|
|
|
(format-time-string
|
|
|
|
|
format
|
|
|
|
|
(apply 'encode-time
|
|
|
|
|
(cons 0
|
|
|
|
|
(mapcar
|
|
|
|
|
(lambda (prop) (or (org-element-property prop timestamp) 0))
|
|
|
|
|
(if end '(:minute-end :hour-end :day-end :month-end :year-end)
|
|
|
|
|
'(:minute-start :hour-start :day-start :month-start
|
|
|
|
|
:year-start)))))
|
|
|
|
|
utc))
|
|
|
|
|
|
2012-11-23 12:41:58 -05:00
|
|
|
|
(defun org-export-split-timestamp-range (timestamp &optional end)
|
|
|
|
|
"Extract a timestamp object from a date or time range.
|
|
|
|
|
|
|
|
|
|
TIMESTAMP is a timestamp object. END, when non-nil, means extract
|
|
|
|
|
the end of the range. Otherwise, extract its start.
|
|
|
|
|
|
|
|
|
|
Return a new timestamp object sharing the same parent as
|
|
|
|
|
TIMESTAMP."
|
|
|
|
|
(let ((type (org-element-property :type timestamp)))
|
|
|
|
|
(if (memq type '(active inactive diary)) timestamp
|
|
|
|
|
(let ((split-ts (list 'timestamp (copy-sequence (nth 1 timestamp)))))
|
|
|
|
|
;; Set new type.
|
|
|
|
|
(org-element-put-property
|
|
|
|
|
split-ts :type (if (eq type 'active-range) 'active 'inactive))
|
|
|
|
|
;; Copy start properties over end properties if END is
|
|
|
|
|
;; non-nil. Otherwise, copy end properties over `start' ones.
|
|
|
|
|
(let ((p-alist '((:minute-start . :minute-end)
|
|
|
|
|
(:hour-start . :hour-end)
|
|
|
|
|
(:day-start . :day-end)
|
|
|
|
|
(:month-start . :month-end)
|
|
|
|
|
(:year-start . :year-end))))
|
|
|
|
|
(dolist (p-cell p-alist)
|
|
|
|
|
(org-element-put-property
|
|
|
|
|
split-ts
|
|
|
|
|
(funcall (if end 'car 'cdr) p-cell)
|
|
|
|
|
(org-element-property
|
|
|
|
|
(funcall (if end 'cdr 'car) p-cell) split-ts)))
|
|
|
|
|
;; Eventually refresh `:raw-value'.
|
|
|
|
|
(org-element-put-property split-ts :raw-value nil)
|
|
|
|
|
(org-element-put-property
|
|
|
|
|
split-ts :raw-value (org-element-interpret-data split-ts)))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-translate-timestamp (timestamp &optional boundary)
|
|
|
|
|
"Apply `org-translate-time' on a TIMESTAMP object.
|
|
|
|
|
When optional argument BOUNDARY is non-nil, it is either the
|
|
|
|
|
symbol `start' or `end'. In this case, only translate the
|
|
|
|
|
starting or ending part of TIMESTAMP if it is a date or time
|
|
|
|
|
range. Otherwise, translate both parts."
|
|
|
|
|
(if (and (not boundary)
|
|
|
|
|
(memq (org-element-property :type timestamp)
|
|
|
|
|
'(active-range inactive-range)))
|
|
|
|
|
(concat
|
|
|
|
|
(org-translate-time
|
|
|
|
|
(org-element-property :raw-value
|
|
|
|
|
(org-export-split-timestamp-range timestamp)))
|
|
|
|
|
"--"
|
|
|
|
|
(org-translate-time
|
|
|
|
|
(org-element-property :raw-value
|
|
|
|
|
(org-export-split-timestamp-range timestamp t))))
|
|
|
|
|
(org-translate-time
|
|
|
|
|
(org-element-property
|
|
|
|
|
:raw-value
|
|
|
|
|
(if (not boundary) timestamp
|
|
|
|
|
(org-export-split-timestamp-range timestamp (eq boundary 'end)))))))
|
|
|
|
|
|
2012-11-19 15:38:16 -05:00
|
|
|
|
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;;;; Smart Quotes
|
2012-11-19 15:29:00 -05:00
|
|
|
|
;;
|
|
|
|
|
;; The main function for the smart quotes sub-system is
|
|
|
|
|
;; `org-export-activate-smart-quotes', which replaces every quote in
|
|
|
|
|
;; a given string from the parse tree with its "smart" counterpart.
|
|
|
|
|
;;
|
|
|
|
|
;; Dictionary for smart quotes is stored in
|
|
|
|
|
;; `org-export-smart-quotes-alist'.
|
|
|
|
|
;;
|
|
|
|
|
;; Internally, regexps matching potential smart quotes (checks at
|
|
|
|
|
;; string boundaries are also necessary) are defined in
|
|
|
|
|
;; `org-export-smart-quotes-regexps'.
|
2012-10-25 17:54:53 -04:00
|
|
|
|
|
|
|
|
|
(defconst org-export-smart-quotes-alist
|
|
|
|
|
'(("de"
|
|
|
|
|
(opening-double-quote :utf-8 "„" :html "„" :latex "\"`"
|
|
|
|
|
:texinfo "@quotedblbase{}")
|
|
|
|
|
(closing-double-quote :utf-8 "“" :html "“" :latex "\"'"
|
|
|
|
|
:texinfo "@quotedblleft{}")
|
|
|
|
|
(opening-single-quote :utf-8 "‚" :html "‚" :latex "\\glq{}"
|
|
|
|
|
:texinfo "@quotesinglbase{}")
|
|
|
|
|
(closing-single-quote :utf-8 "‘" :html "‘" :latex "\\grq{}"
|
|
|
|
|
:texinfo "@quoteleft{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("en"
|
|
|
|
|
(opening-double-quote :utf-8 "“" :html "“" :latex "``" :texinfo "``")
|
|
|
|
|
(closing-double-quote :utf-8 "”" :html "”" :latex "''" :texinfo "''")
|
|
|
|
|
(opening-single-quote :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
|
|
|
|
(closing-single-quote :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("es"
|
|
|
|
|
(opening-double-quote :utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(closing-double-quote :utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(opening-single-quote :utf-8 "“" :html "“" :latex "``" :texinfo "``")
|
|
|
|
|
(closing-single-quote :utf-8 "”" :html "”" :latex "''" :texinfo "''")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("fr"
|
|
|
|
|
(opening-double-quote :utf-8 "« " :html "« " :latex "\\og "
|
|
|
|
|
:texinfo "@guillemetleft{}@tie{}")
|
|
|
|
|
(closing-double-quote :utf-8 " »" :html " »" :latex "\\fg{}"
|
|
|
|
|
:texinfo "@tie{}@guillemetright{}")
|
|
|
|
|
(opening-single-quote :utf-8 "« " :html "« " :latex "\\og "
|
|
|
|
|
:texinfo "@guillemetleft{}@tie{}")
|
|
|
|
|
(closing-single-quote :utf-8 " »" :html " »" :latex "\\fg{}"
|
|
|
|
|
:texinfo "@tie{}@guillemetright{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’")))
|
|
|
|
|
"Smart quotes translations.
|
|
|
|
|
|
|
|
|
|
Alist whose CAR is a language string and CDR is an alist with
|
|
|
|
|
quote type as key and a plist associating various encodings to
|
|
|
|
|
their translation as value.
|
|
|
|
|
|
|
|
|
|
A quote type can be any symbol among `opening-double-quote',
|
|
|
|
|
`closing-double-quote', `opening-single-quote',
|
|
|
|
|
`closing-single-quote' and `apostrophe'.
|
|
|
|
|
|
|
|
|
|
Valid encodings include `:utf-8', `:html', `:latex' and
|
|
|
|
|
`:texinfo'.
|
|
|
|
|
|
|
|
|
|
If no translation is found, the quote character is left as-is.")
|
|
|
|
|
|
|
|
|
|
(defconst org-export-smart-quotes-regexps
|
|
|
|
|
(list
|
|
|
|
|
;; Possible opening quote at beginning of string.
|
|
|
|
|
"\\`\\([\"']\\)\\(\\w\\|\\s.\\|\\s_\\)"
|
|
|
|
|
;; Possible closing quote at beginning of string.
|
|
|
|
|
"\\`\\([\"']\\)\\(\\s-\\|\\s)\\|\\s.\\)"
|
|
|
|
|
;; Possible apostrophe at beginning of string.
|
|
|
|
|
"\\`\\('\\)\\S-"
|
|
|
|
|
;; Opening single and double quotes.
|
|
|
|
|
"\\(?:\\s-\\|\\s(\\)\\([\"']\\)\\(?:\\w\\|\\s.\\|\\s_\\)"
|
|
|
|
|
;; Closing single and double quotes.
|
|
|
|
|
"\\(?:\\w\\|\\s.\\|\\s_\\)\\([\"']\\)\\(?:\\s-\\|\\s)\\|\\s.\\)"
|
|
|
|
|
;; Apostrophe.
|
|
|
|
|
"\\S-\\('\\)\\S-"
|
|
|
|
|
;; Possible opening quote at end of string.
|
|
|
|
|
"\\(?:\\s-\\|\\s(\\)\\([\"']\\)\\'"
|
|
|
|
|
;; Possible closing quote at end of string.
|
|
|
|
|
"\\(?:\\w\\|\\s.\\|\\s_\\)\\([\"']\\)\\'"
|
|
|
|
|
;; Possible apostrophe at end of string.
|
|
|
|
|
"\\S-\\('\\)\\'")
|
|
|
|
|
"List of regexps matching a quote or an apostrophe.
|
|
|
|
|
In every regexp, quote or apostrophe matched is put in group 1.")
|
|
|
|
|
|
|
|
|
|
(defun org-export-activate-smart-quotes (s encoding info &optional original)
|
|
|
|
|
"Replace regular quotes with \"smart\" quotes in string S.
|
|
|
|
|
|
2012-11-19 15:29:00 -05:00
|
|
|
|
ENCODING is a symbol among `:html', `:latex', `:texinfo' and
|
|
|
|
|
`:utf-8'. INFO is a plist used as a communication channel.
|
2012-10-25 17:54:53 -04:00
|
|
|
|
|
|
|
|
|
The function has to retrieve information about string
|
|
|
|
|
surroundings in parse tree. It can only happen with an
|
|
|
|
|
unmodified string. Thus, if S has already been through another
|
|
|
|
|
process, a non-nil ORIGINAL optional argument will provide that
|
|
|
|
|
original string.
|
|
|
|
|
|
|
|
|
|
Return the new string."
|
|
|
|
|
(if (equal s "") ""
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(let* ((prev (org-export-get-previous-element (or original s) info))
|
|
|
|
|
(pre-blank (and prev (org-element-property :post-blank prev)))
|
|
|
|
|
(next (org-export-get-next-element (or original s) info))
|
|
|
|
|
(get-smart-quote
|
|
|
|
|
(lambda (q type)
|
|
|
|
|
;; Return smart quote associated to a give quote Q, as
|
|
|
|
|
;; a string. TYPE is a symbol among `open', `close' and
|
|
|
|
|
;; `apostrophe'.
|
|
|
|
|
(let ((key (case type
|
|
|
|
|
(apostrophe 'apostrophe)
|
|
|
|
|
(open (if (equal "'" q) 'opening-single-quote
|
|
|
|
|
'opening-double-quote))
|
|
|
|
|
(otherwise (if (equal "'" q) 'closing-single-quote
|
|
|
|
|
'closing-double-quote)))))
|
|
|
|
|
(or (plist-get
|
|
|
|
|
(cdr (assq key
|
|
|
|
|
(cdr (assoc (plist-get info :language)
|
|
|
|
|
org-export-smart-quotes-alist))))
|
|
|
|
|
encoding)
|
|
|
|
|
q)))))
|
|
|
|
|
(if (or (equal "\"" s) (equal "'" s))
|
|
|
|
|
;; Only a quote: no regexp can match. We have to check both
|
|
|
|
|
;; sides and decide what to do.
|
|
|
|
|
(cond ((and (not prev) (not next)) s)
|
|
|
|
|
((not prev) (funcall get-smart-quote s 'open))
|
|
|
|
|
((and (not next) (zerop pre-blank))
|
|
|
|
|
(funcall get-smart-quote s 'close))
|
|
|
|
|
((not next) s)
|
|
|
|
|
((zerop pre-blank) (funcall get-smart-quote s 'apostrophe))
|
|
|
|
|
(t (funcall get-smart-quote 'open)))
|
|
|
|
|
;; 1. Replace quote character at the beginning of S.
|
2012-10-25 17:54:53 -04:00
|
|
|
|
(cond
|
|
|
|
|
;; Apostrophe?
|
|
|
|
|
((and prev (zerop pre-blank)
|
|
|
|
|
(string-match (nth 2 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'apostrophe)
|
|
|
|
|
nil t s 1)))
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; Closing quote?
|
|
|
|
|
((and prev (zerop pre-blank)
|
|
|
|
|
(string-match (nth 1 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'close)
|
|
|
|
|
nil t s 1)))
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; Opening quote?
|
|
|
|
|
((and (or (not prev) (> pre-blank 0))
|
|
|
|
|
(string-match (nth 0 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'open)
|
|
|
|
|
nil t s 1))))
|
|
|
|
|
;; 2. Replace quotes in the middle of the string.
|
|
|
|
|
(setq s (replace-regexp-in-string
|
|
|
|
|
;; Opening quotes.
|
|
|
|
|
(nth 3 org-export-smart-quotes-regexps)
|
|
|
|
|
(lambda (text)
|
|
|
|
|
(funcall get-smart-quote (match-string 1 text) 'open))
|
|
|
|
|
s nil t 1))
|
|
|
|
|
(setq s (replace-regexp-in-string
|
|
|
|
|
;; Closing quotes.
|
|
|
|
|
(nth 4 org-export-smart-quotes-regexps)
|
|
|
|
|
(lambda (text)
|
|
|
|
|
(funcall get-smart-quote (match-string 1 text) 'close))
|
|
|
|
|
s nil t 1))
|
|
|
|
|
(setq s (replace-regexp-in-string
|
|
|
|
|
;; Apostrophes.
|
|
|
|
|
(nth 5 org-export-smart-quotes-regexps)
|
|
|
|
|
(lambda (text)
|
|
|
|
|
(funcall get-smart-quote (match-string 1 text) 'apostrophe))
|
|
|
|
|
s nil t 1))
|
|
|
|
|
;; 3. Replace quote character at the end of S.
|
2012-10-25 17:54:53 -04:00
|
|
|
|
(cond
|
|
|
|
|
;; Apostrophe?
|
|
|
|
|
((and next (string-match (nth 8 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'apostrophe)
|
|
|
|
|
nil t s 1)))
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; Closing quote?
|
|
|
|
|
((and (not next)
|
|
|
|
|
(string-match (nth 7 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'close)
|
|
|
|
|
nil t s 1)))
|
2012-10-25 17:54:53 -04:00
|
|
|
|
;; Opening quote?
|
|
|
|
|
((and next (string-match (nth 6 org-export-smart-quotes-regexps) s))
|
2012-10-29 15:36:03 -04:00
|
|
|
|
(setq s (replace-match
|
|
|
|
|
(funcall get-smart-quote (match-string 1 s) 'open)
|
|
|
|
|
nil t s 1))))
|
|
|
|
|
;; Return string with smart quotes.
|
|
|
|
|
s))))
|
2012-10-25 17:54:53 -04:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;;;; Topology
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; Here are various functions to retrieve information about the
|
|
|
|
|
;; neighbourhood of a given element or object. Neighbours of interest
|
|
|
|
|
;; are direct parent (`org-export-get-parent'), parent headline
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
;; (`org-export-get-parent-headline'), first element containing an
|
|
|
|
|
;; object, (`org-export-get-parent-element'), parent table
|
|
|
|
|
;; (`org-export-get-parent-table'), previous element or object
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; (`org-export-get-previous-element') and next element or object
|
|
|
|
|
;; (`org-export-get-next-element').
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
;; `org-export-get-genealogy' returns the full genealogy of a given
|
|
|
|
|
;; element or object, from closest parent to full parse tree.
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(defun org-export-get-parent (blob)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return BLOB parent or nil.
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
BLOB is the element or object considered."
|
|
|
|
|
(org-element-property :parent blob))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-genealogy (blob)
|
|
|
|
|
"Return full genealogy relative to a given element or object.
|
2012-07-10 09:30:51 -04:00
|
|
|
|
|
|
|
|
|
BLOB is the element or object being considered.
|
|
|
|
|
|
|
|
|
|
Ancestors are returned from closest to farthest, the last one
|
|
|
|
|
being the full parse tree."
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
(let (genealogy (parent blob))
|
|
|
|
|
(while (setq parent (org-element-property :parent parent))
|
|
|
|
|
(push parent genealogy))
|
|
|
|
|
(nreverse genealogy)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-parent-headline (blob)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
"Return BLOB parent headline or nil.
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
BLOB is the element or object being considered."
|
|
|
|
|
(let ((parent blob))
|
|
|
|
|
(while (and (setq parent (org-element-property :parent parent))
|
|
|
|
|
(not (eq (org-element-type parent) 'headline))))
|
|
|
|
|
parent))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-parent-element (object)
|
|
|
|
|
"Return first element containing OBJECT or nil.
|
|
|
|
|
OBJECT is the object to consider."
|
|
|
|
|
(let ((parent object))
|
|
|
|
|
(while (and (setq parent (org-element-property :parent parent))
|
|
|
|
|
(memq (org-element-type parent) org-element-all-objects)))
|
|
|
|
|
parent))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-parent-table (object)
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
"Return OBJECT parent table or nil.
|
org-export: Rewrite topology functions
* contrib/lisp/org-export.el (org-export-get-genealogy,
org-export-get-parent, org-export-get-parent-headline,
org-export-get-parent-table): Rewrite function to use :parent
property. Remove communication channel from signature.
(org-export-get-parent-element): Rename from
`org-export-get-parent-paragraph'.
(org-export-data, org-export-table-row-is-special-p)
org-export-table-row-group, org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p, org-export-table-cell-address,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal): Apply
signature change.
(org-export--skip-p, org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders):
Refactor code. Apply signature change.
* contrib/lisp/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--unique-links, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-section, org-e-ascii--table-cell-width): Apply signature
change.
* contrib/lisp/org-e-html.el (org-e-html-link,
org-e-html-link--inline-image): Use new function and apply signature
change.
(org-e-html-item, org-e-html-standalone-image-p, org-e-html-paragraph,
org-e-html-section, org-e-html-table-cell, org-e-html-table-row,
org-e-html-footnote-reference): Apply signature change.
* contrib/lisp/org-e-latex.el (org-e-latex-link--inline-image): Use
new function and apply signature change.
(org-e-latex-footnote-reference, org-e-latex-item,
org-e-latex-table-cell, org-e-latex-table-row): Apply signature
change.
* contrib/lisp/org-e-odt.el (org-e-odt-format-formula,
org-e-odt-format-label, org-e-odt-link--inline-image): Use new
function and apply signature change.
(org-e-odt-item, org-e-odt-standalone-image-p, org-e-odt-paragraph,
org-e-odt-plain-list, org-e-odt-table-style-spec,
org-e-odt-get-table-cell-styles, org-e-odt-table-cell,
org-e-odt-table-row, org-e-odt-table, org-e-odt-footnote-reference,
org-e-odt-enumerate-element): Apply signature change.
2012-06-08 15:00:47 -04:00
|
|
|
|
OBJECT is either a `table-cell' or `table-element' type object."
|
|
|
|
|
(let ((parent object))
|
|
|
|
|
(while (and (setq parent (org-element-property :parent parent))
|
|
|
|
|
(not (eq (org-element-type parent) 'table))))
|
|
|
|
|
parent))
|
org-export: Define tools for tables, table rows and table cells
* contrib/lisp/org-export.el (org-export-table-cell-width,
org-export-table-cell-alignment, org-export-table-cell-borders,
org-export-table-row-group, org-export-table-has-special-column-p,
org-export-table-row-is-special-p, org-export-get-parent-table,
org-export-table-dimensions, org-export-table-cell-address,
org-export-get-table-cell-at, org-export-table-has-header-p,
org-export-table-cell-starts-colgroup-p,
org-export-table-cell-ends-colgroup-p,
org-export-table-row-starts-rowgroup-p,
org-export-table-row-ends-rowgroup-p,
org-export-table-row-starts-header-p,
org-export-table-row-ends-header-p): New functions.
(org-export-table-format-info, org-export-clean-table): Removed
functions.
(org-export-filter-table-cell-functions,
org-export-filter-table-row-functions): New variables.
(org-export-filters-alist): Install new filters.
(org-export-collect-tree-properties, org-export--skip-p): Mark special
rows and cells as ignored.
* testing/lisp/test-org-export.el: Add tests.
2012-04-11 02:54:24 -04:00
|
|
|
|
|
2012-07-27 10:13:57 -04:00
|
|
|
|
(defun org-export-get-previous-element (blob info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return previous element or object.
|
2012-07-27 10:13:57 -04:00
|
|
|
|
BLOB is an element or object. INFO is a plist used as
|
|
|
|
|
a communication channel. Return previous exportable element or
|
|
|
|
|
object, a string, or nil."
|
|
|
|
|
(let (prev)
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(mapc (lambda (obj)
|
|
|
|
|
(cond ((eq obj blob) (throw 'exit prev))
|
|
|
|
|
((memq obj (plist-get info :ignore-list)))
|
|
|
|
|
(t (setq prev obj))))
|
2012-10-31 07:28:21 -04:00
|
|
|
|
;; An object can belong to the contents of its parent or
|
|
|
|
|
;; to a secondary string. We check the latter option
|
|
|
|
|
;; first.
|
|
|
|
|
(let ((parent (org-export-get-parent blob)))
|
|
|
|
|
(or (and (not (memq (org-element-type blob)
|
|
|
|
|
org-element-all-elements))
|
|
|
|
|
(let ((sec-value
|
|
|
|
|
(org-element-property
|
|
|
|
|
(cdr (assq (org-element-type parent)
|
|
|
|
|
org-element-secondary-value-alist))
|
|
|
|
|
parent)))
|
|
|
|
|
(and (memq blob sec-value) sec-value)))
|
|
|
|
|
(org-element-contents parent)))))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-07-27 10:13:57 -04:00
|
|
|
|
(defun org-export-get-next-element (blob info)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Return next element or object.
|
2012-07-27 10:13:57 -04:00
|
|
|
|
BLOB is an element or object. INFO is a plist used as
|
|
|
|
|
a communication channel. Return next exportable element or
|
|
|
|
|
object, a string, or nil."
|
|
|
|
|
(catch 'found
|
|
|
|
|
(mapc (lambda (obj)
|
|
|
|
|
(unless (memq obj (plist-get info :ignore-list))
|
|
|
|
|
(throw 'found obj)))
|
2012-10-31 07:28:21 -04:00
|
|
|
|
;; An object can belong to the contents of its parent or to
|
|
|
|
|
;; a secondary string. We check the latter option first.
|
|
|
|
|
(let ((parent (org-export-get-parent blob)))
|
|
|
|
|
(or (and (not (memq (org-element-type blob)
|
|
|
|
|
org-element-all-objects))
|
|
|
|
|
(let ((sec-value
|
|
|
|
|
(org-element-property
|
|
|
|
|
(cdr (assq (org-element-type parent)
|
|
|
|
|
org-element-secondary-value-alist))
|
|
|
|
|
parent)))
|
|
|
|
|
(cdr (memq blob sec-value))))
|
|
|
|
|
(cdr (memq blob (org-element-contents parent))))))
|
2012-07-27 10:13:57 -04:00
|
|
|
|
nil))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
2012-01-07 08:25:33 -05:00
|
|
|
|
|
2012-07-12 07:20:09 -04:00
|
|
|
|
;;;; Translation
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-translate' translates a string according to language
|
|
|
|
|
;; specified by LANGUAGE keyword or `org-export-language-setup'
|
|
|
|
|
;; variable and a specified charset. `org-export-dictionary' contains
|
|
|
|
|
;; the dictionary used for the translation.
|
|
|
|
|
|
|
|
|
|
(defconst org-export-dictionary
|
2012-07-12 16:19:50 -04:00
|
|
|
|
'(("Author"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("ca" :default "Autor")
|
|
|
|
|
("cs" :default "Autor")
|
|
|
|
|
("da" :default "Ophavsmand")
|
|
|
|
|
("de" :default "Autor")
|
|
|
|
|
("eo" :html "Aŭtoro")
|
|
|
|
|
("es" :default "Autor")
|
|
|
|
|
("fi" :html "Tekijä")
|
|
|
|
|
("fr" :default "Auteur")
|
|
|
|
|
("hu" :default "Szerzõ")
|
|
|
|
|
("is" :html "Höfundur")
|
|
|
|
|
("it" :default "Autore")
|
|
|
|
|
("ja" :html "著者" :utf-8 "著者")
|
|
|
|
|
("nl" :default "Auteur")
|
|
|
|
|
("no" :default "Forfatter")
|
|
|
|
|
("nb" :default "Forfatter")
|
|
|
|
|
("nn" :default "Forfattar")
|
|
|
|
|
("pl" :default "Autor")
|
|
|
|
|
("ru" :html "Автор" :utf-8 "Автор")
|
|
|
|
|
("sv" :html "Författare")
|
|
|
|
|
("uk" :html "Автор" :utf-8 "Автор")
|
|
|
|
|
("zh-CN" :html "作者" :utf-8 "作者")
|
|
|
|
|
("zh-TW" :html "作者" :utf-8 "作者"))
|
2012-07-12 16:19:50 -04:00
|
|
|
|
("Date"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("ca" :default "Data")
|
|
|
|
|
("cs" :default "Datum")
|
|
|
|
|
("da" :default "Dato")
|
|
|
|
|
("de" :default "Datum")
|
|
|
|
|
("eo" :default "Dato")
|
|
|
|
|
("es" :default "Fecha")
|
|
|
|
|
("fi" :html "Päivämäärä")
|
|
|
|
|
("hu" :html "Dátum")
|
|
|
|
|
("is" :default "Dagsetning")
|
|
|
|
|
("it" :default "Data")
|
|
|
|
|
("ja" :html "日付" :utf-8 "日付")
|
|
|
|
|
("nl" :default "Datum")
|
|
|
|
|
("no" :default "Dato")
|
|
|
|
|
("nb" :default "Dato")
|
|
|
|
|
("nn" :default "Dato")
|
|
|
|
|
("pl" :default "Data")
|
|
|
|
|
("ru" :html "Дата" :utf-8 "Дата")
|
|
|
|
|
("sv" :default "Datum")
|
|
|
|
|
("uk" :html "Дата" :utf-8 "Дата")
|
|
|
|
|
("zh-CN" :html "日期" :utf-8 "日期")
|
|
|
|
|
("zh-TW" :html "日期" :utf-8 "日期"))
|
|
|
|
|
("Equation"
|
|
|
|
|
("fr" :ascii "Equation" :default "Équation"))
|
2012-07-12 16:19:50 -04:00
|
|
|
|
("Figure")
|
|
|
|
|
("Footnotes"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("ca" :html "Peus de pàgina")
|
|
|
|
|
("cs" :default "Pozn\xe1mky pod carou")
|
|
|
|
|
("da" :default "Fodnoter")
|
|
|
|
|
("de" :html "Fußnoten")
|
|
|
|
|
("eo" :default "Piednotoj")
|
|
|
|
|
("es" :html "Pies de página")
|
|
|
|
|
("fi" :default "Alaviitteet")
|
|
|
|
|
("fr" :default "Notes de bas de page")
|
|
|
|
|
("hu" :html "Lábjegyzet")
|
|
|
|
|
("is" :html "Aftanmálsgreinar")
|
|
|
|
|
("it" :html "Note a piè di pagina")
|
|
|
|
|
("ja" :html "脚注" :utf-8 "脚注")
|
|
|
|
|
("nl" :default "Voetnoten")
|
|
|
|
|
("no" :default "Fotnoter")
|
|
|
|
|
("nb" :default "Fotnoter")
|
|
|
|
|
("nn" :default "Fotnotar")
|
|
|
|
|
("pl" :default "Przypis")
|
|
|
|
|
("ru" :html "Сноски" :utf-8 "Сноски")
|
|
|
|
|
("sv" :default "Fotnoter")
|
|
|
|
|
("uk" :html "Примітки"
|
|
|
|
|
:utf-8 "Примітки")
|
|
|
|
|
("zh-CN" :html "脚注" :utf-8 "脚注")
|
|
|
|
|
("zh-TW" :html "腳註" :utf-8 "腳註"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("List of Listings"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("fr" :default "Liste des programmes"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("List of Tables"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("fr" :default "Liste des tableaux"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("Listing %d:"
|
|
|
|
|
("fr"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
:ascii "Programme %d :" :default "Programme nº %d :"
|
|
|
|
|
:latin1 "Programme %d :"))
|
2012-07-12 16:25:04 -04:00
|
|
|
|
("Listing %d: %s"
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("fr"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
:ascii "Programme %d : %s" :default "Programme nº %d : %s"
|
|
|
|
|
:latin1 "Programme %d : %s"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("See section %s"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("fr" :default "cf. section %s"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("Table %d:"
|
|
|
|
|
("fr"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
:ascii "Tableau %d :" :default "Tableau nº %d :" :latin1 "Tableau %d :"))
|
2012-07-12 16:25:04 -04:00
|
|
|
|
("Table %d: %s"
|
|
|
|
|
("fr"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
:ascii "Tableau %d : %s" :default "Tableau nº %d : %s"
|
|
|
|
|
:latin1 "Tableau %d : %s"))
|
2012-07-12 16:25:04 -04:00
|
|
|
|
("Table of Contents"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("ca" :html "Índex")
|
|
|
|
|
("cs" :default "Obsah")
|
|
|
|
|
("da" :default "Indhold")
|
|
|
|
|
("de" :default "Inhaltsverzeichnis")
|
|
|
|
|
("eo" :default "Enhavo")
|
|
|
|
|
("es" :html "Índice")
|
|
|
|
|
("fi" :html "Sisällysluettelo")
|
|
|
|
|
("fr" :ascii "Sommaire" :default "Table des matières")
|
|
|
|
|
("hu" :html "Tartalomjegyzék")
|
|
|
|
|
("is" :default "Efnisyfirlit")
|
|
|
|
|
("it" :default "Indice")
|
|
|
|
|
("ja" :html "目次" :utf-8 "目次")
|
|
|
|
|
("nl" :default "Inhoudsopgave")
|
|
|
|
|
("no" :default "Innhold")
|
|
|
|
|
("nb" :default "Innhold")
|
|
|
|
|
("nn" :default "Innhald")
|
|
|
|
|
("pl" :html "Spis treści")
|
|
|
|
|
("ru" :html "Содержание"
|
|
|
|
|
:utf-8 "Содержание")
|
|
|
|
|
("sv" :html "Innehåll")
|
|
|
|
|
("uk" :html "Зміст" :utf-8 "Зміст")
|
|
|
|
|
("zh-CN" :html "目录" :utf-8 "目录")
|
|
|
|
|
("zh-TW" :html "目錄" :utf-8 "目錄"))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
("Unknown reference"
|
2012-08-25 08:04:01 -04:00
|
|
|
|
("fr" :ascii "Destination inconnue" :default "Référence inconnue")))
|
2012-07-12 07:20:09 -04:00
|
|
|
|
"Dictionary for export engine.
|
|
|
|
|
|
|
|
|
|
Alist whose CAR is the string to translate and CDR is an alist
|
|
|
|
|
whose CAR is the language string and CDR is a plist whose
|
|
|
|
|
properties are possible charsets and values translated terms.
|
|
|
|
|
|
|
|
|
|
It is used as a database for `org-export-translate'. Since this
|
|
|
|
|
function returns the string as-is if no translation was found,
|
|
|
|
|
the variable only needs to record values different from the
|
|
|
|
|
entry.")
|
|
|
|
|
|
2012-07-14 06:05:20 -04:00
|
|
|
|
(defun org-export-translate (s encoding info)
|
|
|
|
|
"Translate string S according to language specification.
|
|
|
|
|
|
|
|
|
|
ENCODING is a symbol among `:ascii', `:html', `:latex', `:latin1'
|
2012-07-26 08:51:45 -04:00
|
|
|
|
and `:utf-8'. INFO is a plist used as a communication channel.
|
2012-07-14 06:05:20 -04:00
|
|
|
|
|
2012-08-25 08:04:01 -04:00
|
|
|
|
Translation depends on `:language' property. Return the
|
|
|
|
|
translated string. If no translation is found, try to fall back
|
|
|
|
|
to `:default' encoding. If it fails, return S."
|
|
|
|
|
(let* ((lang (plist-get info :language))
|
|
|
|
|
(translations (cdr (assoc lang
|
|
|
|
|
(cdr (assoc s org-export-dictionary))))))
|
|
|
|
|
(or (plist-get translations encoding)
|
|
|
|
|
(plist-get translations :default)
|
|
|
|
|
s)))
|
2012-07-14 06:05:20 -04:00
|
|
|
|
|
2012-07-12 07:20:09 -04:00
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
|
|
|
|
|
;;; The Dispatcher
|
2012-04-28 20:11:22 -04:00
|
|
|
|
;;
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; `org-export-dispatch' is the standard interactive way to start an
|
|
|
|
|
;; export process. It uses `org-export-dispatch-ui' as a subroutine
|
2012-09-09 07:06:36 -04:00
|
|
|
|
;; for its interface, which, in turn, delegates response to key
|
|
|
|
|
;; pressed to `org-export-dispatch-action'.
|
|
|
|
|
|
2012-07-01 04:16:53 -04:00
|
|
|
|
;;;###autoload
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(defun org-export-dispatch ()
|
|
|
|
|
"Export dispatcher for Org mode.
|
|
|
|
|
|
|
|
|
|
It provides an access to common export related tasks in a buffer.
|
|
|
|
|
Its interface comes in two flavours: standard and expert. While
|
|
|
|
|
both share the same set of bindings, only the former displays the
|
|
|
|
|
valid keys associations. Set `org-export-dispatch-use-expert-ui'
|
2012-10-11 15:30:12 -04:00
|
|
|
|
to switch to one or the other."
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(interactive)
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(let* ((input (save-window-excursion
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(org-export-dispatch-ui (list org-export-initial-scope)
|
|
|
|
|
nil
|
|
|
|
|
org-export-dispatch-use-expert-ui)
|
|
|
|
|
(and (get-buffer "*Org Export Dispatcher*")
|
|
|
|
|
(kill-buffer "*Org Export Dispatcher*")))))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(action (car input))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(optns (cdr input)))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(case action
|
|
|
|
|
;; First handle special hard-coded actions.
|
|
|
|
|
(publish-current-file (org-e-publish-current-file (memq 'force optns)))
|
|
|
|
|
(publish-current-project
|
2012-05-28 03:34:23 -04:00
|
|
|
|
(org-e-publish-current-project (memq 'force optns)))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(publish-choose-project
|
|
|
|
|
(org-e-publish (assoc (org-icompleting-read
|
|
|
|
|
"Publish project: "
|
|
|
|
|
org-e-publish-project-alist nil t)
|
|
|
|
|
org-e-publish-project-alist)
|
|
|
|
|
(memq 'force optns)))
|
|
|
|
|
(publish-all (org-e-publish-all (memq 'force optns)))
|
|
|
|
|
(otherwise
|
|
|
|
|
(funcall action
|
|
|
|
|
(memq 'subtree optns)
|
|
|
|
|
(memq 'visible optns)
|
|
|
|
|
(memq 'body optns))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-dispatch-ui (options first-key expertp)
|
2012-03-19 16:38:12 -04:00
|
|
|
|
"Handle interface for `org-export-dispatch'.
|
|
|
|
|
|
|
|
|
|
OPTIONS is a list containing current interactive options set for
|
|
|
|
|
export. It can contain any of the following symbols:
|
|
|
|
|
`body' toggles a body-only export
|
|
|
|
|
`subtree' restricts export to current subtree
|
|
|
|
|
`visible' restricts export to visible part of buffer.
|
|
|
|
|
`force' force publishing files.
|
|
|
|
|
|
2012-09-09 07:06:36 -04:00
|
|
|
|
FIRST-KEY is the key pressed to select the first level menu. It
|
|
|
|
|
is nil when this menu hasn't been selected yet.
|
|
|
|
|
|
2012-03-19 16:38:12 -04:00
|
|
|
|
EXPERTP, when non-nil, triggers expert UI. In that case, no help
|
|
|
|
|
buffer is provided, but indications about currently active
|
|
|
|
|
options are given in the prompt. Moreover, \[?] allows to switch
|
2012-09-09 07:06:36 -04:00
|
|
|
|
back to standard interface."
|
|
|
|
|
(let* ((fontify-key
|
|
|
|
|
(lambda (key &optional access-key)
|
|
|
|
|
;; Fontify KEY string. Optional argument ACCESS-KEY, when
|
|
|
|
|
;; non-nil is the required first-level key to activate
|
|
|
|
|
;; KEY. When its value is t, activate KEY independently
|
|
|
|
|
;; on the first key, if any. A nil value means KEY will
|
|
|
|
|
;; only be activated at first level.
|
|
|
|
|
(if (or (eq access-key t) (eq access-key first-key))
|
|
|
|
|
(org-add-props key nil 'face 'org-warning)
|
|
|
|
|
(org-no-properties key))))
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Prepare menu entries by extracting them from
|
|
|
|
|
;; `org-export-registered-backends', and sorting them by
|
|
|
|
|
;; access key and by ordinal, if any.
|
|
|
|
|
(backends (sort
|
|
|
|
|
(sort
|
|
|
|
|
(delq nil
|
|
|
|
|
(mapcar (lambda (b)
|
|
|
|
|
(org-export-backend-menu (car b)))
|
|
|
|
|
org-export-registered-backends))
|
|
|
|
|
(lambda (a b)
|
|
|
|
|
(let ((key-a (nth 1 a))
|
|
|
|
|
(key-b (nth 1 b)))
|
|
|
|
|
(cond ((and (numberp key-a) (numberp key-b))
|
|
|
|
|
(< key-a key-b))
|
|
|
|
|
((numberp key-b) t)))))
|
|
|
|
|
(lambda (a b) (< (car a) (car b)))))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
;; Compute a list of allowed keys based on the first key
|
|
|
|
|
;; pressed, if any. Some keys (?1, ?2, ?3, ?4 and ?q) are
|
|
|
|
|
;; always available.
|
|
|
|
|
(allowed-keys
|
2012-11-15 08:05:05 -05:00
|
|
|
|
(nconc (list ?1 ?2 ?3 ?4)
|
2012-11-22 09:32:01 -05:00
|
|
|
|
(if (not first-key) (org-uniquify (mapcar 'car backends))
|
2012-11-15 08:05:05 -05:00
|
|
|
|
(let (sub-menu)
|
2012-11-22 09:32:01 -05:00
|
|
|
|
(dolist (backend backends (sort (mapcar 'car sub-menu) '<))
|
2012-11-15 08:05:05 -05:00
|
|
|
|
(when (eq (car backend) first-key)
|
|
|
|
|
(setq sub-menu (append (nth 2 backend) sub-menu))))))
|
|
|
|
|
(cond ((eq first-key ?P) (list ?f ?p ?x ?a))
|
|
|
|
|
((not first-key) (list ?P)))
|
|
|
|
|
(when expertp (list ??))
|
|
|
|
|
(list ?q)))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
;; Build the help menu for standard UI.
|
|
|
|
|
(help
|
|
|
|
|
(unless expertp
|
|
|
|
|
(concat
|
|
|
|
|
;; Options are hard-coded.
|
|
|
|
|
(format "Options
|
|
|
|
|
[%s] Body only: %s [%s] Visible only: %s
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
[%s] Export scope: %s [%s] Force publishing: %s\n"
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(funcall fontify-key "1" t)
|
|
|
|
|
(if (memq 'body options) "On " "Off")
|
|
|
|
|
(funcall fontify-key "2" t)
|
|
|
|
|
(if (memq 'visible options) "On " "Off")
|
|
|
|
|
(funcall fontify-key "3" t)
|
|
|
|
|
(if (memq 'subtree options) "Subtree" "Buffer ")
|
|
|
|
|
(funcall fontify-key "4" t)
|
|
|
|
|
(if (memq 'force options) "On " "Off"))
|
org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.
This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-12 17:21:05 -05:00
|
|
|
|
;; Display registered back-end entries. When a key
|
|
|
|
|
;; appears for the second time, do not create another
|
|
|
|
|
;; entry, but append its sub-menu to existing menu.
|
|
|
|
|
(let (last-key)
|
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (entry)
|
|
|
|
|
(let ((top-key (car entry)))
|
|
|
|
|
(concat
|
|
|
|
|
(unless (eq top-key last-key)
|
|
|
|
|
(setq last-key top-key)
|
|
|
|
|
(format "\n[%s] %s\n"
|
|
|
|
|
(funcall fontify-key (char-to-string top-key))
|
|
|
|
|
(nth 1 entry)))
|
|
|
|
|
(let ((sub-menu (nth 2 entry)))
|
|
|
|
|
(unless (functionp sub-menu)
|
|
|
|
|
;; Split sub-menu into two columns.
|
|
|
|
|
(let ((index -1))
|
|
|
|
|
(concat
|
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (sub-entry)
|
|
|
|
|
(incf index)
|
|
|
|
|
(format
|
|
|
|
|
(if (zerop (mod index 2)) " [%s] %-24s"
|
|
|
|
|
"[%s] %s\n")
|
|
|
|
|
(funcall fontify-key
|
|
|
|
|
(char-to-string (car sub-entry))
|
|
|
|
|
top-key)
|
|
|
|
|
(nth 1 sub-entry)))
|
|
|
|
|
sub-menu "")
|
|
|
|
|
(when (zerop (mod index 2)) "\n"))))))))
|
|
|
|
|
backends ""))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
;; Publishing menu is hard-coded.
|
|
|
|
|
(format "\n[%s] Publish
|
|
|
|
|
[%s] Current file [%s] Current project
|
|
|
|
|
[%s] Choose project [%s] All projects\n\n"
|
|
|
|
|
(funcall fontify-key "P")
|
|
|
|
|
(funcall fontify-key "f" ?P)
|
|
|
|
|
(funcall fontify-key "p" ?P)
|
|
|
|
|
(funcall fontify-key "x" ?P)
|
|
|
|
|
(funcall fontify-key "a" ?P))
|
|
|
|
|
(format "\[%s] %s"
|
|
|
|
|
(funcall fontify-key "q" t)
|
|
|
|
|
(if first-key "Main menu" "Exit")))))
|
|
|
|
|
;; Build prompts for both standard and expert UI.
|
|
|
|
|
(standard-prompt (unless expertp "Export command: "))
|
|
|
|
|
(expert-prompt
|
|
|
|
|
(when expertp
|
|
|
|
|
(format
|
|
|
|
|
"Export command (Options: %s%s%s%s) [%s]: "
|
|
|
|
|
(if (memq 'body options) (funcall fontify-key "b" t) "-")
|
|
|
|
|
(if (memq 'visible options) (funcall fontify-key "v" t) "-")
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(if (memq 'subtree options) (funcall fontify-key "s" t) "-")
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(if (memq 'force options) (funcall fontify-key "f" t) "-")
|
|
|
|
|
(concat allowed-keys)))))
|
2012-03-19 16:38:12 -04:00
|
|
|
|
;; With expert UI, just read key with a fancy prompt. In standard
|
|
|
|
|
;; UI, display an intrusive help buffer.
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(if expertp
|
|
|
|
|
(org-export-dispatch-action
|
|
|
|
|
expert-prompt allowed-keys backends options first-key expertp)
|
2012-10-11 15:30:12 -04:00
|
|
|
|
;; At first call, create frame layout in order to display menu.
|
|
|
|
|
(unless (get-buffer "*Org Export Dispatcher*")
|
2012-03-19 16:38:12 -04:00
|
|
|
|
(delete-other-windows)
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(org-switch-to-buffer-other-window
|
|
|
|
|
(get-buffer-create "*Org Export Dispatcher*"))
|
|
|
|
|
(setq cursor-type nil))
|
2012-10-21 08:54:23 -04:00
|
|
|
|
;; At this point, the buffer containing the menu exists and is
|
|
|
|
|
;; visible in the current window. So, refresh it.
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(with-current-buffer "*Org Export Dispatcher*"
|
|
|
|
|
(erase-buffer)
|
|
|
|
|
(insert help))
|
2012-10-22 17:56:26 -04:00
|
|
|
|
(org-fit-window-to-buffer)
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(org-export-dispatch-action
|
|
|
|
|
standard-prompt allowed-keys backends options first-key expertp))))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
|
|
|
|
|
(defun org-export-dispatch-action
|
|
|
|
|
(prompt allowed-keys backends options first-key expertp)
|
|
|
|
|
"Read a character from command input and act accordingly.
|
|
|
|
|
|
|
|
|
|
PROMPT is the displayed prompt, as a string. ALLOWED-KEYS is
|
|
|
|
|
a list of characters available at a given step in the process.
|
|
|
|
|
BACKENDS is a list of menu entries. OPTIONS, FIRST-KEY and
|
|
|
|
|
EXPERTP are the same as defined in `org-export-dispatch-ui',
|
|
|
|
|
which see.
|
|
|
|
|
|
|
|
|
|
Toggle export options when required. Otherwise, return value is
|
|
|
|
|
a list with action as CAR and a list of interactive export
|
|
|
|
|
options as CDR."
|
|
|
|
|
(let ((key (let ((k (read-char-exclusive prompt)))
|
|
|
|
|
;; Translate "C-a", "C-b"... into "a", "b"... Then take action
|
|
|
|
|
;; depending on user's key pressed.
|
|
|
|
|
(if (< k 27) (+ k 96) k))))
|
|
|
|
|
(cond
|
|
|
|
|
;; Ignore non-standard characters (i.e. "M-a") and
|
|
|
|
|
;; undefined associations.
|
|
|
|
|
((not (memq key allowed-keys))
|
2012-10-11 15:30:12 -04:00
|
|
|
|
(ding)
|
|
|
|
|
(unless expertp (message "Invalid key") (sit-for 1))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(org-export-dispatch-ui options first-key expertp))
|
|
|
|
|
;; q key at first level aborts export. At second
|
|
|
|
|
;; level, cancel first key instead.
|
|
|
|
|
((eq key ?q) (if (not first-key) (error "Export aborted")
|
|
|
|
|
(org-export-dispatch-ui options nil expertp)))
|
|
|
|
|
;; Help key: Switch back to standard interface if
|
|
|
|
|
;; expert UI was active.
|
|
|
|
|
((eq key ??) (org-export-dispatch-ui options first-key nil))
|
|
|
|
|
;; Toggle export options.
|
|
|
|
|
((memq key '(?1 ?2 ?3 ?4))
|
|
|
|
|
(org-export-dispatch-ui
|
|
|
|
|
(let ((option (case key (?1 'body) (?2 'visible) (?3 'subtree)
|
|
|
|
|
(?4 'force))))
|
|
|
|
|
(if (memq option options) (remq option options)
|
|
|
|
|
(cons option options)))
|
|
|
|
|
first-key expertp))
|
|
|
|
|
;; Action selected: Send key and options back to
|
|
|
|
|
;; `org-export-dispatch'.
|
2012-11-15 08:05:05 -05:00
|
|
|
|
((or first-key (functionp (nth 2 (assq key backends))))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
(cons (cond
|
|
|
|
|
((not first-key) (nth 2 (assq key backends)))
|
|
|
|
|
;; Publishing actions are hard-coded. Send a special
|
|
|
|
|
;; signal to `org-export-dispatch'.
|
|
|
|
|
((eq first-key ?P)
|
|
|
|
|
(case key
|
|
|
|
|
(?f 'publish-current-file)
|
|
|
|
|
(?p 'publish-current-project)
|
|
|
|
|
(?x 'publish-choose-project)
|
|
|
|
|
(?a 'publish-all)))
|
2012-11-15 08:05:05 -05:00
|
|
|
|
;; Return first action associated to FIRST-KEY + KEY
|
|
|
|
|
;; path. Indeed, derived backends can share the same
|
|
|
|
|
;; FIRST-KEY.
|
|
|
|
|
(t (catch 'found
|
|
|
|
|
(mapc (lambda (backend)
|
|
|
|
|
(let ((match (assq key (nth 2 backend))))
|
|
|
|
|
(when match (throw 'found (nth 2 match)))))
|
|
|
|
|
(member (assq first-key backends) backends)))))
|
2012-09-09 07:06:36 -04:00
|
|
|
|
options))
|
|
|
|
|
;; Otherwise, enter sub-menu.
|
|
|
|
|
(t (org-export-dispatch-ui options key expertp)))))
|
2012-01-05 17:35:34 -05:00
|
|
|
|
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 10:02:27 -05:00
|
|
|
|
(provide 'org-export)
|
|
|
|
|
;;; org-export.el ends here
|