2015-08-14 21:50:51 +00:00
|
|
|
|
;;; ox.el --- Export Framework for Org Mode -*- lexical-binding: 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 15:02:27 +00:00
|
|
|
|
|
2021-01-01 19:55:31 +00:00
|
|
|
|
;; Copyright (C) 2012-2021 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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;; Author: Nicolas Goaziou <n.goaziou at gmail dot com>
|
2021-05-03 04:41:56 +00:00
|
|
|
|
;; Maintainer: Nicolas Goaziou <n.goaziou at gmail dot com>
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
;; Keywords: outlines, hypermedia, calendar, wp
|
|
|
|
|
|
Backport changes from Emacs revs 115081 and 115082
2013-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
Address some byte-compiler warnings.
* ob-abc.el (org-babel-expand-body:abc): Use dolist.
(org-babel-execute:abc): Fix regexp quoting.
* ob-calc.el (org--var-syms): Rename from `var-syms'.
* ob-lilypond.el (ly-compile-lilyfile): Remove redundant let-binding.
* ob-table.el (sbe): Move debug declaration.
* org-clock.el (org--msg-extra): Rename from `msg-extra'.
* org.el (org-version): Avoid var name starting with _.
(org-inhibit-startup, org-called-with-limited-levels)
(org-link-search-inhibit-query, org-time-was-given)
(org-end-time-was-given, org-def, org-defdecode, org-with-time):
* org-colview.el (org-agenda-overriding-columns-format):
* org-agenda.el (org-agenda-multi, org-depend-tag-blocked)
(org-agenda-show-log-scoped):
* ob-python.el (py-which-bufname, python-shell-buffer-name):
* ob-haskell.el (org-export-copy-to-kill-ring):
* ob-exp.el (org-link-search-inhibit-query):
* ob-R.el (ess-eval-visibly-p):
* ob-core.el (org-src-window-setup): Declare before use.
(org-babel-expand-noweb-references): Remove unused `blocks-in-buffer'.
* ox-odt.el (org-odt-hfy-face-to-css):
* org-src.el (org-src-associate-babel-session, org-src-get-lang-mode):
* org-bibtex.el (org-bibtex-get, org-bibtex-ask, org-bibtex)
(org-bibtex-check):
* ob-tangle.el (org-babel-tangle, org-babel-spec-to-string)
(org-babel-tangle-single-block, org-babel-tangle-comment-links):
* ob-table.el (sbe):
* ob-sqlite.el (org-babel-sqlite-expand-vars):
* ob-sql.el (org-babel-sql-expand-vars):
* ob-shen.el (org-babel-execute:shen):
* ob-sh.el (org-babel-execute:sh, org-babel-sh-evaluate):
* ob-scala.el (org-babel-scala-evaluate):
* ob-ruby.el (org-babel-ruby-table-or-string)
(org-babel-ruby-evaluate):
* ob-python.el (org-babel-python-table-or-string)
(org-babel-python-evaluate-external-process)
(org-babel-python-evaluate-session):
* ob-picolisp.el (org-babel-execute:picolisp):
* ob-perl.el (org-babel-perl-evaluate):
* ob-maxima.el (org-babel-execute:maxima):
* ob-lisp.el (org-babel-execute:lisp):
* ob-java.el (org-babel-execute:java):
* ob-io.el (org-babel-io-evaluate):
* ob-haskell.el (org-babel-execute:haskell):
* ob-fortran.el (org-babel-execute:fortran):
* ob-exp.el (org-babel-exp-code):
* ob-emacs-lisp.el (org-babel-execute:emacs-lisp):
* ob-ditaa.el (org-babel-execute:ditaa):
* ob-core.el (org-babel-execute-src-block, org-babel-sha1-hash)
(org-babel-parse-header-arguments, org-babel-reassemble-table)
(org-babel-goto-src-block-head, org-babel-mark-block)
(org-babel-expand-noweb-references, org-babel-script-escape)
(org-babel-process-file-name):
* ob-clojure.el (org-babel-execute:clojure):
* ob-calc.el (org-babel-execute:calc):
* ob-awk.el (org-babel-execute:awk):
* ob-abc.el (org-babel-execute:abc):
* ob-R.el (org-babel-expand-body:R):
* ob-C.el (org-babel-C-execute): Avoid deprecated ((lambda) ...).
2013-11-12 Glenn Morris <rgm@gnu.org>
* ox-html.el (org-html-scripts): Add 2013 to copyright years.
(org-html-infojs-template): Copyright holder to FSF.
2013-11-12 19:57:31 +00:00
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
|
2013-02-23 08:56:24 +00:00
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
;; 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.
|
|
|
|
|
|
2013-02-23 08:56:24 +00:00
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
;; 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
|
2017-09-13 22:52:52 +00:00
|
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; This library implements a generic export engine for Org, built on
|
|
|
|
|
;; its syntactical parser: Org Elements.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; Besides that parser, the generic exporter is made of three distinct
|
|
|
|
|
;; parts:
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2014-10-24 19:13:47 +00:00
|
|
|
|
;; - The communication channel consists of a property list, which is
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
;; created and updated during the process. Its use is to offer
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; every piece of information, would it be about initial environment
|
2014-10-24 19:13:47 +00:00
|
|
|
|
;; or contextual data, all in a single place.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00: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-29 00:11:22 +00: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 15:02:27 +00: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 08:30:17 +00:00
|
|
|
|
;; output from back-end transcoders. See "The Filter System"
|
|
|
|
|
;; section for more information.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2014-10-24 19:13:47 +00:00
|
|
|
|
;; The core functions is `org-export-as'. It returns the transcoded
|
|
|
|
|
;; buffer as a string. Its derivatives are `org-export-to-buffer' and
|
|
|
|
|
;; `org-export-to-file'.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; An export back-end is defined with `org-export-define-backend'.
|
|
|
|
|
;; This function can also support specific buffer keywords, OPTION
|
|
|
|
|
;; keyword's items and filters. Refer to function's documentation for
|
|
|
|
|
;; more information.
|
2012-05-18 08:18:42 +00: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-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; Any back-end can define its own variables. Among them, those
|
2012-07-23 12:06:13 +00:00
|
|
|
|
;; customizable should belong to the `org-export-BACKEND' group.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Tools for common tasks across back-ends are implemented in the
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; following part of the file.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;;
|
2014-10-24 19:13:47 +00:00
|
|
|
|
;; Eventually, a dispatcher (`org-export-dispatch') is provided in the
|
|
|
|
|
;; last one.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;;
|
2018-01-16 16:22:00 +00:00
|
|
|
|
;; See <https://orgmode.org/worg/dev/org-export-reference.html> for
|
2014-10-24 19:13:47 +00:00
|
|
|
|
;; 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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; Code:
|
2012-05-18 08:18:42 +00:00
|
|
|
|
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(require 'cl-lib)
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(require 'ob-exp)
|
2018-11-26 23:04:41 +00:00
|
|
|
|
(require 'ol)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
(require 'org-element)
|
2013-02-16 13:03:59 +00:00
|
|
|
|
(require 'org-macro)
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(require 'tabulated-list)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2017-01-21 10:31:25 +00:00
|
|
|
|
(declare-function org-src-coderef-format "org-src" (&optional element))
|
|
|
|
|
(declare-function org-src-coderef-regexp "org-src" (fmt &optional label))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(declare-function org-publish "ox-publish" (project &optional force async))
|
|
|
|
|
(declare-function org-publish-all "ox-publish" (&optional force async))
|
2016-06-18 20:11:14 +00:00
|
|
|
|
(declare-function org-publish-current-file "ox-publish" (&optional force async))
|
2016-08-17 21:43:38 +00:00
|
|
|
|
(declare-function org-publish-current-project "ox-publish" (&optional force async))
|
2012-07-01 20:29:23 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defvar org-publish-project-alist)
|
2012-07-01 20:29:23 +00:00
|
|
|
|
(defvar org-table-number-fraction)
|
|
|
|
|
(defvar org-table-number-regexp)
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; Internal Variables
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; Among internal variables, the most important is
|
2012-05-18 08:33:21 +00: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 15:02:27 +00: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 08:33:21 +00:00
|
|
|
|
(defconst org-export-options-alist
|
2015-04-05 08:23:28 +00:00
|
|
|
|
'((:title "TITLE" nil nil parse)
|
|
|
|
|
(:date "DATE" nil nil parse)
|
|
|
|
|
(:author "AUTHOR" nil user-full-name parse)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
(:email "EMAIL" nil user-mail-address t)
|
|
|
|
|
(:language "LANGUAGE" nil org-export-default-language t)
|
2014-01-22 14:45:23 +00:00
|
|
|
|
(:select-tags "SELECT_TAGS" nil org-export-select-tags split)
|
|
|
|
|
(:exclude-tags "EXCLUDE_TAGS" nil org-export-exclude-tags split)
|
|
|
|
|
(:creator "CREATOR" nil org-export-creator-string)
|
|
|
|
|
(:headline-levels nil "H" org-export-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 15:02:27 +00:00
|
|
|
|
(:preserve-breaks nil "\\n" org-export-preserve-breaks)
|
|
|
|
|
(:section-numbers nil "num" org-export-with-section-numbers)
|
|
|
|
|
(:time-stamp-file nil "timestamp" org-export-time-stamp-file)
|
|
|
|
|
(:with-archived-trees nil "arch" org-export-with-archived-trees)
|
|
|
|
|
(:with-author nil "author" org-export-with-author)
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(:with-broken-links nil "broken-links" org-export-with-broken-links)
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
(:with-creator nil "creator" org-export-with-creator)
|
2012-11-09 10:04:07 +00:00
|
|
|
|
(:with-date nil "date" org-export-with-date)
|
2012-03-19 20:38:12 +00: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 15:02:27 +00: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 10:46:49 +00:00
|
|
|
|
(:with-inlinetasks nil "inline" org-export-with-inlinetasks)
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(:with-latex nil "tex" org-export-with-latex)
|
2013-04-10 12:57:41 +00:00
|
|
|
|
(:with-planning 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 15:02:27 +00:00
|
|
|
|
(:with-priority nil "pri" org-export-with-priority)
|
2013-09-25 19:27:29 +00:00
|
|
|
|
(:with-properties nil "prop" org-export-with-properties)
|
2012-10-25 21:54:53 +00: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 15:02:27 +00:00
|
|
|
|
(:with-special-strings nil "-" org-export-with-special-strings)
|
2012-08-27 10:31:05 +00: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 15:02:27 +00: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)
|
ox: Optional export of title
* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
ox-ascii.el (org-ascii-template--document-title),
ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
ox-latex.el (org-latex-template), ox-man.el (org-man-template),
ox-odt.el (org-odt-template), ox-org.el (org-org-template),
ox-publish.el (org-publish-project-alist),
ox-texinfo.el (org-texinfo-template),
ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.
This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.
2015-02-10 23:09:39 +00:00
|
|
|
|
(:with-title nil "title" org-export-with-title)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
(:with-todo-keywords nil "todo" org-export-with-todo-keywords))
|
|
|
|
|
"Alist between export properties and ways to set them.
|
|
|
|
|
|
2015-04-05 08:23:28 +00:00
|
|
|
|
The key of the alist is the property name, and the value is a list
|
2014-01-07 13:18:17 +00:00
|
|
|
|
like (KEYWORD OPTION DEFAULT BEHAVIOR) 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 15:02:27 +00:00
|
|
|
|
|
2012-07-04 21:30:23 +00:00
|
|
|
|
KEYWORD is a string representing a buffer keyword, or nil. Each
|
|
|
|
|
property defined this way can also be set, during subtree
|
2013-02-23 12:47:44 +00:00
|
|
|
|
export, through a headline property named after the keyword
|
2012-07-04 21:30:23 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
OPTION is a string that could be found in an #+OPTIONS: line.
|
|
|
|
|
DEFAULT is the default value for the property.
|
2014-01-07 13:18:17 +00:00
|
|
|
|
BEHAVIOR determines how Org should handle multiple keywords for
|
2012-07-04 21:30:23 +00: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 15:02:27 +00: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 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
`split' Split values at white spaces, and cons them to the
|
2011-12-09 13:38:36 +00:00
|
|
|
|
previous list.
|
2015-04-05 08:23:28 +00:00
|
|
|
|
`parse' Parse value as a list of strings and Org objects,
|
|
|
|
|
which can then be transcoded with, e.g.,
|
|
|
|
|
`org-export-data'. It implies `space' behavior.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-12-18 21:33:02 +00:00
|
|
|
|
Values set through 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 15:02:27 +00:00
|
|
|
|
|
2012-07-23 17:32:57 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defconst org-export-filters-alist
|
2014-09-06 08:22:26 +00:00
|
|
|
|
'((:filter-body . org-export-filter-body-functions)
|
|
|
|
|
(:filter-bold . org-export-filter-bold-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 16:00:50 +00:00
|
|
|
|
(:filter-babel-call . org-export-filter-babel-call-functions)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(:filter-center-block . org-export-filter-center-block-functions)
|
2012-04-29 00:11:22 +00: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 16:00:50 +00:00
|
|
|
|
(:filter-code . org-export-filter-code-functions)
|
2012-10-28 22:00:04 +00:00
|
|
|
|
(:filter-diary-sexp . org-export-filter-diary-sexp-functions)
|
2012-03-19 20:38:12 +00: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)
|
2014-09-08 09:57:27 +00:00
|
|
|
|
(:filter-export-block . org-export-filter-export-block-functions)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(: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 16:00:50 +00:00
|
|
|
|
(:filter-italic . org-export-filter-italic-functions)
|
2012-03-19 20:38:12 +00: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)
|
2012-09-23 20:50:33 +00:00
|
|
|
|
(:filter-node-property . org-export-filter-node-property-functions)
|
2013-01-27 20:41:21 +00:00
|
|
|
|
(:filter-options . org-export-filter-options-functions)
|
2012-03-19 20:38:12 +00: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-29 00:11:22 +00:00
|
|
|
|
(:filter-planning . org-export-filter-planning-functions)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(:filter-property-drawer . org-export-filter-property-drawer-functions)
|
|
|
|
|
(:filter-quote-block . org-export-filter-quote-block-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 16:00:50 +00:00
|
|
|
|
(:filter-strike-through . org-export-filter-strike-through-functions)
|
2012-03-19 20:38:12 +00: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 06:54:24 +00:00
|
|
|
|
(:filter-table-cell . org-export-filter-table-cell-functions)
|
|
|
|
|
(:filter-table-row . org-export-filter-table-row-functions)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(:filter-target . org-export-filter-target-functions)
|
2012-04-29 00:23:09 +00: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 16:00:50 +00:00
|
|
|
|
(:filter-underline . org-export-filter-underline-functions)
|
2012-03-19 20:38:12 +00: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 16:06:14 +00:00
|
|
|
|
the communication channel. Its value is a configurable global
|
2012-03-19 20:38:12 +00: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 17:32:57 +00:00
|
|
|
|
`org-export-define-backend'. Filters defined there will always
|
|
|
|
|
be prepended to the current list, so they always get applied
|
2012-03-19 20:38:12 +00: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.")
|
|
|
|
|
|
org-element: Implement lazy cache synchronization
* lisp/org-element.el (org-element-cache-sync-idle-time): Change
default value.
(org-element-cache-sync-duration, org-element-cache-sync-break,
org-element--cache-sync-requests, org-element--cache-sync-timer,
org-element--cache-sync-keys, org-element--cache-default-key,
org-element--cache-change-warning): New variables.
(org-element-cache-merge-changes-threshold,
org-element--cache-status): Removed variables.
(org-element--cache-key, org-element--cache-generate-key,
org-element--cache-key-less-p, org-element--cache-find,
org-element--cache-set-timer, org-element--cache-process-request,
org-element--cache-submit-request, org-element--parse-to,
org-element--cache-interrupt-p, org-element--cache-put,
org-element--cache-active-p): New functions.
(org-element--cache-compare): Adapt to new keys in AVL tree.
(org-element--cache-pending-changes-p,
org-element--cache-cancel-changes, org-element--cache-mapc,
org-element-cache-get, org-element-cache-put): Removed functions.
(org-element--cache-before-change): Use new variables.
(org-element--cache-after-change): Renamed from
`org-element--cache-record-change'.
(org-element-cache-get): Change signature.
(org-element-cache-put): Rewrite function. Use new tools.
(org-element-cache-reset): Adapt to new variables.
(org-element--cache-sync): Rewrite function.
* lisp/ox.el (org-export--generate-copy-script): Do not copy through
new cache-related variables.
(org-export-ignored-local-variables): New variable.
* testing/lisp/test-org-element.el (test-org-element/cache): New test.
Now only the part of the cache that needs to be accessed is updated
synchronously. Otherwise, it happens on idle time.
2014-01-31 00:14:44 +00:00
|
|
|
|
(defconst org-export-ignored-local-variables
|
|
|
|
|
'(org-font-lock-keywords
|
|
|
|
|
org-element--cache org-element--cache-objects org-element--cache-sync-keys
|
|
|
|
|
org-element--cache-sync-requests org-element--cache-sync-timer)
|
|
|
|
|
"List of variables not copied through upon buffer duplication.
|
|
|
|
|
Export process takes place on a copy of the original buffer.
|
|
|
|
|
When this copy is created, all Org related local variables not in
|
|
|
|
|
this list are copied to the new buffer. Variables with an
|
|
|
|
|
unreadable value are also ignored.")
|
|
|
|
|
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(defvar org-export-async-debug nil
|
|
|
|
|
"Non-nil means asynchronous export process should leave data behind.
|
|
|
|
|
|
|
|
|
|
This data is found in the appropriate \"*Org Export Process*\"
|
|
|
|
|
buffer, and in files prefixed with \"org-export-process\" and
|
|
|
|
|
located in `temporary-file-directory'.
|
|
|
|
|
|
|
|
|
|
When non-nil, it will also set `debug-on-error' to a non-nil
|
|
|
|
|
value in the external process.")
|
|
|
|
|
|
|
|
|
|
(defvar org-export-stack-contents nil
|
|
|
|
|
"Record asynchronously generated export results and processes.
|
|
|
|
|
This is an alist: its CAR is the source of the
|
|
|
|
|
result (destination file or buffer for a finished process,
|
|
|
|
|
original buffer for a running one) and its CDR is a list
|
|
|
|
|
containing the back-end used, as a symbol, and either a process
|
|
|
|
|
or the time at which it finished. It is used to build the menu
|
|
|
|
|
from `org-export-stack'.")
|
|
|
|
|
|
2015-04-22 08:24:02 +00: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 22:21:05 +00:00
|
|
|
|
"List of backends currently available in the exporter.
|
|
|
|
|
This variable is set with `org-export-define-backend' and
|
|
|
|
|
`org-export-define-derived-backend' functions.")
|
|
|
|
|
|
2012-11-28 19:39:55 +00:00
|
|
|
|
(defvar org-export-dispatch-last-action nil
|
|
|
|
|
"Last command called from the dispatcher.
|
|
|
|
|
The value should be a list. Its CAR is the action, as a symbol,
|
|
|
|
|
and its CDR is a list of export options.")
|
|
|
|
|
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(defvar org-export-dispatch-last-position (make-marker)
|
|
|
|
|
"The position where the last export command was created using the dispatcher.
|
|
|
|
|
This marker will be used with `C-u C-c C-e' to make sure export repetition
|
|
|
|
|
uses the same subtree if the previous command was restricted to a subtree.")
|
2012-02-15 10:08:10 +00:00
|
|
|
|
|
2013-08-03 07:44:34 +00:00
|
|
|
|
;; For compatibility with Org < 8
|
|
|
|
|
(defvar org-export-current-backend nil
|
|
|
|
|
"Name, if any, of the back-end used during an export process.
|
|
|
|
|
|
|
|
|
|
Its value is a symbol such as `html', `latex', `ascii', or nil if
|
|
|
|
|
the back-end is anonymous (see `org-export-create-backend') or if
|
|
|
|
|
there is no export process in progress.
|
|
|
|
|
|
|
|
|
|
It can be used to teach Babel blocks how to act differently
|
|
|
|
|
according to the back-end used.")
|
|
|
|
|
|
2014-03-14 14:27:32 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; User-configurable Variables
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; Configuration for the masses.
|
2012-04-29 00:11:22 +00: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 16:00:50 +00:00
|
|
|
|
;; They should never be accessed directly, as their value is to be
|
2012-05-18 08:33:21 +00: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 16:00:50 +00: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 15:02:27 +00: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.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"arch:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00:00
|
|
|
|
(const :tag "Not at all" nil)
|
2013-05-09 13:19:02 +00:00
|
|
|
|
(const :tag "Headline only" headline)
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "Entirely" t))
|
2015-11-06 19:11:07 +00:00
|
|
|
|
:safe (lambda (x) (memq x '(t nil 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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-author t
|
|
|
|
|
"Non-nil means insert author name into the exported file.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"author:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-04-29 00:11:22 +00:00
|
|
|
|
(defcustom org-export-with-clocks nil
|
|
|
|
|
"Non-nil means export CLOCK keywords.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-04-29 00:11:22 +00:00
|
|
|
|
e.g. \"c:t\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-04-29 00:11:22 +00:00
|
|
|
|
|
2015-03-17 14:40:52 +00:00
|
|
|
|
(defcustom org-export-with-creator 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 15:02:27 +00:00
|
|
|
|
"Non-nil means the postamble should contain a creator sentence.
|
|
|
|
|
|
2015-03-17 14:40:52 +00:00
|
|
|
|
The sentence can be set in `org-export-creator-string', 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 15:02:27 +00:00
|
|
|
|
|
2015-03-17 14:40:52 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword, e.g.,
|
|
|
|
|
\"creator: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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2017-01-26 04:39:18 +00:00
|
|
|
|
:version "26.1"
|
2015-03-17 14:40:52 +00:00
|
|
|
|
:package-version '(Org . "8.3")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-11-09 10:04:07 +00:00
|
|
|
|
(defcustom org-export-with-date t
|
|
|
|
|
"Non-nil means insert date in the exported document.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"date:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-11-09 10:04:07 +00:00
|
|
|
|
|
2013-04-02 21:55:28 +00:00
|
|
|
|
(defcustom org-export-date-timestamp-format nil
|
|
|
|
|
"Time-stamp format string to use for DATE keyword.
|
|
|
|
|
|
|
|
|
|
The format string, when specified, only applies if date consists
|
|
|
|
|
in a single time-stamp. Otherwise its value will be ignored.
|
|
|
|
|
|
|
|
|
|
See `format-time-string' for details on how to build this
|
|
|
|
|
string."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
|
|
|
|
(string :tag "Time-stamp format string")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "No format string" nil))
|
|
|
|
|
:safe (lambda (x) (or (null x) (stringp x))))
|
2013-04-02 21:55:28 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-creator-string
|
2013-04-07 18:12:56 +00:00
|
|
|
|
(format "Emacs %s (Org mode %s)"
|
|
|
|
|
emacs-version
|
|
|
|
|
(if (fboundp 'org-version) (org-version) "unknown version"))
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
"Information about the creator of the document.
|
|
|
|
|
This option can also be set on with the CREATOR 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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type '(string :tag "Creator string")
|
|
|
|
|
:safe #'stringp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defcustom org-export-with-drawers '(not "LOGBOOK")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"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 15:02:27 +00:00
|
|
|
|
When t, all drawers are exported. This may also be a list of
|
2013-09-25 19:27:29 +00:00
|
|
|
|
drawer names to export, as strings. If that list starts with
|
|
|
|
|
`not', only drawers with such names will be ignored.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
|
2013-09-25 19:27:29 +00:00
|
|
|
|
This variable doesn't apply to properties drawers. See
|
|
|
|
|
`org-export-with-properties' instead.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-03-19 20:38:12 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.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 15:02:27 +00:00
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00:00
|
|
|
|
(const :tag "All drawers" t)
|
|
|
|
|
(const :tag "None" nil)
|
|
|
|
|
(repeat :tag "Selected drawers"
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(string :tag "Drawer name"))
|
|
|
|
|
(list :tag "Ignored drawers"
|
|
|
|
|
(const :format "" not)
|
|
|
|
|
(repeat :tag "Specify names of drawers to ignore during export"
|
|
|
|
|
:inline t
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(string :tag "Drawer name"))))
|
2017-08-26 09:27:51 +00:00
|
|
|
|
:safe (lambda (x) (or (booleanp x) (consp x))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-email nil
|
|
|
|
|
"Non-nil means insert author email into the exported file.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"email:t\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-emphasize t
|
2012-11-28 12:34:22 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
If the export target supports emphasizing text, the word will be
|
2012-11-28 12:34:22 +00: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 15:02:27 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-exclude-tags '("noexport")
|
|
|
|
|
"Tags that exclude a tree from export.
|
2012-03-19 20:38:12 +00: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 15:02:27 +00: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 20:38:12 +00:00
|
|
|
|
carry one of the `org-export-select-tags' will be removed.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00: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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type '(repeat (string :tag "Tag"))
|
|
|
|
|
:safe (lambda (x) (and (listp x) (cl-every #'stringp x))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-fixed-width t
|
2014-01-05 00:13:54 +00:00
|
|
|
|
"Non-nil means export lines starting with \":\".
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"::nil\"."
|
2013-01-27 22:11:34 +00:00
|
|
|
|
:group 'org-export-general
|
2014-01-05 00:13:54 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-footnotes t
|
|
|
|
|
"Non-nil means Org footnotes should be exported.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"f:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defcustom org-export-with-latex t
|
|
|
|
|
"Non-nil means process LaTeX environments and fragments.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS line,
|
2013-01-27 22:11:34 +00:00
|
|
|
|
e.g. \"tex:verbatim\". Allowed values are:
|
|
|
|
|
|
|
|
|
|
nil Ignore math snippets.
|
|
|
|
|
`verbatim' Keep everything in verbatim.
|
|
|
|
|
t Allow export of math snippets."
|
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2013-01-27 22:11:34 +00:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "Do not process math in any way" nil)
|
|
|
|
|
(const :tag "Interpret math snippets" t)
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "Leave math verbatim" verbatim))
|
|
|
|
|
:safe (lambda (x) (memq x '(t nil verbatim))))
|
2013-01-27 22:11:34 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-headline-levels 3
|
|
|
|
|
"The last level which is still exported as a headline.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
Inferior levels will usually produce itemize or enumerate lists
|
2014-12-26 02:07:15 +00:00
|
|
|
|
when exported, but back-end behavior may differ.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"H:2\"."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'integer
|
|
|
|
|
:safe #'integerp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-default-language "en"
|
|
|
|
|
"The default language for export and clocktable translations, as a string.
|
|
|
|
|
This may have an association in
|
2013-07-03 10:09:21 +00:00
|
|
|
|
`org-clock-clocktable-language-setup',
|
|
|
|
|
`org-export-smart-quotes-alist' and `org-export-dictionary'.
|
|
|
|
|
This option can also be set with the LANGUAGE 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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type '(string :tag "Language")
|
|
|
|
|
:safe #'stringp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-preserve-breaks nil
|
|
|
|
|
"Non-nil means preserve all line breaks when exporting.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"\\n:t\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(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'.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"e:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-08-16 10:46:49 +00:00
|
|
|
|
(defcustom org-export-with-inlinetasks t
|
|
|
|
|
"Non-nil means inlinetasks should be exported.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-08-16 10:46:49 +00:00
|
|
|
|
e.g. \"inline:nil\"."
|
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-08-16 10:46:49 +00:00
|
|
|
|
|
2012-04-29 00:11:22 +00:00
|
|
|
|
(defcustom org-export-with-planning nil
|
|
|
|
|
"Non-nil means include planning info in export.
|
2013-04-14 08:56:35 +00:00
|
|
|
|
|
|
|
|
|
Planning info is the line containing either SCHEDULED:,
|
|
|
|
|
DEADLINE:, CLOSED: time-stamps, or a combination of them.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-04-29 00:11:22 +00:00
|
|
|
|
e.g. \"p:t\"."
|
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-with-priority nil
|
|
|
|
|
"Non-nil means include priority cookies in export.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-03-19 20:38:12 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-09-25 19:27:29 +00:00
|
|
|
|
(defcustom org-export-with-properties nil
|
|
|
|
|
"Non-nil means export contents of properties drawers.
|
|
|
|
|
|
|
|
|
|
When t, all properties are exported. This may also be a list of
|
|
|
|
|
properties to export, as strings.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"prop:t\"."
|
|
|
|
|
:group 'org-export-general
|
2017-09-07 20:56:11 +00:00
|
|
|
|
:version "26.1"
|
2013-09-25 19:27:29 +00:00
|
|
|
|
:package-version '(Org . "8.3")
|
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "All properties" t)
|
|
|
|
|
(const :tag "None" nil)
|
|
|
|
|
(repeat :tag "Selected properties"
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(string :tag "Property name")))
|
|
|
|
|
:safe (lambda (x) (or (booleanp x)
|
|
|
|
|
(and (listp x) (cl-every #'stringp x)))))
|
2013-09-25 19:27:29 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-with-section-numbers t
|
|
|
|
|
"Non-nil means add section numbers to headlines when exporting.
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
When set to an integer n, numbering will only happen for
|
|
|
|
|
headlines whose relative level is higher or equal to n.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"num:t\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-select-tags '("export")
|
|
|
|
|
"Tags that select a tree for export.
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
If any such tag is found in a buffer, all trees that do not carry
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
that are selected like this, you can still deselect a subtree by
|
2012-03-19 20:38:12 +00:00
|
|
|
|
tagging it with one of the `org-export-exclude-tags'.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00: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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type '(repeat (string :tag "Tag"))
|
|
|
|
|
:safe (lambda (x) (and (listp x) (cl-every #'stringp x))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-10-25 21:54:53 +00:00
|
|
|
|
(defcustom org-export-with-smart-quotes nil
|
|
|
|
|
"Non-nil means activate smart quotes during export.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2013-04-16 09:39:41 +00:00
|
|
|
|
e.g., \"':t\".
|
|
|
|
|
|
|
|
|
|
When setting this to non-nil, you need to take care of
|
|
|
|
|
using the correct Babel package when exporting to LaTeX.
|
|
|
|
|
E.g., you can load Babel for french like this:
|
|
|
|
|
|
2013-04-16 10:54:05 +00:00
|
|
|
|
#+LATEX_HEADER: \\usepackage[french]{babel}"
|
2012-10-25 21:54:53 +00:00
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-10-25 21:54:53 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-with-special-strings t
|
2012-08-27 12:17:27 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
When this option is turned on, these strings will be exported as:
|
|
|
|
|
|
2012-08-27 12:17:27 +00: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 15:02:27 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"-:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-08-27 10:31:05 +00:00
|
|
|
|
(defcustom org-export-with-statistics-cookies t
|
|
|
|
|
"Non-nil means include statistics cookies in export.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-08-27 10:31:05 +00:00
|
|
|
|
e.g. \"stat:nil\""
|
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
2012-08-27 10:31:05 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-with-sub-superscripts t
|
|
|
|
|
"Non-nil means interpret \"_\" and \"^\" for export.
|
|
|
|
|
|
2013-11-17 07:46:50 +00:00
|
|
|
|
If you want to control how Org displays those characters, see
|
|
|
|
|
`org-use-sub-superscripts'. `org-export-with-sub-superscripts'
|
|
|
|
|
used to be an alias for `org-use-sub-superscripts' in Org <8.0,
|
|
|
|
|
it is not anymore.
|
2013-11-15 09:08:25 +00: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 15:02:27 +00:00
|
|
|
|
When this option is turned on, you can use TeX-like syntax for
|
2013-11-15 09:08:25 +00:00
|
|
|
|
sub- and superscripts and see them exported correctly.
|
|
|
|
|
|
|
|
|
|
You can also set the option with #+OPTIONS: ^:t
|
|
|
|
|
|
|
|
|
|
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:
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
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 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
x_{i^2} or x^(2-i) braces or parenthesis do grouping.
|
|
|
|
|
|
2013-11-15 09:08:25 +00:00
|
|
|
|
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."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2013-11-17 07:46:50 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.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 15:02:27 +00:00
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00:00
|
|
|
|
(const :tag "Interpret them" t)
|
|
|
|
|
(const :tag "Curly brackets only" {})
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "Do not interpret them" nil))
|
|
|
|
|
:safe (lambda (x) (memq x '(t 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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-toc t
|
|
|
|
|
"Non-nil means create a table of contents in exported files.
|
|
|
|
|
|
2018-01-31 20:20:21 +00:00
|
|
|
|
The table of contents contains headlines with levels up to
|
|
|
|
|
`org-export-headline-levels'.
|
|
|
|
|
|
|
|
|
|
When this variable is set to an integer N, include levels up to
|
|
|
|
|
N in the table of contents. Although it may then be different
|
|
|
|
|
from `org-export-headline-levels', it is cannot be larger than
|
|
|
|
|
the number of headline levels.
|
|
|
|
|
|
|
|
|
|
When nil, no table of contents is created.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"toc:nil\" or \"toc:3\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00:00
|
|
|
|
(const :tag "No Table of Contents" nil)
|
|
|
|
|
(const :tag "Full Table of Contents" t)
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(integer :tag "TOC to level"))
|
2018-01-31 20:20:21 +00:00
|
|
|
|
:safe (lambda (x)
|
|
|
|
|
(or (booleanp x)
|
|
|
|
|
(integerp x))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-tables t
|
2014-01-05 00:13:54 +00:00
|
|
|
|
"Non-nil means export tables.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2014-01-05 00:13:54 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(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.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS 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 15:02:27 +00:00
|
|
|
|
e.g. \"tags:nil\"."
|
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00:00
|
|
|
|
(const :tag "Off" nil)
|
|
|
|
|
(const :tag "Not in TOC" not-in-toc)
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "On" t))
|
|
|
|
|
:safe (lambda (x) (memq x '(t nil not-in-toc))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-tasks t
|
|
|
|
|
"Non-nil means include TODO items for export.
|
2012-10-30 15:28:14 +00: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 15:02:27 +00:00
|
|
|
|
This may have the following values:
|
|
|
|
|
t include tasks independent of state.
|
2012-10-30 15:28:14 +00: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.
|
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
2012-10-30 15:28:14 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type '(choice
|
2011-12-09 13:38:36 +00: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"
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(string :tag "Keyword")))
|
|
|
|
|
:safe (lambda (x) (or (memq x '(nil t todo done))
|
|
|
|
|
(and (listp x)
|
|
|
|
|
(cl-every #'stringp x)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
ox: Optional export of title
* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
ox-ascii.el (org-ascii-template--document-title),
ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
ox-latex.el (org-latex-template), ox-man.el (org-man-template),
ox-odt.el (org-odt-template), ox-org.el (org-org-template),
ox-publish.el (org-publish-project-alist),
ox-texinfo.el (org-texinfo-template),
ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.
This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.
2015-02-10 23:09:39 +00:00
|
|
|
|
(defcustom org-export-with-title t
|
|
|
|
|
"Non-nil means print title into the exported file.
|
|
|
|
|
This option can also be set with the OPTIONS keyword,
|
|
|
|
|
e.g. \"title:nil\"."
|
|
|
|
|
:group 'org-export-general
|
2017-01-26 04:39:18 +00:00
|
|
|
|
:version "26.1"
|
2015-03-17 14:47:40 +00:00
|
|
|
|
:package-version '(Org . "8.3")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
ox: Optional export of title
* ox.el (org-export-with-title): New variable.
* ox (org-export-options-alist),
ox-ascii.el (org-ascii-template--document-title),
ox-beamer.el (org-beamer-template), ox-html.el (org-html-template),
ox-latex.el (org-latex-template), ox-man.el (org-man-template),
ox-odt.el (org-odt-template), ox-org.el (org-org-template),
ox-publish.el (org-publish-project-alist),
ox-texinfo.el (org-texinfo-template),
ox-groff.el (org-groff--mt-head): Use new variable.
* ox-koma-letter.el (org-koma-letter-use-title): Mark obsolete.
* test-ox.el (test-org-export/parse-option-keyword): Add :with-title.
* ORG-NEWS, org.texi: Mention org-export-with-title.
This is useful in e.g. ox-html where title can be set via
`org-html-preamble-template' or when using the {{{title}}}-macro.
2015-02-10 23:09:39 +00: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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-time-stamp-file t
|
|
|
|
|
"Non-nil means insert a time stamp into the exported file.
|
2014-04-22 15:39:01 +00:00
|
|
|
|
The time stamp shows when the file was created. This option can
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
also be set with the OPTIONS keyword, e.g. \"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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2015-11-06 17:49:57 +00:00
|
|
|
|
:type 'boolean
|
|
|
|
|
:safe #'booleanp)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-timestamps t
|
2019-09-19 02:32:25 +00:00
|
|
|
|
"Non-nil means allow timestamps in export.
|
2012-04-29 20:55:37 +00:00
|
|
|
|
|
2013-04-14 20:20:16 +00:00
|
|
|
|
It can be set to any of the following values:
|
|
|
|
|
t export all timestamps.
|
|
|
|
|
`active' export active timestamps only.
|
|
|
|
|
`inactive' export inactive timestamps only.
|
|
|
|
|
nil do not export timestamps
|
|
|
|
|
|
|
|
|
|
This only applies to timestamps isolated in a paragraph
|
|
|
|
|
containing only timestamps. Other timestamps are always
|
|
|
|
|
exported.
|
2012-04-29 20:55:37 +00:00
|
|
|
|
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
This option can also be set with the OPTIONS keyword, e.g.
|
2012-04-29 20:55:37 +00:00
|
|
|
|
\"<: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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
2012-04-29 20:55:37 +00:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "All timestamps" t)
|
|
|
|
|
(const :tag "Only active timestamps" active)
|
|
|
|
|
(const :tag "Only inactive timestamps" inactive)
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(const :tag "No timestamp" nil))
|
|
|
|
|
:safe (lambda (x) (memq x '(t nil active inactive))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-with-todo-keywords t
|
|
|
|
|
"Non-nil means include TODO keywords in export.
|
ox/ox-html: Fix defcustoms
* lisp/ox.el (org-export-with-archived-trees, org-export-with-author,
org-export-with-clocks, org-export-with-date,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-with-latex,
org-export-headline-levels, org-export-default-language,
org-export-preserve-breaks, org-export-with-entities,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-priority, org-export-with-section-numbers,
org-export-select-tags, org-export-with-smart-quotes,
org-export-with-special-strings,
org-export-with-statistics-cookies,
org-export-with-sub-superscripts, org-export-with-toc,
org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords): Fix
docstrings.
* lisp/ox-html.el (org-html-postamble-format): Slightly change default
value so "Generated by" string doesn't get duplicated.
(org-html-creator-string): Fix docstring.
2013-04-07 12:36:48 +00:00
|
|
|
|
When nil, remove all these keywords from the export. This option
|
|
|
|
|
can also be set with the OPTIONS keyword, e.g. \"todo: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defcustom org-export-allow-bind-keywords nil
|
|
|
|
|
"Non-nil means BIND keywords can define local variable values.
|
|
|
|
|
This is a potential security risk, which is why the default value
|
|
|
|
|
is nil. You can also allow them through local buffer variables."
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
Export framework: Add :version and :package-version informations to defcustoms
* lisp/ox-beamer.el (org-beamer-column-view-format, org-beamer-theme,
org-beamer-environments-extra): Add :version and :package-version.
* lisp/ox-html.el (org-html-with-latex, org-html-inline-image-rules):
Add :version and :package-version.
* lisp/ox-latex.el (org-latex-inline-image-rules,
org-latex-default-table-environment, org-latex-default-table-mode,
org-latex-tables-booktabs, org-latex-table-scientific-notation,
org-latex-known-errors): Add :version and :package-version.
* lisp/ox-md.el (org-md-headline-style): Add :version
and :package-version.
* lisp/ox-odt.el (org-odt-with-latex): Add :version
and :package-version.
* lisp/ox.el (org-export-with-drawers, org-export-with-latex,
org-export-with-inlinetasks, org-export-with-planning,
org-export-with-smart-quotes, org-export-with-statistics-cookies,
org-export-allow-bind-keywords, org-export-async-init-file):
Add :version and :package-version.
2013-03-06 13:45:12 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2013-01-27 22:11:34 +00:00
|
|
|
|
: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 15:02:27 +00:00
|
|
|
|
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(defcustom org-export-with-broken-links nil
|
|
|
|
|
"Non-nil means do not raise an error on broken links.
|
|
|
|
|
|
|
|
|
|
When this variable is non-nil, broken links are ignored, without
|
|
|
|
|
stopping the export process. If it is set to `mark', broken
|
|
|
|
|
links are marked as such in the output, with a string like
|
|
|
|
|
|
|
|
|
|
[BROKEN LINK: path]
|
|
|
|
|
|
|
|
|
|
where PATH is the un-resolvable reference.
|
|
|
|
|
|
|
|
|
|
This option can also be set with the OPTIONS keyword, e.g.,
|
|
|
|
|
\"broken-links:mark\"."
|
|
|
|
|
:group 'org-export-general
|
2017-01-26 04:39:18 +00:00
|
|
|
|
:version "26.1"
|
2015-11-07 16:11:48 +00:00
|
|
|
|
:package-version '(Org . "9.0")
|
2015-10-10 14:03:05 +00:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "Ignore broken links" t)
|
|
|
|
|
(const :tag "Mark broken links in output" mark)
|
|
|
|
|
(const :tag "Raise an error" 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 15:02:27 +00:00
|
|
|
|
(defcustom org-export-snippet-translation-alist nil
|
|
|
|
|
"Alist between export snippets back-ends and exporter back-ends.
|
|
|
|
|
|
2016-01-24 20:30:39 +00:00
|
|
|
|
This variable allows providing shortcuts for export snippets.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2015-09-21 04:24:12 +00:00
|
|
|
|
For example, with a value of \\='((\"h\" . \"html\")), the
|
2012-06-30 08:01:28 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
:group 'org-export-general
|
Add :version and :package-version
* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.
* ox-ascii.el: Use utf-8-emacs as the file coding system.
2013-03-05 15:34:16 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.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 15:02:27 +00:00
|
|
|
|
:type '(repeat
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(cons (string :tag "Shortcut")
|
2015-11-06 17:49:57 +00:00
|
|
|
|
(string :tag "Back-end")))
|
|
|
|
|
:safe (lambda (x)
|
|
|
|
|
(and (listp x)
|
|
|
|
|
(cl-every #'consp x)
|
|
|
|
|
(cl-every #'stringp (mapcar #'car x))
|
|
|
|
|
(cl-every #'stringp (mapcar #'cdr x)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2016-12-19 22:00:38 +00:00
|
|
|
|
(defcustom org-export-global-macros nil
|
|
|
|
|
"Alist between macro names and expansion templates.
|
|
|
|
|
|
|
|
|
|
This variable defines macro expansion templates available
|
|
|
|
|
globally. Associations follow the pattern
|
|
|
|
|
|
|
|
|
|
(NAME . TEMPLATE)
|
|
|
|
|
|
|
|
|
|
where NAME is a string beginning with a letter and consisting of
|
|
|
|
|
alphanumeric characters only.
|
|
|
|
|
|
|
|
|
|
TEMPLATE is the string to which the macro is going to be
|
|
|
|
|
expanded. Inside, \"$1\", \"$2\"... are place-holders for
|
|
|
|
|
macro's arguments. Moreover, if the template starts with
|
|
|
|
|
\"(eval\", it will be parsed as an Elisp expression and evaluated
|
|
|
|
|
accordingly."
|
|
|
|
|
:group 'org-export-general
|
2017-01-26 05:06:04 +00:00
|
|
|
|
:version "26.1"
|
2016-12-19 22:00:38 +00:00
|
|
|
|
:package-version '(Org . "9.1")
|
|
|
|
|
:type '(repeat
|
|
|
|
|
(cons (string :tag "Name")
|
|
|
|
|
(string :tag "Template"))))
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defcustom org-export-coding-system nil
|
|
|
|
|
"Coding system for the exported file."
|
|
|
|
|
:group 'org-export-general
|
Add :version and :package-version
* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.
* ox-ascii.el: Use utf-8-emacs as the file coding system.
2013-03-05 15:34:16 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
:type 'coding-system)
|
|
|
|
|
|
2014-04-17 14:31:56 +00:00
|
|
|
|
(defcustom org-export-copy-to-kill-ring nil
|
2014-04-21 07:48:17 +00:00
|
|
|
|
"Non-nil means pushing export output to the kill ring.
|
|
|
|
|
This variable is ignored during asynchronous export."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
:group 'org-export-general
|
2017-01-26 04:39:18 +00:00
|
|
|
|
:version "26.1"
|
2014-04-17 16:22:53 +00:00
|
|
|
|
:package-version '(Org . "8.3")
|
2013-03-15 12:39:45 +00:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "Always" t)
|
|
|
|
|
(const :tag "When export is done interactively" if-interactive)
|
|
|
|
|
(const :tag "Never" nil)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
(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
|
2013-05-09 13:19:02 +00:00
|
|
|
|
(const :tag "Export current buffer" buffer)
|
|
|
|
|
(const :tag "Export current subtree" subtree)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
(defcustom org-export-show-temporary-export-buffer t
|
|
|
|
|
"Non-nil means show buffer after exporting to temp buffer.
|
2014-09-25 23:11:33 +00:00
|
|
|
|
When Org exports to a file, the buffer visiting that file is never
|
2012-04-27 22:57:38 +00: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 20:38:12 +00:00
|
|
|
|
:group 'org-export-general
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(defcustom org-export-in-background nil
|
|
|
|
|
"Non-nil means export and publishing commands will run in background.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
Results from an asynchronous export are never displayed
|
2016-10-15 15:36:47 +00:00
|
|
|
|
automatically. But you can retrieve them with `\\[org-export-stack]'."
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
:group 'org-export-general
|
Add :version and :package-version
* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.
* ox-ascii.el: Use utf-8-emacs as the file coding system.
2013-03-05 15:34:16 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2013-10-28 17:56:04 +00:00
|
|
|
|
(defcustom org-export-async-init-file nil
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
"File used to initialize external export process.
|
2013-10-28 17:56:04 +00:00
|
|
|
|
|
|
|
|
|
Value must be either nil or an absolute file name. When nil, the
|
|
|
|
|
external process is launched like a regular Emacs session,
|
|
|
|
|
loading user's initialization file and any site specific
|
|
|
|
|
configuration. If a file is provided, it, and only it, is loaded
|
|
|
|
|
at start-up.
|
|
|
|
|
|
|
|
|
|
Therefore, using a specific configuration makes the process to
|
|
|
|
|
load faster and the export more portable."
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
:group 'org-export-general
|
Add :version and :package-version
* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.
* ox-ascii.el: Use utf-8-emacs as the file coding system.
2013-03-05 15:34:16 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2013-10-28 17:56:04 +00:00
|
|
|
|
:type '(choice
|
|
|
|
|
(const :tag "Regular startup" nil)
|
|
|
|
|
(file :tag "Specific start-up file" :must-match t)))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(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 19:30:12 +00:00
|
|
|
|
for current export scope is added to the prompt (\"b\" when
|
2012-03-19 20:38:12 +00:00
|
|
|
|
output is restricted to body only, \"s\" when it is restricted to
|
2012-10-11 19:30:12 +00:00
|
|
|
|
the current subtree, \"v\" when only visible elements are
|
2013-01-27 22:11:34 +00:00
|
|
|
|
considered for export, \"f\" when publishing functions should be
|
|
|
|
|
passed the FORCE argument and \"a\" when the export should be
|
2016-01-24 20:30:39 +00:00
|
|
|
|
asynchronous). Also, [?] allows switching back to standard
|
2013-01-27 22:11:34 +00:00
|
|
|
|
mode."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
:group 'org-export-general
|
Add :version and :package-version
* ox.el (org-export-snippet-translation-alist)
(org-export-coding-system, org-export-in-background)
(org-export-async-init-file, org-export-invisible-backends)
(org-export-dispatch-use-expert-ui):
* ox-texinfo.el (org-texinfo-filename, org-texinfo-classes)
(org-texinfo-format-headline-function)
(org-texinfo-node-description-column)
(org-texinfo-active-timestamp-format)
(org-texinfo-link-with-unknown-path-format)
(org-texinfo-tables-verbatim)
(org-texinfo-table-scientific-notation)
(org-texinfo-text-markup-alist)
(org-texinfo-format-drawer-function)
(org-texinfo-format-inlinetask-function)
(org-texinfo-info-process):
* ox-man.el (org-man-tables-centered)
(org-man-table-scientific-notation)
(org-man-source-highlight, org-man-source-highlight-langs)
(org-man-pdf-process, org-man-logfiles-extensions):
* ox-html.el (org-html-allow-name-attribute-in-anchors)
(org-html-coding-system, org-html-divs):
* ox-ascii.el (org-ascii-text-width)
(org-ascii-headline-spacing, org-ascii-indented-line-width)
(org-ascii-paragraph-spacing, org-ascii-charset)
(org-ascii-underline, org-ascii-bullets)
(org-ascii-links-to-notes)
(org-ascii-table-keep-all-vertical-lines)
(org-ascii-table-widen-columns)
(org-ascii-table-use-ascii-art)
(org-ascii-format-drawer-function)
(org-ascii-format-inlinetask-function):
* org.el (org-modules, org-export-backends)
(org-highlight-latex-and-related, orgstruct-setup-hook):
* org-attach.el (org-attach-git-annex-cutoff):
* org-archive.el (org-archive-file-header-format):
* org-agenda.el (org-agenda-todo-ignore-time-comparison-use-seconds):
* ob-python.el (org-babel-python-hline-to)
(org-babel-python-None-to):
* ob-ditaa.el (org-ditaa-eps-jar-path):
* ob-core.el (org-babel-results-keyword): Add :version and
:package-version.
* ox-ascii.el: Use utf-8-emacs as the file coding system.
2013-03-05 15:34:16 +00:00
|
|
|
|
:version "24.4"
|
|
|
|
|
:package-version '(Org . "8.0")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
: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 15:02:27 +00:00
|
|
|
|
|
2012-05-18 08:19:10 +00: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 22:21:05 +00:00
|
|
|
|
;;; Defining Back-ends
|
2012-09-24 20:35:55 +00:00
|
|
|
|
;;
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; An export back-end is a structure with `org-export-backend' type
|
|
|
|
|
;; and `name', `parent', `transcoders', `options', `filters', `blocks'
|
|
|
|
|
;; and `menu' slots.
|
|
|
|
|
;;
|
|
|
|
|
;; At the lowest level, a back-end is created with
|
|
|
|
|
;; `org-export-create-backend' function.
|
|
|
|
|
;;
|
|
|
|
|
;; A named back-end can be registered with
|
|
|
|
|
;; `org-export-register-backend' function. A registered back-end can
|
|
|
|
|
;; later be referred to by its name, with `org-export-get-backend'
|
|
|
|
|
;; function. Also, such a back-end can become the parent of a derived
|
|
|
|
|
;; back-end from which slot values will be inherited by default.
|
|
|
|
|
;; `org-export-derived-backend-p' can check if a given back-end is
|
|
|
|
|
;; derived from a list of back-end names.
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-get-all-transcoders', `org-export-get-all-options' and
|
|
|
|
|
;; `org-export-get-all-filters' return the full alist of transcoders,
|
|
|
|
|
;; options and filters, including those inherited from ancestors.
|
2012-09-24 20:35:55 +00:00
|
|
|
|
;;
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; At a higher level, `org-export-define-backend' is the standard way
|
|
|
|
|
;; to define an export back-end. If the new back-end is similar to
|
|
|
|
|
;; a registered 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 22:21:05 +00:00
|
|
|
|
;;
|
2012-09-24 20:35:55 +00:00
|
|
|
|
;; Eventually `org-export-barf-if-invalid-backend' returns an error
|
|
|
|
|
;; when a given back-end hasn't been registered yet.
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-defstruct (org-export-backend (:constructor org-export-create-backend)
|
|
|
|
|
(:copier nil))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
name parent transcoders options filters blocks menu)
|
|
|
|
|
|
2017-01-21 10:44:29 +00:00
|
|
|
|
;;;###autoload
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(defun org-export-get-backend (name)
|
|
|
|
|
"Return export back-end named after NAME.
|
|
|
|
|
NAME is a symbol. Return nil if no such back-end is found."
|
2017-01-21 10:44:29 +00:00
|
|
|
|
(cl-find-if (lambda (b) (and (eq name (org-export-backend-name b))))
|
|
|
|
|
org-export-registered-backends))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-register-backend (backend)
|
|
|
|
|
"Register BACKEND as a known export back-end.
|
|
|
|
|
BACKEND is a structure with `org-export-backend' type."
|
|
|
|
|
;; Refuse to register an unnamed back-end.
|
|
|
|
|
(unless (org-export-backend-name backend)
|
|
|
|
|
(error "Cannot register a unnamed export back-end"))
|
|
|
|
|
;; Refuse to register a back-end with an unknown parent.
|
|
|
|
|
(let ((parent (org-export-backend-parent backend)))
|
|
|
|
|
(when (and parent (not (org-export-get-backend parent)))
|
|
|
|
|
(error "Cannot use unknown \"%s\" back-end as a parent" parent)))
|
|
|
|
|
;; If a back-end with the same name as BACKEND is already
|
|
|
|
|
;; registered, replace it with BACKEND. Otherwise, simply add
|
|
|
|
|
;; BACKEND to the list of registered back-ends.
|
|
|
|
|
(let ((old (org-export-get-backend (org-export-backend-name backend))))
|
2015-04-22 08:24:02 +00:00
|
|
|
|
(if old (setcar (memq old org-export-registered-backends) backend)
|
|
|
|
|
(push backend org-export-registered-backends))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-barf-if-invalid-backend (backend)
|
|
|
|
|
"Signal an error if BACKEND isn't defined."
|
|
|
|
|
(unless (org-export-backend-p backend)
|
|
|
|
|
(error "Unknown \"%s\" back-end: Aborting export" backend)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-derived-backend-p (backend &rest backends)
|
|
|
|
|
"Non-nil if BACKEND is derived from one of BACKENDS.
|
|
|
|
|
BACKEND is an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end. BACKENDS is constituted of symbols."
|
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
|
|
|
(when backend
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(while (org-export-backend-parent backend)
|
|
|
|
|
(when (memq (org-export-backend-name backend) backends)
|
|
|
|
|
(throw 'exit t))
|
|
|
|
|
(setq backend
|
|
|
|
|
(org-export-get-backend (org-export-backend-parent backend))))
|
|
|
|
|
(memq (org-export-backend-name backend) backends))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-all-transcoders (backend)
|
|
|
|
|
"Return full translation table for BACKEND.
|
|
|
|
|
|
|
|
|
|
BACKEND is an export back-end, as return by, e.g,,
|
|
|
|
|
`org-export-create-backend'. Return value is an alist where
|
|
|
|
|
keys are element or object types, as symbols, and values are
|
|
|
|
|
transcoders.
|
|
|
|
|
|
|
|
|
|
Unlike to `org-export-backend-transcoders', this function
|
|
|
|
|
also returns transcoders inherited from parent back-ends,
|
|
|
|
|
if any."
|
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
|
|
|
(when backend
|
|
|
|
|
(let ((transcoders (org-export-backend-transcoders backend))
|
|
|
|
|
parent)
|
|
|
|
|
(while (setq parent (org-export-backend-parent backend))
|
|
|
|
|
(setq backend (org-export-get-backend parent))
|
|
|
|
|
(setq transcoders
|
|
|
|
|
(append transcoders (org-export-backend-transcoders backend))))
|
|
|
|
|
transcoders)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-all-options (backend)
|
|
|
|
|
"Return export options for BACKEND.
|
|
|
|
|
|
|
|
|
|
BACKEND is an export back-end, as return by, e.g,,
|
|
|
|
|
`org-export-create-backend'. See `org-export-options-alist'
|
|
|
|
|
for the shape of the return value.
|
|
|
|
|
|
|
|
|
|
Unlike to `org-export-backend-options', this function also
|
2017-03-23 15:38:59 +00:00
|
|
|
|
returns options inherited from parent back-ends, if any.
|
|
|
|
|
|
|
|
|
|
Return nil if BACKEND is unknown."
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
|
|
|
(when backend
|
|
|
|
|
(let ((options (org-export-backend-options backend))
|
|
|
|
|
parent)
|
|
|
|
|
(while (setq parent (org-export-backend-parent backend))
|
|
|
|
|
(setq backend (org-export-get-backend parent))
|
|
|
|
|
(setq options (append options (org-export-backend-options backend))))
|
|
|
|
|
options)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-all-filters (backend)
|
|
|
|
|
"Return complete list of filters for BACKEND.
|
|
|
|
|
|
|
|
|
|
BACKEND is an export back-end, as return by, e.g,,
|
|
|
|
|
`org-export-create-backend'. Return value is an alist where
|
|
|
|
|
keys are symbols and values lists of functions.
|
|
|
|
|
|
|
|
|
|
Unlike to `org-export-backend-filters', this function also
|
|
|
|
|
returns filters inherited from parent back-ends, if any."
|
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
|
|
|
(when backend
|
|
|
|
|
(let ((filters (org-export-backend-filters backend))
|
|
|
|
|
parent)
|
|
|
|
|
(while (setq parent (org-export-backend-parent backend))
|
|
|
|
|
(setq backend (org-export-get-backend parent))
|
|
|
|
|
(setq filters (append filters (org-export-backend-filters backend))))
|
|
|
|
|
filters)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-define-backend (backend transcoders &rest body)
|
2012-07-23 12:06:13 +00:00
|
|
|
|
"Define a new back-end BACKEND.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
TRANSCODERS is an alist between object or element types and
|
2012-07-23 12:06:13 +00:00
|
|
|
|
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
|
2013-02-11 21:19:23 +00:00
|
|
|
|
associated to the `template' (or `inner-template') symbol and
|
|
|
|
|
another one to the `plain-text' symbol.
|
2012-07-23 12:06:13 +00:00
|
|
|
|
|
|
|
|
|
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
|
2013-02-11 21:19:23 +00:00
|
|
|
|
containing export options. A function associated to `template'
|
|
|
|
|
will not be applied if export has option \"body-only\".
|
|
|
|
|
A function associated to `inner-template' is always applied.
|
2012-07-23 12:06:13 +00:00
|
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
|
|
|
|
|
: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 08:41:41 +00: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 12:06:13 +00:00
|
|
|
|
|
2012-09-09 11:06:36 +00:00
|
|
|
|
:menu-entry
|
|
|
|
|
|
|
|
|
|
Menu entry for the export dispatcher. It should be a list
|
|
|
|
|
like:
|
|
|
|
|
|
2015-09-21 04:23:58 +00:00
|
|
|
|
\\='(KEY DESCRIPTION-OR-ORDINAL ACTION-OR-MENU)
|
2012-09-09 11:06:36 +00: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 22:21:05 +00: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 11:06:36 +00:00
|
|
|
|
ACTION-OR-MENU is either a function or an alist.
|
|
|
|
|
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
If it is an action, it will be called with four
|
|
|
|
|
arguments (booleans): ASYNC, SUBTREEP, VISIBLE-ONLY and
|
|
|
|
|
BODY-ONLY. See `org-export-as' for further explanations on
|
|
|
|
|
some of them.
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
|
|
|
|
If it is an alist, associations should follow the
|
|
|
|
|
pattern:
|
|
|
|
|
|
2015-09-21 04:23:58 +00:00
|
|
|
|
\\='(KEY DESCRIPTION ACTION)
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
|
|
|
|
where KEY, DESCRIPTION and ACTION are described above.
|
|
|
|
|
|
|
|
|
|
Valid values include:
|
|
|
|
|
|
2015-09-21 04:23:58 +00:00
|
|
|
|
\\='(?m \"My Special Back-end\" my-special-export-function)
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
2015-09-21 04:23:58 +00:00
|
|
|
|
\\='(?l \"Export to LaTeX\"
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(?p \"As PDF file\" org-latex-export-to-pdf)
|
|
|
|
|
(?o \"As PDF file and open\"
|
|
|
|
|
(lambda (a s v b)
|
|
|
|
|
(if a (org-latex-export-to-pdf t s v b)
|
|
|
|
|
(org-open-file
|
|
|
|
|
(org-latex-export-to-pdf nil s v b)))))))
|
2012-12-16 07:22:41 +00:00
|
|
|
|
|
|
|
|
|
or the following, which will be added to the previous
|
|
|
|
|
sub-menu,
|
|
|
|
|
|
2015-09-21 04:23:58 +00:00
|
|
|
|
\\='(?l 1
|
2015-09-17 23:08:20 +00:00
|
|
|
|
((?B \"As TEX buffer (Beamer)\" org-beamer-export-as-latex)
|
|
|
|
|
(?P \"As PDF file (Beamer)\" org-beamer-export-to-pdf)))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
2012-07-23 12:06:13 +00: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 11:06:36 +00:00
|
|
|
|
structure of the values."
|
2013-03-19 15:24:40 +00:00
|
|
|
|
(declare (indent 1))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(let (filters menu-entry options)
|
2012-07-23 12:06:13 +00:00
|
|
|
|
(while (keywordp (car body))
|
2014-07-31 08:48:54 +00:00
|
|
|
|
(let ((keyword (pop body)))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(pcase keyword
|
2014-07-31 08:48:54 +00:00
|
|
|
|
(:filters-alist (setq filters (pop body)))
|
|
|
|
|
(:menu-entry (setq menu-entry (pop body)))
|
|
|
|
|
(:options-alist (setq options (pop body)))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(_ (error "Unknown keyword: %s" keyword)))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(org-export-register-backend
|
|
|
|
|
(org-export-create-backend :name backend
|
|
|
|
|
:transcoders transcoders
|
|
|
|
|
:options options
|
|
|
|
|
:filters filters
|
|
|
|
|
:menu menu-entry))))
|
2013-03-19 15:24:40 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-define-derived-backend (child parent &rest body)
|
2012-05-18 08:19:10 +00:00
|
|
|
|
"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 12:07:16 +00:00
|
|
|
|
:filters-alist
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
|
|
|
|
Alist of filters that will overwrite or complete filters
|
2012-07-23 12:07:16 +00:00
|
|
|
|
defined in PARENT back-end. See `org-export-filters-alist'
|
2012-09-09 11:06:36 +00: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 08:19:10 +00:00
|
|
|
|
|
2012-07-23 12:07:16 +00:00
|
|
|
|
:options-alist
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
2012-07-23 12:07:16 +00: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 08:19:10 +00:00
|
|
|
|
|
2012-07-23 12:07:16 +00:00
|
|
|
|
:translate-alist
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
|
|
|
|
Alist of element and object types and transcoders that will
|
|
|
|
|
overwrite or complete transcode table from PARENT back-end.
|
2012-07-23 12:07:16 +00:00
|
|
|
|
Refer to `org-export-define-backend' for detailed information
|
|
|
|
|
about transcoders.
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
|
|
|
|
As an example, here is how one could define \"my-latex\" back-end
|
2013-01-27 22:11:34 +00:00
|
|
|
|
as a variant of `latex' back-end with a custom template function:
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(org-export-define-derived-backend \\='my-latex \\='latex
|
2015-09-21 04:23:36 +00:00
|
|
|
|
:translate-alist \\='((template . my-latex-template-fun)))
|
2012-05-18 08:19:10 +00:00
|
|
|
|
|
|
|
|
|
The back-end could then be called with, for example:
|
|
|
|
|
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(org-export-to-buffer \\='my-latex \"*Test my-latex*\")"
|
2013-03-19 15:24:40 +00:00
|
|
|
|
(declare (indent 2))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(let (filters menu-entry options transcoders)
|
2012-05-18 08:19:10 +00:00
|
|
|
|
(while (keywordp (car body))
|
2014-07-31 08:48:54 +00:00
|
|
|
|
(let ((keyword (pop body)))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(pcase keyword
|
2014-07-31 08:48:54 +00:00
|
|
|
|
(:filters-alist (setq filters (pop body)))
|
|
|
|
|
(:menu-entry (setq menu-entry (pop body)))
|
|
|
|
|
(:options-alist (setq options (pop body)))
|
|
|
|
|
(:translate-alist (setq transcoders (pop body)))
|
2015-02-03 15:16:54 +00:00
|
|
|
|
(_ (error "Unknown keyword: %s" keyword)))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(org-export-register-backend
|
|
|
|
|
(org-export-create-backend :name child
|
|
|
|
|
:parent parent
|
|
|
|
|
:transcoders transcoders
|
|
|
|
|
:options options
|
|
|
|
|
:filters filters
|
|
|
|
|
:menu menu-entry))))
|
2012-11-17 12:33:38 +00:00
|
|
|
|
|
2012-05-18 08:19:10 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; The Communication Channel
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; During export process, every function has access to a number of
|
2012-05-20 10:01:10 +00:00
|
|
|
|
;; properties. They are of two types:
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Most environment options are defined through the
|
2012-05-18 08:33:21 +00: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 15:02:27 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 2. Tree properties are extracted directly from the parsed tree,
|
2015-11-05 09:56:59 +00:00
|
|
|
|
;; 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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;;;; Environment Options
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
;; - Global variables,
|
2012-04-13 13:30:02 +00: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 15:02:27 +00:00
|
|
|
|
;; - Options keyword symbols,
|
|
|
|
|
;; - Buffer keywords,
|
|
|
|
|
;; - Subtree properties.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
;; "#+BIND:" keywords, then retrieve and prioritize properties from
|
|
|
|
|
;; the different sources.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; The internal functions doing the retrieval are:
|
2012-07-24 14:04:35 +00: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-29 00:11:22 +00:00
|
|
|
|
;;
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; Also, `org-export--list-bound-variables' collects bound variables
|
|
|
|
|
;; along with their value in order to set them as buffer local
|
|
|
|
|
;; variables later in the process.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2017-01-21 10:44:29 +00:00
|
|
|
|
;;;###autoload
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
"Collect export options from the current buffer.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
Optional argument BACKEND is an export back-end, as returned by
|
|
|
|
|
`org-export-create-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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
Third optional argument EXT-PLIST is a property list with
|
|
|
|
|
external parameters overriding Org default settings, but still
|
|
|
|
|
inferior to file-local settings."
|
2013-03-29 20:21:48 +00:00
|
|
|
|
;; First install #+BIND variables since these must be set before
|
|
|
|
|
;; global options are read.
|
2013-04-01 13:18:47 +00:00
|
|
|
|
(dolist (pair (org-export--list-bound-variables))
|
2015-11-05 16:47:38 +00:00
|
|
|
|
(set (make-local-variable (car pair)) (nth 1 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 15:02:27 +00:00
|
|
|
|
;; Get and prioritize export options...
|
2012-05-20 10:01:10 +00:00
|
|
|
|
(org-combine-plists
|
|
|
|
|
;; ... from global variables...
|
2012-07-24 14:04:35 +00:00
|
|
|
|
(org-export--get-global-options backend)
|
2012-05-20 10:01:10 +00:00
|
|
|
|
;; ... from an external property list...
|
|
|
|
|
ext-plist
|
|
|
|
|
;; ... from in-buffer settings...
|
2013-02-26 22:32:36 +00:00
|
|
|
|
(org-export--get-inbuffer-options backend)
|
2012-05-20 10:01:10 +00:00
|
|
|
|
;; ... and from subtree, when appropriate.
|
2015-11-05 09:54:43 +00:00
|
|
|
|
(and subtreep (org-export--get-subtree-options 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 15:02:27 +00:00
|
|
|
|
|
2012-07-24 14:04:35 +00: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 15:02:27 +00:00
|
|
|
|
"Parse an OPTIONS line and return values as a plist.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
Optional argument BACKEND is an export back-end, as returned by,
|
|
|
|
|
e.g., `org-export-create-backend'. It specifies which back-end
|
2012-03-19 20:38:12 +00:00
|
|
|
|
specific items to read, if any."
|
2015-09-09 20:50:08 +00:00
|
|
|
|
(let ((line
|
|
|
|
|
(let ((s 0) alist)
|
2021-04-10 10:06:47 +00:00
|
|
|
|
(while (string-match "\\(.+?\\):\\((.*?)\\|\\S-+\\)?[ \t]*" options s)
|
2015-09-09 20:50:08 +00:00
|
|
|
|
(setq s (match-end 0))
|
2021-04-10 10:06:47 +00:00
|
|
|
|
(let ((value (match-string 2 options)))
|
|
|
|
|
(when value
|
|
|
|
|
(push (cons (match-string 1 options)
|
|
|
|
|
(read value))
|
|
|
|
|
alist))))
|
2015-09-09 20:50:08 +00:00
|
|
|
|
alist))
|
|
|
|
|
;; Priority is given to back-end specific options.
|
2017-03-23 15:38:59 +00:00
|
|
|
|
(all (append (org-export-get-all-options backend)
|
2015-09-09 20:50:08 +00:00
|
|
|
|
org-export-options-alist))
|
|
|
|
|
(plist))
|
|
|
|
|
(when line
|
|
|
|
|
(dolist (entry all plist)
|
|
|
|
|
(let ((item (nth 2 entry)))
|
|
|
|
|
(when item
|
|
|
|
|
(let ((v (assoc-string item line t)))
|
|
|
|
|
(when v (setq plist (plist-put plist (car entry) (cdr v)))))))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-07-24 14:04:35 +00: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 15:02:27 +00:00
|
|
|
|
"Get export options in subtree at point.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
Optional argument BACKEND is an export back-end, as returned by,
|
|
|
|
|
e.g., `org-export-create-backend'. It specifies back-end used
|
2012-07-01 20:29:23 +00:00
|
|
|
|
for export. Return options as a plist."
|
2013-02-23 12:47:44 +00:00
|
|
|
|
;; For each buffer keyword, create a headline property setting the
|
2015-04-22 12:05:51 +00:00
|
|
|
|
;; same property in communication channel. The name for the
|
|
|
|
|
;; property is the keyword with "EXPORT_" appended to it.
|
2012-06-17 23:34:57 +00:00
|
|
|
|
(org-with-wide-buffer
|
2015-06-23 20:09:43 +00:00
|
|
|
|
;; Make sure point is at a heading.
|
|
|
|
|
(if (org-at-heading-p) (org-up-heading-safe) (org-back-to-heading t))
|
|
|
|
|
(let ((plist
|
|
|
|
|
;; EXPORT_OPTIONS are parsed in a non-standard way. Take
|
|
|
|
|
;; care of them right from the start.
|
2015-08-23 21:50:49 +00:00
|
|
|
|
(let ((o (org-entry-get (point) "EXPORT_OPTIONS" 'selective)))
|
2015-06-23 20:09:43 +00:00
|
|
|
|
(and o (org-export--parse-option-keyword o backend))))
|
|
|
|
|
;; Take care of EXPORT_TITLE. If it isn't defined, use
|
|
|
|
|
;; headline's title (with no todo keyword, priority cookie or
|
|
|
|
|
;; tag) as its fallback value.
|
|
|
|
|
(cache (list
|
|
|
|
|
(cons "TITLE"
|
2015-08-23 21:50:49 +00:00
|
|
|
|
(or (org-entry-get (point) "EXPORT_TITLE" 'selective)
|
2016-10-28 22:38:15 +00:00
|
|
|
|
(let ((case-fold-search nil))
|
|
|
|
|
(looking-at org-complex-heading-regexp)
|
|
|
|
|
(match-string-no-properties 4))))))
|
2015-04-05 08:23:28 +00:00
|
|
|
|
;; Look for both general keywords and back-end specific
|
|
|
|
|
;; options, with priority given to the latter.
|
2017-03-23 15:38:59 +00:00
|
|
|
|
(options (append (org-export-get-all-options backend)
|
2015-04-05 08:23:28 +00:00
|
|
|
|
org-export-options-alist)))
|
2015-06-23 20:09:43 +00:00
|
|
|
|
;; Handle other keywords. Then return PLIST.
|
|
|
|
|
(dolist (option options plist)
|
|
|
|
|
(let ((property (car option))
|
|
|
|
|
(keyword (nth 1 option)))
|
|
|
|
|
(when keyword
|
|
|
|
|
(let ((value
|
|
|
|
|
(or (cdr (assoc keyword cache))
|
|
|
|
|
(let ((v (org-entry-get (point)
|
2015-08-23 21:50:49 +00:00
|
|
|
|
(concat "EXPORT_" keyword)
|
|
|
|
|
'selective)))
|
2015-06-23 20:09:43 +00:00
|
|
|
|
(push (cons keyword v) cache) v))))
|
|
|
|
|
(when value
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put plist
|
|
|
|
|
property
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-case (nth 4 option)
|
2015-06-23 20:09:43 +00:00
|
|
|
|
(parse
|
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
value (org-element-restriction 'keyword)))
|
2017-09-07 12:34:25 +00:00
|
|
|
|
(split (split-string value))
|
2015-06-23 20:09:43 +00:00
|
|
|
|
(t value))))))))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-02-26 22:32:36 +00:00
|
|
|
|
(defun org-export--get-inbuffer-options (&optional backend)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"Return current buffer export options, as a plist.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
Optional argument BACKEND, when non-nil, is an export back-end,
|
|
|
|
|
as returned by, e.g., `org-export-create-backend'. It specifies
|
2012-03-19 20:38:12 +00:00
|
|
|
|
which back-end specific options should also be read in the
|
|
|
|
|
process.
|
|
|
|
|
|
|
|
|
|
Assume buffer is in Org mode. Narrowing, if any, is ignored."
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(let* ((case-fold-search t)
|
2013-02-26 22:32:36 +00:00
|
|
|
|
(options (append
|
|
|
|
|
;; Priority is given to back-end specific options.
|
2017-03-23 15:38:59 +00:00
|
|
|
|
(org-export-get-all-options backend)
|
2013-02-26 22:32:36 +00:00
|
|
|
|
org-export-options-alist))
|
2015-08-14 21:50:51 +00:00
|
|
|
|
plist to-parse)
|
2020-04-26 16:04:38 +00:00
|
|
|
|
(let ((find-properties
|
|
|
|
|
(lambda (keyword)
|
|
|
|
|
;; Return all properties associated to KEYWORD.
|
|
|
|
|
(let (properties)
|
|
|
|
|
(dolist (option options properties)
|
|
|
|
|
(when (equal (nth 1 option) keyword)
|
|
|
|
|
(cl-pushnew (car option) properties)))))))
|
2015-08-14 21:50:51 +00:00
|
|
|
|
;; Read options in the current buffer and return value.
|
2020-04-26 16:04:38 +00:00
|
|
|
|
(dolist (entry (org-collect-keywords
|
|
|
|
|
(nconc (delq nil (mapcar #'cadr options))
|
2020-04-26 20:58:05 +00:00
|
|
|
|
'("FILETAGS" "OPTIONS"))))
|
2020-04-26 16:04:38 +00:00
|
|
|
|
(pcase entry
|
|
|
|
|
(`("OPTIONS" . ,values)
|
|
|
|
|
(setq plist
|
|
|
|
|
(apply #'org-combine-plists
|
2020-04-27 08:39:05 +00:00
|
|
|
|
plist
|
2020-04-26 16:04:38 +00:00
|
|
|
|
(mapcar (lambda (v)
|
|
|
|
|
(org-export--parse-option-keyword v backend))
|
|
|
|
|
values))))
|
|
|
|
|
(`("FILETAGS" . ,values)
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put plist
|
|
|
|
|
:filetags
|
|
|
|
|
(org-uniquify
|
|
|
|
|
(cl-mapcan (lambda (v) (org-split-string v ":"))
|
|
|
|
|
values)))))
|
|
|
|
|
(`(,keyword . ,values)
|
|
|
|
|
(dolist (property (funcall find-properties keyword))
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist property
|
|
|
|
|
;; Handle value depending on specified BEHAVIOR.
|
|
|
|
|
(cl-case (nth 4 (assq property options))
|
|
|
|
|
(parse
|
|
|
|
|
(unless (memq property to-parse)
|
|
|
|
|
(push property to-parse))
|
|
|
|
|
;; Even if `parse' implies `space' behavior, we
|
|
|
|
|
;; separate line with "\n" so as to preserve
|
|
|
|
|
;; line-breaks.
|
|
|
|
|
(mapconcat #'identity values "\n"))
|
|
|
|
|
(space
|
|
|
|
|
(mapconcat #'identity values " "))
|
|
|
|
|
(newline
|
|
|
|
|
(mapconcat #'identity values "\n"))
|
|
|
|
|
(split
|
|
|
|
|
(cl-mapcan (lambda (v) (split-string v)) values))
|
|
|
|
|
((t)
|
|
|
|
|
(org-last values))
|
|
|
|
|
(otherwise
|
|
|
|
|
(car values)))))))))
|
2015-04-09 12:08:34 +00:00
|
|
|
|
;; Parse properties in TO-PARSE. Remove newline characters not
|
2015-07-27 03:56:50 +00:00
|
|
|
|
;; involved in line breaks to simulate `space' behavior.
|
2015-04-09 12:08:34 +00:00
|
|
|
|
;; Finally return options.
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(dolist (p to-parse plist)
|
2015-04-09 12:08:34 +00:00
|
|
|
|
(let ((value (org-element-parse-secondary-string
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(plist-get plist p)
|
2015-04-09 12:08:34 +00:00
|
|
|
|
(org-element-restriction 'keyword))))
|
|
|
|
|
(org-element-map value 'plain-text
|
|
|
|
|
(lambda (s)
|
|
|
|
|
(org-element-set-element
|
|
|
|
|
s (replace-regexp-in-string "\n" " " s))))
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(setq plist (plist-put plist p value)))))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2015-11-05 09:54:43 +00:00
|
|
|
|
(defun org-export--get-export-attributes
|
|
|
|
|
(&optional backend subtreep visible-only body-only)
|
|
|
|
|
"Return properties related to export process, as a plist.
|
|
|
|
|
Optional arguments BACKEND, SUBTREEP, VISIBLE-ONLY and BODY-ONLY
|
|
|
|
|
are like the arguments with the same names of function
|
|
|
|
|
`org-export-as'."
|
|
|
|
|
(list :export-options (delq nil
|
|
|
|
|
(list (and subtreep 'subtree)
|
|
|
|
|
(and visible-only 'visible-only)
|
|
|
|
|
(and body-only 'body-only)))
|
|
|
|
|
:back-end backend
|
|
|
|
|
:translate-alist (org-export-get-all-transcoders backend)
|
|
|
|
|
:exported-data (make-hash-table :test #'eq :size 4001)))
|
|
|
|
|
|
2012-07-24 14:04:35 +00:00
|
|
|
|
(defun org-export--get-buffer-attributes ()
|
2012-04-13 13:30:02 +00:00
|
|
|
|
"Return properties related to buffer attributes, as a plist."
|
2014-09-28 21:29:59 +00:00
|
|
|
|
(list :input-buffer (buffer-name (buffer-base-buffer))
|
|
|
|
|
:input-file (buffer-file-name (buffer-base-buffer))))
|
2012-04-13 13:30:02 +00:00
|
|
|
|
|
2012-07-24 14:04:35 +00: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 15:02:27 +00:00
|
|
|
|
"Return global export options as a plist.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
Optional argument BACKEND, if non-nil, is an export back-end, as
|
|
|
|
|
returned by, e.g., `org-export-create-backend'. It specifies
|
2012-03-19 20:38:12 +00:00
|
|
|
|
which back-end specific export options should also be read in the
|
|
|
|
|
process."
|
2013-05-15 11:18:18 +00:00
|
|
|
|
(let (plist
|
|
|
|
|
;; Priority is given to back-end specific options.
|
2017-03-23 15:38:59 +00:00
|
|
|
|
(all (append (org-export-get-all-options backend)
|
2013-05-15 11:18:18 +00:00
|
|
|
|
org-export-options-alist)))
|
|
|
|
|
(dolist (cell all plist)
|
2014-06-03 20:07:35 +00:00
|
|
|
|
(let ((prop (car cell)))
|
|
|
|
|
(unless (plist-member plist prop)
|
2013-05-15 11:18:18 +00:00
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put
|
|
|
|
|
plist
|
|
|
|
|
prop
|
2015-04-05 08:23:28 +00:00
|
|
|
|
;; Evaluate default value provided.
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(let ((value (eval (nth 3 cell) t)))
|
2015-04-05 08:23:28 +00:00
|
|
|
|
(if (eq (nth 4 cell) 'parse)
|
2014-06-03 20:07:35 +00:00
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
value (org-element-restriction 'keyword))
|
|
|
|
|
value)))))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-04-01 13:18:47 +00:00
|
|
|
|
(defun org-export--list-bound-variables ()
|
|
|
|
|
"Return variables bound from BIND keywords in current buffer.
|
|
|
|
|
Also look for BIND keywords in setup files. The return value is
|
|
|
|
|
an alist where associations are (VARIABLE-NAME VALUE)."
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(when org-export-allow-bind-keywords
|
2020-04-26 20:42:26 +00:00
|
|
|
|
(pcase (org-collect-keywords '("BIND"))
|
|
|
|
|
(`(("BIND" . ,values))
|
|
|
|
|
(mapcar (lambda (v) (read (format "(%s)" v)))
|
|
|
|
|
values)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2014-05-28 11:18:05 +00:00
|
|
|
|
;; defsubst org-export-get-parent must be defined before first use,
|
|
|
|
|
;; was originally defined in the topology section
|
|
|
|
|
|
|
|
|
|
(defsubst org-export-get-parent (blob)
|
|
|
|
|
"Return BLOB parent or nil.
|
|
|
|
|
BLOB is the element or object considered."
|
|
|
|
|
(org-element-property :parent 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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;;;; Tree Properties
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-09-30 18:02:28 +00:00
|
|
|
|
;; Tree properties are information extracted from parse tree. They
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; are initialized at the beginning of the transcoding process by
|
2015-11-05 09:56:59 +00:00
|
|
|
|
;; `org-export--collect-tree-properties'.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Dedicated functions focus on computing the value of specific tree
|
|
|
|
|
;; properties during initialization. Thus,
|
2012-07-24 14:04:35 +00: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 20:38:12 +00:00
|
|
|
|
;; the minimal exportable level, used as a basis to compute relative
|
|
|
|
|
;; level for headlines. Eventually
|
2012-07-24 14:04:35 +00:00
|
|
|
|
;; `org-export--collect-headline-numbering' builds an alist between
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2015-11-05 09:56:59 +00:00
|
|
|
|
(defun org-export--collect-tree-properties (data info)
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 09:33:16 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-04-17 11:29:21 +00:00
|
|
|
|
Following tree properties are set or updated:
|
2012-07-24 15:02:48 +00: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 15:02:27 +00:00
|
|
|
|
`:headline-offset' Offset between true level of headlines and
|
2013-02-23 12:47:44 +00:00
|
|
|
|
local level. An offset of -1 means a headline
|
2011-12-09 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
|
2015-11-05 08:20:05 +00:00
|
|
|
|
`:headline-numbering' Alist of all headlines as key and the
|
2012-03-19 20:38:12 +00:00
|
|
|
|
associated numbering as value.
|
|
|
|
|
|
2015-11-05 08:20:05 +00:00
|
|
|
|
`:id-alist' Alist of all ID references as key and associated file
|
|
|
|
|
as value.
|
|
|
|
|
|
2012-06-06 21:39:04 +00:00
|
|
|
|
Return updated plist."
|
2014-11-16 12:27:34 +00:00
|
|
|
|
;; Install the parse tree in the communication channel.
|
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 06:54:24 +00:00
|
|
|
|
(setq info (plist-put info :parse-tree data))
|
2012-04-17 11:29:21 +00:00
|
|
|
|
;; Compute `:headline-offset' in order to be able to use
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; `org-export-get-relative-level'.
|
|
|
|
|
(setq info
|
|
|
|
|
(plist-put info
|
2012-07-24 14:04:35 +00:00
|
|
|
|
:headline-offset
|
|
|
|
|
(- 1 (org-export--get-min-level data info))))
|
2015-11-05 09:54:43 +00:00
|
|
|
|
;; From now on, properties order doesn't matter: get the rest of the
|
|
|
|
|
;; tree properties.
|
|
|
|
|
(org-combine-plists
|
|
|
|
|
info
|
|
|
|
|
(list :headline-numbering (org-export--collect-headline-numbering data info)
|
|
|
|
|
:id-alist
|
|
|
|
|
(org-element-map data 'link
|
|
|
|
|
(lambda (l)
|
|
|
|
|
(and (string= (org-element-property :type l) "id")
|
|
|
|
|
(let* ((id (org-element-property :path l))
|
|
|
|
|
(file (car (org-id-find id))))
|
|
|
|
|
(and file (cons id (file-relative-name file))))))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-07-24 14:04:35 +00: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 15:02:27 +00: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))
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (datum (org-element-contents data))
|
|
|
|
|
(when (and (eq (org-element-type datum) 'headline)
|
|
|
|
|
(not (org-element-property :footnote-section-p datum))
|
|
|
|
|
(not (memq datum (plist-get options :ignore-list))))
|
|
|
|
|
(setq min-level (min (org-element-property :level datum) min-level))
|
|
|
|
|
(when (= min-level 1) (throw 'exit 1))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00: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 14:04:35 +00:00
|
|
|
|
(defun org-export--collect-headline-numbering (data options)
|
2014-09-21 14:17:55 +00:00
|
|
|
|
"Return numbering of all exportable, numbered headlines in a parse tree.
|
2011-12-01 13:01:32 +00:00
|
|
|
|
|
|
|
|
|
DATA is the parse tree. OPTIONS is the plist holding export
|
|
|
|
|
options.
|
|
|
|
|
|
2013-02-23 12:47:44 +00:00
|
|
|
|
Return an alist whose key is a headline and value is its
|
2015-09-17 23:08:20 +00:00
|
|
|
|
associated numbering \(in the shape of a list of numbers) or nil
|
2013-02-13 14:51:08 +00:00
|
|
|
|
for a footnotes section."
|
2011-12-01 13:01:32 +00:00
|
|
|
|
(let ((numbering (make-vector org-export-max-depth 0)))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-element-map data 'headline
|
|
|
|
|
(lambda (headline)
|
2014-09-21 14:17:55 +00:00
|
|
|
|
(when (and (org-export-numbered-headline-p headline options)
|
|
|
|
|
(not (org-element-property :footnote-section-p headline)))
|
2013-02-13 14:51:08 +00:00
|
|
|
|
(let ((relative-level
|
|
|
|
|
(1- (org-export-get-relative-level headline options))))
|
|
|
|
|
(cons
|
|
|
|
|
headline
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-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))))))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
options)))
|
2011-12-01 13:01:32 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defun org-export--selected-trees (data info)
|
2015-01-23 22:59:23 +00:00
|
|
|
|
"List headlines and inlinetasks with a select tag in their tree.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
DATA is parsed data as returned by `org-element-parse-buffer'.
|
|
|
|
|
INFO is a plist holding export options."
|
2018-02-03 23:11:18 +00:00
|
|
|
|
(let ((select (cl-mapcan (lambda (tag) (org-tags-expand tag t))
|
|
|
|
|
(plist-get info :select-tags))))
|
2015-11-10 22:38:04 +00:00
|
|
|
|
(if (cl-some (lambda (tag) (member tag select)) (plist-get info :filetags))
|
|
|
|
|
;; If FILETAGS contains a select tag, every headline or
|
|
|
|
|
;; inlinetask is returned.
|
|
|
|
|
(org-element-map data '(headline inlinetask) #'identity)
|
2015-12-13 03:46:24 +00:00
|
|
|
|
(letrec ((selected-trees nil)
|
2015-11-10 22:38:04 +00:00
|
|
|
|
(walk-data
|
|
|
|
|
(lambda (data genealogy)
|
|
|
|
|
(let ((type (org-element-type data)))
|
|
|
|
|
(cond
|
|
|
|
|
((memq type '(headline inlinetask))
|
|
|
|
|
(let ((tags (org-element-property :tags data)))
|
|
|
|
|
(if (cl-some (lambda (tag) (member tag select)) 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 inlinetask)
|
|
|
|
|
#'identity)
|
|
|
|
|
selected-trees))
|
|
|
|
|
;; If at a headline, continue searching in
|
|
|
|
|
;; tree, recursively.
|
|
|
|
|
(when (eq type 'headline)
|
|
|
|
|
(dolist (el (org-element-contents data))
|
|
|
|
|
(funcall walk-data el (cons data genealogy)))))))
|
|
|
|
|
((or (eq type 'org-data)
|
|
|
|
|
(memq type org-element-greater-elements))
|
|
|
|
|
(dolist (el (org-element-contents data))
|
|
|
|
|
(funcall walk-data el genealogy))))))))
|
|
|
|
|
(funcall walk-data data nil)
|
|
|
|
|
selected-trees))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2018-02-03 23:11:18 +00:00
|
|
|
|
(defun org-export--skip-p (datum options selected excluded)
|
2017-01-10 23:00:29 +00:00
|
|
|
|
"Non-nil when element or object DATUM should be skipped during export.
|
2012-05-26 09:04:29 +00:00
|
|
|
|
OPTIONS is the plist holding export options. SELECTED, when
|
2013-03-02 13:34:45 +00:00
|
|
|
|
non-nil, is a list of headlines or inlinetasks belonging to
|
2018-02-03 23:11:18 +00:00
|
|
|
|
a tree with a select tag. EXCLUDED is a list of tags, as
|
|
|
|
|
strings. Any headline or inlinetask marked with one of those is
|
|
|
|
|
not exported."
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(cl-case (org-element-type datum)
|
|
|
|
|
((comment comment-block)
|
|
|
|
|
;; Skip all comments and comment blocks. Make to keep maximum
|
|
|
|
|
;; number of blank lines around the comment so as to preserve
|
|
|
|
|
;; local structure of the document upon interpreting it back into
|
|
|
|
|
;; Org syntax.
|
|
|
|
|
(let* ((previous (org-export-get-previous-element datum options))
|
|
|
|
|
(before (or (org-element-property :post-blank previous) 0))
|
|
|
|
|
(after (or (org-element-property :post-blank datum) 0)))
|
|
|
|
|
(when previous
|
|
|
|
|
(org-element-put-property previous :post-blank (max before after 1))))
|
|
|
|
|
t)
|
2012-08-27 10:31:05 +00:00
|
|
|
|
(clock (not (plist-get options :with-clocks)))
|
|
|
|
|
(drawer
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(let ((with-drawers-p (plist-get options :with-drawers)))
|
|
|
|
|
(or (not with-drawers-p)
|
|
|
|
|
(and (consp with-drawers-p)
|
|
|
|
|
;; If `:with-drawers' value starts with `not', ignore
|
|
|
|
|
;; every drawer whose name belong to that list.
|
|
|
|
|
;; Otherwise, ignore drawers whose name isn't in that
|
|
|
|
|
;; list.
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(let ((name (org-element-property :drawer-name datum)))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(if (eq (car with-drawers-p) 'not)
|
|
|
|
|
(member-ignore-case name (cdr with-drawers-p))
|
|
|
|
|
(not (member-ignore-case name with-drawers-p))))))))
|
2014-01-05 00:13:54 +00:00
|
|
|
|
(fixed-width (not (plist-get options :with-fixed-width)))
|
2013-04-21 07:58:40 +00:00
|
|
|
|
((footnote-definition footnote-reference)
|
|
|
|
|
(not (plist-get options :with-footnotes)))
|
2013-03-02 13:34:45 +00:00
|
|
|
|
((headline inlinetask)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(let ((with-tasks (plist-get options :with-tasks))
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(todo (org-element-property :todo-keyword datum))
|
|
|
|
|
(todo-type (org-element-property :todo-type datum))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(archived (plist-get options :with-archived-trees))
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(tags (org-export-get-tags datum options nil t)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(or
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(and (eq (org-element-type datum) 'inlinetask)
|
2013-03-02 13:34:45 +00:00
|
|
|
|
(not (plist-get options :with-inlinetasks)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Ignore subtrees with an exclude tag.
|
2018-02-03 23:11:18 +00:00
|
|
|
|
(cl-some (lambda (tag) (member tag excluded)) tags)
|
2012-05-26 09:04:29 +00:00
|
|
|
|
;; When a select tag is present in the buffer, ignore any tree
|
|
|
|
|
;; without it.
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(and selected (not (memq datum selected)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Ignore commented sub-trees.
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(org-element-property :commentedp datum)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Ignore archived subtrees if `:with-archived-trees' is nil.
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(and (not archived) (org-element-property :archivedp datum))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 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))))))))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
((latex-environment latex-fragment) (not (plist-get options :with-latex)))
|
2013-09-25 19:27:29 +00:00
|
|
|
|
(node-property
|
|
|
|
|
(let ((properties-set (plist-get options :with-properties)))
|
|
|
|
|
(cond ((null properties-set) t)
|
|
|
|
|
((consp properties-set)
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(not (member-ignore-case (org-element-property :key datum)
|
2013-09-25 19:27:29 +00:00
|
|
|
|
properties-set))))))
|
2013-04-10 12:57:41 +00:00
|
|
|
|
(planning (not (plist-get options :with-planning)))
|
2013-09-25 19:27:29 +00:00
|
|
|
|
(property-drawer (not (plist-get options :with-properties)))
|
2012-08-27 10:31:05 +00:00
|
|
|
|
(statistics-cookie (not (plist-get options :with-statistics-cookies)))
|
2014-01-05 00:13:54 +00:00
|
|
|
|
(table (not (plist-get options :with-tables)))
|
2012-08-27 10:31:05 +00:00
|
|
|
|
(table-cell
|
|
|
|
|
(and (org-export-table-has-special-column-p
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(org-export-get-parent-table datum))
|
|
|
|
|
(org-export-first-sibling-p datum options)))
|
|
|
|
|
(table-row (org-export-table-row-is-special-p datum options))
|
2012-04-29 20:55:37 +00:00
|
|
|
|
(timestamp
|
2013-04-14 20:20:16 +00:00
|
|
|
|
;; `:with-timestamps' only applies to isolated timestamps
|
|
|
|
|
;; objects, i.e. timestamp objects in a paragraph containing only
|
|
|
|
|
;; timestamps and whitespaces.
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(when (let ((parent (org-export-get-parent-element datum)))
|
2013-04-14 20:20:16 +00:00
|
|
|
|
(and (memq (org-element-type parent) '(paragraph verse-block))
|
|
|
|
|
(not (org-element-map parent
|
|
|
|
|
(cons 'plain-text
|
|
|
|
|
(remq 'timestamp org-element-all-objects))
|
|
|
|
|
(lambda (obj)
|
|
|
|
|
(or (not (stringp obj)) (org-string-nw-p obj)))
|
|
|
|
|
options t))))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-case (plist-get options :with-timestamps)
|
2015-01-23 22:59:23 +00:00
|
|
|
|
((nil) t)
|
2013-04-14 20:20:16 +00:00
|
|
|
|
(active
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(not (memq (org-element-property :type datum) '(active active-range))))
|
2013-04-14 20:20:16 +00:00
|
|
|
|
(inactive
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(not (memq (org-element-property :type datum)
|
2013-04-14 20:20:16 +00:00
|
|
|
|
'(inactive inactive-range)))))))))
|
2012-02-22 16:35:52 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; The Transcoder
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-04-29 20:55:37 +00: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 15:02:27 +00: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-30 00:04:03 +00: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 15:02:48 +00:00
|
|
|
|
;; lines and white space are preserved. The function memoizes its
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; results, so it is cheap to call it within transcoders.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-12-19 15:59:12 +00:00
|
|
|
|
;; It is possible to modify locally the back-end used by
|
|
|
|
|
;; `org-export-data' or even use a temporary back-end by using
|
|
|
|
|
;; `org-export-data-with-backend'.
|
|
|
|
|
;;
|
2012-05-18 08:18:42 +00:00
|
|
|
|
;; `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 15:02:27 +00: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-30 00:04:03 +00: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.
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(if (eq type 'org-data) (lambda (_datum contents _info) contents)
|
2012-05-20 10:01:10 +00:00
|
|
|
|
(let ((transcoder (cdr (assq type (plist-get info :translate-alist)))))
|
2012-07-15 18:02:22 +00: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-30 00:04:03 +00: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 09:33:16 +00: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 15:02:27 +00: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-30 00:04:03 +00: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 15:02:27 +00:00
|
|
|
|
|
2014-05-12 20:18:00 +00:00
|
|
|
|
Return a string."
|
|
|
|
|
(or (gethash data (plist-get info :exported-data))
|
2015-10-10 14:03:05 +00:00
|
|
|
|
;; Handle broken links according to
|
|
|
|
|
;; `org-export-with-broken-links'.
|
|
|
|
|
(cl-macrolet
|
|
|
|
|
((broken-link-handler
|
|
|
|
|
(&rest body)
|
|
|
|
|
`(condition-case err
|
|
|
|
|
(progn ,@body)
|
|
|
|
|
(org-link-broken
|
|
|
|
|
(pcase (plist-get info :with-broken-links)
|
|
|
|
|
(`nil (user-error "Unable to resolve link: %S" (nth 1 err)))
|
|
|
|
|
(`mark (org-export-data
|
|
|
|
|
(format "[BROKEN LINK: %s]" (nth 1 err)) info))
|
|
|
|
|
(_ nil))))))
|
|
|
|
|
(let* ((type (org-element-type data))
|
2016-10-24 21:32:15 +00:00
|
|
|
|
(parent (org-export-get-parent data))
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(results
|
|
|
|
|
(cond
|
|
|
|
|
;; Ignored element/object.
|
|
|
|
|
((memq data (plist-get info :ignore-list)) nil)
|
|
|
|
|
;; Plain text.
|
|
|
|
|
((eq type 'plain-text)
|
2012-07-24 15:02:48 +00:00
|
|
|
|
(org-export-filter-apply-functions
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(plist-get info :filter-plain-text)
|
|
|
|
|
(let ((transcoder (org-export-transcoder data info)))
|
|
|
|
|
(if transcoder (funcall transcoder data info) 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)))
|
|
|
|
|
(or (and (functionp transcoder)
|
|
|
|
|
(broken-link-handler
|
|
|
|
|
(funcall transcoder data nil info)))
|
|
|
|
|
;; Export snippets never return a nil value so
|
|
|
|
|
;; that white spaces following them are never
|
|
|
|
|
;; ignored.
|
|
|
|
|
(and (eq type 'export-snippet) ""))))
|
|
|
|
|
;; 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
|
2017-11-09 21:47:35 +00:00
|
|
|
|
;; When normalizing first paragraph
|
|
|
|
|
;; of an item or
|
|
|
|
|
;; a footnote-definition, ignore
|
|
|
|
|
;; first line's indentation.
|
|
|
|
|
(and
|
|
|
|
|
(eq type 'paragraph)
|
|
|
|
|
(memq (org-element-type parent)
|
|
|
|
|
'(footnote-definition item))
|
|
|
|
|
(eq (car (org-element-contents parent))
|
|
|
|
|
data)
|
|
|
|
|
(eq (org-element-property :pre-blank parent)
|
|
|
|
|
0)))))
|
2015-10-10 14:03:05 +00:00
|
|
|
|
"")))
|
|
|
|
|
(broken-link-handler
|
|
|
|
|
(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) "")
|
|
|
|
|
((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
|
2016-10-24 21:32:15 +00:00
|
|
|
|
(org-export-filter-apply-functions
|
|
|
|
|
(plist-get info (intern (format ":filter-%s" type)))
|
2016-10-25 16:19:05 +00:00
|
|
|
|
(let ((blank (or (org-element-property :post-blank data) 0)))
|
|
|
|
|
(if (eq (org-element-class data parent) 'object)
|
2016-10-24 21:32:15 +00:00
|
|
|
|
(concat results (make-string blank ?\s))
|
|
|
|
|
(concat (org-element-normalize-string results)
|
|
|
|
|
(make-string blank ?\n))))
|
|
|
|
|
info)))
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(plist-get info :exported-data))))))
|
2012-12-19 15:59:12 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-data-with-backend (data backend info)
|
|
|
|
|
"Convert DATA into BACKEND format.
|
|
|
|
|
|
|
|
|
|
DATA is an element, an object, a secondary string or a string.
|
|
|
|
|
BACKEND is a symbol. INFO is a plist used as a communication
|
|
|
|
|
channel.
|
|
|
|
|
|
|
|
|
|
Unlike to `org-export-with-backend', this function will
|
|
|
|
|
recursively convert DATA using BACKEND translation table."
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
2016-12-13 21:11:41 +00:00
|
|
|
|
;; Set-up a new communication channel with translations defined in
|
|
|
|
|
;; BACKEND as the translate table and a new hash table for
|
|
|
|
|
;; memoization.
|
|
|
|
|
(let ((new-info
|
|
|
|
|
(org-combine-plists
|
|
|
|
|
info
|
|
|
|
|
(list :back-end backend
|
|
|
|
|
:translate-alist (org-export-get-all-transcoders backend)
|
|
|
|
|
;; Size of the hash table is reduced since this
|
|
|
|
|
;; function will probably be used on small trees.
|
|
|
|
|
:exported-data (make-hash-table :test 'eq :size 401)))))
|
|
|
|
|
(prog1 (org-export-data data new-info)
|
|
|
|
|
;; Preserve `:internal-references', as those do not depend on
|
|
|
|
|
;; the back-end used; we need to make sure that any new
|
|
|
|
|
;; reference when the temporary back-end was active gets through
|
|
|
|
|
;; the default one.
|
|
|
|
|
(plist-put info :internal-references
|
|
|
|
|
(plist-get new-info :internal-references)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-04-26 13:47:34 +00:00
|
|
|
|
(defun org-export-expand (blob contents &optional with-affiliated)
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
"Expand a parsed element or object to its original state.
|
2013-04-26 13:47:34 +00: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 15:02:27 +00:00
|
|
|
|
BLOB is either an element or an object. CONTENTS is its
|
2013-04-26 13:47:34 +00:00
|
|
|
|
contents, as a string or nil.
|
|
|
|
|
|
|
|
|
|
When optional argument WITH-AFFILIATED is non-nil, add affiliated
|
|
|
|
|
keywords before output."
|
|
|
|
|
(let ((type (org-element-type blob)))
|
2016-10-25 11:13:26 +00:00
|
|
|
|
(concat (and with-affiliated
|
|
|
|
|
(eq (org-element-class blob) 'element)
|
2013-04-26 13:47:34 +00:00
|
|
|
|
(org-element--interpret-affiliated-keywords blob))
|
|
|
|
|
(funcall (intern (format "org-element-%s-interpreter" type))
|
|
|
|
|
blob contents))))
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; The Filter System
|
2012-04-29 00:11:22 +00: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 15:02:27 +00: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 22:57:38 +00: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 15:02:27 +00: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 08:30:17 +00: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 12:07:16 +00: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 22:21:05 +00: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 08:30:17 +00:00
|
|
|
|
;;
|
2013-01-27 20:41:21 +00:00
|
|
|
|
;; - `:filter-options' applies to the property list containing export
|
|
|
|
|
;; options. Unlike to other filters, functions in this list accept
|
|
|
|
|
;; two arguments instead of three: the property list containing
|
|
|
|
|
;; export options and the back-end. Users can set its value through
|
|
|
|
|
;; `org-export-filter-options-functions' variable.
|
|
|
|
|
;;
|
|
|
|
|
;; - `:filter-parse-tree' applies directly to the complete parsed
|
|
|
|
|
;; tree. Users can set it through
|
|
|
|
|
;; `org-export-filter-parse-tree-functions' variable.
|
2012-06-09 08:30:17 +00:00
|
|
|
|
;;
|
2014-09-06 08:22:26 +00:00
|
|
|
|
;; - `:filter-body' applies to the body of the output, before template
|
|
|
|
|
;; translator chimes in. Users can set it through
|
|
|
|
|
;; `org-export-filter-body-functions' variable.
|
|
|
|
|
;;
|
2012-06-09 08:30:17 +00:00
|
|
|
|
;; - `:filter-final-output' applies to the final transcoded string.
|
|
|
|
|
;; Users can set it with `org-export-filter-final-output-functions'
|
2014-09-06 08:22:26 +00:00
|
|
|
|
;; variable.
|
2012-06-09 08:30:17 +00:00
|
|
|
|
;;
|
|
|
|
|
;; - `: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
|
2013-04-14 22:55:26 +00:00
|
|
|
|
;; object of type TYPE has been transcoded. A user can modify
|
2014-09-06 08:22:26 +00:00
|
|
|
|
;; `org-export-filter-TYPE-functions' to install these filters.
|
2012-06-09 08:30:17 +00:00
|
|
|
|
;;
|
|
|
|
|
;; 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 15:02:27 +00:00
|
|
|
|
;; `org-export-filter-apply-functions' function. Filters in a set are
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; applied in a LIFO fashion. It allows developers to be sure that
|
|
|
|
|
;; their filters will be applied first.
|
2012-04-27 22:57:38 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Filters properties are installed in communication channel with
|
|
|
|
|
;; `org-export-install-filters' function.
|
|
|
|
|
;;
|
2012-11-02 13:06:50 +00: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 20:38:12 +00:00
|
|
|
|
|
2012-04-27 22:57:38 +00:00
|
|
|
|
|
2012-11-02 13:06:50 +00: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 22:57:38 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-before-parsing-hook nil
|
|
|
|
|
"Hook run before parsing an export buffer.
|
2012-08-24 08:06:14 +00:00
|
|
|
|
|
2012-11-02 13:06:50 +00: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 08:06:14 +00:00
|
|
|
|
|
|
|
|
|
Every function in this hook will be called with one argument: the
|
|
|
|
|
back-end currently used, as a symbol.")
|
2012-02-13 12:50:28 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
;;;; Special Filters
|
2012-04-27 22:57:38 +00:00
|
|
|
|
|
2013-01-27 20:41:21 +00:00
|
|
|
|
(defvar org-export-filter-options-functions nil
|
|
|
|
|
"List of functions applied to the export options.
|
|
|
|
|
Each filter is called with two arguments: the export options, as
|
|
|
|
|
a plist, and the back-end, as a symbol. It must return
|
|
|
|
|
a property list containing 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 15:02:27 +00:00
|
|
|
|
(defvar org-export-filter-parse-tree-functions nil
|
2012-04-27 22:57:38 +00:00
|
|
|
|
"List of functions applied to the parsed tree.
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-plain-text-functions nil
|
2012-04-27 22:57:38 +00:00
|
|
|
|
"List of functions applied to plain text.
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2014-09-06 08:22:26 +00:00
|
|
|
|
(defvar org-export-filter-body-functions nil
|
|
|
|
|
"List of functions applied to transcoded body.
|
|
|
|
|
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.")
|
|
|
|
|
|
2013-01-27 20:41:21 +00:00
|
|
|
|
(defvar org-export-filter-final-output-functions nil
|
|
|
|
|
"List of functions applied to the transcoded string.
|
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;;; Elements Filters
|
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00:00
|
|
|
|
(defvar org-export-filter-center-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded center block.
|
2012-04-29 00:11:22 +00: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 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-10-28 22:00:04 +00:00
|
|
|
|
(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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 20:38:12 +00:00
|
|
|
|
as a string, the back-end, as a symbol, and the communication
|
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 16:00:50 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
|
2014-09-08 09:57:27 +00:00
|
|
|
|
(defvar org-export-filter-export-block-functions nil
|
|
|
|
|
"List of functions applied to a transcoded export-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.")
|
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-keyword-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-latex-environment-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-23 20:50:33 +00: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 15:02:27 +00:00
|
|
|
|
(defvar org-export-filter-paragraph-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-09-24 06:29:54 +00: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-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
(defvar org-export-filter-property-drawer-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-quote-block-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00:00
|
|
|
|
data, as a string, the back-end, as a symbol, and the
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 11:37:22 +00: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 15:02:27 +00:00
|
|
|
|
(defvar org-export-filter-special-block-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-src-block-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-table-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 20:38:12 +00: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 15:02:27 +00: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 06:54:24 +00: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 16:00:50 +00: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 06:54:24 +00: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 16:00:50 +00: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 06:54:24 +00: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 15:02:27 +00:00
|
|
|
|
(defvar org-export-filter-verse-block-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-entity-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-export-snippet-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-footnote-reference-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-inline-babel-call-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-inline-src-block-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-latex-fragment-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-line-break-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-link-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00:00
|
|
|
|
Each filter is called with three arguments: the transcoded data,
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-radio-target-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-statistics-cookie-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-subscript-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-superscript-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
(defvar org-export-filter-target-functions nil
|
2012-03-19 20:38:12 +00: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 16:00:50 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-04-29 00:23:09 +00: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 16:00:50 +00: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 15:02:27 +00: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 16:00:50 +00: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 20:38:12 +00:00
|
|
|
|
|
2012-06-08 21:57:45 +00: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 11:48:12 +00: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 21:57:45 +00: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 09:33:16 +00:00
|
|
|
|
(defun org-export-filter-apply-functions (filters value info)
|
|
|
|
|
"Call every function in FILTERS.
|
2012-08-22 11:48:12 +00:00
|
|
|
|
|
2016-11-19 22:06:17 +00:00
|
|
|
|
Functions are called with three arguments: a value, the export
|
|
|
|
|
back-end name and the communication channel. First function in
|
|
|
|
|
FILTERS is called with VALUE as its first argument. Second
|
|
|
|
|
function in FILTERS is called with the previous result as its
|
|
|
|
|
value, etc.
|
|
|
|
|
|
|
|
|
|
Functions returning nil are skipped. Any function returning the
|
|
|
|
|
empty string ends the process, which returns the empty string.
|
2012-08-22 11:48:12 +00:00
|
|
|
|
|
|
|
|
|
Call is done in a LIFO fashion, to be sure that developer
|
|
|
|
|
specified filters, if any, are called first."
|
2016-11-19 22:06:17 +00:00
|
|
|
|
(catch :exit
|
2013-08-12 08:42:05 +00:00
|
|
|
|
(let* ((backend (plist-get info :back-end))
|
|
|
|
|
(backend-name (and backend (org-export-backend-name backend))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(dolist (filter filters value)
|
|
|
|
|
(let ((result (funcall filter value backend-name info)))
|
2016-11-19 22:06:17 +00:00
|
|
|
|
(cond ((not result))
|
|
|
|
|
((equal result "") (throw :exit ""))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(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 15:02:27 +00: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 09:33:16 +00:00
|
|
|
|
(defun org-export-install-filters (info)
|
2012-03-19 20:38:12 +00: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 09:33:16 +00:00
|
|
|
|
INFO is a plist containing the current communication channel.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
Return the updated communication channel."
|
|
|
|
|
(let (plist)
|
2013-02-16 17:44:22 +00:00
|
|
|
|
;; Install user-defined filters with `org-export-filters-alist'
|
|
|
|
|
;; and filters already in INFO (through ext-plist mechanism).
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (p org-export-filters-alist)
|
|
|
|
|
(let* ((prop (car p))
|
|
|
|
|
(info-value (plist-get info prop))
|
|
|
|
|
(default-value (symbol-value (cdr p))))
|
|
|
|
|
(setq plist
|
|
|
|
|
(plist-put plist prop
|
|
|
|
|
;; Filters in INFO will be called
|
|
|
|
|
;; before those user provided.
|
|
|
|
|
(append (if (listp info-value) info-value
|
|
|
|
|
(list info-value))
|
|
|
|
|
default-value)))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Prepend back-end specific filters to that list.
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (p (org-export-get-all-filters (plist-get info :back-end)))
|
|
|
|
|
;; Single values get consed, lists are appended.
|
|
|
|
|
(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))))))))
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Core functions
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; This is the room for the main function, `org-export-as', along with
|
2013-08-07 08:15:23 +00:00
|
|
|
|
;; its derivative, `org-export-string-as'.
|
|
|
|
|
;; `org-export--copy-to-kill-ring-p' determines if output of these
|
|
|
|
|
;; function should be added to kill ring.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00: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 22:03:04 +00:00
|
|
|
|
;; visibility), where macros and include keywords are expanded and
|
|
|
|
|
;; Babel blocks are executed, if appropriate.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;; `org-export-with-buffer-copy' macro prepares that copy.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; File inclusion is taken care of by
|
|
|
|
|
;; `org-export-expand-include-keyword' and
|
2012-07-24 14:04:35 +00:00
|
|
|
|
;; `org-export--prepare-file-contents'. Structure wise, including
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; a whole Org file in a buffer often makes little sense. For
|
2013-02-23 12:47:44 +00:00
|
|
|
|
;; example, if the file contains a headline and the include keyword
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 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.
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-insert-default-template' is a command to insert
|
|
|
|
|
;; a default template (or a back-end specific template) at point or in
|
|
|
|
|
;; current subtree.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2013-02-10 12:28:28 +00:00
|
|
|
|
(defun org-export-copy-buffer ()
|
|
|
|
|
"Return a copy of the current buffer.
|
|
|
|
|
The copy preserves Org buffer-local variables, visibility and
|
|
|
|
|
narrowing."
|
|
|
|
|
(let ((copy-buffer-fun (org-export--generate-copy-script (current-buffer)))
|
|
|
|
|
(new-buf (generate-new-buffer (buffer-name))))
|
|
|
|
|
(with-current-buffer new-buf
|
|
|
|
|
(funcall copy-buffer-fun)
|
|
|
|
|
(set-buffer-modified-p nil))
|
|
|
|
|
new-buf))
|
|
|
|
|
|
|
|
|
|
(defmacro org-export-with-buffer-copy (&rest body)
|
|
|
|
|
"Apply BODY in a copy of the current buffer.
|
|
|
|
|
The copy preserves local variables, visibility and contents of
|
|
|
|
|
the original buffer. Point is at the beginning of the buffer
|
|
|
|
|
when BODY is applied."
|
|
|
|
|
(declare (debug t))
|
|
|
|
|
(org-with-gensyms (buf-copy)
|
|
|
|
|
`(let ((,buf-copy (org-export-copy-buffer)))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(with-current-buffer ,buf-copy
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(progn ,@body))
|
|
|
|
|
(and (buffer-live-p ,buf-copy)
|
|
|
|
|
;; Kill copy without confirmation.
|
|
|
|
|
(progn (with-current-buffer ,buf-copy
|
|
|
|
|
(restore-buffer-modified-p nil))
|
|
|
|
|
(kill-buffer ,buf-copy)))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export--generate-copy-script (buffer)
|
|
|
|
|
"Generate a function duplicating BUFFER.
|
|
|
|
|
|
|
|
|
|
The copy will preserve local variables, visibility, contents and
|
|
|
|
|
narrowing of the original buffer. If a region was active in
|
|
|
|
|
BUFFER, contents will be narrowed to that region instead.
|
|
|
|
|
|
2013-11-17 08:12:41 +00:00
|
|
|
|
The resulting function can be evaluated at a later time, from
|
2013-03-06 13:23:49 +00:00
|
|
|
|
another buffer, effectively cloning the original buffer there.
|
|
|
|
|
|
|
|
|
|
The function assumes BUFFER's major mode is `org-mode'."
|
2013-02-10 12:28:28 +00:00
|
|
|
|
(with-current-buffer buffer
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(let ((str (org-with-wide-buffer (buffer-string)))
|
|
|
|
|
(narrowing
|
|
|
|
|
(if (org-region-active-p)
|
|
|
|
|
(list (region-beginning) (region-end))
|
|
|
|
|
(list (point-min) (point-max))))
|
|
|
|
|
(pos (point))
|
|
|
|
|
(varvals
|
|
|
|
|
(let ((bound-variables (org-export--list-bound-variables))
|
|
|
|
|
(varvals nil))
|
|
|
|
|
(dolist (entry (buffer-local-variables (buffer-base-buffer)))
|
2013-04-01 13:18:47 +00:00
|
|
|
|
(when (consp entry)
|
|
|
|
|
(let ((var (car entry))
|
|
|
|
|
(val (cdr entry)))
|
org-element: Implement lazy cache synchronization
* lisp/org-element.el (org-element-cache-sync-idle-time): Change
default value.
(org-element-cache-sync-duration, org-element-cache-sync-break,
org-element--cache-sync-requests, org-element--cache-sync-timer,
org-element--cache-sync-keys, org-element--cache-default-key,
org-element--cache-change-warning): New variables.
(org-element-cache-merge-changes-threshold,
org-element--cache-status): Removed variables.
(org-element--cache-key, org-element--cache-generate-key,
org-element--cache-key-less-p, org-element--cache-find,
org-element--cache-set-timer, org-element--cache-process-request,
org-element--cache-submit-request, org-element--parse-to,
org-element--cache-interrupt-p, org-element--cache-put,
org-element--cache-active-p): New functions.
(org-element--cache-compare): Adapt to new keys in AVL tree.
(org-element--cache-pending-changes-p,
org-element--cache-cancel-changes, org-element--cache-mapc,
org-element-cache-get, org-element-cache-put): Removed functions.
(org-element--cache-before-change): Use new variables.
(org-element--cache-after-change): Renamed from
`org-element--cache-record-change'.
(org-element-cache-get): Change signature.
(org-element-cache-put): Rewrite function. Use new tools.
(org-element-cache-reset): Adapt to new variables.
(org-element--cache-sync): Rewrite function.
* lisp/ox.el (org-export--generate-copy-script): Do not copy through
new cache-related variables.
(org-export-ignored-local-variables): New variable.
* testing/lisp/test-org-element.el (test-org-element/cache): New test.
Now only the part of the cache that needs to be accessed is updated
synchronously. Otherwise, it happens on idle time.
2014-01-31 00:14:44 +00:00
|
|
|
|
(and (not (memq var org-export-ignored-local-variables))
|
2013-04-01 13:18:47 +00:00
|
|
|
|
(or (memq var
|
|
|
|
|
'(default-directory
|
2013-02-22 22:07:04 +00:00
|
|
|
|
buffer-file-name
|
2013-03-06 13:23:49 +00:00
|
|
|
|
buffer-file-coding-system))
|
2013-04-01 13:18:47 +00:00
|
|
|
|
(assq var bound-variables)
|
|
|
|
|
(string-match "^\\(org-\\|orgtbl-\\)"
|
|
|
|
|
(symbol-name var)))
|
|
|
|
|
;; Skip unreadable values, as they cannot be
|
|
|
|
|
;; sent to external process.
|
|
|
|
|
(or (not val) (ignore-errors (read (format "%S" val))))
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(push (cons var val) varvals)))))
|
|
|
|
|
varvals))
|
|
|
|
|
(ols
|
|
|
|
|
(let (ov-set)
|
|
|
|
|
(dolist (ov (overlays-in (point-min) (point-max)))
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(let ((invis-prop (overlay-get ov 'invisible)))
|
|
|
|
|
(when invis-prop
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(push (list (overlay-start ov) (overlay-end ov)
|
|
|
|
|
invis-prop)
|
|
|
|
|
ov-set))))
|
|
|
|
|
ov-set)))
|
|
|
|
|
(lambda ()
|
|
|
|
|
(let ((inhibit-modification-hooks t))
|
|
|
|
|
;; Set major mode. Ignore `org-mode-hook' as it has been run
|
|
|
|
|
;; already in BUFFER.
|
|
|
|
|
(let ((org-mode-hook nil) (org-inhibit-startup t)) (org-mode))
|
|
|
|
|
;; Copy specific buffer local variables and variables set
|
|
|
|
|
;; through BIND keywords.
|
|
|
|
|
(pcase-dolist (`(,var . ,val) varvals)
|
|
|
|
|
(set (make-local-variable var) val))
|
|
|
|
|
;; Whole buffer contents.
|
|
|
|
|
(insert str)
|
|
|
|
|
;; Narrowing.
|
|
|
|
|
(apply #'narrow-to-region narrowing)
|
|
|
|
|
;; Current position of point.
|
|
|
|
|
(goto-char pos)
|
|
|
|
|
;; Overlays with invisible property.
|
|
|
|
|
(pcase-dolist (`(,start ,end ,invis) ols)
|
|
|
|
|
(overlay-put (make-overlay start end) 'invisible invis)))))))
|
2013-02-10 12:28:28 +00:00
|
|
|
|
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(defun org-export--delete-comment-trees ()
|
|
|
|
|
"Delete commented trees and commented inlinetasks in the buffer.
|
|
|
|
|
Narrowing, if any, is ignored."
|
2015-03-28 08:54:37 +00:00
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-min))
|
2015-11-12 10:28:13 +00:00
|
|
|
|
(let* ((case-fold-search t)
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(regexp (concat org-outline-regexp-bol ".*" org-comment-string)))
|
2015-03-28 08:54:37 +00:00
|
|
|
|
(while (re-search-forward regexp nil t)
|
2015-11-12 10:28:13 +00:00
|
|
|
|
(let ((element (org-element-at-point)))
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(when (org-element-property :commentedp element)
|
|
|
|
|
(delete-region (org-element-property :begin element)
|
|
|
|
|
(org-element-property :end element))))))))
|
2015-03-28 08:54:37 +00:00
|
|
|
|
|
2015-03-23 23:06:56 +00:00
|
|
|
|
(defun org-export--prune-tree (data info)
|
|
|
|
|
"Prune non exportable elements from DATA.
|
|
|
|
|
DATA is the parse tree to traverse. INFO is the plist holding
|
|
|
|
|
export info. Also set `:ignore-list' in INFO to a list of
|
|
|
|
|
objects which should be ignored during export, but not removed
|
|
|
|
|
from tree."
|
2015-12-13 03:46:24 +00:00
|
|
|
|
(letrec ((ignore nil)
|
2015-08-14 21:50:51 +00:00
|
|
|
|
;; First find trees containing a select tag, if any.
|
|
|
|
|
(selected (org-export--selected-trees data info))
|
2018-02-03 23:11:18 +00:00
|
|
|
|
;; List tags that prevent export of headlines.
|
|
|
|
|
(excluded (cl-mapcan (lambda (tag) (org-tags-expand tag t))
|
|
|
|
|
(plist-get info :exclude-tags)))
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(walk-data
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Prune non-exportable elements and objects from tree.
|
|
|
|
|
;; As a special case, special rows and cells from tables
|
|
|
|
|
;; are stored in IGNORE, as they still need to be
|
|
|
|
|
;; accessed during export.
|
|
|
|
|
(when data
|
|
|
|
|
(let ((type (org-element-type data)))
|
2018-02-03 23:11:18 +00:00
|
|
|
|
(if (org-export--skip-p data info selected excluded)
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(if (memq type '(table-cell table-row)) (push data ignore)
|
|
|
|
|
(org-element-extract-element data))
|
|
|
|
|
(if (and (eq type 'headline)
|
|
|
|
|
(eq (plist-get info :with-archived-trees)
|
|
|
|
|
'headline)
|
|
|
|
|
(org-element-property :archivedp data))
|
|
|
|
|
;; If headline is archived but tree below has
|
|
|
|
|
;; to be skipped, remove contents.
|
|
|
|
|
(org-element-set-contents data)
|
|
|
|
|
;; Move into recursive objects/elements.
|
2015-09-10 07:37:39 +00:00
|
|
|
|
(mapc walk-data (org-element-contents data)))
|
|
|
|
|
;; Move into secondary string, if any.
|
|
|
|
|
(dolist (p (cdr (assq type
|
|
|
|
|
org-element-secondary-value-alist)))
|
2016-06-27 22:10:14 +00:00
|
|
|
|
(mapc walk-data (org-element-property p data))))))))
|
|
|
|
|
(definitions
|
|
|
|
|
;; Collect definitions before possibly pruning them so as
|
|
|
|
|
;; to avoid parsing them again if they are required.
|
|
|
|
|
(org-element-map data '(footnote-definition footnote-reference)
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(cond
|
2017-08-13 13:11:48 +00:00
|
|
|
|
((eq 'footnote-definition (org-element-type f)) f)
|
|
|
|
|
((and (eq 'inline (org-element-property :type f))
|
|
|
|
|
(org-element-property :label f))
|
|
|
|
|
f)
|
|
|
|
|
(t nil))))))
|
2015-03-23 23:06:56 +00:00
|
|
|
|
;; If a select tag is active, also ignore the section before the
|
|
|
|
|
;; first headline, if any.
|
|
|
|
|
(when selected
|
|
|
|
|
(let ((first-element (car (org-element-contents data))))
|
|
|
|
|
(when (eq (org-element-type first-element) 'section)
|
|
|
|
|
(org-element-extract-element first-element))))
|
|
|
|
|
;; Prune tree and communication channel.
|
|
|
|
|
(funcall walk-data data)
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(dolist (entry (append
|
|
|
|
|
;; Priority is given to back-end specific options.
|
|
|
|
|
(org-export-get-all-options (plist-get info :back-end))
|
|
|
|
|
org-export-options-alist))
|
2015-04-05 08:23:28 +00:00
|
|
|
|
(when (eq (nth 4 entry) 'parse)
|
|
|
|
|
(funcall walk-data (plist-get info (car entry)))))
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(let ((missing (org-export--missing-definitions data definitions)))
|
|
|
|
|
(funcall walk-data missing)
|
|
|
|
|
(org-export--install-footnote-definitions missing data))
|
2015-03-23 23:06:56 +00:00
|
|
|
|
;; Eventually set `:ignore-list'.
|
|
|
|
|
(plist-put info :ignore-list ignore)))
|
|
|
|
|
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(defun org-export--missing-definitions (tree definitions)
|
|
|
|
|
"List footnote definitions missing from TREE.
|
|
|
|
|
Missing definitions are searched within DEFINITIONS, which is
|
|
|
|
|
a list of footnote definitions or in the widened buffer."
|
|
|
|
|
(let* ((list-labels
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; List all footnote labels encountered in DATA. Inline
|
|
|
|
|
;; footnote references are ignored.
|
|
|
|
|
(org-element-map data 'footnote-reference
|
|
|
|
|
(lambda (reference)
|
|
|
|
|
(and (eq (org-element-property :type reference) 'standard)
|
|
|
|
|
(org-element-property :label reference))))))
|
2016-06-27 22:10:14 +00:00
|
|
|
|
defined undefined missing-definitions)
|
2016-06-27 21:50:58 +00:00
|
|
|
|
;; Partition DIRECT-REFERENCES between DEFINED and UNDEFINED
|
|
|
|
|
;; references.
|
|
|
|
|
(let ((known-definitions
|
|
|
|
|
(org-element-map tree '(footnote-reference footnote-definition)
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(and (or (eq (org-element-type f) 'footnote-definition)
|
|
|
|
|
(eq (org-element-property :type f) 'inline))
|
|
|
|
|
(org-element-property :label f)))))
|
2021-03-11 18:07:37 +00:00
|
|
|
|
) ;; seen
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(dolist (l (funcall list-labels tree))
|
2021-03-11 18:07:37 +00:00
|
|
|
|
(cond ;; ((member l seen))
|
2016-06-27 21:50:58 +00:00
|
|
|
|
((member l known-definitions) (push l defined))
|
|
|
|
|
(t (push l undefined)))))
|
|
|
|
|
;; Complete MISSING-DEFINITIONS by finding the definition of every
|
|
|
|
|
;; undefined label, first by looking into DEFINITIONS, then by
|
|
|
|
|
;; searching the widened buffer. This is a recursive process
|
|
|
|
|
;; since definitions found can themselves contain an undefined
|
|
|
|
|
;; reference.
|
2016-06-27 22:10:14 +00:00
|
|
|
|
(while undefined
|
|
|
|
|
(let* ((label (pop undefined))
|
|
|
|
|
(definition
|
|
|
|
|
(cond
|
|
|
|
|
((cl-some
|
|
|
|
|
(lambda (d) (and (equal (org-element-property :label d) label)
|
|
|
|
|
d))
|
|
|
|
|
definitions))
|
|
|
|
|
((pcase (org-footnote-get-definition label)
|
|
|
|
|
(`(,_ ,beg . ,_)
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char beg)
|
|
|
|
|
(let ((datum (org-element-context)))
|
|
|
|
|
(if (eq (org-element-type datum) 'footnote-reference)
|
|
|
|
|
datum
|
|
|
|
|
;; Parse definition with contents.
|
|
|
|
|
(save-restriction
|
|
|
|
|
(narrow-to-region
|
|
|
|
|
(org-element-property :begin datum)
|
|
|
|
|
(org-element-property :end datum))
|
|
|
|
|
(org-element-map (org-element-parse-buffer)
|
|
|
|
|
'footnote-definition #'identity nil t))))))
|
|
|
|
|
(_ nil)))
|
|
|
|
|
(t (user-error "Definition not found for footnote %s" label)))))
|
|
|
|
|
(push label defined)
|
|
|
|
|
(push definition missing-definitions)
|
|
|
|
|
;; Look for footnote references within DEFINITION, since
|
|
|
|
|
;; we may need to also find their definition.
|
|
|
|
|
(dolist (l (funcall list-labels definition))
|
|
|
|
|
(unless (or (member l defined) ;Known label
|
|
|
|
|
(member l undefined)) ;Processed later
|
|
|
|
|
(push l undefined)))))
|
|
|
|
|
;; MISSING-DEFINITIONS may contain footnote references with inline
|
|
|
|
|
;; definitions. Make sure those are changed into real footnote
|
|
|
|
|
;; definitions.
|
|
|
|
|
(mapcar (lambda (d)
|
|
|
|
|
(if (eq (org-element-type d) 'footnote-definition) d
|
|
|
|
|
(let ((label (org-element-property :label d)))
|
|
|
|
|
(apply #'org-element-create
|
|
|
|
|
'footnote-definition `(:label ,label :post-blank 1)
|
|
|
|
|
(org-element-contents d)))))
|
|
|
|
|
missing-definitions)))
|
2016-06-27 21:50:58 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export--install-footnote-definitions (definitions tree)
|
|
|
|
|
"Install footnote definitions in tree.
|
|
|
|
|
|
|
|
|
|
DEFINITIONS is the list of footnote definitions to install. TREE
|
|
|
|
|
is the parse tree.
|
|
|
|
|
|
|
|
|
|
If there is a footnote section in TREE, definitions found are
|
|
|
|
|
appended to it. If `org-footnote-section' is non-nil, a new
|
|
|
|
|
footnote section containing all definitions is inserted in TREE.
|
|
|
|
|
Otherwise, definitions are appended at the end of the section
|
|
|
|
|
containing their first reference."
|
|
|
|
|
(cond
|
|
|
|
|
((null definitions))
|
|
|
|
|
;; If there is a footnote section, insert definitions there.
|
|
|
|
|
((let ((footnote-section
|
|
|
|
|
(org-element-map tree 'headline
|
|
|
|
|
(lambda (h) (and (org-element-property :footnote-section-p h) h))
|
|
|
|
|
nil t)))
|
|
|
|
|
(and footnote-section
|
|
|
|
|
(apply #'org-element-adopt-elements
|
|
|
|
|
footnote-section
|
|
|
|
|
(nreverse definitions)))))
|
|
|
|
|
;; If there should be a footnote section, create one containing all
|
|
|
|
|
;; the definitions at the end of the tree.
|
|
|
|
|
(org-footnote-section
|
|
|
|
|
(org-element-adopt-elements
|
|
|
|
|
tree
|
|
|
|
|
(org-element-create 'headline
|
|
|
|
|
(list :footnote-section-p t
|
|
|
|
|
:level 1
|
2017-06-08 18:59:29 +00:00
|
|
|
|
:title org-footnote-section
|
|
|
|
|
:raw-value org-footnote-section)
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(apply #'org-element-create
|
|
|
|
|
'section
|
|
|
|
|
nil
|
|
|
|
|
(nreverse definitions)))))
|
|
|
|
|
;; Otherwise add each definition at the end of the section where it
|
|
|
|
|
;; is first referenced.
|
|
|
|
|
(t
|
2016-06-27 22:10:14 +00:00
|
|
|
|
(letrec ((seen nil)
|
|
|
|
|
(insert-definitions
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Insert footnote definitions in the same section as
|
|
|
|
|
;; their first reference in DATA.
|
|
|
|
|
(org-element-map data 'footnote-reference
|
|
|
|
|
(lambda (reference)
|
|
|
|
|
(when (eq (org-element-property :type reference) 'standard)
|
|
|
|
|
(let ((label (org-element-property :label reference)))
|
|
|
|
|
(unless (member label seen)
|
|
|
|
|
(push label seen)
|
|
|
|
|
(let ((definition
|
|
|
|
|
(cl-some
|
|
|
|
|
(lambda (d)
|
|
|
|
|
(and (equal (org-element-property :label d)
|
2016-06-27 21:50:58 +00:00
|
|
|
|
label)
|
2016-06-27 22:10:14 +00:00
|
|
|
|
d))
|
|
|
|
|
definitions)))
|
|
|
|
|
(org-element-adopt-elements
|
|
|
|
|
(org-element-lineage reference '(section))
|
|
|
|
|
definition)
|
|
|
|
|
;; Also insert definitions for nested
|
|
|
|
|
;; references, if any.
|
|
|
|
|
(funcall insert-definitions definition))))))))))
|
2016-06-27 21:50:58 +00:00
|
|
|
|
(funcall insert-definitions tree)))))
|
|
|
|
|
|
2015-03-23 23:06:56 +00:00
|
|
|
|
(defun org-export--remove-uninterpreted-data (data info)
|
|
|
|
|
"Change uninterpreted elements back into Org syntax.
|
|
|
|
|
DATA is a parse tree or a secondary string. INFO is a plist
|
|
|
|
|
containing export options. It is modified by side effect and
|
|
|
|
|
returned by the function."
|
|
|
|
|
(org-element-map data
|
|
|
|
|
'(entity bold italic latex-environment latex-fragment strike-through
|
|
|
|
|
subscript superscript underline)
|
2017-03-14 17:10:07 +00:00
|
|
|
|
(lambda (datum)
|
2019-07-09 10:32:53 +00:00
|
|
|
|
(let* ((type (org-element-type datum))
|
|
|
|
|
(post-blank
|
|
|
|
|
(pcase (org-element-property :post-blank datum)
|
|
|
|
|
(`nil nil)
|
|
|
|
|
(n (make-string n (if (eq type 'latex-environment) ?\n ?\s)))))
|
|
|
|
|
(new
|
|
|
|
|
(cl-case type
|
|
|
|
|
;; ... entities...
|
|
|
|
|
(entity
|
|
|
|
|
(and (not (plist-get info :with-entities))
|
|
|
|
|
(list (concat (org-export-expand datum nil)
|
|
|
|
|
post-blank))))
|
|
|
|
|
;; ... emphasis...
|
|
|
|
|
((bold italic strike-through underline)
|
|
|
|
|
(and (not (plist-get info :with-emphasize))
|
|
|
|
|
(let ((marker (cl-case type
|
|
|
|
|
(bold "*")
|
|
|
|
|
(italic "/")
|
|
|
|
|
(strike-through "+")
|
|
|
|
|
(underline "_"))))
|
|
|
|
|
(append
|
|
|
|
|
(list marker)
|
|
|
|
|
(org-element-contents datum)
|
|
|
|
|
(list (concat marker post-blank))))))
|
|
|
|
|
;; ... LaTeX environments and fragments...
|
|
|
|
|
((latex-environment latex-fragment)
|
|
|
|
|
(and (eq (plist-get info :with-latex) 'verbatim)
|
|
|
|
|
(list (concat (org-export-expand datum nil)
|
|
|
|
|
post-blank))))
|
|
|
|
|
;; ... sub/superscripts...
|
|
|
|
|
((subscript superscript)
|
|
|
|
|
(let ((sub/super-p (plist-get info :with-sub-superscript))
|
|
|
|
|
(bracketp (org-element-property :use-brackets-p datum)))
|
|
|
|
|
(and (or (not sub/super-p)
|
|
|
|
|
(and (eq sub/super-p '{}) (not bracketp)))
|
|
|
|
|
(append
|
|
|
|
|
(list (concat (if (eq type 'subscript) "_" "^")
|
|
|
|
|
(and bracketp "{")))
|
|
|
|
|
(org-element-contents datum)
|
|
|
|
|
(list (concat (and bracketp "}")
|
|
|
|
|
post-blank)))))))))
|
2015-03-23 23:06:56 +00:00
|
|
|
|
(when new
|
2017-03-14 17:10:07 +00:00
|
|
|
|
;; Splice NEW at DATUM location in parse tree.
|
|
|
|
|
(dolist (e new (org-element-extract-element datum))
|
|
|
|
|
(unless (equal e "") (org-element-insert-before e datum))))))
|
2015-08-25 11:59:03 +00:00
|
|
|
|
info nil nil t)
|
2015-03-23 23:06:56 +00:00
|
|
|
|
;; Return modified parse tree.
|
|
|
|
|
data)
|
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;;;###autoload
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defun org-export-as
|
2015-01-23 22:59:23 +00:00
|
|
|
|
(backend &optional subtreep visible-only body-only 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 15:02:27 +00:00
|
|
|
|
"Transcode current Org buffer into BACKEND code.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
BACKEND is either an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered 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 15:02:27 +00:00
|
|
|
|
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
|
2013-01-27 22:11:34 +00:00
|
|
|
|
code, without surrounding template.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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.
|
|
|
|
|
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
Return code as a string."
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
2012-09-24 20:35:55 +00:00
|
|
|
|
(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 15:02:27 +00:00
|
|
|
|
(save-excursion
|
|
|
|
|
(save-restriction
|
2012-04-13 13:30:02 +00:00
|
|
|
|
;; Narrow buffer to an appropriate region or subtree for
|
2016-11-11 09:05:20 +00:00
|
|
|
|
;; parsing. If parsing subtree, be sure to remove main
|
|
|
|
|
;; headline, planning data and property drawer.
|
2012-04-13 13:30:02 +00:00
|
|
|
|
(cond ((org-region-active-p)
|
|
|
|
|
(narrow-to-region (region-beginning) (region-end)))
|
|
|
|
|
(subtreep
|
|
|
|
|
(org-narrow-to-subtree)
|
|
|
|
|
(goto-char (point-min))
|
2016-11-11 09:05:20 +00:00
|
|
|
|
(org-end-of-meta-data)
|
2012-04-13 13:30:02 +00:00
|
|
|
|
(narrow-to-region (point) (point-max))))
|
2012-10-30 14:07:44 +00:00
|
|
|
|
;; Initialize communication channel with original buffer
|
|
|
|
|
;; attributes, unavailable in its copy.
|
2013-08-03 07:46:58 +00:00
|
|
|
|
(let* ((org-export-current-backend (org-export-backend-name backend))
|
2013-08-03 07:44:34 +00:00
|
|
|
|
(info (org-combine-plists
|
2015-11-05 11:07:48 +00:00
|
|
|
|
(org-export--get-export-attributes
|
|
|
|
|
backend subtreep visible-only body-only)
|
2013-05-15 11:18:18 +00:00
|
|
|
|
(org-export--get-buffer-attributes)))
|
2015-04-05 11:40:44 +00:00
|
|
|
|
(parsed-keywords
|
|
|
|
|
(delq nil
|
|
|
|
|
(mapcar (lambda (o) (and (eq (nth 4 o) 'parse) (nth 1 o)))
|
|
|
|
|
(append (org-export-get-all-options backend)
|
|
|
|
|
org-export-options-alist))))
|
2013-05-15 11:18:18 +00:00
|
|
|
|
tree)
|
2012-12-18 21:33:02 +00:00
|
|
|
|
;; Update communication channel and get parse tree. Buffer
|
2015-06-23 21:41:30 +00:00
|
|
|
|
;; isn't parsed directly. Instead, all buffer modifications
|
|
|
|
|
;; and consequent parsing are undertaken in a temporary copy.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(org-export-with-buffer-copy
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; Run first hook with current back-end's name as argument.
|
|
|
|
|
(run-hook-with-args 'org-export-before-processing-hook
|
|
|
|
|
(org-export-backend-name backend))
|
2012-12-18 21:33:02 +00:00
|
|
|
|
(org-export-expand-include-keyword)
|
2017-01-10 23:00:29 +00:00
|
|
|
|
(org-export--delete-comment-trees)
|
2021-04-11 17:17:54 +00:00
|
|
|
|
(org-macro-initialize-templates org-export-global-macros)
|
|
|
|
|
(org-macro-replace-all org-macro-templates parsed-keywords)
|
2018-07-07 10:45:40 +00:00
|
|
|
|
;; Refresh buffer properties and radio targets after previous
|
|
|
|
|
;; potentially invasive changes.
|
2015-06-23 21:41:30 +00:00
|
|
|
|
(org-set-regexps-and-options)
|
|
|
|
|
(org-update-radio-target-regexp)
|
2017-12-11 13:50:02 +00:00
|
|
|
|
;; Possibly execute Babel code. Re-run a macro expansion
|
|
|
|
|
;; specifically for {{{results}}} since inline source blocks
|
|
|
|
|
;; may have generated some more. Refresh buffer properties
|
|
|
|
|
;; and radio targets another time.
|
2016-11-13 02:54:20 +00:00
|
|
|
|
(when org-export-use-babel
|
2016-06-18 20:11:14 +00:00
|
|
|
|
(org-babel-exp-process-buffer)
|
2017-12-11 13:50:02 +00:00
|
|
|
|
(org-macro-replace-all '(("results" . "$1")) parsed-keywords)
|
2016-04-28 15:25:31 +00:00
|
|
|
|
(org-set-regexps-and-options)
|
|
|
|
|
(org-update-radio-target-regexp))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; Run last hook with current back-end's name as argument.
|
2015-06-23 21:41:30 +00:00
|
|
|
|
;; Update buffer properties and radio targets one last time
|
|
|
|
|
;; before parsing.
|
2012-10-29 12:42:30 +00:00
|
|
|
|
(goto-char (point-min))
|
2013-03-19 17:09:01 +00:00
|
|
|
|
(save-excursion
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(run-hook-with-args 'org-export-before-parsing-hook
|
|
|
|
|
(org-export-backend-name backend)))
|
2015-06-23 21:41:30 +00:00
|
|
|
|
(org-set-regexps-and-options)
|
|
|
|
|
(org-update-radio-target-regexp)
|
2017-03-14 17:10:07 +00:00
|
|
|
|
;; Update communication channel with environment.
|
2012-10-29 12:42:30 +00:00
|
|
|
|
(setq info
|
2017-03-14 17:10:07 +00:00
|
|
|
|
(org-combine-plists
|
|
|
|
|
info (org-export-get-environment backend subtreep ext-plist)))
|
|
|
|
|
;; De-activate uninterpreted data from parsed keywords.
|
2017-03-23 15:41:26 +00:00
|
|
|
|
(dolist (entry (append (org-export-get-all-options backend)
|
|
|
|
|
org-export-options-alist))
|
2017-03-14 17:10:07 +00:00
|
|
|
|
(pcase entry
|
|
|
|
|
(`(,p ,_ ,_ ,_ parse)
|
|
|
|
|
(let ((value (plist-get info p)))
|
|
|
|
|
(plist-put info
|
|
|
|
|
p
|
|
|
|
|
(org-export--remove-uninterpreted-data value info))))
|
|
|
|
|
(_ nil)))
|
|
|
|
|
;; Install user's and developer's filters.
|
|
|
|
|
(setq info (org-export-install-filters info))
|
2015-01-23 22:59:23 +00:00
|
|
|
|
;; Call options filters and update export options. We do not
|
|
|
|
|
;; use `org-export-filter-apply-functions' here since the
|
|
|
|
|
;; arity of such filters is different.
|
|
|
|
|
(let ((backend-name (org-export-backend-name backend)))
|
|
|
|
|
(dolist (filter (plist-get info :filter-options))
|
|
|
|
|
(let ((result (funcall filter info backend-name)))
|
|
|
|
|
(when result (setq info result)))))
|
2013-12-26 11:23:27 +00:00
|
|
|
|
;; Parse buffer.
|
|
|
|
|
(setq tree (org-element-parse-buffer nil visible-only))
|
2015-01-23 22:59:23 +00:00
|
|
|
|
;; Prune tree from non-exported elements and transform
|
|
|
|
|
;; uninterpreted elements or objects in both parse tree and
|
|
|
|
|
;; communication channel.
|
2015-03-23 23:06:56 +00:00
|
|
|
|
(org-export--prune-tree tree info)
|
|
|
|
|
(org-export--remove-uninterpreted-data tree info)
|
2015-06-23 13:28:01 +00:00
|
|
|
|
;; Call parse tree filters.
|
2012-10-29 12:42:30 +00:00
|
|
|
|
(setq tree
|
|
|
|
|
(org-export-filter-apply-functions
|
2013-12-26 11:23:27 +00:00
|
|
|
|
(plist-get info :filter-parse-tree) tree info))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;; Now tree is complete, compute its properties and add them
|
|
|
|
|
;; to communication channel.
|
2015-11-05 11:07:48 +00:00
|
|
|
|
(setq info (org-export--collect-tree-properties tree info))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;; Eventually transcode TREE. Wrap the resulting string into
|
2013-02-11 21:19:23 +00:00
|
|
|
|
;; a template.
|
|
|
|
|
(let* ((body (org-element-normalize-string
|
|
|
|
|
(or (org-export-data tree info) "")))
|
|
|
|
|
(inner-template (cdr (assq 'inner-template
|
|
|
|
|
(plist-get info :translate-alist))))
|
2014-09-06 08:22:26 +00:00
|
|
|
|
(full-body (org-export-filter-apply-functions
|
|
|
|
|
(plist-get info :filter-body)
|
|
|
|
|
(if (not (functionp inner-template)) body
|
|
|
|
|
(funcall inner-template body info))
|
|
|
|
|
info))
|
2013-02-11 21:19:23 +00:00
|
|
|
|
(template (cdr (assq 'template
|
|
|
|
|
(plist-get info :translate-alist)))))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;; Remove all text properties since they cannot be
|
2013-02-11 21:19:23 +00:00
|
|
|
|
;; retrieved from an external process. Finally call
|
|
|
|
|
;; final-output filter and return result.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-no-properties
|
|
|
|
|
(org-export-filter-apply-functions
|
|
|
|
|
(plist-get info :filter-final-output)
|
2013-02-11 21:19:23 +00:00
|
|
|
|
(if (or (not (functionp template)) body-only) full-body
|
|
|
|
|
(funcall template full-body info))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
info))))))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun org-export-string-as (string backend &optional body-only ext-plist)
|
|
|
|
|
"Transcode STRING into BACKEND code.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
BACKEND is either an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end.
|
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
When optional argument BODY-ONLY is non-nil, only return body
|
|
|
|
|
code, without preamble nor postamble.
|
|
|
|
|
|
|
|
|
|
Optional argument EXT-PLIST, when provided, is a property list
|
|
|
|
|
with external parameters overriding Org default settings, but
|
|
|
|
|
still inferior to file-local settings.
|
|
|
|
|
|
|
|
|
|
Return code as a string."
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert string)
|
2013-04-06 15:31:56 +00:00
|
|
|
|
(let ((org-inhibit-startup t)) (org-mode))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-export-as backend nil nil body-only ext-plist)))
|
|
|
|
|
|
2013-04-06 17:09:38 +00:00
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun org-export-replace-region-by (backend)
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
"Replace the active region by its export to BACKEND.
|
|
|
|
|
BACKEND is either an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end."
|
2015-06-18 13:21:02 +00:00
|
|
|
|
(unless (org-region-active-p) (user-error "No active region to replace"))
|
|
|
|
|
(insert
|
|
|
|
|
(org-export-string-as
|
|
|
|
|
(delete-and-extract-region (region-beginning) (region-end)) backend t)))
|
2013-04-06 17:09:38 +00:00
|
|
|
|
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun org-export-insert-default-template (&optional backend subtreep)
|
|
|
|
|
"Insert all export keywords with default values at beginning of line.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
BACKEND is a symbol referring to the name of a registered export
|
|
|
|
|
back-end, for which specific export options should be added to
|
|
|
|
|
the template, or `default' for default template. When it is nil,
|
|
|
|
|
the user will be prompted for a category.
|
2013-04-05 22:10:08 +00:00
|
|
|
|
|
|
|
|
|
If SUBTREEP is non-nil, export configuration will be set up
|
|
|
|
|
locally for the subtree through node properties."
|
|
|
|
|
(interactive)
|
|
|
|
|
(unless (derived-mode-p 'org-mode) (user-error "Not in an Org mode buffer"))
|
|
|
|
|
(when (and subtreep (org-before-first-heading-p))
|
|
|
|
|
(user-error "No subtree to set export options for"))
|
|
|
|
|
(let ((node (and subtreep (save-excursion (org-back-to-heading t) (point))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(backend
|
|
|
|
|
(or backend
|
|
|
|
|
(intern
|
|
|
|
|
(org-completing-read
|
|
|
|
|
"Options category: "
|
|
|
|
|
(cons "default"
|
2015-04-22 08:24:02 +00:00
|
|
|
|
(mapcar (lambda (b)
|
|
|
|
|
(symbol-name (org-export-backend-name b)))
|
|
|
|
|
org-export-registered-backends))
|
2014-01-31 17:04:18 +00:00
|
|
|
|
nil t))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
options keywords)
|
|
|
|
|
;; Populate OPTIONS and KEYWORDS.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(dolist (entry (cond ((eq backend 'default) org-export-options-alist)
|
|
|
|
|
((org-export-backend-p backend)
|
2014-01-17 21:08:33 +00:00
|
|
|
|
(org-export-backend-options backend))
|
|
|
|
|
(t (org-export-backend-options
|
2013-07-11 06:48:36 +00:00
|
|
|
|
(org-export-get-backend backend)))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(let ((keyword (nth 1 entry))
|
|
|
|
|
(option (nth 2 entry)))
|
|
|
|
|
(cond
|
|
|
|
|
(keyword (unless (assoc keyword keywords)
|
|
|
|
|
(let ((value
|
|
|
|
|
(if (eq (nth 4 entry) 'split)
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(mapconcat #'identity (eval (nth 3 entry) t) " ")
|
|
|
|
|
(eval (nth 3 entry) t))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(push (cons keyword value) keywords))))
|
|
|
|
|
(option (unless (assoc option options)
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(push (cons option (eval (nth 3 entry) t)) options))))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; Move to an appropriate location in order to insert options.
|
|
|
|
|
(unless subtreep (beginning-of-line))
|
2014-01-22 14:33:38 +00:00
|
|
|
|
;; First (multiple) OPTIONS lines. Never go past fill-column.
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(when options
|
|
|
|
|
(let ((items
|
|
|
|
|
(mapcar
|
2021-03-30 14:19:06 +00:00
|
|
|
|
(lambda (opt) (format "%s:%S" (car opt) (cdr opt)))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(sort options (lambda (k1 k2) (string< (car k1) (car k2)))))))
|
|
|
|
|
(if subtreep
|
|
|
|
|
(org-entry-put
|
2021-04-20 03:37:50 +00:00
|
|
|
|
node "EXPORT_OPTIONS" (mapconcat #'identity items " "))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(while items
|
2019-02-28 18:39:39 +00:00
|
|
|
|
(insert "#+options:")
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(let ((width 10))
|
|
|
|
|
(while (and items
|
|
|
|
|
(< (+ width (length (car items)) 1) fill-column))
|
|
|
|
|
(let ((item (pop items)))
|
|
|
|
|
(insert " " item)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf width (1+ (length item))))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(insert "\n")))))
|
2014-01-22 14:33:38 +00:00
|
|
|
|
;; Then the rest of keywords, in the order specified in either
|
|
|
|
|
;; `org-export-options-alist' or respective export back-ends.
|
|
|
|
|
(dolist (key (nreverse keywords))
|
|
|
|
|
(let ((val (cond ((equal (car key) "DATE")
|
|
|
|
|
(or (cdr key)
|
|
|
|
|
(with-temp-buffer
|
2017-10-21 02:40:09 +00:00
|
|
|
|
(org-insert-time-stamp nil))))
|
2014-01-22 14:33:38 +00:00
|
|
|
|
((equal (car key) "TITLE")
|
|
|
|
|
(or (let ((visited-file
|
|
|
|
|
(buffer-file-name (buffer-base-buffer))))
|
|
|
|
|
(and visited-file
|
|
|
|
|
(file-name-sans-extension
|
|
|
|
|
(file-name-nondirectory visited-file))))
|
|
|
|
|
(buffer-name (buffer-base-buffer))))
|
|
|
|
|
(t (cdr key)))))
|
|
|
|
|
(if subtreep (org-entry-put node (concat "EXPORT_" (car key)) val)
|
|
|
|
|
(insert
|
|
|
|
|
(format "#+%s:%s\n"
|
2019-02-28 18:39:39 +00:00
|
|
|
|
(downcase (car key))
|
2014-01-22 14:33:38 +00:00
|
|
|
|
(if (org-string-nw-p val) (format " %s" val) ""))))))))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
|
2014-12-09 11:40:52 +00:00
|
|
|
|
(defun org-export-expand-include-keyword (&optional included dir footnotes)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"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
|
2014-12-09 11:40:52 +00:00
|
|
|
|
paths. Optional argument FOOTNOTES is a hash-table used for
|
|
|
|
|
storing and resolving footnotes. It is created automatically."
|
2018-03-02 13:46:41 +00:00
|
|
|
|
(let ((includer-file (buffer-file-name (buffer-base-buffer)))
|
|
|
|
|
(case-fold-search t)
|
2014-03-26 14:34:59 +00:00
|
|
|
|
(file-prefix (make-hash-table :test #'equal))
|
2014-12-09 11:40:52 +00:00
|
|
|
|
(current-prefix 0)
|
2014-12-18 15:48:49 +00:00
|
|
|
|
(footnotes (or footnotes (make-hash-table :test #'equal)))
|
|
|
|
|
(include-re "^[ \t]*#\\+INCLUDE:"))
|
|
|
|
|
;; If :minlevel is not set the text-property
|
|
|
|
|
;; `:org-include-induced-level' will be used to determine the
|
|
|
|
|
;; relative level when expanding INCLUDE.
|
|
|
|
|
;; Only affects included Org documents.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(goto-char (point-min))
|
2014-12-18 15:48:49 +00:00
|
|
|
|
(while (re-search-forward include-re nil t)
|
|
|
|
|
(put-text-property (line-beginning-position) (line-end-position)
|
|
|
|
|
:org-include-induced-level
|
|
|
|
|
(1+ (org-reduced-level (or (org-current-level) 0)))))
|
2014-12-09 11:40:52 +00:00
|
|
|
|
;; Expand INCLUDE keywords.
|
2014-12-18 15:48:49 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward include-re nil t)
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(unless (org-in-commented-heading-p)
|
|
|
|
|
(let ((element (save-match-data (org-element-at-point))))
|
|
|
|
|
(when (eq (org-element-type element) 'keyword)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
;; Extract arguments from keyword's value.
|
|
|
|
|
(let* ((value (org-element-property :value element))
|
2018-05-08 23:26:31 +00:00
|
|
|
|
(ind (current-indentation))
|
2017-04-23 17:48:50 +00:00
|
|
|
|
location
|
2018-06-02 08:02:03 +00:00
|
|
|
|
(coding-system-for-read
|
|
|
|
|
(or (and (string-match ":coding +\\(\\S-+\\)>" value)
|
|
|
|
|
(prog1 (intern (match-string 1 value))
|
|
|
|
|
(setq value (replace-match "" nil nil value))))
|
|
|
|
|
coding-system-for-read))
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(file
|
2018-11-10 07:58:31 +00:00
|
|
|
|
(and (string-match "^\\(\".+?\"\\|\\S-+\\)\\(?:\\s-+\\|$\\)"
|
|
|
|
|
value)
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(prog1
|
|
|
|
|
(save-match-data
|
|
|
|
|
(let ((matched (match-string 1 value)))
|
|
|
|
|
(when (string-match "\\(::\\(.*?\\)\\)\"?\\'"
|
|
|
|
|
matched)
|
|
|
|
|
(setq location (match-string 2 matched))
|
|
|
|
|
(setq matched
|
|
|
|
|
(replace-match "" nil nil matched 1)))
|
2018-11-10 07:58:31 +00:00
|
|
|
|
(expand-file-name (org-strip-quotes matched)
|
|
|
|
|
dir)))
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(setq value (replace-match "" nil nil value)))))
|
|
|
|
|
(only-contents
|
|
|
|
|
(and (string-match ":only-contents *\\([^: \r\t\n]\\S-*\\)?"
|
|
|
|
|
value)
|
|
|
|
|
(prog1 (org-not-nil (match-string 1 value))
|
|
|
|
|
(setq value (replace-match "" nil nil value)))))
|
|
|
|
|
(lines
|
|
|
|
|
(and (string-match
|
2019-03-05 02:00:00 +00:00
|
|
|
|
":lines +\"\\([0-9]*-[0-9]*\\)\""
|
2017-04-23 17:48:50 +00:00
|
|
|
|
value)
|
|
|
|
|
(prog1 (match-string 1 value)
|
|
|
|
|
(setq value (replace-match "" nil nil value)))))
|
|
|
|
|
(env (cond
|
|
|
|
|
((string-match "\\<example\\>" value) 'literal)
|
|
|
|
|
((string-match "\\<export\\(?: +\\(.*\\)\\)?" value)
|
|
|
|
|
'literal)
|
|
|
|
|
((string-match "\\<src\\(?: +\\(.*\\)\\)?" value)
|
|
|
|
|
'literal)))
|
|
|
|
|
;; 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)))
|
|
|
|
|
(get-text-property (point)
|
|
|
|
|
:org-include-induced-level))))
|
|
|
|
|
(args (and (eq env 'literal) (match-string 1 value)))
|
|
|
|
|
(block (and (string-match "\\<\\(\\S-+\\)\\>" value)
|
|
|
|
|
(match-string 1 value))))
|
|
|
|
|
;; Remove keyword.
|
|
|
|
|
(delete-region (point) (line-beginning-position 2))
|
2013-05-07 15:47:59 +00:00
|
|
|
|
(cond
|
2017-04-23 17:48:50 +00:00
|
|
|
|
((not file) nil)
|
|
|
|
|
((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))
|
2013-05-07 15:47:59 +00:00
|
|
|
|
(t
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(cond
|
|
|
|
|
((eq env 'literal)
|
|
|
|
|
(insert
|
|
|
|
|
(let ((ind-str (make-string ind ?\s))
|
|
|
|
|
(arg-str (if (stringp args) (format " %s" args) ""))
|
|
|
|
|
(contents
|
|
|
|
|
(org-escape-code-in-string
|
|
|
|
|
(org-export--prepare-file-contents file lines))))
|
|
|
|
|
(format "%s#+BEGIN_%s%s\n%s%s#+END_%s\n"
|
|
|
|
|
ind-str block arg-str contents ind-str block))))
|
|
|
|
|
((stringp block)
|
|
|
|
|
(insert
|
|
|
|
|
(let ((ind-str (make-string ind ?\s))
|
|
|
|
|
(contents
|
|
|
|
|
(org-export--prepare-file-contents file lines)))
|
|
|
|
|
(format "%s#+BEGIN_%s\n%s%s#+END_%s\n"
|
|
|
|
|
ind-str block contents ind-str block))))
|
|
|
|
|
(t
|
|
|
|
|
(insert
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(let ((org-inhibit-startup t)
|
|
|
|
|
(lines
|
|
|
|
|
(if location
|
|
|
|
|
(org-export--inclusion-absolute-lines
|
|
|
|
|
file location only-contents lines)
|
|
|
|
|
lines)))
|
|
|
|
|
(org-mode)
|
|
|
|
|
(insert
|
|
|
|
|
(org-export--prepare-file-contents
|
|
|
|
|
file lines ind minlevel
|
2018-03-02 13:46:41 +00:00
|
|
|
|
(or (gethash file file-prefix)
|
|
|
|
|
(puthash file
|
|
|
|
|
(cl-incf current-prefix)
|
|
|
|
|
file-prefix))
|
|
|
|
|
footnotes
|
|
|
|
|
includer-file)))
|
2017-04-23 17:48:50 +00:00
|
|
|
|
(org-export-expand-include-keyword
|
|
|
|
|
(cons (list file lines) included)
|
|
|
|
|
(file-name-directory file)
|
|
|
|
|
footnotes)
|
|
|
|
|
(buffer-string)))))
|
|
|
|
|
;; Expand footnotes after all files have been
|
|
|
|
|
;; included. Footnotes are stored at end of buffer.
|
|
|
|
|
(unless included
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
(maphash (lambda (k v)
|
|
|
|
|
(insert (format "\n[fn:%s] %s\n" k v)))
|
|
|
|
|
footnotes))))))))))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2014-09-28 19:05:17 +00:00
|
|
|
|
(defun org-export--inclusion-absolute-lines (file location only-contents lines)
|
|
|
|
|
"Resolve absolute lines for an included file with file-link.
|
|
|
|
|
|
|
|
|
|
FILE is string file-name of the file to include. LOCATION is a
|
|
|
|
|
string name within FILE to be included (located via
|
|
|
|
|
`org-link-search'). If ONLY-CONTENTS is non-nil only the
|
|
|
|
|
contents of the named element will be included, as determined
|
|
|
|
|
Org-Element. If LINES is non-nil only those lines are included.
|
|
|
|
|
|
|
|
|
|
Return a string of lines to be included in the format expected by
|
|
|
|
|
`org-export--prepare-file-contents'."
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert-file-contents file)
|
|
|
|
|
(unless (eq major-mode 'org-mode)
|
|
|
|
|
(let ((org-inhibit-startup t)) (org-mode)))
|
|
|
|
|
(condition-case err
|
|
|
|
|
;; Enforce consistent search.
|
2015-08-02 23:06:32 +00:00
|
|
|
|
(let ((org-link-search-must-match-exact-headline nil))
|
2014-09-28 19:05:17 +00:00
|
|
|
|
(org-link-search location))
|
|
|
|
|
(error
|
2015-05-10 23:30:45 +00:00
|
|
|
|
(error "%s for %s::%s" (error-message-string err) file location)))
|
2014-09-28 19:05:17 +00:00
|
|
|
|
(let* ((element (org-element-at-point))
|
|
|
|
|
(contents-begin
|
|
|
|
|
(and only-contents (org-element-property :contents-begin element))))
|
|
|
|
|
(narrow-to-region
|
|
|
|
|
(or contents-begin (org-element-property :begin element))
|
|
|
|
|
(org-element-property (if contents-begin :contents-end :end) element))
|
|
|
|
|
(when (and only-contents
|
|
|
|
|
(memq (org-element-type element) '(headline inlinetask)))
|
2014-10-03 20:00:32 +00:00
|
|
|
|
;; Skip planning line and property-drawer.
|
2014-09-28 19:05:17 +00:00
|
|
|
|
(goto-char (point-min))
|
Remove final parts of XEmacs compatibility code
* lisp/org-compat.el: Declare `org-add-hook', `org-decompose-region',
`org-detach-overlay', `org-file-equal-p', `org-float-time',
`org-indent-line-to', `org-indent-to-column', `org-looking-at-p',
`org-looking-back', `org-propertize', `org-re' and
`org-select-frame-set-input-focus' as obsolete.
(org-overlay-display, org-overlay-before-string, org-find-overlays):
Move to "org.el"
(org-xemacs-key-equivalents, org-xemacs-p): Remove variables.
(org-region-active-p): Drop XEmacs support.
(org-xemacs-without-invisibility): Remove macro.
(org-get-x-clipboard-compat): Remove function.
* lisp/org-macs.el (org-match-string-no-properties): Remove function.
* lisp/ob-core.el:
* lisp/org-agenda.el:
* lisp/org-archive.el:
* lisp/org-clock.el:
* lisp/org-colview.el:
* lisp/org-crypt.el:
* lisp/org-element.el:
* lisp/org-faces.el:
* lisp/org-feed.el:
* lisp/org-footnote.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-indent.el:
* lisp/org-inlinetask.el:
* lisp/org-lint.el:
* lisp/org-list.el:
* lisp/org-mouse.el:
* lisp/org-pcomplete.el:
* lisp/org-src.el:
* lisp/org-table.el:
* lisp/org-timer.el:
* lisp/org.el:
* lisp/ox-ascii.el:
* lisp/ox-odt.el:
* lisp/ox.el:
* contrib/lisp/org-notify.el:
* contrib/lisp/ox-taskjuggler.el:
* contrib/lisp/org-wikinodes.el:
* testing/lisp/test-org-src.el:
* testing/lisp/test-org.el: Silence byte-compiler.
2016-05-26 10:18:00 +00:00
|
|
|
|
(when (looking-at-p org-planning-line-re) (forward-line))
|
2014-09-28 19:05:17 +00:00
|
|
|
|
(when (looking-at org-property-drawer-re) (goto-char (match-end 0)))
|
|
|
|
|
(unless (bolp) (forward-line))
|
|
|
|
|
(narrow-to-region (point) (point-max))))
|
|
|
|
|
(when lines
|
|
|
|
|
(org-skip-whitespace)
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(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 beg)
|
|
|
|
|
(forward-line (1- lend))
|
|
|
|
|
(point))))
|
|
|
|
|
(narrow-to-region beg end)))
|
|
|
|
|
(let ((end (point-max)))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(widen)
|
|
|
|
|
(let ((start-line (line-number-at-pos)))
|
|
|
|
|
(format "%d-%d"
|
|
|
|
|
start-line
|
|
|
|
|
(save-excursion
|
|
|
|
|
(+ start-line
|
|
|
|
|
(let ((counter 0))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(while (< (point) end) (cl-incf counter) (forward-line))
|
2014-09-28 19:05:17 +00:00
|
|
|
|
counter))))))))
|
|
|
|
|
|
2019-02-12 00:15:55 +00:00
|
|
|
|
(defun org-export--update-included-link (file-dir includer-dir)
|
|
|
|
|
"Update relative file name of link at point, if possible.
|
|
|
|
|
|
|
|
|
|
FILE-DIR is the directory of the file being included.
|
|
|
|
|
INCLUDER-DIR is the directory of the file where the inclusion is
|
|
|
|
|
going to happen.
|
|
|
|
|
|
|
|
|
|
Move point after the link."
|
|
|
|
|
(let* ((link (org-element-link-parser))
|
|
|
|
|
(path (org-element-property :path link)))
|
|
|
|
|
(if (or (not (string= "file" (org-element-property :type link)))
|
|
|
|
|
(file-remote-p path)
|
|
|
|
|
(file-name-absolute-p path))
|
|
|
|
|
(goto-char (org-element-property :end link))
|
|
|
|
|
(let ((new-path (file-relative-name (expand-file-name path file-dir)
|
|
|
|
|
includer-dir))
|
2020-02-11 17:59:52 +00:00
|
|
|
|
(new-link (org-element-copy link)))
|
2019-02-12 00:15:55 +00:00
|
|
|
|
(org-element-put-property new-link :path new-path)
|
2020-02-11 17:59:52 +00:00
|
|
|
|
(when (org-element-property :contents-begin link)
|
|
|
|
|
(org-element-adopt-elements new-link
|
|
|
|
|
(buffer-substring
|
|
|
|
|
(org-element-property :contents-begin link)
|
|
|
|
|
(org-element-property :contents-end link))))
|
2019-02-12 00:15:55 +00:00
|
|
|
|
(delete-region (org-element-property :begin link)
|
|
|
|
|
(org-element-property :end link))
|
2020-02-11 17:59:52 +00:00
|
|
|
|
(insert (org-element-interpret-data new-link))))))
|
2019-02-12 00:15:55 +00:00
|
|
|
|
|
2015-05-10 23:30:45 +00:00
|
|
|
|
(defun org-export--prepare-file-contents
|
2018-03-02 13:46:41 +00:00
|
|
|
|
(file &optional lines ind minlevel id footnotes includer)
|
2014-12-09 11:40:52 +00:00
|
|
|
|
"Prepare contents of FILE for inclusion and return it as a string.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
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
|
2015-09-06 19:54:57 +00:00
|
|
|
|
created (e.g., a list item), it doesn't apply past the first
|
2012-03-19 20:38:12 +00:00
|
|
|
|
headline encountered.
|
|
|
|
|
|
|
|
|
|
Optional argument MINLEVEL, when non-nil, is an integer
|
|
|
|
|
specifying the level that any top-level headline in the included
|
2014-03-26 14:34:59 +00:00
|
|
|
|
file should have.
|
2015-09-06 19:54:57 +00:00
|
|
|
|
|
2014-03-26 14:34:59 +00:00
|
|
|
|
Optional argument ID is an integer that will be inserted before
|
|
|
|
|
each footnote definition and reference if FILE is an Org file.
|
|
|
|
|
This is useful to avoid conflicts when more than one Org file
|
2014-12-09 11:40:52 +00:00
|
|
|
|
with footnotes is included in a document.
|
|
|
|
|
|
|
|
|
|
Optional argument FOOTNOTES is a hash-table to store footnotes in
|
2018-03-02 13:46:41 +00:00
|
|
|
|
the included document.
|
|
|
|
|
|
|
|
|
|
Optional argument INCLUDER is the file name where the inclusion
|
|
|
|
|
is to happen."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(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)))
|
2018-03-19 22:48:38 +00:00
|
|
|
|
;; Adapt all file links within the included document that contain
|
|
|
|
|
;; relative paths in order to make these paths relative to the
|
|
|
|
|
;; base document, or absolute.
|
|
|
|
|
(when includer
|
|
|
|
|
(let ((file-dir (file-name-directory file))
|
|
|
|
|
(includer-dir (file-name-directory includer)))
|
|
|
|
|
(unless (file-equal-p file-dir includer-dir)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(unless (eq major-mode 'org-mode)
|
|
|
|
|
(let ((org-inhibit-startup t)) (org-mode))) ;set regexps
|
2018-11-26 23:04:41 +00:00
|
|
|
|
(let ((regexp (concat org-link-plain-re "\\|" org-link-angle-re)))
|
|
|
|
|
(while (re-search-forward org-link-any-re nil t)
|
2019-02-12 00:15:55 +00:00
|
|
|
|
(let ((link (save-excursion
|
|
|
|
|
(forward-char -1)
|
|
|
|
|
(save-match-data (org-element-context)))))
|
|
|
|
|
(when (eq 'link (org-element-type link))
|
|
|
|
|
;; Look for file links within link's description.
|
|
|
|
|
;; Org doesn't support such construct, but
|
|
|
|
|
;; `org-export-insert-image-links' may activate
|
|
|
|
|
;; them.
|
|
|
|
|
(let ((contents-begin
|
|
|
|
|
(org-element-property :contents-begin link))
|
|
|
|
|
(begin (org-element-property :begin link)))
|
|
|
|
|
(when contents-begin
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (org-element-property :contents-end link))
|
|
|
|
|
(while (re-search-backward regexp contents-begin t)
|
|
|
|
|
(save-match-data
|
|
|
|
|
(org-export--update-included-link
|
|
|
|
|
file-dir includer-dir))
|
|
|
|
|
(goto-char (match-beginning 0)))))
|
|
|
|
|
;; Update current link, if necessary.
|
|
|
|
|
(when (string= "file" (org-element-property :type link))
|
|
|
|
|
(goto-char begin)
|
|
|
|
|
(org-export--update-included-link
|
|
|
|
|
file-dir includer-dir))))))))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 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.
|
2015-09-06 19:54:57 +00:00
|
|
|
|
(when (and ind (> ind 0))
|
2013-04-06 15:31:56 +00:00
|
|
|
|
(unless (eq major-mode 'org-mode)
|
|
|
|
|
(let ((org-inhibit-startup t)) (org-mode)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(goto-char (point-min))
|
2015-12-16 17:22:27 +00:00
|
|
|
|
(let ((ind-str (make-string ind ?\s)))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(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
|
2013-04-06 15:31:56 +00:00
|
|
|
|
(unless (eq major-mode 'org-mode)
|
|
|
|
|
(let ((org-inhibit-startup t)) (org-mode)))
|
2012-10-16 20:00:39 +00:00
|
|
|
|
(org-with-limited-levels
|
|
|
|
|
(let ((levels (org-map-entries
|
|
|
|
|
(lambda () (org-reduced-level (org-current-level))))))
|
|
|
|
|
(when levels
|
2015-09-06 19:54:57 +00:00
|
|
|
|
(let ((offset (- minlevel (apply #'min levels))))
|
2012-10-16 20:00:39 +00:00
|
|
|
|
(unless (zerop offset)
|
|
|
|
|
(when org-odd-levels-only (setq offset (* offset 2)))
|
|
|
|
|
;; Only change stars, don't bother moving whole
|
|
|
|
|
;; sections.
|
|
|
|
|
(org-map-entries
|
2015-09-06 19:54:57 +00:00
|
|
|
|
(lambda ()
|
|
|
|
|
(if (< offset 0) (delete-char (abs offset))
|
|
|
|
|
(insert (make-string offset ?*)))))))))))
|
2014-03-26 14:34:59 +00:00
|
|
|
|
;; Append ID to all footnote references and definitions, so they
|
|
|
|
|
;; become file specific and cannot collide with footnotes in other
|
2015-09-07 17:09:17 +00:00
|
|
|
|
;; included files. Further, collect relevant footnote definitions
|
|
|
|
|
;; outside of LINES, in order to reintroduce them later.
|
2014-04-30 07:31:18 +00:00
|
|
|
|
(when id
|
2014-12-09 11:40:52 +00:00
|
|
|
|
(let ((marker-min (point-min-marker))
|
2015-09-06 19:54:57 +00:00
|
|
|
|
(marker-max (point-max-marker))
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(get-new-label
|
|
|
|
|
(lambda (label)
|
2015-12-16 17:22:27 +00:00
|
|
|
|
;; Generate new label from LABEL by prefixing it with
|
|
|
|
|
;; "-ID-".
|
|
|
|
|
(format "-%d-%s" id label)))
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(set-new-label
|
|
|
|
|
(lambda (f old new)
|
|
|
|
|
;; Replace OLD label with NEW in footnote F.
|
|
|
|
|
(save-excursion
|
2015-12-16 17:22:27 +00:00
|
|
|
|
(goto-char (+ (org-element-property :begin f) 4))
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(looking-at (regexp-quote old))
|
|
|
|
|
(replace-match new))))
|
|
|
|
|
(seen-alist))
|
2014-12-09 11:40:52 +00:00
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward org-footnote-re nil t)
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(let ((footnote (save-excursion
|
|
|
|
|
(backward-char)
|
|
|
|
|
(org-element-context))))
|
|
|
|
|
(when (memq (org-element-type footnote)
|
|
|
|
|
'(footnote-definition footnote-reference))
|
|
|
|
|
(let* ((label (org-element-property :label footnote)))
|
2014-12-09 11:40:52 +00:00
|
|
|
|
;; Update the footnote-reference at point and collect
|
|
|
|
|
;; the new label, which is only used for footnotes
|
|
|
|
|
;; outsides LINES.
|
|
|
|
|
(when label
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(let ((seen (cdr (assoc label seen-alist))))
|
|
|
|
|
(if seen (funcall set-new-label footnote label seen)
|
|
|
|
|
(let ((new (funcall get-new-label label)))
|
|
|
|
|
(push (cons label new) seen-alist)
|
|
|
|
|
(org-with-wide-buffer
|
|
|
|
|
(let* ((def (org-footnote-get-definition label))
|
|
|
|
|
(beg (nth 1 def)))
|
|
|
|
|
(when (and def
|
|
|
|
|
(or (< beg marker-min)
|
|
|
|
|
(>= beg marker-max)))
|
2015-05-10 23:30:45 +00:00
|
|
|
|
;; Store since footnote-definition is
|
|
|
|
|
;; outside of LINES.
|
2015-09-07 17:09:17 +00:00
|
|
|
|
(puthash new
|
|
|
|
|
(org-element-normalize-string (nth 3 def))
|
|
|
|
|
footnotes))))
|
|
|
|
|
(funcall set-new-label footnote label new)))))))))
|
2014-12-09 11:40:52 +00:00
|
|
|
|
(set-marker marker-min nil)
|
|
|
|
|
(set-marker marker-max nil)))
|
2012-10-30 12:53:28 +00: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 15:02:27 +00:00
|
|
|
|
|
2013-03-20 15:57:56 +00:00
|
|
|
|
(defun org-export--copy-to-kill-ring-p ()
|
|
|
|
|
"Return a non-nil value when output should be added to the kill ring.
|
|
|
|
|
See also `org-export-copy-to-kill-ring'."
|
|
|
|
|
(if (eq org-export-copy-to-kill-ring 'if-interactive)
|
|
|
|
|
(not (or executing-kbd-macro noninteractive))
|
|
|
|
|
(eq org-export-copy-to-kill-ring t)))
|
|
|
|
|
|
2012-11-24 23:24:25 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
;;; Tools For Back-Ends
|
2012-04-29 00:11:22 +00: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 15:02:27 +00: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 20:38:12 +00:00
|
|
|
|
|
2012-06-12 08:25:00 +00:00
|
|
|
|
;;;; For Affiliated Keywords
|
|
|
|
|
;;
|
2012-06-12 15:31:48 +00: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 19:00:25 +00: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 08:25:00 +00:00
|
|
|
|
|
2012-07-21 13:12:02 +00:00
|
|
|
|
(defun org-export-read-attribute (attribute element &optional property)
|
2012-06-12 08:25:00 +00:00
|
|
|
|
"Turn ATTRIBUTE property from ELEMENT into a plist.
|
2012-07-21 13:12:02 +00:00
|
|
|
|
|
|
|
|
|
When optional argument PROPERTY is non-nil, return the value of
|
|
|
|
|
that property within attributes.
|
|
|
|
|
|
2012-06-12 08:25:00 +00:00
|
|
|
|
This function assumes attributes are defined as \":keyword
|
|
|
|
|
value\" pairs. It is appropriate for `:attr_html' like
|
2013-04-10 16:33:12 +00:00
|
|
|
|
properties.
|
|
|
|
|
|
|
|
|
|
All values will become strings except the empty string and
|
|
|
|
|
\"nil\", which will become nil. Also, values containing only
|
|
|
|
|
double quotes will be read as-is, which means that \"\" value
|
|
|
|
|
will become the empty string."
|
|
|
|
|
(let* ((prepare-value
|
|
|
|
|
(lambda (str)
|
2013-06-05 12:24:18 +00:00
|
|
|
|
(save-match-data
|
|
|
|
|
(cond ((member str '(nil "" "nil")) nil)
|
|
|
|
|
((string-match "^\"\\(\"+\\)?\"$" str)
|
|
|
|
|
(or (match-string 1 str) ""))
|
|
|
|
|
(t str)))))
|
2013-04-10 16:33:12 +00:00
|
|
|
|
(attributes
|
|
|
|
|
(let ((value (org-element-property attribute element)))
|
|
|
|
|
(when value
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(let ((s (mapconcat #'identity value " ")) result)
|
2013-04-10 16:33:12 +00:00
|
|
|
|
(while (string-match
|
|
|
|
|
"\\(?:^\\|[ \t]+\\)\\(:[-a-zA-Z0-9_]+\\)\\([ \t]+\\|$\\)"
|
|
|
|
|
s)
|
|
|
|
|
(let ((value (substring s 0 (match-beginning 0))))
|
|
|
|
|
(push (funcall prepare-value value) result))
|
|
|
|
|
(push (intern (match-string 1 s)) result)
|
|
|
|
|
(setq s (substring s (match-end 0))))
|
|
|
|
|
;; Ignore any string before first property with `cdr'.
|
|
|
|
|
(cdr (nreverse (cons (funcall prepare-value s) result))))))))
|
2012-07-21 13:12:02 +00:00
|
|
|
|
(if property (plist-get attributes property) attributes)))
|
2012-06-12 08:25:00 +00:00
|
|
|
|
|
2019-06-08 22:51:53 +00:00
|
|
|
|
(defun org-export-get-caption (element &optional short)
|
2012-09-13 14:51:54 +00:00
|
|
|
|
"Return caption from ELEMENT as a secondary string.
|
|
|
|
|
|
2019-06-08 22:51:53 +00:00
|
|
|
|
When optional argument SHORT is non-nil, return short caption, as
|
|
|
|
|
a secondary string, instead.
|
2012-09-13 14:51:54 +00:00
|
|
|
|
|
|
|
|
|
Caption lines are separated by a white space."
|
2019-06-08 22:51:53 +00:00
|
|
|
|
(let ((full-caption (org-element-property :caption element))
|
|
|
|
|
(get (if short #'cdr #'car))
|
|
|
|
|
caption)
|
|
|
|
|
(dolist (line full-caption)
|
|
|
|
|
(pcase (funcall get line)
|
|
|
|
|
(`nil nil)
|
|
|
|
|
(c
|
|
|
|
|
(setq caption
|
|
|
|
|
(nconc (list " ")
|
|
|
|
|
(copy-sequence c) caption)))))
|
|
|
|
|
(cdr caption)))
|
2012-09-13 14:51:54 +00:00
|
|
|
|
|
2012-06-12 08:25:00 +00:00
|
|
|
|
|
2012-11-03 16:43:04 +00: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.
|
|
|
|
|
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(defun org-export-with-backend (backend data &optional contents info)
|
|
|
|
|
"Call a transcoder from BACKEND on DATA.
|
|
|
|
|
BACKEND is an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end. DATA is an Org element, object, secondary
|
|
|
|
|
string or string. 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."
|
|
|
|
|
(when (symbolp backend) (setq backend (org-export-get-backend backend)))
|
|
|
|
|
(org-export-barf-if-invalid-backend backend)
|
2012-11-03 16:43:04 +00:00
|
|
|
|
(let ((type (org-element-type data)))
|
2016-12-13 21:11:41 +00:00
|
|
|
|
(when (memq type '(nil org-data)) (error "No foreign transcoder available"))
|
|
|
|
|
(let* ((all-transcoders (org-export-get-all-transcoders backend))
|
|
|
|
|
(transcoder (cdr (assq type all-transcoders))))
|
|
|
|
|
(unless (functionp transcoder) (error "No foreign transcoder available"))
|
|
|
|
|
(let ((new-info
|
|
|
|
|
(org-combine-plists
|
|
|
|
|
info (list
|
|
|
|
|
:back-end backend
|
|
|
|
|
:translate-alist all-transcoders
|
|
|
|
|
:exported-data (make-hash-table :test #'eq :size 401)))))
|
|
|
|
|
;; `:internal-references' are shared across back-ends.
|
2017-12-16 12:44:56 +00:00
|
|
|
|
(prog1 (if (eq type 'plain-text)
|
|
|
|
|
(funcall transcoder data new-info)
|
|
|
|
|
(funcall transcoder data contents new-info))
|
2016-12-13 21:11:41 +00:00
|
|
|
|
(plist-put info :internal-references
|
|
|
|
|
(plist-get new-info :internal-references)))))))
|
2012-11-03 16:43:04 +00:00
|
|
|
|
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;;;; For Export Snippets
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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 17:10:14 +00:00
|
|
|
|
|
2011-12-23 13:46:20 +00:00
|
|
|
|
;;;; For Footnotes
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2011-12-23 13:46:20 +00:00
|
|
|
|
;; `org-export-collect-footnote-definitions' is a tool to list
|
|
|
|
|
;; actually used footnotes definitions in the whole parse tree, or in
|
2013-02-23 12:47:44 +00:00
|
|
|
|
;; a headline, in order to add footnote listings throughout the
|
2011-12-23 13:46:20 +00:00
|
|
|
|
;; transcoded data.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2011-12-23 13:46:20 +00: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-29 00:11:22 +00:00
|
|
|
|
;;
|
2011-12-23 13:46:20 +00: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-get-footnote-definition (footnote-reference info)
|
|
|
|
|
"Return definition of FOOTNOTE-REFERENCE as parsed data.
|
2013-01-30 13:17:30 +00:00
|
|
|
|
INFO is the plist used as a communication channel. If no such
|
2014-09-28 03:57:01 +00:00
|
|
|
|
definition can be found, raise an error."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(let ((label (org-element-property :label footnote-reference)))
|
2015-06-23 13:28:01 +00:00
|
|
|
|
(if (not label) (org-element-contents footnote-reference)
|
|
|
|
|
(let ((cache (or (plist-get info :footnote-definition-cache)
|
|
|
|
|
(let ((hash (make-hash-table :test #'equal)))
|
|
|
|
|
(plist-put info :footnote-definition-cache hash)
|
|
|
|
|
hash))))
|
2016-06-22 20:34:53 +00:00
|
|
|
|
(or
|
|
|
|
|
(gethash label cache)
|
|
|
|
|
(puthash label
|
|
|
|
|
(org-element-map (plist-get info :parse-tree)
|
|
|
|
|
'(footnote-definition footnote-reference)
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(cond
|
2016-06-27 21:58:08 +00:00
|
|
|
|
;; Skip any footnote with a different label.
|
|
|
|
|
;; Also skip any standard footnote reference
|
|
|
|
|
;; with the same label since those cannot
|
|
|
|
|
;; contain a definition.
|
2016-06-22 20:34:53 +00:00
|
|
|
|
((not (equal (org-element-property :label f) label)) nil)
|
|
|
|
|
((eq (org-element-property :type f) 'standard) nil)
|
|
|
|
|
((org-element-contents f))
|
|
|
|
|
;; Even if the contents are empty, we can not
|
|
|
|
|
;; return nil since that would eventually raise
|
|
|
|
|
;; the error. Instead, return the equivalent
|
|
|
|
|
;; empty string.
|
|
|
|
|
(t "")))
|
|
|
|
|
info t)
|
|
|
|
|
cache)
|
|
|
|
|
(error "Definition not found for footnote %s" label))))))
|
2011-12-23 13:46:20 +00:00
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(defun org-export--footnote-reference-map
|
|
|
|
|
(function data info &optional body-first)
|
|
|
|
|
"Apply FUNCTION on every footnote reference in DATA.
|
2015-02-13 13:10:51 +00:00
|
|
|
|
INFO is a plist containing export state. By default, as soon as
|
|
|
|
|
a new footnote reference is encountered, FUNCTION is called onto
|
|
|
|
|
its definition. However, if BODY-FIRST is non-nil, this step is
|
|
|
|
|
delayed until the end of the process."
|
2015-12-13 03:46:24 +00:00
|
|
|
|
(letrec ((definitions nil)
|
|
|
|
|
(seen-refs nil)
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(search-ref
|
|
|
|
|
(lambda (data delayp)
|
|
|
|
|
;; Search footnote references through DATA, filling
|
|
|
|
|
;; SEEN-REFS along the way. When DELAYP is non-nil,
|
|
|
|
|
;; store footnote definitions so they can be entered
|
|
|
|
|
;; later.
|
|
|
|
|
(org-element-map data 'footnote-reference
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(funcall function f)
|
|
|
|
|
(let ((--label (org-element-property :label f)))
|
|
|
|
|
(unless (and --label (member --label seen-refs))
|
|
|
|
|
(when --label (push --label seen-refs))
|
|
|
|
|
;; Search for subsequent references in footnote
|
|
|
|
|
;; definition so numbering follows reading
|
|
|
|
|
;; logic, unless DELAYP in non-nil.
|
|
|
|
|
(cond
|
|
|
|
|
(delayp
|
|
|
|
|
(push (org-export-get-footnote-definition f info)
|
|
|
|
|
definitions))
|
|
|
|
|
;; Do not force entering inline definitions,
|
|
|
|
|
;; since `org-element-map' already traverses
|
|
|
|
|
;; them at the right time.
|
|
|
|
|
((eq (org-element-property :type f) 'inline))
|
|
|
|
|
(t (funcall search-ref
|
|
|
|
|
(org-export-get-footnote-definition f info)
|
|
|
|
|
nil))))))
|
|
|
|
|
info nil
|
|
|
|
|
;; Don't enter footnote definitions since it will
|
|
|
|
|
;; happen when their first reference is found.
|
|
|
|
|
;; Moreover, if DELAYP is non-nil, make sure we
|
|
|
|
|
;; postpone entering definitions of inline references.
|
|
|
|
|
(if delayp '(footnote-definition footnote-reference)
|
|
|
|
|
'footnote-definition)))))
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(funcall search-ref data body-first)
|
2015-02-13 13:10:51 +00:00
|
|
|
|
(funcall search-ref (nreverse definitions) nil)))
|
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(defun org-export-collect-footnote-definitions (info &optional data body-first)
|
2015-02-20 17:06:23 +00:00
|
|
|
|
"Return an alist between footnote numbers, labels and definitions.
|
|
|
|
|
|
|
|
|
|
INFO is the current export state, as a plist.
|
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
Definitions are collected throughout the whole parse tree, or
|
|
|
|
|
DATA when non-nil.
|
|
|
|
|
|
|
|
|
|
Sorting is done by order of references. As soon as a new
|
2015-02-20 17:06:23 +00:00
|
|
|
|
reference is encountered, other references are searched within
|
|
|
|
|
its definition. However, if BODY-FIRST is non-nil, this step is
|
|
|
|
|
delayed after the whole tree is checked. This alters results
|
|
|
|
|
when references are found in footnote definitions.
|
|
|
|
|
|
|
|
|
|
Definitions either appear as Org data or as a secondary string
|
|
|
|
|
for inlined footnotes. Unreferenced definitions are ignored."
|
|
|
|
|
(let ((n 0) labels alist)
|
|
|
|
|
(org-export--footnote-reference-map
|
|
|
|
|
(lambda (f)
|
|
|
|
|
;; Collect footnote number, label and definition.
|
2015-02-27 11:06:37 +00:00
|
|
|
|
(let ((l (org-element-property :label f)))
|
2015-02-20 17:06:23 +00:00
|
|
|
|
(unless (and l (member l labels))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf n)
|
2015-02-27 11:06:37 +00:00
|
|
|
|
(push (list n l (org-export-get-footnote-definition f info)) alist))
|
2015-02-20 17:06:23 +00:00
|
|
|
|
(when l (push l labels))))
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(or data (plist-get info :parse-tree)) info body-first)
|
2015-02-20 17:06:23 +00:00
|
|
|
|
(nreverse alist)))
|
|
|
|
|
|
2015-02-13 13:10:51 +00:00
|
|
|
|
(defun org-export-footnote-first-reference-p
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(footnote-reference info &optional data body-first)
|
2015-02-13 13:10:51 +00:00
|
|
|
|
"Non-nil when a footnote reference is the first one for its label.
|
|
|
|
|
|
|
|
|
|
FOOTNOTE-REFERENCE is the footnote reference being considered.
|
|
|
|
|
INFO is a plist containing current export state.
|
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
Search is done throughout the whole parse tree, or DATA when
|
|
|
|
|
non-nil.
|
|
|
|
|
|
2015-02-13 13:10:51 +00:00
|
|
|
|
By default, as soon as a new footnote reference is encountered,
|
|
|
|
|
other references are searched within its definition. However, if
|
|
|
|
|
BODY-FIRST is non-nil, this step is delayed after the whole tree
|
|
|
|
|
is checked. This alters results when references are found in
|
|
|
|
|
footnote definitions."
|
|
|
|
|
(let ((label (org-element-property :label footnote-reference)))
|
|
|
|
|
;; Anonymous footnotes are always a first reference.
|
|
|
|
|
(or (not label)
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(org-export--footnote-reference-map
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(let ((l (org-element-property :label f)))
|
|
|
|
|
(when (and l label (string= label l))
|
|
|
|
|
(throw 'exit (eq footnote-reference f)))))
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(or data (plist-get info :parse-tree)) info body-first)))))
|
2015-02-13 13:10:51 +00:00
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(defun org-export-get-footnote-number (footnote info &optional data body-first)
|
2011-12-25 15:46:38 +00:00
|
|
|
|
"Return number associated to a footnote.
|
|
|
|
|
|
|
|
|
|
FOOTNOTE is either a footnote reference or a footnote definition.
|
2015-02-13 13:10:51 +00:00
|
|
|
|
INFO is the plist containing export state.
|
|
|
|
|
|
2015-02-21 08:34:15 +00:00
|
|
|
|
Number is unique throughout the whole parse tree, or DATA, when
|
|
|
|
|
non-nil.
|
|
|
|
|
|
2015-02-13 13:10:51 +00:00
|
|
|
|
By default, as soon as a new footnote reference is encountered,
|
|
|
|
|
counting process moves into its definition. However, if
|
|
|
|
|
BODY-FIRST is non-nil, this step is delayed until the end of the
|
|
|
|
|
process, leading to a different order when footnotes are nested."
|
|
|
|
|
(let ((count 0)
|
|
|
|
|
(seen)
|
|
|
|
|
(label (org-element-property :label footnote)))
|
|
|
|
|
(catch 'exit
|
|
|
|
|
(org-export--footnote-reference-map
|
|
|
|
|
(lambda (f)
|
|
|
|
|
(let ((l (org-element-property :label f)))
|
|
|
|
|
(cond
|
|
|
|
|
;; Anonymous footnote match: return number.
|
|
|
|
|
((and (not l) (not label) (eq footnote f)) (throw 'exit (1+ count)))
|
|
|
|
|
;; Labels match: return number.
|
|
|
|
|
((and label l (string= label l)) (throw 'exit (1+ count)))
|
|
|
|
|
;; Otherwise store label and increase counter if label
|
|
|
|
|
;; wasn't encountered yet.
|
2015-08-14 22:33:11 +00:00
|
|
|
|
((not l) (cl-incf count))
|
|
|
|
|
((not (member l seen)) (push l seen) (cl-incf count)))))
|
2015-02-21 08:34:15 +00:00
|
|
|
|
(or data (plist-get info :parse-tree)) info body-first))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Headlines
|
2012-04-29 00:11:22 +00: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 15:02:27 +00: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-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; `org-export-get-headline-number' returns the section number of an
|
2016-01-24 20:30:39 +00:00
|
|
|
|
;; headline, while `org-export-number-to-roman' allows it to be
|
|
|
|
|
;; converted to roman numbers. With an optional argument,
|
2014-09-21 14:17:55 +00:00
|
|
|
|
;; `org-export-get-headline-number' returns a number to unnumbered
|
|
|
|
|
;; headlines (used for internal id).
|
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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 16:43:04 +00: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.
|
2013-02-26 23:00:33 +00:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-get-alt-title' tries to retrieve an alternative title,
|
|
|
|
|
;; as a secondary string, suitable for table of contents. It falls
|
|
|
|
|
;; back onto default title.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00: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 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
(or (plist-get info :headline-offset) 0)))
|
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
(defun org-export-get-headline-number (headline info)
|
2014-09-21 14:17:55 +00:00
|
|
|
|
"Return numbered HEADLINE numbering as a list of numbers.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
INFO is a plist holding contextual information."
|
2014-09-21 14:17:55 +00:00
|
|
|
|
(and (org-export-numbered-headline-p headline info)
|
|
|
|
|
(cdr (assq headline (plist-get info :headline-numbering)))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
(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."
|
2017-11-19 22:59:56 +00:00
|
|
|
|
(unless (org-not-nil (org-export-get-node-property :UNNUMBERED headline t))
|
2014-09-21 14:17:55 +00:00
|
|
|
|
(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 18:05:45 +00: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 15:02:27 +00: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 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
(if (<= n 0)
|
2011-12-09 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
(while roman
|
2011-12-09 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
res)))
|
|
|
|
|
|
2012-10-14 11:19:12 +00:00
|
|
|
|
(defun org-export-get-tags (element info &optional tags inherited)
|
2012-05-26 11:44:13 +00: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.
|
|
|
|
|
|
|
|
|
|
When non-nil, optional argument TAGS should be a list of strings.
|
2012-10-14 11:19:12 +00: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 15:03:59 +00:00
|
|
|
|
inherited from parent headlines and FILETAGS keywords."
|
2015-11-06 12:04:20 +00:00
|
|
|
|
(cl-remove-if
|
2015-11-10 22:38:04 +00:00
|
|
|
|
(lambda (tag) (member tag tags))
|
2012-10-14 11:19:12 +00:00
|
|
|
|
(if (not inherited) (org-element-property :tags element)
|
|
|
|
|
;; Build complete list of inherited tags.
|
|
|
|
|
(let ((current-tag-list (org-element-property :tags element)))
|
2014-11-16 12:27:34 +00:00
|
|
|
|
(dolist (parent (org-element-lineage element))
|
|
|
|
|
(dolist (tag (org-element-property :tags parent))
|
|
|
|
|
(when (and (memq (org-element-type parent) '(headline inlinetask))
|
|
|
|
|
(not (member tag current-tag-list)))
|
|
|
|
|
(push tag current-tag-list))))
|
2012-10-30 15:03:59 +00:00
|
|
|
|
;; Add FILETAGS keywords and return results.
|
|
|
|
|
(org-uniquify (append (plist-get info :filetags) current-tag-list))))))
|
2012-05-26 11:44:13 +00:00
|
|
|
|
|
2018-10-03 11:10:35 +00:00
|
|
|
|
(defun org-export-get-node-property (property datum &optional inherited)
|
|
|
|
|
"Return node PROPERTY value for DATUM.
|
2012-09-23 17:37:21 +00:00
|
|
|
|
|
2018-10-03 11:10:35 +00:00
|
|
|
|
PROPERTY is an upcase symbol (e.g., `:COOKIE_DATA'). DATUM is an
|
2012-09-23 17:37:21 +00:00
|
|
|
|
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."
|
2018-10-03 11:10:35 +00:00
|
|
|
|
(let ((headline (if (eq (org-element-type datum) 'headline) datum
|
|
|
|
|
(org-export-get-parent-headline datum))))
|
|
|
|
|
(if (not inherited) (org-element-property property datum)
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(let ((parent headline))
|
2012-09-23 17:37:21 +00:00
|
|
|
|
(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 12:44:46 +00: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 \"???\"."
|
2014-06-18 21:30:54 +00:00
|
|
|
|
(or (org-export-get-node-property :CATEGORY blob t)
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(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)
|
2012-11-02 12:44:46 +00:00
|
|
|
|
(let ((file (plist-get info :input-file)))
|
|
|
|
|
(and file (file-name-sans-extension (file-name-nondirectory file))))
|
|
|
|
|
"???"))
|
|
|
|
|
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(defun org-export-get-alt-title (headline _)
|
2013-02-26 23:00:33 +00:00
|
|
|
|
"Return alternative title for HEADLINE, as a secondary string.
|
2015-08-14 21:50:51 +00:00
|
|
|
|
If no optional title is defined, fall-back to the regular title."
|
2015-01-28 10:41:39 +00:00
|
|
|
|
(let ((alt (org-element-property :ALT_TITLE headline)))
|
|
|
|
|
(if alt (org-element-parse-secondary-string
|
|
|
|
|
alt (org-element-restriction 'headline) headline)
|
|
|
|
|
(org-element-property :title headline))))
|
2013-02-23 20:33:03 +00:00
|
|
|
|
|
2014-08-26 12:41:36 +00:00
|
|
|
|
(defun org-export-first-sibling-p (blob info)
|
|
|
|
|
"Non-nil when BLOB is the first sibling in its parent.
|
|
|
|
|
BLOB is an element or an object. If BLOB is a headline, non-nil
|
|
|
|
|
means it is the first sibling in the sub-tree. INFO is a plist
|
|
|
|
|
used as a communication channel."
|
|
|
|
|
(memq (org-element-type (org-export-get-previous-element blob info))
|
|
|
|
|
'(nil section)))
|
|
|
|
|
|
2017-12-02 11:21:03 +00:00
|
|
|
|
(defun org-export-last-sibling-p (datum info)
|
|
|
|
|
"Non-nil when DATUM is the last sibling in its parent.
|
|
|
|
|
DATUM is an element or an object. INFO is a plist used as
|
2014-08-26 12:41:36 +00:00
|
|
|
|
a communication channel."
|
2017-12-02 11:21:03 +00:00
|
|
|
|
(let ((next (org-export-get-next-element datum info)))
|
|
|
|
|
(or (not next)
|
|
|
|
|
(and (eq 'headline (org-element-type datum))
|
|
|
|
|
(> (org-element-property :level datum)
|
|
|
|
|
(org-element-property :level next))))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
2013-04-02 21:55:28 +00:00
|
|
|
|
;;;; For Keywords
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-get-date' returns a date appropriate for the document
|
|
|
|
|
;; to about to be exported. In particular, it takes care of
|
|
|
|
|
;; `org-export-date-timestamp-format'.
|
|
|
|
|
|
|
|
|
|
(defun org-export-get-date (info &optional fmt)
|
|
|
|
|
"Return date value for the current document.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel. FMT, when
|
|
|
|
|
non-nil, is a time format string that will be applied on the date
|
|
|
|
|
if it consists in a single timestamp object. It defaults to
|
|
|
|
|
`org-export-date-timestamp-format' when nil.
|
|
|
|
|
|
|
|
|
|
A proper date can be a secondary string, a string or nil. It is
|
|
|
|
|
meant to be translated with `org-export-data' or alike."
|
|
|
|
|
(let ((date (plist-get info :date))
|
|
|
|
|
(fmt (or fmt org-export-date-timestamp-format)))
|
|
|
|
|
(cond ((not date) nil)
|
|
|
|
|
((and fmt
|
|
|
|
|
(not (cdr date))
|
|
|
|
|
(eq (org-element-type (car date)) 'timestamp))
|
|
|
|
|
(org-timestamp-format (car date) fmt))
|
|
|
|
|
(t 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 15:02:27 +00:00
|
|
|
|
;;;; For Links
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2015-01-04 20:54:41 +00:00
|
|
|
|
;; `org-export-custom-protocol-maybe' handles custom protocol defined
|
2016-07-07 13:58:29 +00:00
|
|
|
|
;; in `org-link-parameters'.
|
2015-01-04 20:54:41 +00: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 15:02:27 +00:00
|
|
|
|
;; `org-export-get-coderef-format' returns an appropriate format
|
|
|
|
|
;; string for coderefs.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; `org-export-inline-image-p' returns a non-nil value when the link
|
|
|
|
|
;; provided should be considered as an inline image.
|
2012-04-29 00:11:22 +00: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 15:02:27 +00:00
|
|
|
|
;; `org-export-resolve-fuzzy-link' searches destination of fuzzy links
|
|
|
|
|
;; (i.e. links with "fuzzy" as type) within the parsed tree, and
|
2015-10-10 14:03:05 +00:00
|
|
|
|
;; returns an appropriate unique identifier.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; `org-export-resolve-id-link' returns the first headline with
|
2012-06-09 08:30:17 +00:00
|
|
|
|
;; specified id or custom-id in parse tree, the path to the external
|
2015-10-10 14:03:05 +00:00
|
|
|
|
;; file with the id.
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2019-05-15 18:22:05 +00:00
|
|
|
|
;; `org-export-resolve-link' searches for the destination of a link
|
|
|
|
|
;; within the parsed tree and returns the element.
|
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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.
|
2015-04-20 10:36:47 +00:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-file-uri' expands a filename as stored in :path value
|
|
|
|
|
;; of a "file" link into a file URI.
|
2015-10-10 14:03:05 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Broken links raise a `org-link-broken' error, which is caught by
|
|
|
|
|
;; `org-export-data' for further processing, depending on
|
|
|
|
|
;; `org-export-with-broken-links' value.
|
|
|
|
|
|
2015-10-31 15:10:11 +00:00
|
|
|
|
(org-define-error 'org-link-broken "Unable to resolve link; aborting")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2020-02-14 09:00:15 +00:00
|
|
|
|
(defun org-export-custom-protocol-maybe (link desc backend &optional info)
|
|
|
|
|
"Try exporting LINK object with a dedicated function.
|
2015-01-04 20:54:41 +00:00
|
|
|
|
|
2015-02-24 14:54:01 +00:00
|
|
|
|
DESC is its description, as a string, or nil. BACKEND is the
|
|
|
|
|
back-end used for export, as a symbol.
|
2015-01-04 20:54:41 +00:00
|
|
|
|
|
2015-02-24 14:54:01 +00:00
|
|
|
|
Return output as a string, or nil if no protocol handles LINK.
|
|
|
|
|
|
|
|
|
|
A custom protocol has precedence over regular back-end export.
|
|
|
|
|
The function ignores links with an implicit type (e.g.,
|
|
|
|
|
\"custom-id\")."
|
|
|
|
|
(let ((type (org-element-property :type link)))
|
2020-02-14 09:00:15 +00:00
|
|
|
|
(unless (or (member type '("coderef" "custom-id" "fuzzy" "radio" nil))
|
2015-01-04 20:54:41 +00:00
|
|
|
|
(not backend))
|
2020-02-14 09:00:15 +00:00
|
|
|
|
(let ((protocol (org-link-get-parameter type :export))
|
|
|
|
|
(path (org-element-property :path link)))
|
2015-01-04 20:54:41 +00:00
|
|
|
|
(and (functionp protocol)
|
2020-02-14 09:00:15 +00:00
|
|
|
|
(condition-case nil
|
|
|
|
|
(funcall protocol path desc backend info)
|
|
|
|
|
;; XXX: The function used (< Org 9.4) to accept only
|
|
|
|
|
;; three mandatory arguments. Type-specific `:export'
|
|
|
|
|
;; functions in the wild may not handle current
|
|
|
|
|
;; signature. Provide backward compatibility support
|
|
|
|
|
;; for them.
|
|
|
|
|
(wrong-number-of-arguments
|
|
|
|
|
(funcall protocol path desc backend))))))))
|
2015-01-04 20:54:41 +00: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 15:02:27 +00: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 13:18:28 +00:00
|
|
|
|
(cond ((not desc) "%s")
|
|
|
|
|
((string-match (regexp-quote (concat "(" path ")")) desc)
|
2011-12-09 13:38:36 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
"Non-nil if LINK object points to an inline image.
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
Optional argument is a set of RULES defining inline images. It
|
|
|
|
|
is an alist where associations have the following shape:
|
|
|
|
|
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(TYPE . REGEXP)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
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))
|
2015-01-04 20:13:27 +00:00
|
|
|
|
(let ((case-fold-search t))
|
2016-12-17 10:36:49 +00:00
|
|
|
|
(cl-some (lambda (rule)
|
|
|
|
|
(and (string= (org-element-property :type link) (car rule))
|
|
|
|
|
(string-match-p (cdr rule)
|
|
|
|
|
(org-element-property :path link))))
|
|
|
|
|
(or rules org-export-default-inline-image-rule)))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-insert-image-links (data info &optional rules)
|
|
|
|
|
"Insert image links in DATA.
|
|
|
|
|
|
2017-01-07 11:33:56 +00:00
|
|
|
|
Org syntax does not support nested links. Nevertheless, some
|
|
|
|
|
export back-ends support images as descriptions of links. Since
|
|
|
|
|
images are really links to image files, we need to make an
|
|
|
|
|
exception about links nesting.
|
2016-12-17 10:36:49 +00:00
|
|
|
|
|
|
|
|
|
This function recognizes links whose contents are really images
|
|
|
|
|
and turn them into proper nested links. It is meant to be used
|
|
|
|
|
as a parse tree filter in back-ends supporting such constructs.
|
|
|
|
|
|
|
|
|
|
DATA is a parse tree. INFO is the current state of the export
|
|
|
|
|
process, as a plist.
|
|
|
|
|
|
|
|
|
|
A description is a valid images if it matches any rule in RULES,
|
|
|
|
|
if non-nil, or `org-export-default-inline-image-rule' otherwise.
|
|
|
|
|
See `org-export-inline-image-p' for more information about the
|
|
|
|
|
structure of RULES.
|
|
|
|
|
|
|
|
|
|
Return modified DATA."
|
|
|
|
|
(let ((link-re (format "\\`\\(?:%s\\|%s\\)\\'"
|
2018-11-26 23:04:41 +00:00
|
|
|
|
org-link-plain-re
|
|
|
|
|
org-link-angle-re))
|
2016-12-17 10:36:49 +00:00
|
|
|
|
(case-fold-search t))
|
|
|
|
|
(org-element-map data 'link
|
|
|
|
|
(lambda (l)
|
|
|
|
|
(let ((contents (org-element-interpret-data (org-element-contents l))))
|
|
|
|
|
(when (and (org-string-nw-p contents)
|
|
|
|
|
(string-match link-re contents))
|
|
|
|
|
(let ((type (match-string 1 contents))
|
|
|
|
|
(path (match-string 2 contents)))
|
|
|
|
|
(when (cl-some (lambda (rule)
|
|
|
|
|
(and (string= type (car rule))
|
|
|
|
|
(string-match-p (cdr rule) path)))
|
|
|
|
|
(or rules org-export-default-inline-image-rule))
|
2017-01-07 14:48:49 +00:00
|
|
|
|
;; Replace contents with image link.
|
|
|
|
|
(org-element-adopt-elements
|
|
|
|
|
(org-element-set-contents l nil)
|
2016-12-17 10:36:49 +00:00
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(save-excursion (insert contents))
|
|
|
|
|
(org-element-link-parser))))))))
|
|
|
|
|
info nil nil t))
|
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
|
2012-05-18 09:20:00 +00: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,
|
2015-03-17 21:28:39 +00:00
|
|
|
|
depending on src-block or example element's switches. Throw an
|
|
|
|
|
error if no block contains REF."
|
|
|
|
|
(or (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)))
|
2016-12-07 22:11:10 +00:00
|
|
|
|
(let* ((label-fmt (or (org-element-property :label-fmt el)
|
|
|
|
|
org-coderef-label-format))
|
|
|
|
|
(ref-re (org-src-coderef-regexp label-fmt ref)))
|
2015-03-17 21:28:39 +00:00
|
|
|
|
;; 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)
|
2016-12-07 22:11:10 +00:00
|
|
|
|
(if (org-element-property :use-labels el) ref
|
|
|
|
|
(+ (or (org-export-get-loc el info) 0)
|
|
|
|
|
(line-number-at-pos)))))))
|
2015-03-17 21:28:39 +00:00
|
|
|
|
info 'first-match)
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(signal 'org-link-broken (list ref))))
|
2012-05-18 09:20:00 +00:00
|
|
|
|
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(defun org-export-search-cells (datum)
|
|
|
|
|
"List search cells for element or object DATUM.
|
|
|
|
|
|
|
|
|
|
A search cell follows the pattern (TYPE . SEARCH) where
|
|
|
|
|
|
|
|
|
|
TYPE is a symbol among `headline', `custom-id', `target' and
|
|
|
|
|
`other'.
|
|
|
|
|
|
|
|
|
|
SEARCH is the string a link is expected to match. More
|
|
|
|
|
accurately, it is
|
|
|
|
|
|
|
|
|
|
- headline's title, as a list of strings, if TYPE is
|
|
|
|
|
`headline'.
|
|
|
|
|
|
|
|
|
|
- CUSTOM_ID value, as a string, if TYPE is `custom-id'.
|
|
|
|
|
|
|
|
|
|
- target's or radio-target's name as a list of strings if
|
|
|
|
|
TYPE is `target'.
|
|
|
|
|
|
2018-01-08 19:39:31 +00:00
|
|
|
|
- NAME affiliated keyword if TYPE is `other'.
|
2016-03-06 21:42:26 +00:00
|
|
|
|
|
|
|
|
|
A search cell is the internal representation of a fuzzy link. It
|
|
|
|
|
ignores white spaces and statistics cookies, if applicable."
|
|
|
|
|
(pcase (org-element-type datum)
|
|
|
|
|
(`headline
|
|
|
|
|
(let ((title (split-string
|
|
|
|
|
(replace-regexp-in-string
|
2020-02-23 11:46:31 +00:00
|
|
|
|
"\\[[0-9]*\\(?:%\\|/[0-9]*\\)\\]" " "
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(org-element-property :raw-value datum)))))
|
|
|
|
|
(delq nil
|
|
|
|
|
(list
|
|
|
|
|
(cons 'headline title)
|
|
|
|
|
(cons 'other title)
|
|
|
|
|
(let ((custom-id (org-element-property :custom-id datum)))
|
|
|
|
|
(and custom-id (cons 'custom-id custom-id)))))))
|
|
|
|
|
(`target
|
|
|
|
|
(list (cons 'target (split-string (org-element-property :value datum)))))
|
|
|
|
|
((and (let name (org-element-property :name datum))
|
|
|
|
|
(guard name))
|
|
|
|
|
(list (cons 'other (split-string name))))
|
|
|
|
|
(_ nil)))
|
|
|
|
|
|
|
|
|
|
(defun org-export-string-to-search-cell (s)
|
|
|
|
|
"Return search cells associated to string S.
|
|
|
|
|
S is either the path of a fuzzy link or a search option, i.e., it
|
|
|
|
|
tries to match either a headline (through custom ID or title),
|
|
|
|
|
a target or a named element."
|
|
|
|
|
(pcase (string-to-char s)
|
|
|
|
|
(?* (list (cons 'headline (split-string (substring s 1)))))
|
|
|
|
|
(?# (list (cons 'custom-id (substring s 1))))
|
|
|
|
|
((let search (split-string s))
|
|
|
|
|
(list (cons 'target search) (cons 'other search)))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-match-search-cell-p (datum cells)
|
|
|
|
|
"Non-nil when DATUM matches search cells CELLS.
|
|
|
|
|
DATUM is an element or object. CELLS is a list of search cells,
|
|
|
|
|
as returned by `org-export-search-cells'."
|
|
|
|
|
(let ((targets (org-export-search-cells datum)))
|
|
|
|
|
(and targets (cl-some (lambda (cell) (member cell targets)) cells))))
|
|
|
|
|
|
2019-05-12 22:50:54 +00:00
|
|
|
|
(defun org-export-resolve-fuzzy-link (link info &rest pseudo-types)
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
INFO is a plist holding contextual information.
|
|
|
|
|
|
2015-09-09 12:30:25 +00:00
|
|
|
|
Return value can be an object or an element:
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2013-04-04 17:23:07 +00:00
|
|
|
|
- If LINK path matches a target object (i.e. <<path>>) return it.
|
2012-02-20 21:24:38 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
- If LINK path exactly matches the name affiliated keyword
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(i.e. #+NAME: path) of an element, return that element.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
- If LINK path exactly matches any headline name, return that
|
2015-06-16 21:05:29 +00:00
|
|
|
|
element.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2015-03-12 02:39:11 +00:00
|
|
|
|
- Otherwise, throw an error.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2019-05-12 22:50:54 +00:00
|
|
|
|
PSEUDO-TYPES are pseudo-elements types, i.e., elements defined
|
|
|
|
|
specifically in an export back-end, that could have a name
|
|
|
|
|
affiliated keyword.
|
|
|
|
|
|
2013-02-15 17:08:03 +00:00
|
|
|
|
Assume LINK type is \"fuzzy\". White spaces are not
|
|
|
|
|
significant."
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(let* ((search-cells (org-export-string-to-search-cell
|
2019-02-27 19:22:51 +00:00
|
|
|
|
(org-element-property :path link)))
|
2016-12-29 17:48:20 +00:00
|
|
|
|
(link-cache (or (plist-get info :resolve-fuzzy-link-cache)
|
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :resolve-fuzzy-link-cache table)
|
|
|
|
|
table)))
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(cached (gethash search-cells link-cache 'not-found)))
|
2015-06-16 21:05:29 +00:00
|
|
|
|
(if (not (eq cached 'not-found)) cached
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(let ((matches
|
|
|
|
|
(org-element-map (plist-get info :parse-tree)
|
2019-05-12 22:50:54 +00:00
|
|
|
|
(append pseudo-types '(target) org-element-all-elements)
|
2016-03-06 21:42:26 +00:00
|
|
|
|
(lambda (datum)
|
|
|
|
|
(and (org-export-match-search-cell-p datum search-cells)
|
|
|
|
|
datum)))))
|
|
|
|
|
(unless matches
|
2017-01-11 20:00:37 +00:00
|
|
|
|
(signal 'org-link-broken (list (org-element-property :path link))))
|
2015-06-16 21:05:29 +00:00
|
|
|
|
(puthash
|
2016-03-06 21:42:26 +00:00
|
|
|
|
search-cells
|
|
|
|
|
;; There can be multiple matches for un-typed searches, i.e.,
|
|
|
|
|
;; for searches not starting with # or *. In this case,
|
|
|
|
|
;; prioritize targets and names over headline titles.
|
|
|
|
|
;; Matching both a name and a target is not valid, and
|
|
|
|
|
;; therefore undefined.
|
|
|
|
|
(or (cl-some (lambda (datum)
|
|
|
|
|
(and (not (eq (org-element-type datum) 'headline))
|
|
|
|
|
datum))
|
|
|
|
|
matches)
|
|
|
|
|
(car matches))
|
2015-06-16 21:05:29 +00:00
|
|
|
|
link-cache)))))
|
2012-03-19 20:38:12 +00: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 21:39:04 +00:00
|
|
|
|
Return value can be the headline element matched in current parse
|
2015-03-17 22:24:03 +00:00
|
|
|
|
tree or a file name. Assume LINK type is either \"id\" or
|
|
|
|
|
\"custom-id\". Throw an error if no match is found."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(let ((id (org-element-property :path link)))
|
2012-06-06 21:39:04 +00:00
|
|
|
|
;; First check if id is within the current parse tree.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(or (org-element-map (plist-get info :parse-tree) 'headline
|
|
|
|
|
(lambda (headline)
|
2015-03-17 22:24:03 +00:00
|
|
|
|
(when (or (equal (org-element-property :ID headline) id)
|
|
|
|
|
(equal (org-element-property :CUSTOM_ID headline) id))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
headline))
|
|
|
|
|
info 'first-match)
|
2012-06-06 21:39:04 +00:00
|
|
|
|
;; Otherwise, look for external files.
|
2015-03-17 22:24:03 +00:00
|
|
|
|
(cdr (assoc id (plist-get info :id-alist)))
|
2015-10-10 14:03:05 +00:00
|
|
|
|
(signal 'org-link-broken (list id)))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2012-05-18 09:20:00 +00:00
|
|
|
|
(defun org-export-resolve-radio-link (link info)
|
|
|
|
|
"Return radio-target object referenced as LINK destination.
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-05-18 09:20:00 +00:00
|
|
|
|
Return value can be a radio-target object or nil. Assume LINK
|
|
|
|
|
has type \"radio\"."
|
2013-05-12 18:42:30 +00:00
|
|
|
|
(let ((path (replace-regexp-in-string
|
|
|
|
|
"[ \r\t\n]+" " " (org-element-property :path link))))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-element-map (plist-get info :parse-tree) 'radio-target
|
|
|
|
|
(lambda (radio)
|
2013-05-12 15:49:51 +00:00
|
|
|
|
(and (eq (compare-strings
|
2013-05-12 18:42:30 +00:00
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"[ \r\t\n]+" " " (org-element-property :value radio))
|
|
|
|
|
nil nil path nil nil t)
|
2013-05-12 15:49:51 +00:00
|
|
|
|
t)
|
2013-02-15 21:38:29 +00:00
|
|
|
|
radio))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
info 'first-match)))
|
2012-01-11 13:42:40 +00:00
|
|
|
|
|
2019-05-15 18:22:05 +00:00
|
|
|
|
(defun org-export-resolve-link (link info)
|
|
|
|
|
"Return LINK destination.
|
|
|
|
|
|
|
|
|
|
LINK is a string or a link object.
|
|
|
|
|
|
|
|
|
|
INFO is a plist holding contextual information.
|
|
|
|
|
|
|
|
|
|
Return value can be an object or an element:
|
|
|
|
|
|
|
|
|
|
- If LINK path matches an ID or a custom ID, return the headline.
|
|
|
|
|
|
|
|
|
|
- If LINK path matches a fuzzy link, return its destination.
|
|
|
|
|
|
|
|
|
|
- Otherwise, throw an error."
|
|
|
|
|
;; Convert string links to link objects.
|
|
|
|
|
(when (stringp link)
|
|
|
|
|
(setq link (with-temp-buffer
|
|
|
|
|
(save-excursion
|
2019-06-10 07:43:37 +00:00
|
|
|
|
(insert (org-link-make-string link)))
|
2019-05-15 18:22:05 +00:00
|
|
|
|
(org-element-link-parser))))
|
|
|
|
|
(pcase (org-element-property :type link)
|
|
|
|
|
((or "custom-id" "id") (org-export-resolve-id-link link info))
|
|
|
|
|
("fuzzy" (org-export-resolve-fuzzy-link link info))
|
|
|
|
|
(_ (signal 'org-link-broken (list (org-element-property :path link))))))
|
|
|
|
|
|
2015-04-20 10:36:47 +00:00
|
|
|
|
(defun org-export-file-uri (filename)
|
|
|
|
|
"Return file URI associated to FILENAME."
|
2017-02-16 21:42:59 +00:00
|
|
|
|
(cond ((string-prefix-p "//" filename) (concat "file:" filename))
|
2015-09-25 22:04:05 +00:00
|
|
|
|
((not (file-name-absolute-p filename)) filename)
|
2018-04-29 14:28:25 +00:00
|
|
|
|
((file-remote-p filename) (concat "file:/" filename))
|
2017-02-16 21:42:59 +00:00
|
|
|
|
(t
|
|
|
|
|
(let ((fullname (expand-file-name filename)))
|
|
|
|
|
(concat (if (string-prefix-p "/" fullname) "file://" "file:///")
|
|
|
|
|
fullname)))))
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2011-12-20 19:09:03 +00:00
|
|
|
|
;;;; For References
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2015-04-12 22:47:07 +00:00
|
|
|
|
;; `org-export-get-reference' associate a unique reference for any
|
2016-03-07 22:43:23 +00:00
|
|
|
|
;; object or element. It uses `org-export-new-reference' and
|
|
|
|
|
;; `org-export-format-reference' to, respectively, generate new
|
|
|
|
|
;; internal references and turn them into a string suitable for
|
|
|
|
|
;; output.
|
2015-04-12 22:47:07 +00:00
|
|
|
|
;;
|
2011-12-20 19:09:03 +00:00
|
|
|
|
;; `org-export-get-ordinal' associates a sequence number to any object
|
|
|
|
|
;; or element.
|
|
|
|
|
|
2016-03-07 22:43:23 +00:00
|
|
|
|
(defun org-export-new-reference (references)
|
|
|
|
|
"Return a unique reference, among REFERENCES.
|
|
|
|
|
REFERENCES is an alist whose values are in-use references, as
|
|
|
|
|
numbers. Returns a number, which is the internal representation
|
|
|
|
|
of a reference. See also `org-export-format-reference'."
|
|
|
|
|
;; Generate random 7 digits hexadecimal numbers. Collisions
|
|
|
|
|
;; increase exponentially with the numbers of references. However,
|
|
|
|
|
;; the odds for encountering at least one collision with 1000 active
|
|
|
|
|
;; references in the same document are roughly 0.2%, so this
|
|
|
|
|
;; shouldn't be the bottleneck.
|
|
|
|
|
(let ((new (random #x10000000)))
|
|
|
|
|
(while (rassq new references) (setq new (random #x10000000)))
|
|
|
|
|
new))
|
|
|
|
|
|
|
|
|
|
(defun org-export-format-reference (reference)
|
|
|
|
|
"Format REFERENCE into a string.
|
|
|
|
|
REFERENCE is a number representing a reference, as returned by
|
|
|
|
|
`org-export-new-reference', which see."
|
2016-04-26 19:04:41 +00:00
|
|
|
|
(format "org%07x" reference))
|
2016-03-07 22:43:23 +00:00
|
|
|
|
|
2015-04-12 22:47:07 +00:00
|
|
|
|
(defun org-export-get-reference (datum info)
|
|
|
|
|
"Return a unique reference for DATUM, as a string.
|
2016-03-07 22:43:23 +00:00
|
|
|
|
|
2015-04-12 22:47:07 +00:00
|
|
|
|
DATUM is either an element or an object. INFO is the current
|
2016-03-07 22:43:23 +00:00
|
|
|
|
export state, as a plist.
|
|
|
|
|
|
2017-09-09 22:16:12 +00:00
|
|
|
|
References for the current document are stored in
|
|
|
|
|
`:internal-references' property. Its value is an alist with
|
|
|
|
|
associations of the following types:
|
|
|
|
|
|
|
|
|
|
(REFERENCE . DATUM) and (SEARCH-CELL . ID)
|
|
|
|
|
|
|
|
|
|
REFERENCE is the reference string to be used for object or
|
|
|
|
|
element DATUM. SEARCH-CELL is a search cell, as returned by
|
|
|
|
|
`org-export-search-cells'. ID is a number or a string uniquely
|
|
|
|
|
identifying DATUM within the document.
|
|
|
|
|
|
|
|
|
|
This function also checks `:crossrefs' property for search cells
|
|
|
|
|
matching DATUM before creating a new reference."
|
2016-03-07 22:43:23 +00:00
|
|
|
|
(let ((cache (plist-get info :internal-references)))
|
|
|
|
|
(or (car (rassq datum cache))
|
2016-03-10 20:50:44 +00:00
|
|
|
|
(let* ((crossrefs (plist-get info :crossrefs))
|
|
|
|
|
(cells (org-export-search-cells datum))
|
2016-11-11 16:47:09 +00:00
|
|
|
|
;; Preserve any pre-existing association between
|
|
|
|
|
;; a search cell and a reference, i.e., when some
|
|
|
|
|
;; previously published document referenced a location
|
|
|
|
|
;; within current file (see
|
|
|
|
|
;; `org-publish-resolve-external-link').
|
|
|
|
|
;;
|
|
|
|
|
;; However, there is no guarantee that search cells are
|
|
|
|
|
;; unique, e.g., there might be duplicate custom ID or
|
|
|
|
|
;; two headings with the same title in the file.
|
|
|
|
|
;;
|
|
|
|
|
;; As a consequence, before re-using any reference to
|
|
|
|
|
;; an element or object, we check that it doesn't refer
|
|
|
|
|
;; to a previous element or object.
|
|
|
|
|
(new (or (cl-some
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(let ((stored (cdr (assoc cell crossrefs))))
|
|
|
|
|
(when stored
|
|
|
|
|
(let ((old (org-export-format-reference stored)))
|
|
|
|
|
(and (not (assoc old cache)) stored)))))
|
|
|
|
|
cells)
|
2016-03-10 20:50:44 +00:00
|
|
|
|
(org-export-new-reference cache)))
|
2016-03-07 22:43:23 +00:00
|
|
|
|
(reference-string (org-export-format-reference new)))
|
|
|
|
|
;; Cache contains both data already associated to
|
|
|
|
|
;; a reference and in-use internal references, so as to make
|
|
|
|
|
;; unique references.
|
2016-03-10 20:50:44 +00:00
|
|
|
|
(dolist (cell cells) (push (cons cell new) cache))
|
2016-11-11 16:47:09 +00:00
|
|
|
|
;; Retain a direct association between reference string and
|
|
|
|
|
;; DATUM since (1) not every object or element can be given
|
|
|
|
|
;; a search cell (2) it permits quick lookup.
|
2016-03-07 22:43:23 +00:00
|
|
|
|
(push (cons reference-string datum) cache)
|
|
|
|
|
(plist-put info :internal-references cache)
|
|
|
|
|
reference-string))))
|
2015-04-12 22:47:07 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defun org-export-get-ordinal (element info &optional types predicate)
|
2011-12-20 19:09:03 +00: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 20:38:12 +00: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 18:17:11 +00:00
|
|
|
|
|
2011-12-20 19:09:03 +00: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 20:38:12 +00:00
|
|
|
|
accepts two arguments: the element or object being considered and
|
2016-01-24 20:30:39 +00:00
|
|
|
|
the plist used as a communication channel. This allows counting
|
|
|
|
|
only a certain type of object (i.e. inline images).
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2013-02-23 12:47:44 +00:00
|
|
|
|
Return value is a list of numbers if ELEMENT is a headline or an
|
2012-03-19 20:38:12 +00:00
|
|
|
|
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."
|
2013-04-04 17:23:07 +00:00
|
|
|
|
;; 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
|
2014-11-16 12:27:34 +00:00
|
|
|
|
(org-element-lineage
|
|
|
|
|
element
|
|
|
|
|
'(footnote-definition footnote-reference headline item table))))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-case (org-element-type element)
|
2013-04-04 17:23:07 +00:00
|
|
|
|
;; Special case 1: A 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))))
|
|
|
|
|
((footnote-definition footnote-reference)
|
|
|
|
|
(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
|
|
|
|
|
((eq element el) (1+ counter))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
((not predicate) (cl-incf counter) nil)
|
|
|
|
|
((funcall predicate el info) (cl-incf counter) nil)))
|
2013-04-04 17:23:07 +00:00
|
|
|
|
info 'first-match)))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2014-09-08 10:09:52 +00:00
|
|
|
|
|
|
|
|
|
;;;; For Src-Blocks
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00: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)
|
2016-05-24 19:40:43 +00:00
|
|
|
|
"Return count of lines of code before ELEMENT.
|
|
|
|
|
|
|
|
|
|
ELEMENT is an example-block or src-block element. INFO is the
|
|
|
|
|
plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Count includes every line of code in example-block or src-block
|
|
|
|
|
with a \"+n\" or \"-n\" switch before block. Return nil if
|
|
|
|
|
ELEMENT doesn't allow line numbering."
|
|
|
|
|
(pcase (org-element-property :number-lines element)
|
|
|
|
|
(`(new . ,n) n)
|
|
|
|
|
(`(continued . ,n)
|
|
|
|
|
(let ((loc 0))
|
|
|
|
|
(org-element-map (plist-get info :parse-tree) '(src-block example-block)
|
|
|
|
|
(lambda (el)
|
|
|
|
|
;; ELEMENT is reached: Quit loop and return locs.
|
|
|
|
|
(if (eq el element) (+ loc n)
|
|
|
|
|
;; Only count lines from src-block and example-block
|
|
|
|
|
;; elements with a "+n" or "-n" switch.
|
|
|
|
|
(let ((linum (org-element-property :number-lines el)))
|
|
|
|
|
(when linum
|
|
|
|
|
(let ((lines (org-count-lines
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(org-element-property :value el))))
|
2016-05-24 19:40:43 +00:00
|
|
|
|
;; Accumulate locs or reset them.
|
|
|
|
|
(pcase linum
|
|
|
|
|
(`(new . ,n) (setq loc (+ n lines)))
|
|
|
|
|
(`(continued . ,n) (cl-incf loc (+ n lines)))))))
|
|
|
|
|
nil)) ;Return nil to stay in the loop.
|
|
|
|
|
info 'first-match)))))
|
2012-01-11 13:42:40 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defun org-export-unravel-code (element)
|
|
|
|
|
"Clean source code and extract references out of it.
|
2012-01-11 13:42:40 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
Return a cons cell whose CAR is the source code, cleaned from any
|
2013-10-27 10:03:05 +00:00
|
|
|
|
reference, protective commas and spurious indentation, and CDR is
|
|
|
|
|
an alist between relative line number (integer) and name of code
|
|
|
|
|
reference on that line (string)."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(let* ((line 0) refs
|
2013-10-27 10:03:05 +00:00
|
|
|
|
(value (org-element-property :value element))
|
2017-04-29 12:32:29 +00:00
|
|
|
|
;; Remove global indentation from code, if necessary. Also
|
|
|
|
|
;; remove final newline character, since it doesn't belongs
|
|
|
|
|
;; to the code proper.
|
2013-05-25 12:18:48 +00:00
|
|
|
|
(code (replace-regexp-in-string
|
2017-04-29 12:32:29 +00:00
|
|
|
|
"\n\\'" ""
|
|
|
|
|
(if (or org-src-preserve-indentation
|
|
|
|
|
(org-element-property :preserve-indent element))
|
|
|
|
|
value
|
|
|
|
|
(org-remove-indentation value))))
|
2011-12-09 13:38:36 +00:00
|
|
|
|
;; Build a regexp matching a loc with a reference.
|
2016-08-17 21:43:38 +00:00
|
|
|
|
(ref-re (org-src-coderef-regexp (org-src-coderef-format element))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Return value.
|
|
|
|
|
(cons
|
|
|
|
|
;; Code with references removed.
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (loc)
|
|
|
|
|
(cl-incf line)
|
|
|
|
|
(if (not (string-match ref-re loc)) loc
|
|
|
|
|
;; Ref line: remove ref, and add its position in REFS.
|
|
|
|
|
(push (cons line (match-string 3 loc)) refs)
|
|
|
|
|
(replace-match "" nil nil loc 1)))
|
|
|
|
|
(split-string code "\n") "\n")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 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."
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(let ((--locs (split-string code "\n"))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(--line 0))
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(concat
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (--loc)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf --line)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(let ((--ref (cdr (assq --line ref-alist))))
|
|
|
|
|
(funcall fun --loc (and num-lines (+ num-lines --line)) --ref)))
|
2017-04-29 12:32:29 +00:00
|
|
|
|
--locs "\n")
|
|
|
|
|
"\n")))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
(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))
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(code-lines (split-string code "\n")))
|
2013-03-03 18:10:42 +00:00
|
|
|
|
(if (null code-lines) ""
|
|
|
|
|
(let* ((refs (and (org-element-property :retain-labels element)
|
|
|
|
|
(cdr code-info)))
|
|
|
|
|
;; Handle line numbering.
|
2016-05-16 14:58:01 +00:00
|
|
|
|
(num-start (org-export-get-loc element info))
|
2013-03-03 18:10:42 +00:00
|
|
|
|
(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
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(+ (apply #'max (mapcar #'length code-lines))
|
2013-03-03 18:10:42 +00:00
|
|
|
|
(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
|
2017-04-29 12:32:29 +00:00
|
|
|
|
(concat (make-string (- (+ 6 max-width)
|
|
|
|
|
(+ (length loc) (length number-str)))
|
|
|
|
|
?\s)
|
2013-03-03 18:10:42 +00:00
|
|
|
|
(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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; For Tables
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2019-10-20 10:12:27 +00:00
|
|
|
|
;; `org-export-table-has-special-column-p' 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 06:54:24 +00:00
|
|
|
|
;; `org-export-table-row-is-special-p' are predicates used to look for
|
|
|
|
|
;; meta-information about the table structure.
|
2012-04-29 00:11:22 +00: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 06:54:24 +00: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-29 00:11:22 +00: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 06:54:24 +00: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 21:21:25 +00: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',
|
2014-08-26 13:05:52 +00:00
|
|
|
|
;; `org-export-table-row-starts-header-p',
|
|
|
|
|
;; `org-export-table-row-ends-header-p' and
|
|
|
|
|
;; `org-export-table-row-in-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 06:54:24 +00: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 "/", "#", "!", "$",
|
2017-01-01 22:58:29 +00:00
|
|
|
|
;; "*" "_" and "^". Though, do not consider a first column
|
|
|
|
|
;; containing only empty cells as special.
|
|
|
|
|
(let ((special-column? 'empty))
|
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 06:54:24 +00:00
|
|
|
|
(catch 'exit
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (row (org-element-contents table))
|
|
|
|
|
(when (eq (org-element-property :type row) 'standard)
|
|
|
|
|
(let ((value (org-element-contents
|
|
|
|
|
(car (org-element-contents row)))))
|
2017-01-01 22:58:29 +00:00
|
|
|
|
(cond ((member value
|
|
|
|
|
'(("/") ("#") ("!") ("$") ("*") ("_") ("^")))
|
|
|
|
|
(setq special-column? 'special))
|
|
|
|
|
((null value))
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(t (throw 'exit nil))))))
|
2017-01-01 22:58:29 +00:00
|
|
|
|
(eq special-column? 'special))))
|
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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-table-has-header-p (table info)
|
2013-04-07 08:03:37 +00:00
|
|
|
|
"Non-nil when TABLE has a 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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2013-04-07 08:03:37 +00:00
|
|
|
|
A table has a header when it contains at least two row groups."
|
2017-01-01 22:58:29 +00:00
|
|
|
|
(let* ((cache (or (plist-get info :table-header-cache)
|
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :table-header-cache table)
|
|
|
|
|
table)))
|
|
|
|
|
(cached (gethash table cache 'no-cache)))
|
|
|
|
|
(if (not (eq cached 'no-cache)) cached
|
|
|
|
|
(let ((rowgroup 1) row-flag)
|
|
|
|
|
(puthash table
|
|
|
|
|
(org-element-map table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(cond
|
|
|
|
|
((> rowgroup 1) t)
|
|
|
|
|
((and row-flag
|
|
|
|
|
(eq (org-element-property :type row) 'rule))
|
|
|
|
|
(cl-incf rowgroup)
|
|
|
|
|
(setq row-flag nil))
|
|
|
|
|
((and (not row-flag)
|
|
|
|
|
(eq (org-element-property :type row) 'standard))
|
|
|
|
|
(setq row-flag t)
|
|
|
|
|
nil)))
|
|
|
|
|
info 'first-match)
|
|
|
|
|
cache)))))
|
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 06:54:24 +00:00
|
|
|
|
|
2015-08-14 21:50:51 +00:00
|
|
|
|
(defun org-export-table-row-is-special-p (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 06:54:24 +00:00
|
|
|
|
"Non-nil if TABLE-ROW is considered special.
|
|
|
|
|
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 19:00:47 +00: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 06:54:24 +00:00
|
|
|
|
(member first-cell '(("^") ("_") ("$") ("!"))))
|
|
|
|
|
;; ... it contains only alignment cookies and empty cells.
|
|
|
|
|
(let ((special-row-p 'empty))
|
|
|
|
|
(catch 'exit
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (cell (org-element-contents table-row))
|
|
|
|
|
(let ((value (org-element-contents cell)))
|
|
|
|
|
;; Since VALUE is a secondary string, the following
|
|
|
|
|
;; checks avoid expanding it with `org-export-data'.
|
|
|
|
|
(cond ((not value))
|
|
|
|
|
((and (not (cdr value))
|
|
|
|
|
(stringp (car value))
|
|
|
|
|
(string-match "\\`<[lrc]?\\([0-9]+\\)?>\\'"
|
|
|
|
|
(car value)))
|
|
|
|
|
(setq special-row-p 'cookie))
|
|
|
|
|
(t (throw 'exit 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 06:54:24 +00:00
|
|
|
|
(eq special-row-p 'cookie)))))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-group (table-row info)
|
2013-05-18 16:20:46 +00:00
|
|
|
|
"Return TABLE-ROW's group number, as an integer.
|
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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
INFO is a plist used as the communication channel.
|
|
|
|
|
|
2013-04-07 08:05:13 +00:00
|
|
|
|
Return value is the group number, as an integer, or nil for
|
2013-05-18 16:20:46 +00:00
|
|
|
|
special rows and rows separators. First group is also table's
|
|
|
|
|
header."
|
2017-01-01 22:58:29 +00:00
|
|
|
|
(when (eq (org-element-property :type table-row) 'standard)
|
|
|
|
|
(let* ((cache (or (plist-get info :table-row-group-cache)
|
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :table-row-group-cache table)
|
|
|
|
|
table)))
|
|
|
|
|
(cached (gethash table-row cache 'no-cache)))
|
|
|
|
|
(if (not (eq cached 'no-cache)) cached
|
|
|
|
|
;; First time a row is queried, populate cache with all the
|
|
|
|
|
;; rows from the table.
|
|
|
|
|
(let ((group 0) row-flag)
|
|
|
|
|
(org-element-map (org-export-get-parent table-row) 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(if (eq (org-element-property :type row) 'rule)
|
|
|
|
|
(setq row-flag nil)
|
|
|
|
|
(unless row-flag (cl-incf group) (setq row-flag t))
|
|
|
|
|
(puthash row group cache)))
|
|
|
|
|
info))
|
|
|
|
|
(gethash table-row cache)))))
|
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 06:54:24 +00: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 19:00:47 +00:00
|
|
|
|
(let* ((row (org-export-get-parent table-cell))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(table (org-export-get-parent row))
|
2013-08-29 08:00:24 +00:00
|
|
|
|
(cells (org-element-contents row))
|
|
|
|
|
(columns (length cells))
|
|
|
|
|
(column (- columns (length (memq table-cell cells))))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(cache (or (plist-get info :table-cell-width-cache)
|
2016-12-29 17:48:20 +00:00
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :table-cell-width-cache table)
|
|
|
|
|
table)))
|
2013-08-29 08:00:24 +00:00
|
|
|
|
(width-vector (or (gethash table cache)
|
2019-05-30 12:59:10 +00:00
|
|
|
|
(puthash table (make-vector columns 'empty) cache))))
|
2019-06-10 11:36:46 +00:00
|
|
|
|
;; Table rows may not have the same number of cells. Extend
|
2019-05-30 12:59:10 +00:00
|
|
|
|
;; WIDTH-VECTOR appropriately if we encounter a row larger than
|
|
|
|
|
;; expected.
|
|
|
|
|
(when (>= column (length width-vector))
|
|
|
|
|
(setq width-vector
|
|
|
|
|
(vconcat width-vector
|
|
|
|
|
(make-list (- (1+ column) (length width-vector))
|
|
|
|
|
'empty)))
|
|
|
|
|
(puthash table width-vector cache))
|
|
|
|
|
(pcase (aref width-vector column)
|
|
|
|
|
(`empty
|
|
|
|
|
(catch 'found
|
|
|
|
|
(dolist (row (org-element-contents table))
|
|
|
|
|
(when (org-export-table-row-is-special-p row info)
|
|
|
|
|
;; In a special row, try to find a width cookie at
|
|
|
|
|
;; COLUMN. The following checks avoid expanding
|
|
|
|
|
;; unnecessarily the cell with `org-export-data'.
|
|
|
|
|
(pcase (org-element-contents
|
|
|
|
|
(elt (org-element-contents row) column))
|
|
|
|
|
(`(,(and (pred stringp) cookie))
|
|
|
|
|
(when (string-match "\\`<[lrc]?\\([0-9]+\\)>\\'" cookie)
|
|
|
|
|
(let ((w (string-to-number (match-string 1 cookie))))
|
|
|
|
|
(throw 'found (aset width-vector column w))))))))
|
|
|
|
|
(aset width-vector column nil)))
|
|
|
|
|
(value 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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
(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'."
|
2013-08-29 08:38:15 +00:00
|
|
|
|
;; Load `org-table-number-fraction' and `org-table-number-regexp'.
|
|
|
|
|
(require 'org-table)
|
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 19:00:47 +00:00
|
|
|
|
(let* ((row (org-export-get-parent table-cell))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(table (org-export-get-parent row))
|
2013-08-29 08:17:09 +00:00
|
|
|
|
(cells (org-element-contents row))
|
|
|
|
|
(columns (length cells))
|
|
|
|
|
(column (- columns (length (memq table-cell cells))))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(cache (or (plist-get info :table-cell-alignment-cache)
|
2016-12-29 17:48:20 +00:00
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :table-cell-alignment-cache table)
|
|
|
|
|
table)))
|
2013-08-29 08:17:09 +00:00
|
|
|
|
(align-vector (or (gethash table cache)
|
|
|
|
|
(puthash table (make-vector columns nil) cache))))
|
2019-06-10 11:36:46 +00:00
|
|
|
|
;; Table rows may not have the same number of cells. Extend
|
|
|
|
|
;; ALIGN-VECTOR appropriately if we encounter a row larger than
|
|
|
|
|
;; expected.
|
|
|
|
|
(when (>= column (length align-vector))
|
|
|
|
|
(setq align-vector
|
|
|
|
|
(vconcat align-vector
|
|
|
|
|
(make-list (- (1+ column) (length align-vector))
|
|
|
|
|
nil)))
|
|
|
|
|
(puthash table align-vector cache))
|
2013-08-29 08:17:09 +00:00
|
|
|
|
(or (aref align-vector column)
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(let ((number-cells 0)
|
|
|
|
|
(total-cells 0)
|
|
|
|
|
cookie-align
|
|
|
|
|
previous-cell-number-p)
|
|
|
|
|
(dolist (row (org-element-contents (org-export-get-parent 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))))
|
|
|
|
|
;; 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))))))
|
|
|
|
|
;; 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)
|
|
|
|
|
(let ((value (org-export-data
|
|
|
|
|
(org-element-contents
|
|
|
|
|
(elt (org-element-contents row) column))
|
|
|
|
|
info)))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf total-cells)
|
2013-05-18 16:20:46 +00:00
|
|
|
|
;; Treat an empty cell as a number if it follows
|
|
|
|
|
;; a number.
|
|
|
|
|
(if (not (or (string-match org-table-number-regexp value)
|
|
|
|
|
(and (string= value "") previous-cell-number-p)))
|
|
|
|
|
(setq previous-cell-number-p nil)
|
|
|
|
|
(setq previous-cell-number-p t)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf number-cells))))))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
;; Return value. Alignment specified by cookies has
|
|
|
|
|
;; precedence over alignment deduced from cell's contents.
|
2013-08-29 08:17:09 +00:00
|
|
|
|
(aset align-vector
|
|
|
|
|
column
|
|
|
|
|
(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)))))))
|
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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
(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 19:00:47 +00: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 06:54:24 +00: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
|
2015-11-05 10:05:29 +00:00
|
|
|
|
;; Look at every row before the current one.
|
|
|
|
|
(dolist (row (cdr (memq row (reverse (org-element-contents table)))))
|
|
|
|
|
(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)))))
|
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 06:54:24 +00: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
|
2015-11-05 10:05:29 +00:00
|
|
|
|
;; Look at every row after the current one.
|
|
|
|
|
(dolist (row (cdr (memq row (org-element-contents table))))
|
|
|
|
|
(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)))))
|
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 06:54:24 +00: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 18:49:31 +00:00
|
|
|
|
(- (length cells) (length (memq table-cell cells))))))
|
2015-11-05 10:05:29 +00:00
|
|
|
|
;; Table rows are read in reverse order so last column groups
|
|
|
|
|
;; row has precedence over any previous one.
|
|
|
|
|
(dolist (row (reverse (org-element-contents table)))
|
|
|
|
|
(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)))))))
|
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 06:54:24 +00:00
|
|
|
|
;; Return value.
|
|
|
|
|
borders))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-starts-colgroup-p (table-cell info)
|
2013-10-31 03:03:10 +00:00
|
|
|
|
"Non-nil when TABLE-CELL is at the beginning of a column group.
|
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 06:54:24 +00:00
|
|
|
|
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.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(or (eq (org-element-map (org-export-get-parent table-cell) 'table-cell
|
|
|
|
|
'identity info 'first-match)
|
|
|
|
|
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 06:54:24 +00:00
|
|
|
|
(memq 'left (org-export-table-cell-borders table-cell info))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-cell-ends-colgroup-p (table-cell info)
|
2013-10-31 03:03:10 +00:00
|
|
|
|
"Non-nil when TABLE-CELL is at the end of a column group.
|
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 06:54:24 +00:00
|
|
|
|
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 14:19:56 +00: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 19:00:47 +00: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 06:54:24 +00:00
|
|
|
|
table-cell)
|
|
|
|
|
(memq 'right (org-export-table-cell-borders table-cell info))))
|
|
|
|
|
|
|
|
|
|
(defun org-export-table-row-starts-rowgroup-p (table-row info)
|
2013-10-31 03:03:10 +00:00
|
|
|
|
"Non-nil when TABLE-ROW is at the beginning of a row group.
|
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 06:54:24 +00:00
|
|
|
|
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)
|
2013-10-31 03:03:10 +00:00
|
|
|
|
"Non-nil when TABLE-ROW is at the end of a row group.
|
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 06:54:24 +00:00
|
|
|
|
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)))))
|
|
|
|
|
|
2014-08-26 13:05:52 +00:00
|
|
|
|
(defun org-export-table-row-in-header-p (table-row info)
|
|
|
|
|
"Non-nil when TABLE-ROW is located within table's header.
|
|
|
|
|
INFO is a plist used as a communication channel. Always return
|
|
|
|
|
nil for special rows and rows separators."
|
|
|
|
|
(and (org-export-table-has-header-p
|
|
|
|
|
(org-export-get-parent-table table-row) info)
|
|
|
|
|
(eql (org-export-table-row-group table-row info) 1)))
|
|
|
|
|
|
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 06:54:24 +00:00
|
|
|
|
(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."
|
2014-08-26 13:05:52 +00:00
|
|
|
|
(and (org-export-table-row-in-header-p table-row info)
|
|
|
|
|
(org-export-table-row-starts-rowgroup-p 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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
(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."
|
2014-08-26 13:05:52 +00:00
|
|
|
|
(and (org-export-table-row-in-header-p table-row info)
|
|
|
|
|
(org-export-table-row-ends-rowgroup-p 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 06:54:24 +00:00
|
|
|
|
|
2013-04-09 14:52:01 +00:00
|
|
|
|
(defun org-export-table-row-number (table-row info)
|
|
|
|
|
"Return TABLE-ROW number.
|
|
|
|
|
INFO is a plist used as a communication channel. Return value is
|
2017-01-01 22:58:29 +00:00
|
|
|
|
zero-indexed and ignores separators. The function returns nil
|
|
|
|
|
for special rows and separators."
|
|
|
|
|
(when (eq (org-element-property :type table-row) 'standard)
|
|
|
|
|
(let* ((cache (or (plist-get info :table-row-number-cache)
|
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :table-row-number-cache table)
|
|
|
|
|
table)))
|
|
|
|
|
(cached (gethash table-row cache 'no-cache)))
|
|
|
|
|
(if (not (eq cached 'no-cache)) cached
|
|
|
|
|
;; First time a row is queried, populate cache with all the
|
|
|
|
|
;; rows from the table.
|
|
|
|
|
(let ((number -1))
|
|
|
|
|
(org-element-map (org-export-get-parent-table table-row) 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(when (eq (org-element-property :type row) 'standard)
|
|
|
|
|
(puthash row (cl-incf number) cache)))
|
|
|
|
|
info))
|
|
|
|
|
(gethash table-row cache)))))
|
2013-04-09 14:52:01 +00: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 06:54:24 +00:00
|
|
|
|
(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.
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-element-map table 'table-row
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(when (eq (org-element-property :type row) 'standard)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf rows)
|
2020-02-18 21:57:37 +00:00
|
|
|
|
(unless first-row (setq first-row 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 06:54:24 +00:00
|
|
|
|
;; Set number of columns.
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(org-element-map first-row 'table-cell (lambda (_) (cl-incf columns)) 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 06:54:24 +00:00
|
|
|
|
;; 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 19:00:47 +00:00
|
|
|
|
(let* ((table-row (org-export-get-parent table-cell))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
(row-number (org-export-table-row-number table-row info)))
|
|
|
|
|
(when row-number
|
|
|
|
|
(cons row-number
|
|
|
|
|
(let ((col-count 0))
|
|
|
|
|
(org-element-map table-row 'table-cell
|
|
|
|
|
(lambda (cell)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(if (eq cell table-cell) col-count (cl-incf col-count) nil))
|
2013-05-18 16:20:46 +00:00
|
|
|
|
info 'first-match))))))
|
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 06:54:24 +00:00
|
|
|
|
|
|
|
|
|
(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
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;; 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)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(t (cl-incf row-count) nil)))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
info 'first-match))
|
|
|
|
|
'table-cell
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(if (= column-count column-pos) cell
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf column-count) nil))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
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 15:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
2017-10-14 10:29:52 +00:00
|
|
|
|
;;;; For Tables of Contents
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2011-12-20 18:16:19 +00: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-29 00:11:22 +00: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 15:02:27 +00: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.
|
2017-10-14 10:29:52 +00:00
|
|
|
|
;;
|
|
|
|
|
;; `org-export-toc-entry-backend' builds a special anonymous back-end
|
|
|
|
|
;; useful to export table of contents' entries.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2014-10-25 15:14:34 +00:00
|
|
|
|
(defun org-export-collect-headlines (info &optional n scope)
|
2011-12-20 18:16:19 +00:00
|
|
|
|
"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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2012-08-24 07:33:58 +00: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 15:02:27 +00:00
|
|
|
|
|
2014-10-25 15:14:34 +00:00
|
|
|
|
Optional argument SCOPE, when non-nil, is an element. If it is
|
|
|
|
|
a headline, only children of SCOPE are collected. Otherwise,
|
|
|
|
|
collect children of the headline containing provided element. If
|
|
|
|
|
there is no such headline, collect all headlines. In any case,
|
|
|
|
|
argument N becomes relative to the level of that headline.
|
|
|
|
|
|
2013-02-13 14:51:08 +00:00
|
|
|
|
Return a list of all exportable headlines as parsed elements.
|
2017-09-21 19:08:36 +00:00
|
|
|
|
Footnote sections are ignored."
|
2014-10-25 15:14:34 +00:00
|
|
|
|
(let* ((scope (cond ((not scope) (plist-get info :parse-tree))
|
|
|
|
|
((eq (org-element-type scope) 'headline) scope)
|
|
|
|
|
((org-export-get-parent-headline scope))
|
|
|
|
|
(t (plist-get info :parse-tree))))
|
|
|
|
|
(limit (plist-get info :headline-levels))
|
|
|
|
|
(n (if (not (wholenump n)) limit
|
|
|
|
|
(min (if (eq (org-element-type scope) 'org-data) n
|
|
|
|
|
(+ (org-export-get-relative-level scope info) n))
|
2017-11-20 13:07:03 +00:00
|
|
|
|
limit))))
|
2014-10-25 15:14:34 +00:00
|
|
|
|
(org-element-map (org-element-contents scope) 'headline
|
2017-10-07 14:03:17 +00:00
|
|
|
|
(lambda (h)
|
2017-11-20 13:07:03 +00:00
|
|
|
|
(and (not (org-element-property :footnote-section-p h))
|
|
|
|
|
(not (equal "notoc"
|
|
|
|
|
(org-export-get-node-property :UNNUMBERED h t)))
|
|
|
|
|
(>= n (org-export-get-relative-level h info))
|
|
|
|
|
h))
|
2013-08-31 12:30:25 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
TYPE can be a symbol or a list of symbols specifying element
|
2012-05-21 19:38:42 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:28:46 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
Return a list of all elements found, in order of appearance."
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-element-map (plist-get info :parse-tree) type
|
|
|
|
|
(lambda (element)
|
|
|
|
|
(and (org-element-property :caption element)
|
|
|
|
|
(or (not predicate) (funcall predicate element))
|
|
|
|
|
element))
|
|
|
|
|
info))
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
"Build a list of tables.
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-05-21 19:38:42 +00:00
|
|
|
|
Return a list of table elements with a caption."
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
"Build a list of figures.
|
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-05-21 19:38:42 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00: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 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(defun org-export-collect-listings (info)
|
2018-09-20 09:23:49 +00:00
|
|
|
|
"Build a list of source blocks.
|
contrib/org-export: Generic Export Engine For Org
* contrib/lisp/org-export.el (org-export-collect-options,
org-export-parse-option-keyword, org-export-get-subtree-options,
org-export-get-inbuffer-options, org-export-get-global-options,
org-export-initial-options, org-export-confirm-letbind,
org-export-install-letbind-maybe,
org-export-initialize-persistent-properties,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-get-point-max, org-export-update-info,
org-export-set-property, org-export-data,
org-export-secondary-string, org-export-skip-p,
org-export-interpret-p, org-export-filter-apply-functions,
org-export-as, org-export-to-buffer, org-export-get-relative-level,
org-export-get-headline-number, org-export-number-to-roman,
org-export-first-sibling-p, org-export-last-sibling-p,
org-export-included-file, org-export-get-file-contents,
org-export-parse-included-file, org-export-solidify-link-text,
org-export-get-coderef-format, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-expand-macro,
org-export-handle-code, org-export-table-format-info,
org-export-clean-table, org-export-get-headlines,
org-export-collect-elements, org-export-collect-tables,
org-export-get-figures, org-export-collect-listings): New functions.
(org-export-max-depth, org-export-option-alist,
org-export-special-keywords, org-export-persistent-properties-list,
org-export-persistent-properties, org-export-with-archived-trees,
org-export-with-author, org-export-with-creator,
org-export-creator-string, org-export-with-drawers,
org-export-with-email, org-export-with-emphasize,
org-export-exclude-tags, org-export-with-fixed-width,
org-export-with-footnotes, org-export-headline-levels,
org-export-default-language, org-export-preserve-breaks,
org-export-with-entities, org-export-with-priority,
org-export-with-section-numbers, org-export-select-tags,
org-export-with-special-strings, org-export-with-sub-superscripts,
org-export-with-toc, org-export-with-tables, org-export-with-tags,
org-export-with-tasks, org-export-time-stamp-file,
org-export-with-timestamps, org-export-with-todo-keywords,
org-export-allow-BIND, org-export-snippet-translation-alist,
org-export-filter-parse-tree-functions,
org-export-filter-final-output-functions,
org-export-filter-plain-text-functions,
org-export-filter-center-block-functions,
org-export-filter-drawer-functions,
org-export-filter-dynamic-block-functions,
org-export-filter-headline-functions,
org-export-filter-inlinetask-functions,
org-export-filter-plain-list-functions,
org-export-filter-item-functions,
org-export-filter-comment-functions,
org-export-filter-comment-block-functions,
org-export-filter-example-block-functions,
org-export-filter-export-block-functions,
org-export-filter-fixed-width-functions,
org-export-filter-footnote-definition-functions,
org-export-filter-horizontal-rule-functions,
org-export-filter-keyword-functions,
org-export-filter-latex-environment-functions,
org-export-filter-babel-call-functions,
org-export-filter-paragraph-functions,
org-export-filter-property-drawer-functions,
org-export-filter-quote-block-functions,
org-export-filter-quote-section-functions,
org-export-filter-special-block-functions,
org-export-filter-src-block-functions,
org-export-filter-table-functions,
org-export-filter-verse-block-functions,
org-export-filter-emphasis-functions,
org-export-filter-entity-functions,
org-export-filter-export-snippet-functions,
org-export-filter-footnote-reference-functions,
org-export-filter-inline-babel-call-functions,
org-export-filter-inline-src-block-functions,
org-export-filter-latex-fragment-functions,
org-export-filter-line-break-functions,
org-export-filter-link-functions,
org-export-filter-macro-functions,
org-export-filter-radio-target-functions,
org-export-filter-statistics-cookie-functions,
org-export-filter-subscript-functions,
org-export-filter-superscript-functions,
org-export-filter-target-functions,
org-export-filter-time-stamp-functions,
org-export-filter-verbatim-functions): New variables.
2011-11-25 15:02:27 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
2018-09-20 09:23:49 +00:00
|
|
|
|
Return a list of `src-block' elements with a caption."
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(org-export-collect-elements 'src-block info))
|
|
|
|
|
|
2017-10-15 10:15:06 +00:00
|
|
|
|
(defun org-export-excluded-from-toc-p (headline info)
|
|
|
|
|
"Non-nil if HEADLINE should be excluded from tables of contents.
|
|
|
|
|
|
|
|
|
|
INFO is a plist used as a communication channel.
|
|
|
|
|
|
|
|
|
|
Note that such headlines are already excluded from
|
|
|
|
|
`org-export-collect-headlines'. Therefore, this function is not
|
|
|
|
|
necessary if you only need to list headlines in the table of
|
|
|
|
|
contents. However, it is useful if some additional processing is
|
|
|
|
|
required on headlines excluded from table of contents."
|
|
|
|
|
(or (org-element-property :footnote-section-p headline)
|
|
|
|
|
(org-export-low-level-p headline info)
|
2017-11-20 13:07:03 +00:00
|
|
|
|
(equal "notoc" (org-export-get-node-property :UNNUMBERED headline t))))
|
2017-10-15 10:15:06 +00:00
|
|
|
|
|
2017-10-14 10:29:52 +00:00
|
|
|
|
(defun org-export-toc-entry-backend (parent &rest transcoders)
|
|
|
|
|
"Return an export back-end appropriate for table of contents entries.
|
|
|
|
|
|
|
|
|
|
PARENT is an export back-end the returned back-end should inherit
|
|
|
|
|
from.
|
|
|
|
|
|
|
|
|
|
By default, the back-end removes footnote references and targets.
|
|
|
|
|
It also changes links and radio targets into regular text.
|
|
|
|
|
TRANSCODERS optional argument, when non-nil, specifies additional
|
|
|
|
|
transcoders. A transcoder follows the pattern (TYPE . FUNCTION)
|
|
|
|
|
where type is an element or object type and FUNCTION the function
|
|
|
|
|
transcoding it."
|
|
|
|
|
(declare (indent 1))
|
|
|
|
|
(org-export-create-backend
|
|
|
|
|
:parent parent
|
|
|
|
|
:transcoders
|
|
|
|
|
(append transcoders
|
|
|
|
|
`((footnote-reference . ,#'ignore)
|
|
|
|
|
(link . ,(lambda (l c i)
|
|
|
|
|
(or c
|
|
|
|
|
(org-export-data
|
|
|
|
|
(org-element-property :raw-link l)
|
|
|
|
|
i))))
|
|
|
|
|
(radio-target . ,(lambda (_r c _) c))
|
|
|
|
|
(target . ,#'ignore)))))
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2012-10-25 21:54:53 +00:00
|
|
|
|
;;;; Smart Quotes
|
2012-11-19 20:29:00 +00: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'.
|
2012-10-25 21:54:53 +00:00
|
|
|
|
|
|
|
|
|
(defconst org-export-smart-quotes-alist
|
2016-12-28 23:34:37 +00:00
|
|
|
|
'(("ar"
|
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening :utf-8 "‹" :html "‹" :latex "\\guilsinglleft{}"
|
|
|
|
|
:texinfo "@guilsinglleft{}")
|
|
|
|
|
(secondary-closing :utf-8 "›" :html "›" :latex "\\guilsinglright{}"
|
|
|
|
|
:texinfo "@guilsinglright{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("da"
|
2013-07-03 10:15:26 +00:00
|
|
|
|
;; one may use: »...«, "...", ›...‹, or '...'.
|
2020-10-01 13:24:21 +00:00
|
|
|
|
;; https://sproget.dk/raad-og-regler/retskrivningsregler/retskrivningsregler/a7-40-60/a7-58-anforselstegn/
|
2013-07-03 10:15:26 +00:00
|
|
|
|
;; LaTeX quotes require Babel!
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "»" :html "»" :latex ">>" :texinfo "@guillemetright{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "«" :html "«" :latex "<<" :texinfo "@guillemetleft{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "›" :html "›" :latex "\\frq{}" :texinfo "@guilsinglright{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "‹" :html "‹" :latex "\\flq{}" :texinfo "@guilsingleft{}")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("de"
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "„" :html "„" :latex "\"`" :texinfo "@quotedblbase{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "“" :html "“" :latex "\"'" :texinfo "@quotedblleft{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "‚" :html "‚" :latex "\\glq{}" :texinfo "@quotesinglbase{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "‘" :html "‘" :latex "\\grq{}" :texinfo "@quoteleft{}")
|
2012-10-25 21:54:53 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("en"
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening :utf-8 "“" :html "“" :latex "``" :texinfo "``")
|
|
|
|
|
(primary-closing :utf-8 "”" :html "”" :latex "''" :texinfo "''")
|
|
|
|
|
(secondary-opening :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
|
|
|
|
(secondary-closing :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
2012-10-25 21:54:53 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("es"
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening :utf-8 "“" :html "“" :latex "``" :texinfo "``")
|
|
|
|
|
(secondary-closing :utf-8 "”" :html "”" :latex "''" :texinfo "''")
|
2012-10-25 21:54:53 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("fr"
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "« " :html "« " :latex "\\og "
|
|
|
|
|
:texinfo "@guillemetleft{}@tie{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 " »" :html " »" :latex "\\fg{}"
|
|
|
|
|
:texinfo "@tie{}@guillemetright{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "« " :html "« " :latex "\\og "
|
|
|
|
|
:texinfo "@guillemetleft{}@tie{}")
|
|
|
|
|
(secondary-closing :utf-8 " »" :html " »" :latex "\\fg{}"
|
|
|
|
|
:texinfo "@tie{}@guillemetright{}")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
2016-10-19 10:23:34 +00:00
|
|
|
|
("is"
|
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "„" :html "„" :latex "\"`" :texinfo "@quotedblbase{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "“" :html "“" :latex "\"'" :texinfo "@quotedblleft{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "‚" :html "‚" :latex "\\glq{}" :texinfo "@quotesinglbase{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "‘" :html "‘" :latex "\\grq{}" :texinfo "@quoteleft{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no"
|
|
|
|
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
|
|
|
|
(secondary-closing :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("nb"
|
|
|
|
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
|
|
|
|
(secondary-closing :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
|
|
|
|
("nn"
|
|
|
|
|
;; https://nn.wikipedia.org/wiki/Sitatteikn
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening :utf-8 "‘" :html "‘" :latex "`" :texinfo "`")
|
|
|
|
|
(secondary-closing :utf-8 "’" :html "’" :latex "'" :texinfo "'")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
2020-07-09 17:01:13 +00:00
|
|
|
|
("ro"
|
|
|
|
|
(primary-opening
|
|
|
|
|
:utf-8 "„" :html "„" :latex "\"`" :texinfo "@quotedblbase{}")
|
|
|
|
|
(primary-closing :utf-8 "”" :html "”" :latex "''" :texinfo "''")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "«" :html "«" :latex "\\guillemotleft{}"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "»" :html "»" :latex "\\guillemotright{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
2013-11-14 15:26:53 +00:00
|
|
|
|
("ru"
|
2020-10-01 13:24:21 +00:00
|
|
|
|
;; https://ru.wikipedia.org/wiki/%D0%9A%D0%B0%D0%B2%D1%8B%D1%87%D0%BA%D0%B8#.D0.9A.D0.B0.D0.B2.D1.8B.D1.87.D0.BA.D0.B8.2C_.D0.B8.D1.81.D0.BF.D0.BE.D0.BB.D1.8C.D0.B7.D1.83.D0.B5.D0.BC.D1.8B.D0.B5_.D0.B2_.D1.80.D1.83.D1.81.D1.81.D0.BA.D0.BE.D0.BC_.D1.8F.D0.B7.D1.8B.D0.BA.D0.B5
|
2021-03-21 18:55:14 +00:00
|
|
|
|
;; https://www.artlebedev.ru/kovodstvo/sections/104/
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening :utf-8 "«" :html "«" :latex "{}<<"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing :utf-8 "»" :html "»" :latex ">>{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "„" :html "„" :latex "\\glqq{}" :texinfo "@quotedblbase{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "“" :html "“" :latex "\\grqq{}" :texinfo "@quotedblleft{}")
|
2013-11-14 15:26:53 +00:00
|
|
|
|
(apostrophe :utf-8 "’" :html: "'"))
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl"
|
|
|
|
|
;; Based on https://sl.wikipedia.org/wiki/Narekovaj
|
|
|
|
|
(primary-opening :utf-8 "«" :html "«" :latex "{}<<"
|
|
|
|
|
:texinfo "@guillemetleft{}")
|
|
|
|
|
(primary-closing :utf-8 "»" :html "»" :latex ">>{}"
|
|
|
|
|
:texinfo "@guillemetright{}")
|
|
|
|
|
(secondary-opening
|
|
|
|
|
:utf-8 "„" :html "„" :latex "\\glqq{}" :texinfo "@quotedblbase{}")
|
|
|
|
|
(secondary-closing
|
|
|
|
|
:utf-8 "“" :html "“" :latex "\\grqq{}" :texinfo "@quotedblleft{}")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’"))
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
;; Based on https://sv.wikipedia.org/wiki/Citattecken
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(primary-opening :utf-8 "”" :html "”" :latex "’’" :texinfo "’’")
|
|
|
|
|
(primary-closing :utf-8 "”" :html "”" :latex "’’" :texinfo "’’")
|
|
|
|
|
(secondary-opening :utf-8 "’" :html "’" :latex "’" :texinfo "`")
|
|
|
|
|
(secondary-closing :utf-8 "’" :html "’" :latex "’" :texinfo "'")
|
|
|
|
|
(apostrophe :utf-8 "’" :html "’")))
|
2012-10-25 21:54:53 +00:00
|
|
|
|
"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.
|
|
|
|
|
|
2015-10-03 07:19:21 +00:00
|
|
|
|
A quote type can be any symbol among `primary-opening',
|
|
|
|
|
`primary-closing', `secondary-opening', `secondary-closing' and
|
|
|
|
|
`apostrophe'.
|
2012-10-25 21:54:53 +00:00
|
|
|
|
|
|
|
|
|
Valid encodings include `:utf-8', `:html', `:latex' and
|
|
|
|
|
`:texinfo'.
|
|
|
|
|
|
|
|
|
|
If no translation is found, the quote character is left as-is.")
|
|
|
|
|
|
2015-03-28 14:08:44 +00:00
|
|
|
|
(defun org-export--smart-quote-status (s info)
|
|
|
|
|
"Return smart quote status at the beginning of string S.
|
|
|
|
|
INFO is the current export state, as a plist."
|
|
|
|
|
(let* ((parent (org-element-property :parent s))
|
|
|
|
|
(cache (or (plist-get info :smart-quote-cache)
|
|
|
|
|
(let ((table (make-hash-table :test #'eq)))
|
|
|
|
|
(plist-put info :smart-quote-cache table)
|
|
|
|
|
table)))
|
|
|
|
|
(value (gethash parent cache 'missing-data)))
|
|
|
|
|
(if (not (eq value 'missing-data)) (cdr (assq s value))
|
2015-09-02 19:02:41 +00:00
|
|
|
|
(let (level1-open full-status)
|
2016-03-10 09:10:29 +00:00
|
|
|
|
(org-element-map
|
|
|
|
|
(let ((secondary (org-element-secondary-p s)))
|
|
|
|
|
(if secondary (org-element-property secondary parent)
|
|
|
|
|
(org-element-contents parent)))
|
|
|
|
|
'plain-text
|
2015-03-28 14:08:44 +00:00
|
|
|
|
(lambda (text)
|
|
|
|
|
(let ((start 0) current-status)
|
|
|
|
|
(while (setq start (string-match "['\"]" text start))
|
|
|
|
|
(push
|
|
|
|
|
(cond
|
|
|
|
|
((equal (match-string 0 text) "\"")
|
|
|
|
|
(setf level1-open (not level1-open))
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(if level1-open 'primary-opening 'primary-closing))
|
2015-03-28 14:08:44 +00:00
|
|
|
|
;; Not already in a level 1 quote: this is an
|
|
|
|
|
;; apostrophe.
|
|
|
|
|
((not level1-open) 'apostrophe)
|
2015-09-02 19:02:41 +00:00
|
|
|
|
;; Extract previous char and next char. As
|
|
|
|
|
;; a special case, they can also be set to `blank',
|
|
|
|
|
;; `no-blank' or nil. Then determine if current
|
|
|
|
|
;; match is allowed as an opening quote or a closing
|
|
|
|
|
;; quote.
|
|
|
|
|
(t
|
|
|
|
|
(let* ((previous
|
|
|
|
|
(if (> start 0) (substring text (1- start) start)
|
|
|
|
|
(let ((p (org-export-get-previous-element
|
|
|
|
|
text info)))
|
|
|
|
|
(cond ((not p) nil)
|
2015-12-02 22:27:28 +00:00
|
|
|
|
((stringp p) (substring p -1))
|
2015-09-02 19:02:41 +00:00
|
|
|
|
((memq (org-element-property :post-blank p)
|
|
|
|
|
'(0 nil))
|
|
|
|
|
'no-blank)
|
|
|
|
|
(t 'blank)))))
|
|
|
|
|
(next
|
|
|
|
|
(if (< (1+ start) (length text))
|
|
|
|
|
(substring text (1+ start) (+ start 2))
|
|
|
|
|
(let ((n (org-export-get-next-element text info)))
|
|
|
|
|
(cond ((not n) nil)
|
|
|
|
|
((stringp n) (substring n 0 1))
|
|
|
|
|
(t 'no-blank)))))
|
|
|
|
|
(allow-open
|
|
|
|
|
(and (if (stringp previous)
|
|
|
|
|
(string-match "\\s\"\\|\\s-\\|\\s("
|
|
|
|
|
previous)
|
|
|
|
|
(memq previous '(blank nil)))
|
|
|
|
|
(if (stringp next)
|
|
|
|
|
(string-match "\\w\\|\\s.\\|\\s_" next)
|
|
|
|
|
(eq next 'no-blank))))
|
|
|
|
|
(allow-close
|
|
|
|
|
(and (if (stringp previous)
|
|
|
|
|
(string-match "\\w\\|\\s.\\|\\s_" previous)
|
|
|
|
|
(eq previous 'no-blank))
|
|
|
|
|
(if (stringp next)
|
|
|
|
|
(string-match "\\s-\\|\\s)\\|\\s.\\|\\s\""
|
|
|
|
|
next)
|
|
|
|
|
(memq next '(blank nil))))))
|
|
|
|
|
(cond
|
|
|
|
|
((and allow-open allow-close) (error "Should not happen"))
|
2015-10-03 07:19:21 +00:00
|
|
|
|
(allow-open 'secondary-opening)
|
|
|
|
|
(allow-close 'secondary-closing)
|
2015-09-02 19:02:41 +00:00
|
|
|
|
(t 'apostrophe)))))
|
|
|
|
|
current-status)
|
2015-09-02 19:05:46 +00:00
|
|
|
|
(cl-incf start))
|
2015-03-28 14:08:44 +00:00
|
|
|
|
(when current-status
|
|
|
|
|
(push (cons text (nreverse current-status)) full-status))))
|
|
|
|
|
info nil org-element-recursive-objects)
|
|
|
|
|
(puthash parent full-status cache)
|
|
|
|
|
(cdr (assq s full-status))))))
|
2012-10-25 21:54:53 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-activate-smart-quotes (s encoding info &optional original)
|
|
|
|
|
"Replace regular quotes with \"smart\" quotes in string S.
|
|
|
|
|
|
2012-11-19 20:29:00 +00:00
|
|
|
|
ENCODING is a symbol among `:html', `:latex', `:texinfo' and
|
|
|
|
|
`:utf-8'. INFO is a plist used as a communication channel.
|
2012-10-25 21:54:53 +00: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."
|
2015-03-28 14:08:44 +00:00
|
|
|
|
(let ((quote-status
|
|
|
|
|
(copy-sequence (org-export--smart-quote-status (or original s) info))))
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"['\"]"
|
|
|
|
|
(lambda (match)
|
|
|
|
|
(or (plist-get
|
|
|
|
|
(cdr (assq (pop quote-status)
|
|
|
|
|
(cdr (assoc (plist-get info :language)
|
|
|
|
|
org-export-smart-quotes-alist))))
|
|
|
|
|
encoding)
|
|
|
|
|
match))
|
|
|
|
|
s nil t)))
|
2012-10-25 21:54:53 +00:00
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;;;; Topology
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; Here are various functions to retrieve information about the
|
2014-01-12 08:54:21 +00:00
|
|
|
|
;; neighborhood of a given element or object. Neighbors of interest
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; 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 19:00:47 +00: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 20:38:12 +00:00
|
|
|
|
;; (`org-export-get-previous-element') and next element or object
|
|
|
|
|
;; (`org-export-get-next-element').
|
|
|
|
|
|
2014-05-28 11:18:05 +00:00
|
|
|
|
;; defsubst org-export-get-parent must be defined before first use
|
2014-05-28 14:15:47 +00: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 19:00:47 +00:00
|
|
|
|
(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 06:54:24 +00: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 19:00:47 +00:00
|
|
|
|
BLOB is the element or object being considered."
|
2014-11-16 12:27:34 +00:00
|
|
|
|
(org-element-lineage blob '(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 19:00:47 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-get-parent-element (object)
|
|
|
|
|
"Return first element containing OBJECT or nil.
|
|
|
|
|
OBJECT is the object to consider."
|
2014-11-16 12:27:34 +00:00
|
|
|
|
(org-element-lineage object org-element-all-elements))
|
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 19:00:47 +00:00
|
|
|
|
|
|
|
|
|
(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 06:54:24 +00: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 19:00:47 +00:00
|
|
|
|
OBJECT is either a `table-cell' or `table-element' type object."
|
2014-11-16 12:27:34 +00:00
|
|
|
|
(org-element-lineage object '(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 06:54:24 +00:00
|
|
|
|
|
2012-12-08 17:57:10 +00:00
|
|
|
|
(defun org-export-get-previous-element (blob info &optional n)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"Return previous element or object.
|
2012-12-08 17:57:10 +00:00
|
|
|
|
|
2012-07-27 14:13:57 +00:00
|
|
|
|
BLOB is an element or object. INFO is a plist used as
|
|
|
|
|
a communication channel. Return previous exportable element or
|
2012-12-08 17:57:10 +00:00
|
|
|
|
object, a string, or nil.
|
|
|
|
|
|
|
|
|
|
When optional argument N is a positive integer, return a list
|
2013-02-25 22:16:14 +00:00
|
|
|
|
containing up to N siblings before BLOB, from farthest to
|
|
|
|
|
closest. With any other non-nil value, return a list containing
|
2012-12-10 07:53:00 +00:00
|
|
|
|
all of them."
|
2013-11-30 14:23:07 +00:00
|
|
|
|
(let* ((secondary (org-element-secondary-p blob))
|
|
|
|
|
(parent (org-export-get-parent blob))
|
|
|
|
|
(siblings
|
|
|
|
|
(if secondary (org-element-property secondary parent)
|
|
|
|
|
(org-element-contents parent)))
|
|
|
|
|
prev)
|
2012-07-27 14:13:57 +00:00
|
|
|
|
(catch 'exit
|
2013-11-30 14:23:07 +00:00
|
|
|
|
(dolist (obj (cdr (memq blob (reverse siblings))) prev)
|
|
|
|
|
(cond ((memq obj (plist-get info :ignore-list)))
|
|
|
|
|
((null n) (throw 'exit obj))
|
|
|
|
|
((not (wholenump n)) (push obj prev))
|
|
|
|
|
((zerop n) (throw 'exit prev))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(t (cl-decf n) (push obj prev)))))))
|
2012-12-08 17:57:10 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-get-next-element (blob info &optional n)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"Return next element or object.
|
2012-12-08 17:57:10 +00:00
|
|
|
|
|
2012-07-27 14:13:57 +00:00
|
|
|
|
BLOB is an element or object. INFO is a plist used as
|
|
|
|
|
a communication channel. Return next exportable element or
|
2012-12-08 17:57:10 +00:00
|
|
|
|
object, a string, or nil.
|
|
|
|
|
|
|
|
|
|
When optional argument N is a positive integer, return a list
|
2012-12-10 07:53:00 +00:00
|
|
|
|
containing up to N siblings after BLOB, from closest to farthest.
|
|
|
|
|
With any other non-nil value, return a list containing all of
|
|
|
|
|
them."
|
2013-11-30 14:23:07 +00:00
|
|
|
|
(let* ((secondary (org-element-secondary-p blob))
|
|
|
|
|
(parent (org-export-get-parent blob))
|
|
|
|
|
(siblings
|
|
|
|
|
(cdr (memq blob
|
|
|
|
|
(if secondary (org-element-property secondary parent)
|
|
|
|
|
(org-element-contents parent)))))
|
|
|
|
|
next)
|
2012-12-08 17:57:10 +00:00
|
|
|
|
(catch 'exit
|
2013-11-30 14:23:07 +00:00
|
|
|
|
(dolist (obj siblings (nreverse next))
|
|
|
|
|
(cond ((memq obj (plist-get info :ignore-list)))
|
|
|
|
|
((null n) (throw 'exit obj))
|
|
|
|
|
((not (wholenump n)) (push obj next))
|
|
|
|
|
((zerop n) (throw 'exit (nreverse next)))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(t (cl-decf n) (push obj next)))))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2012-01-07 13:25:33 +00:00
|
|
|
|
|
2012-07-12 11:20:09 +00:00
|
|
|
|
;;;; Translation
|
|
|
|
|
;;
|
2013-07-23 23:37:16 +00:00
|
|
|
|
;; `org-export-translate' translates a string according to the language
|
|
|
|
|
;; specified by the LANGUAGE keyword. `org-export-dictionary' contains
|
2012-07-12 11:20:09 +00:00
|
|
|
|
;; the dictionary used for the translation.
|
|
|
|
|
|
|
|
|
|
(defconst org-export-dictionary
|
2013-06-26 13:22:09 +00:00
|
|
|
|
'(("%e %n: %c"
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("fr" :default "%e %n : %c" :html "%e %n : %c"))
|
2013-06-26 13:22:09 +00:00
|
|
|
|
("Author"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "تأليف")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ca" :default "Autor")
|
|
|
|
|
("cs" :default "Autor")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Forfatter")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("de" :default "Autor")
|
|
|
|
|
("eo" :html "Aŭtoro")
|
|
|
|
|
("es" :default "Autor")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Autor")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("fi" :html "Tekijä")
|
|
|
|
|
("fr" :default "Auteur")
|
|
|
|
|
("hu" :default "Szerzõ")
|
|
|
|
|
("is" :html "Höfundur")
|
|
|
|
|
("it" :default "Autore")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "著者" :html "著者")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("nl" :default "Auteur")
|
|
|
|
|
("no" :default "Forfatter")
|
|
|
|
|
("nb" :default "Forfatter")
|
|
|
|
|
("nn" :default "Forfattar")
|
|
|
|
|
("pl" :default "Autor")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :default "Autor")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Autor")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ru" :html "Автор" :utf-8 "Автор")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Avtor")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("sv" :html "Författare")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Yazar")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("uk" :html "Автор" :utf-8 "Автор")
|
|
|
|
|
("zh-CN" :html "作者" :utf-8 "作者")
|
|
|
|
|
("zh-TW" :html "作者" :utf-8 "作者"))
|
2013-10-29 14:31:22 +00:00
|
|
|
|
("Continued from previous page"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "تتمة الصفحة السابقة")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Pokračování z předchozí strany")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("de" :default "Fortsetzung von vorheriger Seite")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :html "Continúa de la página anterior" :ascii "Continua de la pagina anterior" :default "Continúa de la página anterior")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("fr" :default "Suite de la page précédente")
|
|
|
|
|
("it" :default "Continua da pagina precedente")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "前ページからの続き")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("nl" :default "Vervolg van vorige pagina")
|
2020-11-01 16:41:50 +00:00
|
|
|
|
("pl" :default "Ciąg dalszy poprzedniej strony")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("pt" :default "Continuação da página anterior")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Continuação da página anterior" :ascii "Continuacao da pagina anterior" :default "Continuação da página anterior")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Continuare de pe pagina precedentă")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "(Продолжение)"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
:utf-8 "(Продолжение)")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Nadaljevanje s prejšnje strani")
|
|
|
|
|
("tr" :default "Önceki sayfadan devam ediyor"))
|
2013-10-29 14:31:22 +00:00
|
|
|
|
("Continued on next page"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "التتمة في الصفحة التالية")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Pokračuje na další stránce")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("de" :default "Fortsetzung nächste Seite")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :html "Continúa en la siguiente página" :ascii "Continua en la siguiente pagina" :default "Continúa en la siguiente página")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("fr" :default "Suite page suivante")
|
|
|
|
|
("it" :default "Continua alla pagina successiva")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "次ページに続く")
|
2013-10-30 00:39:48 +00:00
|
|
|
|
("nl" :default "Vervolg op volgende pagina")
|
2020-11-01 16:41:50 +00:00
|
|
|
|
("pl" :default "Kontynuacja na następnej stronie")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("pt" :default "Continua na página seguinte")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Continua na próxima página" :ascii "Continua na proxima pagina" :default "Continua na próxima página")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Continuare pe pagina următoare")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "(Продолжение следует)"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
:utf-8 "(Продолжение следует)")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Nadaljevanje na naslednji strani")
|
|
|
|
|
("tr" :default "Devamı sonraki sayfada"))
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("Created"
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Vytvořeno")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Gemaakt op") ;; must be followed by a date or date+time
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Criado em")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Creat")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Ustvarjeno")
|
|
|
|
|
("tr" :default "Oluşturuldu"))
|
2012-07-12 20:19:50 +00:00
|
|
|
|
("Date"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "بتاريخ")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ca" :default "Data")
|
|
|
|
|
("cs" :default "Datum")
|
|
|
|
|
("da" :default "Dato")
|
|
|
|
|
("de" :default "Datum")
|
|
|
|
|
("eo" :default "Dato")
|
|
|
|
|
("es" :default "Fecha")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :html "Kuupäev" :utf-8 "Kuupäev")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("fi" :html "Päivämäärä")
|
|
|
|
|
("hu" :html "Dátum")
|
|
|
|
|
("is" :default "Dagsetning")
|
|
|
|
|
("it" :default "Data")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "日付" :html "日付")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("nl" :default "Datum")
|
|
|
|
|
("no" :default "Dato")
|
|
|
|
|
("nb" :default "Dato")
|
|
|
|
|
("nn" :default "Dato")
|
|
|
|
|
("pl" :default "Data")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Data")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :default "Data")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ru" :html "Дата" :utf-8 "Дата")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Datum")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("sv" :default "Datum")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Tarih")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("uk" :html "Дата" :utf-8 "Дата")
|
|
|
|
|
("zh-CN" :html "日期" :utf-8 "日期")
|
|
|
|
|
("zh-TW" :html "日期" :utf-8 "日期"))
|
|
|
|
|
("Equation"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "معادلة")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Rovnice")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Ligning")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Gleichung")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Ecuacion" :html "Ecuación" :default "Ecuación")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :html "Võrrand" :utf-8 "Võrrand")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :ascii "Equation" :default "Équation")
|
2016-10-19 16:02:59 +00:00
|
|
|
|
("is" :default "Jafna")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "方程式")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Vergelijking")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Ligning")
|
|
|
|
|
("nb" :default "Ligning")
|
|
|
|
|
("nn" :default "Likning")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :html "Equação" :default "Equação" :ascii "Equacao")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Ecuația")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Уравнение"
|
|
|
|
|
:utf-8 "Уравнение")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Enačba")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv" :default "Ekvation")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Eşitlik")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "方程" :utf-8 "方程"))
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("Figure"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "شكل")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Obrázek")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Figur")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Abbildung")
|
2013-06-29 06:06:49 +00:00
|
|
|
|
("es" :default "Figura")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Joonis")
|
2016-10-19 16:02:59 +00:00
|
|
|
|
("is" :default "Mynd")
|
2018-06-26 10:00:30 +00:00
|
|
|
|
("it" :default "Figura")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "図" :html "図")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Figuur")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Illustrasjon")
|
|
|
|
|
("nb" :default "Illustrasjon")
|
|
|
|
|
("nn" :default "Illustrasjon")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :default "Figura")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Imaginea")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Рисунок" :utf-8 "Рисунок")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv" :default "Illustration")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Şekil")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "图" :utf-8 "图"))
|
2013-06-29 06:02:41 +00:00
|
|
|
|
("Figure %d:"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "شكل %d:")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Obrázek %d:")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Figur %d")
|
2013-06-29 06:02:41 +00:00
|
|
|
|
("de" :default "Abbildung %d:")
|
2013-06-29 06:06:49 +00:00
|
|
|
|
("es" :default "Figura %d:")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Joonis %d:")
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("fr" :default "Figure %d :" :html "Figure %d :")
|
2016-10-19 16:02:59 +00:00
|
|
|
|
("is" :default "Mynd %d")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Figura %d:")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "図%d: " :html "図%d: ")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Figuur %d:" :html "Figuur %d:")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Illustrasjon %d")
|
|
|
|
|
("nb" :default "Illustrasjon %d")
|
|
|
|
|
("nn" :default "Illustrasjon %d")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :default "Figura %d:")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Imaginea %d:")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Рис. %d.:" :utf-8 "Рис. %d.:")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Slika %d")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv" :default "Illustration %d")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Şekil %d:")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "图%d " :utf-8 "图%d "))
|
2012-07-12 20:19:50 +00:00
|
|
|
|
("Footnotes"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "الهوامش")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ca" :html "Peus de pàgina")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Poznámky pod čarou")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("da" :default "Fodnoter")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :html "Fußnoten" :default "Fußnoten")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("eo" :default "Piednotoj")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Nota al pie de pagina" :html "Nota al pie de página" :default "Nota al pie de página")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :html "Allmärkused" :utf-8 "Allmärkused")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("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")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "脚注" :html "脚注")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("nl" :default "Voetnoten")
|
|
|
|
|
("no" :default "Fotnoter")
|
|
|
|
|
("nb" :default "Fotnoter")
|
|
|
|
|
("nn" :default "Fotnotar")
|
|
|
|
|
("pl" :default "Przypis")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :html "Notas de Rodapé" :default "Notas de Rodapé" :ascii "Notas de Rodape")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Note de subsol")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ru" :html "Сноски" :utf-8 "Сноски")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Opombe")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("sv" :default "Fotnoter")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Dipnotlar")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("uk" :html "Примітки"
|
|
|
|
|
:utf-8 "Примітки")
|
|
|
|
|
("zh-CN" :html "脚注" :utf-8 "脚注")
|
|
|
|
|
("zh-TW" :html "腳註" :utf-8 "腳註"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("List of Listings"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "قائمة بالبرامج")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Seznam programů")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Programmer")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Programmauflistungsverzeichnis")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Indice de Listados de programas" :html "Índice de Listados de programas" :default "Índice de Listados de programas")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Loendite nimekiri")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :default "Liste des programmes")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "ソースコード目次")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Lijst van programma's")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Dataprogrammer")
|
|
|
|
|
("nb" :default "Dataprogrammer")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Índice de Listagens" :default "Índice de Listagens" :ascii "Indice de Listagens")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Список распечаток"
|
|
|
|
|
:utf-8 "Список распечаток")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Seznam programskih izpisov")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Program Listesi")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "代码目录" :utf-8 "代码目录"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("List of Tables"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "قائمة بالجداول")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Seznam tabulek")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Tabeller")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Tabellenverzeichnis")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Indice de tablas" :html "Índice de tablas" :default "Índice de tablas")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Tabelite nimekiri")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :default "Liste des tableaux")
|
2016-10-19 21:22:12 +00:00
|
|
|
|
("is" :default "Töfluskrá" :html "Töfluskrá")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Indice delle tabelle")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "表目次")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Lijst van tabellen")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Tabeller")
|
|
|
|
|
("nb" :default "Tabeller")
|
|
|
|
|
("nn" :default "Tabeller")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Índice de Tabelas" :default "Índice de Tabelas" :ascii "Indice de Tabelas")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Tabele")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Список таблиц"
|
|
|
|
|
:utf-8 "Список таблиц")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Seznam tabel")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv" :default "Tabeller")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Tablo Listesi")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "表格目录" :utf-8 "表格目录"))
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("Listing"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "برنامج")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Program")
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("da" :default "Program")
|
|
|
|
|
("de" :default "Programmlisting")
|
|
|
|
|
("es" :default "Listado de programa")
|
|
|
|
|
("et" :default "Loend")
|
|
|
|
|
("fr" :default "Programme" :html "Programme")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Listato")
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("ja" :default "ソースコード")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Programma")
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("no" :default "Dataprogram")
|
|
|
|
|
("nb" :default "Dataprogram")
|
|
|
|
|
("pt_BR" :default "Listagem")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Lista")
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("ru" :html "Распечатка"
|
|
|
|
|
:utf-8 "Распечатка")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Izpis programa")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Program")
|
2015-05-26 08:02:36 +00:00
|
|
|
|
("zh-CN" :html "代码" :utf-8 "代码"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("Listing %d:"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "برنامج %d:")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Program %d:")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Program %d")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Programmlisting %d")
|
|
|
|
|
("es" :default "Listado de programa %d")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Loend %d")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :default "Programme %d :" :html "Programme %d :")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Listato %d :")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "ソースコード%d:")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Programma %d:" :html "Programma %d:")
|
2013-10-29 14:31:22 +00:00
|
|
|
|
("no" :default "Dataprogram %d")
|
|
|
|
|
("nb" :default "Dataprogram %d")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Lista %d")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Listagem %d:")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Распечатка %d.:"
|
|
|
|
|
:utf-8 "Распечатка %d.:")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Izpis programa %d")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Program %d:")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "代码%d " :utf-8 "代码%d "))
|
2014-04-17 15:25:03 +00:00
|
|
|
|
("References"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "المراجع")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Reference")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("de" :default "Quellen")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("es" :default "Referencias")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("fr" :ascii "References" :default "Références")
|
|
|
|
|
("it" :default "Riferimenti")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Bronverwijzingen")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Referências" :default "Referências" :ascii "Referencias")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Bibliografie")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Reference")
|
|
|
|
|
("tr" :default "Referanslar"))
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("See figure %s"
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Viz obrázek %s")
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("fr" :default "cf. figure %s"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
:html "cf. figure %s" :latex "cf.~figure~%s")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Vedi figura %s")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Zie figuur %s"
|
|
|
|
|
:html "Zie figuur %s" :latex "Zie figuur~%s")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Veja a figura %s")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Vezi figura %s")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Glej sliko %s")
|
|
|
|
|
("tr" :default "bkz. şekil %s"))
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("See listing %s"
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Viz program %s")
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("fr" :default "cf. programme %s"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
:html "cf. programme %s" :latex "cf.~programme~%s")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Zie programma %s"
|
|
|
|
|
:html "Zie programma %s" :latex "Zie programma~%s")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Veja a listagem %s")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Vezi tabelul %s")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Glej izpis programa %s")
|
|
|
|
|
("tr" :default "bkz. program %s"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("See section %s"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "انظر قسم %s")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Viz sekce %s")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "jævnfør afsnit %s")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "siehe Abschnitt %s")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Vea seccion %s" :html "Vea sección %s" :default "Vea sección %s")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :html "Vaata peatükki %s" :utf-8 "Vaata peatükki %s")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :default "cf. section %s")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Vedi sezione %s")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "セクション %s を参照")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Zie sectie %s"
|
|
|
|
|
:html "Zie sectie %s" :latex "Zie sectie~%s")
|
2014-11-06 23:16:42 +00:00
|
|
|
|
("pt_BR" :html "Veja a seção %s" :default "Veja a seção %s"
|
|
|
|
|
:ascii "Veja a secao %s")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Vezi secțiunea %s")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "См. раздел %s"
|
|
|
|
|
:utf-8 "См. раздел %s")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Glej poglavje %d")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "bkz. bölüm %s")
|
2013-10-29 14:31:22 +00:00
|
|
|
|
("zh-CN" :html "参见第%s节" :utf-8 "参见第%s节"))
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("See table %s"
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Viz tabulka %s")
|
2016-12-15 14:59:11 +00:00
|
|
|
|
("fr" :default "cf. tableau %s"
|
2017-02-03 11:05:50 +00:00
|
|
|
|
:html "cf. tableau %s" :latex "cf.~tableau~%s")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Vedi tabella %s")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Zie tabel %s"
|
|
|
|
|
:html "Zie tabel %s" :latex "Zie tabel~%s")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Veja a tabela %s")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Vezi tabelul %s")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("sl" :default "Glej tabelo %s")
|
|
|
|
|
("tr" :default "bkz. tablo %s"))
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("Table"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "جدول")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Tabulka")
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("de" :default "Tabelle")
|
|
|
|
|
("es" :default "Tabla")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Tabel")
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("fr" :default "Tableau")
|
2016-10-19 16:02:59 +00:00
|
|
|
|
("is" :default "Tafla")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Tabella")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "表" :html "表")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Tabel")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :default "Tabela")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Tabel")
|
2014-11-06 23:16:42 +00:00
|
|
|
|
("ru" :html "Таблица"
|
|
|
|
|
:utf-8 "Таблица")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Tablo")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "表" :utf-8 "表"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("Table %d:"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "جدول %d:")
|
2017-11-12 21:37:04 +00:00
|
|
|
|
("cs" :default "Tabulka %d:")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "Tabel %d")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Tabelle %d")
|
|
|
|
|
("es" :default "Tabla %d")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Tabel %d")
|
2013-06-29 13:42:41 +00:00
|
|
|
|
("fr" :default "Tableau %d :")
|
2016-10-19 16:02:59 +00:00
|
|
|
|
("is" :default "Tafla %d")
|
2018-08-21 19:50:08 +00:00
|
|
|
|
("it" :default "Tabella %d:")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "表%d:" :html "表%d:")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Tabel %d:" :html "Tabel %d:")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("no" :default "Tabell %d")
|
|
|
|
|
("nb" :default "Tabell %d")
|
|
|
|
|
("nn" :default "Tabell %d")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :default "Tabela %d:")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Tabel %d")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Таблица %d.:"
|
|
|
|
|
:utf-8 "Таблица %d.:")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Tabela %d")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("sv" :default "Tabell %d")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Tablo %d")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "表%d " :utf-8 "表%d "))
|
2012-07-12 20:25:04 +00:00
|
|
|
|
("Table of Contents"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "قائمة المحتويات")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ca" :html "Índex")
|
|
|
|
|
("cs" :default "Obsah")
|
|
|
|
|
("da" :default "Indhold")
|
|
|
|
|
("de" :default "Inhaltsverzeichnis")
|
|
|
|
|
("eo" :default "Enhavo")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :ascii "Indice" :html "Índice" :default "Índice")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Sisukord")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("fi" :html "Sisällysluettelo")
|
|
|
|
|
("fr" :ascii "Sommaire" :default "Table des matières")
|
|
|
|
|
("hu" :html "Tartalomjegyzék")
|
|
|
|
|
("is" :default "Efnisyfirlit")
|
|
|
|
|
("it" :default "Indice")
|
2014-01-02 08:15:17 +00:00
|
|
|
|
("ja" :default "目次" :html "目次")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("nl" :default "Inhoudsopgave")
|
|
|
|
|
("no" :default "Innhold")
|
|
|
|
|
("nb" :default "Innhold")
|
|
|
|
|
("nn" :default "Innhald")
|
|
|
|
|
("pl" :html "Spis treści")
|
2014-11-06 19:20:33 +00:00
|
|
|
|
("pt_BR" :html "Índice" :utf8 "Índice" :ascii "Indice")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Cuprins")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("ru" :html "Содержание"
|
|
|
|
|
:utf-8 "Содержание")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Kazalo")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("sv" :html "Innehåll")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "İçindekiler")
|
2012-08-25 12:04:01 +00:00
|
|
|
|
("uk" :html "Зміст" :utf-8 "Зміст")
|
|
|
|
|
("zh-CN" :html "目录" :utf-8 "目录")
|
|
|
|
|
("zh-TW" :html "目錄" :utf-8 "目錄"))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
("Unknown reference"
|
2016-12-28 23:34:37 +00:00
|
|
|
|
("ar" :default "مرجع غير معرّف")
|
2013-07-03 10:15:26 +00:00
|
|
|
|
("da" :default "ukendt reference")
|
2013-06-25 07:15:24 +00:00
|
|
|
|
("de" :default "Unbekannter Verweis")
|
2015-04-09 17:52:37 +00:00
|
|
|
|
("es" :default "Referencia desconocida")
|
2013-09-22 06:18:51 +00:00
|
|
|
|
("et" :default "Tundmatu viide")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("fr" :ascii "Destination inconnue" :default "Référence inconnue")
|
2018-08-20 09:09:13 +00:00
|
|
|
|
("it" :default "Riferimento sconosciuto")
|
2014-01-02 08:29:59 +00:00
|
|
|
|
("ja" :default "不明な参照先")
|
2020-05-15 19:19:04 +00:00
|
|
|
|
("nl" :default "Onbekende verwijzing")
|
2018-07-23 13:35:01 +00:00
|
|
|
|
("pt_BR" :html "Referência desconhecida" :default "Referência desconhecida" :ascii "Referencia desconhecida")
|
2020-04-20 13:33:38 +00:00
|
|
|
|
("ro" :default "Referință necunoscută")
|
2013-12-28 23:06:26 +00:00
|
|
|
|
("ru" :html "Неизвестная ссылка"
|
|
|
|
|
:utf-8 "Неизвестная ссылка")
|
2017-02-03 11:05:50 +00:00
|
|
|
|
("sl" :default "Neznana referenca")
|
2020-12-06 08:38:52 +00:00
|
|
|
|
("tr" :default "Bilinmeyen referans")
|
2013-07-02 05:44:56 +00:00
|
|
|
|
("zh-CN" :html "未知引用" :utf-8 "未知引用")))
|
2012-07-12 11:20:09 +00:00
|
|
|
|
"Dictionary for export engine.
|
|
|
|
|
|
2015-01-21 23:23:06 +00:00
|
|
|
|
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
|
2012-07-12 11:20:09 +00:00
|
|
|
|
properties are possible charsets and values translated terms.
|
|
|
|
|
|
2015-01-21 23:23:06 +00:00
|
|
|
|
It is used as a database for `org-export-translate'. Since this
|
2012-07-12 11:20:09 +00:00
|
|
|
|
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 10:05:20 +00: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 12:51:45 +00:00
|
|
|
|
and `:utf-8'. INFO is a plist used as a communication channel.
|
2012-07-14 10:05:20 +00:00
|
|
|
|
|
2015-01-21 23:23:06 +00: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."
|
2012-08-25 12:04:01 +00:00
|
|
|
|
(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 10:05:20 +00:00
|
|
|
|
|
2012-07-12 11:20:09 +00:00
|
|
|
|
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
;;; Asynchronous Export
|
|
|
|
|
;;
|
|
|
|
|
;; `org-export-async-start' is the entry point for asynchronous
|
|
|
|
|
;; export. It recreates current buffer (including visibility,
|
|
|
|
|
;; narrowing and visited file) in an external Emacs process, and
|
|
|
|
|
;; evaluates a command there. It then applies a function on the
|
|
|
|
|
;; returned results in the current process.
|
|
|
|
|
;;
|
2013-08-07 08:15:23 +00:00
|
|
|
|
;; At a higher level, `org-export-to-buffer' and `org-export-to-file'
|
2016-01-24 20:30:39 +00:00
|
|
|
|
;; allow exporting to a buffer or a file, asynchronously or not.
|
2013-08-07 08:15:23 +00: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.
|
|
|
|
|
;;
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;; Asynchronously generated results are never displayed directly.
|
|
|
|
|
;; Instead, they are stored in `org-export-stack-contents'. They can
|
|
|
|
|
;; then be retrieved by calling `org-export-stack'.
|
|
|
|
|
;;
|
|
|
|
|
;; Export Stack is viewed through a dedicated major mode
|
2013-01-27 22:11:34 +00:00
|
|
|
|
;;`org-export-stack-mode' and tools: `org-export-stack-refresh',
|
|
|
|
|
;;`org-export-stack-delete', `org-export-stack-view' and
|
|
|
|
|
;;`org-export-stack-clear'.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;;
|
|
|
|
|
;; For back-ends, `org-export-add-to-stack' add a new source to stack.
|
2013-08-07 08:15:23 +00:00
|
|
|
|
;; It should be used whenever `org-export-async-start' is called.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(defun org-export-async-start (fun body)
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
"Call function FUN on the results returned by BODY evaluation.
|
|
|
|
|
|
2021-04-20 03:37:50 +00:00
|
|
|
|
FUN is an anonymous function of one argument. BODY should be a valid
|
|
|
|
|
ELisp source expression. BODY evaluation happens in an asynchronous process,
|
|
|
|
|
from a buffer which is an exact copy of the current one.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
Use `org-export-add-to-stack' in FUN in order to register results
|
2013-08-07 08:15:23 +00:00
|
|
|
|
in the stack.
|
|
|
|
|
|
|
|
|
|
This is a low level function. See also `org-export-to-buffer'
|
|
|
|
|
and `org-export-to-file' for more specialized functions."
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(declare (indent 1))
|
|
|
|
|
;; Write the full sexp evaluating BODY in a copy of the current
|
|
|
|
|
;; buffer to a temporary file, as it may be too long for program
|
|
|
|
|
;; args in `start-process'.
|
|
|
|
|
(with-temp-message "Initializing asynchronous export process"
|
|
|
|
|
(let ((copy-fun (org-export--generate-copy-script (current-buffer)))
|
|
|
|
|
(temp-file (make-temp-file "org-export-process")))
|
|
|
|
|
(let ((coding-system-for-write 'utf-8-emacs-unix))
|
|
|
|
|
(write-region
|
|
|
|
|
;; Null characters (from variable values) are inserted
|
|
|
|
|
;; within the file. As a consequence, coding system for
|
|
|
|
|
;; buffer contents could fail to be recognized properly.
|
|
|
|
|
(format ";; -*- coding: utf-8-emacs-unix; lexical-binding:t -*-\n%S"
|
|
|
|
|
`(with-temp-buffer
|
|
|
|
|
,(when org-export-async-debug '(setq debug-on-error t))
|
|
|
|
|
;; Ignore `kill-emacs-hook' and code evaluation
|
|
|
|
|
;; queries from Babel as we need a truly
|
|
|
|
|
;; non-interactive process.
|
|
|
|
|
(setq kill-emacs-hook nil
|
|
|
|
|
org-babel-confirm-evaluate-answer-no t)
|
|
|
|
|
;; Initialize export framework.
|
|
|
|
|
(require 'ox)
|
|
|
|
|
;; Re-create current buffer there.
|
|
|
|
|
(funcall ',copy-fun)
|
|
|
|
|
(restore-buffer-modified-p nil)
|
|
|
|
|
;; Sexp to evaluate in the buffer.
|
|
|
|
|
(print ,body)))
|
|
|
|
|
nil temp-file nil 'silent))
|
|
|
|
|
;; Start external process.
|
|
|
|
|
(let* ((process-connection-type nil)
|
|
|
|
|
(proc-buffer (generate-new-buffer-name "*Org Export Process*"))
|
|
|
|
|
(process
|
|
|
|
|
(apply
|
|
|
|
|
#'start-process
|
|
|
|
|
(append
|
|
|
|
|
(list "org-export-process"
|
|
|
|
|
proc-buffer
|
|
|
|
|
(expand-file-name invocation-name invocation-directory)
|
|
|
|
|
"--batch")
|
|
|
|
|
(if org-export-async-init-file
|
|
|
|
|
(list "-Q" "-l" org-export-async-init-file)
|
|
|
|
|
(list "-l" user-init-file))
|
|
|
|
|
(list "-l" temp-file)))))
|
|
|
|
|
;; Register running process in stack.
|
|
|
|
|
(org-export-add-to-stack (get-buffer proc-buffer) nil process)
|
|
|
|
|
;; Set-up sentinel in order to catch results.
|
|
|
|
|
(let ((handler fun))
|
|
|
|
|
(set-process-sentinel
|
|
|
|
|
process
|
|
|
|
|
(lambda (p _status)
|
|
|
|
|
(let ((proc-buffer (process-buffer p)))
|
|
|
|
|
(when (eq (process-status p) 'exit)
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(if (zerop (process-exit-status p))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(let ((results
|
|
|
|
|
(with-current-buffer proc-buffer
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
(backward-sexp)
|
|
|
|
|
(read (current-buffer)))))
|
|
|
|
|
(funcall handler results))
|
|
|
|
|
(unless org-export-async-debug
|
|
|
|
|
(and (get-buffer proc-buffer)
|
|
|
|
|
(kill-buffer proc-buffer))))
|
|
|
|
|
(org-export-add-to-stack proc-buffer nil p)
|
|
|
|
|
(ding)
|
|
|
|
|
(message "Process `%s' exited abnormally" p))
|
|
|
|
|
(unless org-export-async-debug
|
|
|
|
|
(delete-file temp-file))))))))))))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun org-export-to-buffer
|
|
|
|
|
(backend buffer
|
|
|
|
|
&optional async subtreep visible-only body-only ext-plist
|
|
|
|
|
post-process)
|
|
|
|
|
"Call `org-export-as' with output to a specified buffer.
|
|
|
|
|
|
|
|
|
|
BACKEND is either an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end.
|
|
|
|
|
|
|
|
|
|
BUFFER is the name of the output buffer. If it already exists,
|
|
|
|
|
it will be erased first, otherwise, it will be created.
|
|
|
|
|
|
|
|
|
|
A non-nil optional argument ASYNC means the process should happen
|
|
|
|
|
asynchronously. The resulting buffer should then be accessible
|
|
|
|
|
through the `org-export-stack' interface. When ASYNC is nil, the
|
|
|
|
|
buffer is displayed if `org-export-show-temporary-export-buffer'
|
|
|
|
|
is non-nil.
|
|
|
|
|
|
|
|
|
|
Optional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and
|
|
|
|
|
EXT-PLIST are similar to those used in `org-export-as', which
|
|
|
|
|
see.
|
|
|
|
|
|
|
|
|
|
Optional argument POST-PROCESS is a function which should accept
|
2013-08-27 08:29:50 +00:00
|
|
|
|
no argument. It is always called within the current process,
|
|
|
|
|
from BUFFER, with point at its beginning. Export back-ends can
|
|
|
|
|
use it to set a major mode there, e.g,
|
2013-08-07 08:15:23 +00:00
|
|
|
|
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(defun org-latex-export-as-latex
|
|
|
|
|
(&optional async subtreep visible-only body-only ext-plist)
|
|
|
|
|
(interactive)
|
|
|
|
|
(org-export-to-buffer \\='latex \"*Org LATEX Export*\"
|
2013-08-07 08:15:23 +00:00
|
|
|
|
async subtreep visible-only body-only ext-plist (lambda () (LaTeX-mode))))
|
|
|
|
|
|
|
|
|
|
This function returns BUFFER."
|
|
|
|
|
(declare (indent 2))
|
|
|
|
|
(if async
|
|
|
|
|
(org-export-async-start
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(let ((cs buffer-file-coding-system))
|
|
|
|
|
(lambda (output)
|
|
|
|
|
(with-current-buffer (get-buffer-create buffer)
|
|
|
|
|
(erase-buffer)
|
|
|
|
|
(setq buffer-file-coding-system cs)
|
|
|
|
|
(insert output)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(org-export-add-to-stack (current-buffer) backend)
|
|
|
|
|
(ignore-errors (funcall post-process)))))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
`(org-export-as
|
|
|
|
|
',backend ,subtreep ,visible-only ,body-only ',ext-plist))
|
|
|
|
|
(let ((output
|
|
|
|
|
(org-export-as backend subtreep visible-only body-only ext-plist))
|
|
|
|
|
(buffer (get-buffer-create buffer))
|
|
|
|
|
(encoding buffer-file-coding-system))
|
|
|
|
|
(when (and (org-string-nw-p output) (org-export--copy-to-kill-ring-p))
|
|
|
|
|
(org-kill-new output))
|
|
|
|
|
(with-current-buffer buffer
|
|
|
|
|
(erase-buffer)
|
|
|
|
|
(setq buffer-file-coding-system encoding)
|
|
|
|
|
(insert output)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(and (functionp post-process) (funcall post-process)))
|
|
|
|
|
(when org-export-show-temporary-export-buffer
|
|
|
|
|
(switch-to-buffer-other-window buffer))
|
|
|
|
|
buffer)))
|
|
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
|
(defun org-export-to-file
|
|
|
|
|
(backend file &optional async subtreep visible-only body-only ext-plist
|
|
|
|
|
post-process)
|
|
|
|
|
"Call `org-export-as' with output to a specified file.
|
|
|
|
|
|
|
|
|
|
BACKEND is either an export back-end, as returned by, e.g.,
|
|
|
|
|
`org-export-create-backend', or a symbol referring to
|
|
|
|
|
a registered back-end. FILE is the name of the output file, as
|
|
|
|
|
a string.
|
|
|
|
|
|
|
|
|
|
A non-nil optional argument ASYNC means the process should happen
|
2013-12-18 15:00:05 +00:00
|
|
|
|
asynchronously. The resulting buffer will then be accessible
|
2013-08-07 08:15:23 +00:00
|
|
|
|
through the `org-export-stack' interface.
|
|
|
|
|
|
|
|
|
|
Optional arguments SUBTREEP, VISIBLE-ONLY, BODY-ONLY and
|
|
|
|
|
EXT-PLIST are similar to those used in `org-export-as', which
|
|
|
|
|
see.
|
|
|
|
|
|
|
|
|
|
Optional argument POST-PROCESS is called with FILE as its
|
2013-08-27 08:29:50 +00:00
|
|
|
|
argument and happens asynchronously when ASYNC is non-nil. It
|
|
|
|
|
has to return a file name, or nil. Export back-ends can use this
|
|
|
|
|
to send the output file through additional processing, e.g,
|
2013-08-07 08:15:23 +00:00
|
|
|
|
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(defun org-latex-export-to-latex
|
|
|
|
|
(&optional async subtreep visible-only body-only ext-plist)
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((outfile (org-export-output-file-name \".tex\" subtreep)))
|
|
|
|
|
(org-export-to-file \\='latex outfile
|
2013-08-07 08:15:23 +00:00
|
|
|
|
async subtreep visible-only body-only ext-plist
|
2015-09-17 23:08:20 +00:00
|
|
|
|
(lambda (file) (org-latex-compile file)))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
|
|
|
|
|
The function returns either a file name returned by POST-PROCESS,
|
|
|
|
|
or FILE."
|
|
|
|
|
(declare (indent 2))
|
|
|
|
|
(if (not (file-writable-p file)) (error "Output file not writable")
|
2014-08-04 08:53:54 +00:00
|
|
|
|
(let ((ext-plist (org-combine-plists `(:output-file ,file) ext-plist))
|
2021-05-03 17:23:39 +00:00
|
|
|
|
(encoding (or org-export-coding-system buffer-file-coding-system))
|
|
|
|
|
auto-mode-alist)
|
2013-08-07 08:15:23 +00:00
|
|
|
|
(if async
|
|
|
|
|
(org-export-async-start
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(lambda (file)
|
|
|
|
|
(org-export-add-to-stack (expand-file-name file) backend))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
`(let ((output
|
|
|
|
|
(org-export-as
|
|
|
|
|
',backend ,subtreep ,visible-only ,body-only
|
|
|
|
|
',ext-plist)))
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert output)
|
|
|
|
|
(let ((coding-system-for-write ',encoding))
|
|
|
|
|
(write-file ,file)))
|
|
|
|
|
(or (ignore-errors (funcall ',post-process ,file)) ,file)))
|
|
|
|
|
(let ((output (org-export-as
|
|
|
|
|
backend subtreep visible-only body-only ext-plist)))
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert output)
|
|
|
|
|
(let ((coding-system-for-write encoding))
|
|
|
|
|
(write-file file)))
|
|
|
|
|
(when (and (org-export--copy-to-kill-ring-p) (org-string-nw-p output))
|
|
|
|
|
(org-kill-new output))
|
|
|
|
|
;; Get proper return value.
|
|
|
|
|
(or (and (functionp post-process) (funcall post-process file))
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Return file name as a string."
|
|
|
|
|
(let* ((visited-file (buffer-file-name (buffer-base-buffer)))
|
|
|
|
|
(base-name
|
2016-12-20 16:10:46 +00:00
|
|
|
|
(concat
|
|
|
|
|
(file-name-sans-extension
|
|
|
|
|
(or
|
|
|
|
|
;; Check EXPORT_FILE_NAME subtree property.
|
|
|
|
|
(and subtreep (org-entry-get nil "EXPORT_FILE_NAME" 'selective))
|
|
|
|
|
;; Check #+EXPORT_FILE_NAME keyword.
|
|
|
|
|
(org-with-point-at (point-min)
|
|
|
|
|
(catch :found
|
|
|
|
|
(let ((case-fold-search t))
|
|
|
|
|
(while (re-search-forward
|
|
|
|
|
"^[ \t]*#\\+EXPORT_FILE_NAME:[ \t]+\\S-" nil t)
|
|
|
|
|
(let ((element (org-element-at-point)))
|
|
|
|
|
(when (eq 'keyword (org-element-type element))
|
|
|
|
|
(throw :found
|
|
|
|
|
(org-element-property :value element))))))))
|
|
|
|
|
;; Extract from buffer's associated file, if any.
|
2021-04-27 08:21:05 +00:00
|
|
|
|
(and visited-file
|
|
|
|
|
(file-name-nondirectory
|
|
|
|
|
;; For a .gpg visited file, remove the .gpg extension:
|
|
|
|
|
(replace-regexp-in-string "\\.gpg\\'" "" visited-file)))
|
2016-12-20 16:10:46 +00:00
|
|
|
|
;; Can't determine file name on our own: ask user.
|
|
|
|
|
(read-file-name
|
|
|
|
|
"Output file: " pub-dir nil nil nil
|
|
|
|
|
(lambda (n) (string= extension (file-name-extension n t))))))
|
|
|
|
|
extension))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
(output-file
|
|
|
|
|
;; Build file name. Enforce EXTENSION over whatever user
|
|
|
|
|
;; may have come up with. PUB-DIR, if defined, always has
|
|
|
|
|
;; precedence over any provided path.
|
|
|
|
|
(cond
|
2016-12-20 16:10:46 +00:00
|
|
|
|
(pub-dir (concat (file-name-as-directory pub-dir)
|
|
|
|
|
(file-name-nondirectory base-name)))
|
|
|
|
|
((file-name-absolute-p base-name) base-name)
|
|
|
|
|
(t base-name))))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
;; If writing to OUTPUT-FILE would overwrite original file, append
|
|
|
|
|
;; EXTENSION another time to final name.
|
2015-11-08 15:44:26 +00:00
|
|
|
|
(if (and visited-file (file-equal-p visited-file output-file))
|
2013-08-07 08:15:23 +00:00
|
|
|
|
(concat output-file extension)
|
|
|
|
|
output-file)))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-add-to-stack (source backend &optional process)
|
|
|
|
|
"Add a new result to export stack if not present already.
|
|
|
|
|
|
|
|
|
|
SOURCE is a buffer or a file name containing export results.
|
|
|
|
|
BACKEND is a symbol representing export back-end used to generate
|
|
|
|
|
it.
|
|
|
|
|
|
|
|
|
|
Entries already pointing to SOURCE and unavailable entries are
|
|
|
|
|
removed beforehand. Return the new stack."
|
|
|
|
|
(setq org-export-stack-contents
|
|
|
|
|
(cons (list source backend (or process (current-time)))
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-export-stack-remove source))))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
(defun org-export-stack ()
|
|
|
|
|
"Menu for asynchronous export results and running processes."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((buffer (get-buffer-create "*Org Export Stack*")))
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(with-current-buffer buffer
|
|
|
|
|
(org-export-stack-mode)
|
|
|
|
|
(tabulated-list-print t))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(pop-to-buffer buffer))
|
|
|
|
|
(message "Type \"q\" to quit, \"?\" for help"))
|
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defun org-export-stack-clear ()
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
"Remove all entries from export stack."
|
|
|
|
|
(interactive)
|
|
|
|
|
(setq org-export-stack-contents nil))
|
|
|
|
|
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(defun org-export-stack-refresh ()
|
|
|
|
|
"Refresh the export stack."
|
|
|
|
|
(interactive)
|
|
|
|
|
(tabulated-list-print t))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defun org-export-stack-remove (&optional source)
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
"Remove export results at point from stack.
|
|
|
|
|
If optional argument SOURCE is non-nil, remove it instead."
|
|
|
|
|
(interactive)
|
2013-02-26 08:46:02 +00:00
|
|
|
|
(let ((source (or source (org-export--stack-source-at-point))))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(setq org-export-stack-contents
|
2015-11-06 12:04:20 +00:00
|
|
|
|
(cl-remove-if (lambda (el) (equal (car el) source))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
org-export-stack-contents))))
|
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(defun org-export-stack-view (&optional in-emacs)
|
2012-12-19 21:27:58 +00:00
|
|
|
|
"View export results at point in stack.
|
|
|
|
|
With an optional prefix argument IN-EMACS, force viewing files
|
|
|
|
|
within Emacs."
|
|
|
|
|
(interactive "P")
|
2013-02-26 08:46:02 +00:00
|
|
|
|
(let ((source (org-export--stack-source-at-point)))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(cond ((processp source)
|
|
|
|
|
(org-switch-to-buffer-other-window (process-buffer source)))
|
|
|
|
|
((bufferp source) (org-switch-to-buffer-other-window source))
|
2012-12-19 21:27:58 +00:00
|
|
|
|
(t (org-open-file source in-emacs)))))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
2013-07-28 19:40:02 +00:00
|
|
|
|
(defvar org-export-stack-mode-map
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(let ((km (make-sparse-keymap)))
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(set-keymap-parent km tabulated-list-mode-map)
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(define-key km " " #'next-line)
|
|
|
|
|
(define-key km "\C-n" #'next-line)
|
|
|
|
|
(define-key km [down] #'next-line)
|
|
|
|
|
(define-key km "\C-p" #'previous-line)
|
|
|
|
|
(define-key km "\C-?" #'previous-line)
|
|
|
|
|
(define-key km [up] #'previous-line)
|
|
|
|
|
(define-key km "C" #'org-export-stack-clear)
|
|
|
|
|
(define-key km "v" #'org-export-stack-view)
|
|
|
|
|
(define-key km (kbd "RET") #'org-export-stack-view)
|
|
|
|
|
(define-key km "d" #'org-export-stack-remove)
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
km)
|
|
|
|
|
"Keymap for Org Export Stack.")
|
|
|
|
|
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(define-derived-mode org-export-stack-mode tabulated-list-mode "Org-Stack"
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
"Mode for displaying asynchronous export stack.
|
|
|
|
|
|
2016-10-15 15:36:47 +00:00
|
|
|
|
Type `\\[org-export-stack]' to visualize the asynchronous export
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
stack.
|
|
|
|
|
|
2016-09-07 16:05:19 +00:00
|
|
|
|
In an Org Export Stack buffer, use \
|
2016-10-15 15:36:47 +00:00
|
|
|
|
\\<org-export-stack-mode-map>`\\[org-export-stack-view]' to view export output
|
|
|
|
|
on current line, `\\[org-export-stack-remove]' to remove it from the stack and \
|
|
|
|
|
`\\[org-export-stack-clear]' to clear
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
stack completely.
|
|
|
|
|
|
2016-09-07 16:05:19 +00:00
|
|
|
|
Removing entries in a stack buffer does not affect files
|
|
|
|
|
or buffers, only display.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
\\{org-export-stack-mode-map}"
|
2016-09-07 16:05:19 +00:00
|
|
|
|
(setq tabulated-list-format
|
|
|
|
|
(vector (list "#" 4 #'org-export--stack-num-predicate)
|
|
|
|
|
(list "Back-End" 12 t)
|
|
|
|
|
(list "Age" 6 nil)
|
|
|
|
|
(list "Source" 0 nil)))
|
|
|
|
|
(setq tabulated-list-sort-key (cons "#" nil))
|
|
|
|
|
(setq tabulated-list-entries #'org-export--stack-generate)
|
|
|
|
|
(add-hook 'tabulated-list-revert-hook #'org-export--stack-generate nil t)
|
|
|
|
|
(add-hook 'post-command-hook #'org-export-stack-refresh nil t)
|
|
|
|
|
(tabulated-list-init-header))
|
|
|
|
|
|
|
|
|
|
(defun org-export--stack-generate ()
|
|
|
|
|
"Generate the asynchronous export stack for display.
|
|
|
|
|
Unavailable sources are removed from the list. Return a list
|
|
|
|
|
appropriate for `tabulated-list-print'."
|
|
|
|
|
;; Clear stack from exited processes, dead buffers or non-existent
|
|
|
|
|
;; files.
|
|
|
|
|
(setq org-export-stack-contents
|
|
|
|
|
(cl-remove-if-not
|
|
|
|
|
(lambda (el)
|
|
|
|
|
(if (processp (nth 2 el))
|
|
|
|
|
(buffer-live-p (process-buffer (nth 2 el)))
|
|
|
|
|
(let ((source (car el)))
|
|
|
|
|
(if (bufferp source) (buffer-live-p source)
|
|
|
|
|
(file-exists-p source)))))
|
|
|
|
|
org-export-stack-contents))
|
|
|
|
|
;; Update `tabulated-list-entries'.
|
|
|
|
|
(let ((counter 0))
|
|
|
|
|
(mapcar
|
|
|
|
|
(lambda (entry)
|
|
|
|
|
(let ((source (car entry)))
|
|
|
|
|
(list source
|
|
|
|
|
(vector
|
|
|
|
|
;; Counter.
|
|
|
|
|
(number-to-string (cl-incf counter))
|
|
|
|
|
;; Back-End.
|
|
|
|
|
(if (nth 1 entry) (symbol-name (nth 1 entry)) "")
|
|
|
|
|
;; Age.
|
|
|
|
|
(let ((info (nth 2 entry)))
|
|
|
|
|
(if (processp info) (symbol-name (process-status info))
|
|
|
|
|
(format-seconds "%h:%.2m" (float-time (time-since info)))))
|
|
|
|
|
;; Source.
|
|
|
|
|
(if (stringp source) source (buffer-name source))))))
|
|
|
|
|
org-export-stack-contents)))
|
|
|
|
|
|
|
|
|
|
(defun org-export--stack-num-predicate (a b)
|
|
|
|
|
(< (string-to-number (aref (nth 1 a) 0))
|
|
|
|
|
(string-to-number (aref (nth 1 b) 0))))
|
|
|
|
|
|
|
|
|
|
(defun org-export--stack-source-at-point ()
|
|
|
|
|
"Return source from export results at point in stack."
|
|
|
|
|
(let ((source (car (nth (1- (org-current-line)) org-export-stack-contents))))
|
|
|
|
|
(if (not source) (error "Source unavailable, please refresh buffer")
|
|
|
|
|
(let ((source-name (if (stringp source) source (buffer-name source))))
|
|
|
|
|
(if (save-excursion
|
|
|
|
|
(beginning-of-line)
|
|
|
|
|
(looking-at-p (concat ".* +" (regexp-quote source-name) "$")))
|
|
|
|
|
source
|
|
|
|
|
;; SOURCE is not consistent with current line. The stack
|
|
|
|
|
;; view is outdated.
|
|
|
|
|
(error (substitute-command-keys
|
2016-10-15 15:36:47 +00:00
|
|
|
|
"Source unavailable; type `\\[org-export-stack-refresh]' \
|
2016-09-07 16:05:19 +00:00
|
|
|
|
to refresh buffer")))))))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
|
|
|
|
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
|
|
|
|
;;; The Dispatcher
|
2012-04-29 00:11:22 +00:00
|
|
|
|
;;
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; `org-export-dispatch' is the standard interactive way to start an
|
2013-02-15 16:22:24 +00:00
|
|
|
|
;; export process. It uses `org-export--dispatch-ui' as a subroutine
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; for its interface, which, in turn, delegates response to key
|
2013-02-15 16:22:24 +00:00
|
|
|
|
;; pressed to `org-export--dispatch-action'.
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
2012-07-01 08:16:53 +00:00
|
|
|
|
;;;###autoload
|
2012-11-28 19:39:55 +00:00
|
|
|
|
(defun org-export-dispatch (&optional arg)
|
2012-03-19 20:38:12 +00:00
|
|
|
|
"Export dispatcher for Org mode.
|
|
|
|
|
|
|
|
|
|
It provides an access to common export related tasks in a buffer.
|
2013-11-17 08:12:41 +00:00
|
|
|
|
Its interface comes in two flavors: standard and expert.
|
2013-02-15 21:01:09 +00:00
|
|
|
|
|
|
|
|
|
While both share the same set of bindings, only the former
|
|
|
|
|
displays the valid keys associations in a dedicated buffer.
|
|
|
|
|
Scrolling (resp. line-wise motion) in this buffer is done with
|
|
|
|
|
SPC and DEL (resp. C-n and C-p) keys.
|
|
|
|
|
|
|
|
|
|
Set variable `org-export-dispatch-use-expert-ui' to switch to one
|
2013-11-17 08:12:41 +00:00
|
|
|
|
flavor or the other.
|
2012-11-28 19:39:55 +00:00
|
|
|
|
|
2016-10-15 15:36:47 +00:00
|
|
|
|
When ARG is `\\[universal-argument]', repeat the last export action, with the\
|
|
|
|
|
same
|
|
|
|
|
set of options used back then, on the current buffer.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
|
2016-10-15 15:36:47 +00:00
|
|
|
|
When ARG is `\\[universal-argument] \\[universal-argument]', display the \
|
|
|
|
|
asynchronous export stack."
|
2012-11-28 19:39:55 +00:00
|
|
|
|
(interactive "P")
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(let* ((input
|
|
|
|
|
(cond ((equal arg '(16)) '(stack))
|
|
|
|
|
((and arg org-export-dispatch-last-action))
|
|
|
|
|
(t (save-window-excursion
|
|
|
|
|
(unwind-protect
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(progn
|
|
|
|
|
;; Remember where we are
|
|
|
|
|
(move-marker org-export-dispatch-last-position
|
2013-02-28 11:53:45 +00:00
|
|
|
|
(point)
|
|
|
|
|
(org-base-buffer (current-buffer)))
|
2013-02-28 07:57:44 +00:00
|
|
|
|
;; Get and store an export command
|
|
|
|
|
(setq org-export-dispatch-last-action
|
|
|
|
|
(org-export--dispatch-ui
|
|
|
|
|
(list org-export-initial-scope
|
|
|
|
|
(and org-export-in-background 'async))
|
|
|
|
|
nil
|
|
|
|
|
org-export-dispatch-use-expert-ui)))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(and (get-buffer "*Org Export Dispatcher*")
|
|
|
|
|
(kill-buffer "*Org Export Dispatcher*")))))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(action (car input))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(optns (cdr input)))
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(unless (memq 'subtree optns)
|
|
|
|
|
(move-marker org-export-dispatch-last-position nil))
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-case action
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; First handle special hard-coded actions.
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(template (org-export-insert-default-template nil optns))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
(stack (org-export-stack))
|
2012-12-06 21:15:27 +00:00
|
|
|
|
(publish-current-file
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-publish-current-file (memq 'force optns) (memq 'async optns)))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(publish-current-project
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(org-publish-current-project (memq 'force optns) (memq 'async optns)))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(publish-choose-project
|
2015-12-22 13:49:23 +00:00
|
|
|
|
(org-publish (assoc (completing-read
|
2013-01-27 22:11:34 +00:00
|
|
|
|
"Publish project: "
|
|
|
|
|
org-publish-project-alist nil t)
|
|
|
|
|
org-publish-project-alist)
|
|
|
|
|
(memq 'force optns)
|
|
|
|
|
(memq 'async optns)))
|
|
|
|
|
(publish-all (org-publish-all (memq 'force optns) (memq 'async optns)))
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(otherwise
|
|
|
|
|
(save-excursion
|
|
|
|
|
(when arg
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; Repeating command, maybe move cursor to restore subtree
|
|
|
|
|
;; context.
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(if (eq (marker-buffer org-export-dispatch-last-position)
|
2013-02-28 11:53:45 +00:00
|
|
|
|
(org-base-buffer (current-buffer)))
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(goto-char org-export-dispatch-last-position)
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; We are in a different buffer, forget position.
|
2013-02-28 07:57:44 +00:00
|
|
|
|
(move-marker org-export-dispatch-last-position nil)))
|
|
|
|
|
(funcall action
|
|
|
|
|
;; Return a symbol instead of a list to ease
|
|
|
|
|
;; asynchronous export macro use.
|
|
|
|
|
(and (memq 'async optns) t)
|
|
|
|
|
(and (memq 'subtree optns) t)
|
|
|
|
|
(and (memq 'visible optns) t)
|
|
|
|
|
(and (memq 'body optns) t)))))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(defun org-export--dispatch-ui (options first-key expertp)
|
2012-03-19 20:38:12 +00: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.
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
`async' use asynchronous export process
|
2012-03-19 20:38:12 +00:00
|
|
|
|
|
2012-09-09 11:06:36 +00: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 20:38:12 +00:00
|
|
|
|
EXPERTP, when non-nil, triggers expert UI. In that case, no help
|
|
|
|
|
buffer is provided, but indications about currently active
|
2016-01-24 20:30:39 +00:00
|
|
|
|
options are given in the prompt. Moreover, [?] allows switching
|
2012-09-09 11:06:36 +00: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))
|
2020-10-12 09:41:31 +00:00
|
|
|
|
(propertize key 'face 'org-dispatcher-highlight)
|
2013-01-13 18:53:22 +00:00
|
|
|
|
key)))
|
|
|
|
|
(fontify-value
|
|
|
|
|
(lambda (value)
|
|
|
|
|
;; Fontify VALUE string.
|
Remove final parts of XEmacs compatibility code
* lisp/org-compat.el: Declare `org-add-hook', `org-decompose-region',
`org-detach-overlay', `org-file-equal-p', `org-float-time',
`org-indent-line-to', `org-indent-to-column', `org-looking-at-p',
`org-looking-back', `org-propertize', `org-re' and
`org-select-frame-set-input-focus' as obsolete.
(org-overlay-display, org-overlay-before-string, org-find-overlays):
Move to "org.el"
(org-xemacs-key-equivalents, org-xemacs-p): Remove variables.
(org-region-active-p): Drop XEmacs support.
(org-xemacs-without-invisibility): Remove macro.
(org-get-x-clipboard-compat): Remove function.
* lisp/org-macs.el (org-match-string-no-properties): Remove function.
* lisp/ob-core.el:
* lisp/org-agenda.el:
* lisp/org-archive.el:
* lisp/org-clock.el:
* lisp/org-colview.el:
* lisp/org-crypt.el:
* lisp/org-element.el:
* lisp/org-faces.el:
* lisp/org-feed.el:
* lisp/org-footnote.el:
* lisp/org-habit.el:
* lisp/org-id.el:
* lisp/org-indent.el:
* lisp/org-inlinetask.el:
* lisp/org-lint.el:
* lisp/org-list.el:
* lisp/org-mouse.el:
* lisp/org-pcomplete.el:
* lisp/org-src.el:
* lisp/org-table.el:
* lisp/org-timer.el:
* lisp/org.el:
* lisp/ox-ascii.el:
* lisp/ox-odt.el:
* lisp/ox.el:
* contrib/lisp/org-notify.el:
* contrib/lisp/ox-taskjuggler.el:
* contrib/lisp/org-wikinodes.el:
* testing/lisp/test-org-src.el:
* testing/lisp/test-org.el: Silence byte-compiler.
2016-05-26 10:18:00 +00:00
|
|
|
|
(propertize value 'face 'font-lock-variable-name-face)))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
;; Prepare menu entries by extracting them from registered
|
|
|
|
|
;; back-ends and sorting them by access key and by ordinal,
|
|
|
|
|
;; if any.
|
|
|
|
|
(entries
|
|
|
|
|
(sort (sort (delq nil
|
2015-04-22 08:24:02 +00:00
|
|
|
|
(mapcar #'org-export-backend-menu
|
|
|
|
|
org-export-registered-backends))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(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)))))
|
2021-04-20 03:37:50 +00:00
|
|
|
|
#'car-less-than-car))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; Compute a list of allowed keys based on the first key
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; pressed, if any. Some keys
|
|
|
|
|
;; (?^B, ?^V, ?^S, ?^F, ?^A, ?&, ?# and ?q) are always
|
|
|
|
|
;; available.
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(allowed-keys
|
2013-02-17 08:10:14 +00:00
|
|
|
|
(nconc (list 2 22 19 6 1)
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(if (not first-key) (org-uniquify (mapcar #'car entries))
|
2012-11-15 13:05:05 +00:00
|
|
|
|
(let (sub-menu)
|
2021-04-20 03:37:50 +00:00
|
|
|
|
(dolist (entry entries (sort (mapcar #'car sub-menu) #'<))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
(when (eq (car entry) first-key)
|
|
|
|
|
(setq sub-menu (append (nth 2 entry) sub-menu))))))
|
2012-11-15 13:05:05 +00:00
|
|
|
|
(cond ((eq first-key ?P) (list ?f ?p ?x ?a))
|
|
|
|
|
((not first-key) (list ?P)))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(list ?& ?#)
|
2012-11-15 13:05:05 +00:00
|
|
|
|
(when expertp (list ??))
|
|
|
|
|
(list ?q)))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; Build the help menu for standard UI.
|
|
|
|
|
(help
|
|
|
|
|
(unless expertp
|
|
|
|
|
(concat
|
|
|
|
|
;; Options are hard-coded.
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(format "[%s] Body only: %s [%s] Visible only: %s
|
|
|
|
|
\[%s] Export scope: %s [%s] Force publishing: %s
|
|
|
|
|
\[%s] Async export: %s\n\n"
|
2013-01-13 18:53:22 +00:00
|
|
|
|
(funcall fontify-key "C-b" t)
|
|
|
|
|
(funcall fontify-value
|
|
|
|
|
(if (memq 'body options) "On " "Off"))
|
|
|
|
|
(funcall fontify-key "C-v" t)
|
|
|
|
|
(funcall fontify-value
|
|
|
|
|
(if (memq 'visible options) "On " "Off"))
|
|
|
|
|
(funcall fontify-key "C-s" t)
|
|
|
|
|
(funcall fontify-value
|
|
|
|
|
(if (memq 'subtree options) "Subtree" "Buffer "))
|
|
|
|
|
(funcall fontify-key "C-f" t)
|
|
|
|
|
(funcall fontify-value
|
|
|
|
|
(if (memq 'force options) "On " "Off"))
|
|
|
|
|
(funcall fontify-key "C-a" t)
|
|
|
|
|
(funcall fontify-value
|
|
|
|
|
(if (memq 'async 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 22:21:05 +00: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)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-incf index)
|
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 22:21:05 +00:00
|
|
|
|
(format
|
2013-02-08 22:12:36 +00:00
|
|
|
|
(if (zerop (mod index 2)) " [%s] %-26s"
|
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 22:21:05 +00:00
|
|
|
|
"[%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"))))))))
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
entries ""))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; Publishing menu is hard-coded.
|
|
|
|
|
(format "\n[%s] Publish
|
2013-02-08 22:12:36 +00:00
|
|
|
|
[%s] Current file [%s] Current project
|
2013-04-05 22:10:08 +00:00
|
|
|
|
[%s] Choose project [%s] All projects\n\n\n"
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(funcall fontify-key "P")
|
|
|
|
|
(funcall fontify-key "f" ?P)
|
|
|
|
|
(funcall fontify-key "p" ?P)
|
|
|
|
|
(funcall fontify-key "x" ?P)
|
|
|
|
|
(funcall fontify-key "a" ?P))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
(format "[%s] Export stack [%s] Insert template\n"
|
|
|
|
|
(funcall fontify-key "&" t)
|
|
|
|
|
(funcall fontify-key "#" t))
|
|
|
|
|
(format "[%s] %s"
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(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
|
2013-01-27 22:11:34 +00:00
|
|
|
|
"Export command (C-%s%s%s%s%s) [%s]: "
|
2013-01-13 18:53:22 +00:00
|
|
|
|
(if (memq 'body options) (funcall fontify-key "b" t) "b")
|
|
|
|
|
(if (memq 'visible options) (funcall fontify-key "v" t) "v")
|
|
|
|
|
(if (memq 'subtree options) (funcall fontify-key "s" t) "s")
|
|
|
|
|
(if (memq 'force options) (funcall fontify-key "f" t) "f")
|
|
|
|
|
(if (memq 'async options) (funcall fontify-key "a" t) "a")
|
|
|
|
|
(mapconcat (lambda (k)
|
|
|
|
|
;; Strip control characters.
|
|
|
|
|
(unless (< k 27) (char-to-string k)))
|
|
|
|
|
allowed-keys "")))))
|
2012-03-19 20:38:12 +00:00
|
|
|
|
;; With expert UI, just read key with a fancy prompt. In standard
|
|
|
|
|
;; UI, display an intrusive help buffer.
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(if expertp
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(org-export--dispatch-action
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
expert-prompt allowed-keys entries options first-key expertp)
|
2012-10-11 19:30:12 +00:00
|
|
|
|
;; At first call, create frame layout in order to display menu.
|
|
|
|
|
(unless (get-buffer "*Org Export Dispatcher*")
|
2012-03-19 20:38:12 +00:00
|
|
|
|
(delete-other-windows)
|
2012-10-11 19:30:12 +00:00
|
|
|
|
(org-switch-to-buffer-other-window
|
|
|
|
|
(get-buffer-create "*Org Export Dispatcher*"))
|
2013-02-16 07:59:45 +00:00
|
|
|
|
(setq cursor-type nil
|
2020-02-12 10:54:49 +00:00
|
|
|
|
header-line-format "Use SPC, DEL, C-n or C-p to navigate.")
|
2013-02-17 23:54:25 +00:00
|
|
|
|
;; Make sure that invisible cursor will not highlight square
|
|
|
|
|
;; brackets.
|
|
|
|
|
(set-syntax-table (copy-syntax-table))
|
|
|
|
|
(modify-syntax-entry ?\[ "w"))
|
2012-10-21 12:54:23 +00:00
|
|
|
|
;; At this point, the buffer containing the menu exists and is
|
|
|
|
|
;; visible in the current window. So, refresh it.
|
2012-10-11 19:30:12 +00:00
|
|
|
|
(with-current-buffer "*Org Export Dispatcher*"
|
2013-02-15 16:22:24 +00:00
|
|
|
|
;; Refresh help. Maintain display continuity by re-visiting
|
|
|
|
|
;; previous window position.
|
2020-06-27 01:03:02 +00:00
|
|
|
|
(let ((pt (point))
|
|
|
|
|
(wstart (window-start)))
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(erase-buffer)
|
|
|
|
|
(insert help)
|
2020-06-27 01:03:02 +00:00
|
|
|
|
(goto-char pt)
|
|
|
|
|
(set-window-start nil wstart)))
|
2012-10-22 21:56:26 +00:00
|
|
|
|
(org-fit-window-to-buffer)
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(org-export--dispatch-action
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
standard-prompt allowed-keys entries options first-key expertp))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(defun org-export--dispatch-action
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(prompt allowed-keys entries options first-key expertp)
|
2012-09-09 11:06:36 +00:00
|
|
|
|
"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.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
ENTRIES is a list of menu entries. OPTIONS, FIRST-KEY and
|
2013-02-15 16:22:24 +00:00
|
|
|
|
EXPERTP are the same as defined in `org-export--dispatch-ui',
|
2012-09-09 11:06:36 +00:00
|
|
|
|
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."
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(let (key)
|
|
|
|
|
;; Scrolling: when in non-expert mode, act on motion keys (C-n,
|
|
|
|
|
;; C-p, SPC, DEL).
|
|
|
|
|
(while (and (setq key (read-char-exclusive prompt))
|
|
|
|
|
(not expertp)
|
2020-02-12 10:54:49 +00:00
|
|
|
|
;; FIXME: Don't use C-v (22) here, as it is used as a
|
|
|
|
|
;; modifier key in the export dispatch.
|
|
|
|
|
(memq key '(14 16 ?\s ?\d 134217846)))
|
2020-02-11 00:04:28 +00:00
|
|
|
|
(org-scroll key t))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(cond
|
2013-01-13 18:53:22 +00:00
|
|
|
|
;; Ignore undefined associations.
|
2012-09-09 11:06:36 +00:00
|
|
|
|
((not (memq key allowed-keys))
|
2012-10-11 19:30:12 +00:00
|
|
|
|
(ding)
|
|
|
|
|
(unless expertp (message "Invalid key") (sit-for 1))
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(org-export--dispatch-ui options first-key expertp))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; q key at first level aborts export. At second level, cancel
|
|
|
|
|
;; first key instead.
|
2019-12-09 04:08:56 +00:00
|
|
|
|
((eq key ?q) (if (not first-key) (user-error "Export aborted")
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(org-export--dispatch-ui options nil expertp)))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; Help key: Switch back to standard interface if expert UI was
|
|
|
|
|
;; active.
|
2013-02-15 16:22:24 +00:00
|
|
|
|
((eq key ??) (org-export--dispatch-ui options first-key nil))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; Send request for template insertion along with export scope.
|
|
|
|
|
((eq key ?#) (cons 'template (memq 'subtree options)))
|
org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
org-export-add-to-stack, org-export--stack-remove,
org-export--stack-view, org-export--stack-clear,
org-export-stack, org-export-copy-buffer,
org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-02 08:43:42 +00:00
|
|
|
|
;; Switch to asynchronous export stack.
|
|
|
|
|
((eq key ?&) '(stack))
|
2013-04-05 22:10:08 +00:00
|
|
|
|
;; Toggle options: C-b (2) C-v (22) C-s (19) C-f (6) C-a (1).
|
2013-02-17 08:10:14 +00:00
|
|
|
|
((memq key '(2 22 19 6 1))
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(org-export--dispatch-ui
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(let ((option (cl-case key (2 'body) (22 'visible) (19 'subtree)
|
|
|
|
|
(6 'force) (1 'async))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(if (memq option options) (remq option options)
|
|
|
|
|
(cons option options)))
|
|
|
|
|
first-key expertp))
|
|
|
|
|
;; Action selected: Send key and options back to
|
|
|
|
|
;; `org-export-dispatch'.
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
((or first-key (functionp (nth 2 (assq key entries))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(cons (cond
|
ox: Change back-ends internal representation to structures
* lisp/ox.el (org-export--registered-backends): Renamed from
`org-export-registered-backends'.
(org-export-invisible-backends): Removed variable.
(org-export-get-backend, org-export-get-all-transcoders
org-export-get-all-options, org-export-get-all-filters): New
functions. It replaces `org-export-backend-translate-table'.
(org-export-barf-if-invalid-backend, org-export-derived-backend-p,
org-export-define-backend, org-export-define-derived-backend):
Rewrite functions using new representation.
(org-export-backend-translate-table): Remove function.
(org-export-get-environment): Use new function.
(org-export--get-subtree-options, org-export--parse-option-keyword,
org-export--get-inbuffer-options, org-export--get-global-options,
org-export-to-buffer org-export-to-file, org-export-string-as
org-export-replace-region-by): Update docstring.
(org-export-data-with-translations): Remove function. Use
`org-export-data-with-backend' with a temporary back-end instead.
(org-export-data-with-backend, org-export-as): Reflect new definition
for back-ends.
(org-export--dispatch-action, org-export--dispatch-ui): Reflect new
definition for back-ends and variable removal. Refactoring.
(org-export-filter-apply-functions): Call functions with
current back-end's name, not full back-end.
* lisp/org.el (org-export-backends, org-create-formula--latex-header):
Use new structure and variables.
* testing/lisp/test-ox.el: Update tests.
This patch separates back-end definition from its registration. Thus,
it allows to use anonymous or unregistered back-ends.
2013-06-24 18:52:10 +00:00
|
|
|
|
((not first-key) (nth 2 (assq key entries)))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
;; Publishing actions are hard-coded. Send a special
|
|
|
|
|
;; signal to `org-export-dispatch'.
|
|
|
|
|
((eq first-key ?P)
|
2015-08-14 22:33:11 +00:00
|
|
|
|
(cl-case key
|
2012-09-09 11:06:36 +00:00
|
|
|
|
(?f 'publish-current-file)
|
|
|
|
|
(?p 'publish-current-project)
|
|
|
|
|
(?x 'publish-choose-project)
|
|
|
|
|
(?a 'publish-all)))
|
2012-11-15 13:05:05 +00:00
|
|
|
|
;; Return first action associated to FIRST-KEY + KEY
|
|
|
|
|
;; path. Indeed, derived backends can share the same
|
|
|
|
|
;; FIRST-KEY.
|
|
|
|
|
(t (catch 'found
|
2015-11-05 10:05:29 +00:00
|
|
|
|
(dolist (entry (member (assq first-key entries) entries))
|
|
|
|
|
(let ((match (assq key (nth 2 entry))))
|
|
|
|
|
(when match (throw 'found (nth 2 match))))))))
|
2012-09-09 11:06:36 +00:00
|
|
|
|
options))
|
|
|
|
|
;; Otherwise, enter sub-menu.
|
2013-02-15 16:22:24 +00:00
|
|
|
|
(t (org-export--dispatch-ui options key expertp)))))
|
2012-01-05 22:35:34 +00:00
|
|
|
|
|
|
|
|
|
|
2013-02-03 11:07:17 +00:00
|
|
|
|
|
2013-01-27 22:11:34 +00:00
|
|
|
|
(provide 'ox)
|
|
|
|
|
|
|
|
|
|
;; Local variables:
|
|
|
|
|
;; generated-autoload-file: "org-loaddefs.el"
|
|
|
|
|
;; End:
|
|
|
|
|
|
|
|
|
|
;;; ox.el ends here
|