2011-12-11 10:23:09 -05:00
|
|
|
|
;;; org-e-latex.el --- LaTeX Back-End For Org Export Engine
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-01-03 12:47:01 -05:00
|
|
|
|
;; Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
;; Author: Nicolas Goaziou <n.goaziou at gmail dot com>
|
|
|
|
|
;; Keywords: outlines, hypermedia, calendar, wp
|
|
|
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
|
|
;; This library implements a LaTeX back-end for Org generic exporter.
|
|
|
|
|
|
2011-12-11 10:33:34 -05:00
|
|
|
|
;; To test it, run
|
|
|
|
|
;;
|
2011-12-23 10:34:20 -05:00
|
|
|
|
;; M-: (org-export-to-buffer 'e-latex "*Test e-LaTeX*") RET
|
2011-12-11 10:33:34 -05:00
|
|
|
|
;;
|
|
|
|
|
;; in an org-mode buffer then switch to the buffer to see the LaTeX
|
|
|
|
|
;; export. See contrib/lisp/org-export.el for more details on how
|
|
|
|
|
;; this exporter works.
|
|
|
|
|
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; It introduces three new buffer keywords: "LATEX_CLASS",
|
|
|
|
|
;; "LATEX_CLASS_OPTIONS" and "LATEX_HEADER".
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
(eval-when-compile (require 'cl))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
|
|
|
|
|
(defvar org-export-latex-default-packages-alist)
|
|
|
|
|
(defvar org-export-latex-packages-alist)
|
|
|
|
|
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(declare-function org-element-property "org-element" (property element))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(declare-function org-element-normalize-string "org-element" (s))
|
|
|
|
|
(declare-function org-element-parse-secondary-string
|
|
|
|
|
"org-element" (string restriction &optional buffer))
|
|
|
|
|
(defvar org-element-string-restrictions)
|
2012-02-17 10:20:17 -05:00
|
|
|
|
(defvar org-element-object-restrictions)
|
2012-01-21 10:32:57 -05:00
|
|
|
|
|
|
|
|
|
(declare-function org-export-clean-table "org-export" (table specialp))
|
|
|
|
|
(declare-function org-export-data "org-export" (data backend info))
|
|
|
|
|
(declare-function org-export-directory "org-export" (type plist))
|
|
|
|
|
(declare-function org-export-expand-macro "org-export" (macro info))
|
|
|
|
|
(declare-function org-export-first-sibling-p "org-export" (headline info))
|
2012-02-05 09:06:49 -05:00
|
|
|
|
(declare-function org-export-footnote-first-reference-p "org-export"
|
|
|
|
|
(footnote-reference info))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(declare-function org-export-get-coderef-format "org-export" (path desc))
|
2012-02-05 09:06:49 -05:00
|
|
|
|
(declare-function org-export-get-footnote-definition "org-export"
|
|
|
|
|
(footnote-reference info))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(declare-function org-export-get-footnote-number "org-export" (footnote info))
|
|
|
|
|
(declare-function org-export-get-previous-element "org-export" (blob info))
|
|
|
|
|
(declare-function org-export-get-relative-level "org-export" (headline info))
|
|
|
|
|
(declare-function org-export-handle-code
|
|
|
|
|
"org-export" (element info &optional num-fmt ref-fmt delayed))
|
|
|
|
|
(declare-function org-export-included-file "org-export" (keyword backend info))
|
2012-02-05 09:06:49 -05:00
|
|
|
|
(declare-function org-export-inline-image-p "org-export"
|
|
|
|
|
(link &optional extensions))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(declare-function org-export-last-sibling-p "org-export" (headline info))
|
|
|
|
|
(declare-function org-export-low-level-p "org-export" (headline info))
|
|
|
|
|
(declare-function org-export-output-file-name
|
|
|
|
|
"org-export" (extension &optional subtreep pub-dir))
|
|
|
|
|
(declare-function org-export-resolve-coderef "org-export" (ref info))
|
|
|
|
|
(declare-function org-export-resolve-fuzzy-link "org-export" (link info))
|
2012-02-05 09:06:49 -05:00
|
|
|
|
(declare-function org-export-secondary-string "org-export"
|
|
|
|
|
(secondary backend info))
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(declare-function org-export-solidify-link-text "org-export" (s))
|
|
|
|
|
(declare-function org-export-table-format-info "org-export" (table))
|
|
|
|
|
(declare-function
|
|
|
|
|
org-export-to-buffer "org-export"
|
|
|
|
|
(backend buffer &optional subtreep visible-only body-only ext-plist))
|
|
|
|
|
(declare-function
|
|
|
|
|
org-export-to-file "org-export"
|
|
|
|
|
(backend file &optional subtreep visible-only body-only ext-plist))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Internal Variables
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defconst org-e-latex-option-alist
|
|
|
|
|
'((:date "DATE" nil org-e-latex-date-format t)
|
|
|
|
|
(:latex-class "LATEX_CLASS" nil org-e-latex-default-class t)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(:latex-class-options "LATEX_CLASS_OPTIONS" nil nil t)
|
|
|
|
|
(:latex-header-extra "LATEX_HEADER" nil nil newline))
|
|
|
|
|
"Alist between LaTeX export properties and ways to set them.
|
|
|
|
|
See `org-export-option-alist' for more information on the
|
|
|
|
|
structure of the value.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; User Configurable Variables
|
|
|
|
|
|
2012-01-16 02:06:11 -05:00
|
|
|
|
(defgroup org-export-e-latex nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Options for exporting Org mode files to LaTeX."
|
|
|
|
|
:tag "Org Export LaTeX"
|
|
|
|
|
:group 'org-export)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Preamble
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-default-class "article"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"The default LaTeX class."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(string :tag "LaTeX class"))
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-classes
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'(("article"
|
|
|
|
|
"\\documentclass[11pt]{article}"
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
|
|
|
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
|
|
|
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
|
|
|
|
|
("report"
|
|
|
|
|
"\\documentclass[11pt]{report}"
|
|
|
|
|
("\\part{%s}" . "\\part*{%s}")
|
|
|
|
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
|
|
|
|
|
("book"
|
|
|
|
|
"\\documentclass[11pt]{book}"
|
|
|
|
|
("\\part{%s}" . "\\part*{%s}")
|
|
|
|
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
|
|
|
|
|
"Alist of LaTeX classes and associated header and structure.
|
|
|
|
|
If #+LaTeX_CLASS is set in the buffer, use its value and the
|
|
|
|
|
associated information. Here is the structure of each cell:
|
|
|
|
|
|
|
|
|
|
\(class-name
|
|
|
|
|
header-string
|
|
|
|
|
\(numbered-section . unnumbered-section\)
|
|
|
|
|
...\)
|
|
|
|
|
|
|
|
|
|
The header string
|
|
|
|
|
-----------------
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
The HEADER-STRING is the header that will be inserted into the
|
|
|
|
|
LaTeX file. It should contain the \\documentclass macro, and
|
|
|
|
|
anything else that is needed for this setup. To this header, the
|
|
|
|
|
following commands will be added:
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
- Calls to \\usepackage for all packages mentioned in the
|
|
|
|
|
variables `org-export-latex-default-packages-alist' and
|
|
|
|
|
`org-export-latex-packages-alist'. Thus, your header
|
|
|
|
|
definitions should avoid to also request these packages.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
- Lines specified via \"#+LaTeX_HEADER:\"
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
If you need more control about the sequence in which the header
|
|
|
|
|
is built up, or if you want to exclude one of these building
|
|
|
|
|
blocks for a particular class, you can use the following
|
|
|
|
|
macro-like placeholders.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
[DEFAULT-PACKAGES] \\usepackage statements for default packages
|
|
|
|
|
[NO-DEFAULT-PACKAGES] do not include any of the default packages
|
|
|
|
|
[PACKAGES] \\usepackage statements for packages
|
|
|
|
|
[NO-PACKAGES] do not include the packages
|
|
|
|
|
[EXTRA] the stuff from #+LaTeX_HEADER
|
|
|
|
|
[NO-EXTRA] do not include #+LaTeX_HEADER stuff
|
|
|
|
|
[BEAMER-HEADER-EXTRA] the beamer extra headers
|
|
|
|
|
|
|
|
|
|
So a header like
|
|
|
|
|
|
|
|
|
|
\\documentclass{article}
|
|
|
|
|
[NO-DEFAULT-PACKAGES]
|
|
|
|
|
[EXTRA]
|
|
|
|
|
\\providecommand{\\alert}[1]{\\textbf{#1}}
|
|
|
|
|
[PACKAGES]
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
will omit the default packages, and will include the
|
|
|
|
|
#+LaTeX_HEADER lines, then have a call to \\providecommand, and
|
|
|
|
|
then place \\usepackage commands based on the content of
|
|
|
|
|
`org-export-latex-packages-alist'.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-06 09:08:05 -05:00
|
|
|
|
If your header, `org-export-latex-default-packages-alist' or
|
|
|
|
|
`org-export-latex-packages-alist' inserts
|
|
|
|
|
\"\\usepackage[AUTO]{inputenc}\", AUTO will automatically be
|
|
|
|
|
replaced with a coding system derived from
|
2012-02-05 09:06:49 -05:00
|
|
|
|
`buffer-file-coding-system'. See also the variable
|
|
|
|
|
`org-e-latex-inputenc-alist' for a way to influence this
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
mechanism.
|
|
|
|
|
|
|
|
|
|
The sectioning structure
|
|
|
|
|
------------------------
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
The sectioning structure of the class is given by the elements
|
|
|
|
|
following the header string. For each sectioning level, a number
|
|
|
|
|
of strings is specified. A %s formatter is mandatory in each
|
|
|
|
|
section string and will be replaced by the title of the section.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
Instead of a cons cell \(numbered . unnumbered\), you can also
|
|
|
|
|
provide a list of 2 or 4 elements,
|
|
|
|
|
|
|
|
|
|
\(numbered-open numbered-close\)
|
|
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
|
|
\(numbered-open numbered-close unnumbered-open unnumbered-close\)
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
providing opening and closing strings for a LaTeX environment
|
|
|
|
|
that should represent the document section. The opening clause
|
|
|
|
|
should have a %s to represent the section title.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
Instead of a list of sectioning commands, you can also specify
|
|
|
|
|
a function name. That function will be called with two
|
|
|
|
|
parameters, the \(reduced) level of the headline, and a predicate
|
|
|
|
|
non-nil when the headline should be numbered. It must return
|
|
|
|
|
a format string in which the section title will be added."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(list (string :tag "LaTeX class")
|
|
|
|
|
(string :tag "LaTeX header")
|
|
|
|
|
(repeat :tag "Levels" :inline t
|
|
|
|
|
(choice
|
|
|
|
|
(cons :tag "Heading"
|
|
|
|
|
(string :tag " numbered")
|
|
|
|
|
(string :tag "unnumbered"))
|
|
|
|
|
(list :tag "Environment"
|
|
|
|
|
(string :tag "Opening (numbered)")
|
|
|
|
|
(string :tag "Closing (numbered)")
|
|
|
|
|
(string :tag "Opening (unnumbered)")
|
|
|
|
|
(string :tag "Closing (unnumbered)"))
|
|
|
|
|
(function :tag "Hook computing sectioning"))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-inputenc-alist nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Alist of inputenc coding system names, and what should really be used.
|
|
|
|
|
For example, adding an entry
|
|
|
|
|
|
|
|
|
|
(\"utf8\" . \"utf8x\")
|
|
|
|
|
|
|
|
|
|
will cause \\usepackage[utf8x]{inputenc} to be used for buffers that
|
|
|
|
|
are written as utf8 files."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cons
|
|
|
|
|
(string :tag "Derived from buffer")
|
|
|
|
|
(string :tag "Use this instead"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-date-format
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"\\today"
|
|
|
|
|
"Format string for \\date{...}."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-title-command "\\maketitle"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"The command used to insert the title just after \\begin{document}.
|
|
|
|
|
If this string contains the formatting specification \"%s\" then
|
|
|
|
|
it will be used as a formatting string, passing the title as an
|
|
|
|
|
argument."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Headline
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-format-headline-function nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Function to format headline text.
|
|
|
|
|
|
|
|
|
|
This function will be called with 5 arguments:
|
|
|
|
|
TODO the todo keyword \(string or nil\).
|
|
|
|
|
TODO-TYPE the type of todo \(symbol: `todo', `done', nil\)
|
|
|
|
|
PRIORITY the priority of the headline \(integer or nil\)
|
|
|
|
|
TEXT the main headline text \(string\).
|
|
|
|
|
TAGS the tags string, separated with colons \(string or nil\).
|
|
|
|
|
|
|
|
|
|
The function result will be used in the section format string.
|
|
|
|
|
|
|
|
|
|
As an example, one could set the variable to the following, in
|
|
|
|
|
order to reproduce the default set-up:
|
|
|
|
|
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\(defun org-e-latex-format-headline \(todo todo-type priority text tags\)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\"Default format function for an headline.\"
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\(concat \(when todo
|
|
|
|
|
\(format \"\\\\textbf{\\\\textsc{\\\\textsf{%s}}} \" todo\)\)
|
|
|
|
|
\(when priority
|
|
|
|
|
\(format \"\\\\framebox{\\\\#%c} \" priority\)\)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
text
|
|
|
|
|
\(when tags \(format \"\\\\hfill{}\\\\textsc{%s}\" tags\)\)\)\)"
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'function)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Emphasis
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-emphasis-alist
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'(("*" . "\\textbf{%s}")
|
|
|
|
|
("/" . "\\emph{%s}")
|
|
|
|
|
("_" . "\\underline{%s}")
|
|
|
|
|
("+" . "\\st{%s}")
|
|
|
|
|
("=" . protectedtexttt)
|
|
|
|
|
("~" . verb))
|
|
|
|
|
"Alist of LaTeX expressions to convert emphasis fontifiers.
|
|
|
|
|
|
|
|
|
|
The key is the character used as a marker for fontification. The
|
|
|
|
|
value is a formatting string to wrap fontified text with.
|
|
|
|
|
|
|
|
|
|
Value can also be set to the following symbols: `verb' and
|
|
|
|
|
`protectedtexttt'. For the former, Org will use \"\\verb\" to
|
|
|
|
|
create a format string and select a delimiter character that
|
|
|
|
|
isn't in the string. For the latter, Org will use \"\\texttt\"
|
|
|
|
|
to typeset and try to protect special characters."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'alist)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Footnotes
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-footnote-separator "\\textsuperscript{,}\\,"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Text used to separate footnotes."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Time-stamps
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-active-timestamp-format "\\textit{%s}"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"A printf format string to be applied to active time-stamps."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-inactive-timestamp-format "\\textit{%s}"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"A printf format string to be applied to inactive time-stamps."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-diary-timestamp-format "\\textit{%s}"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"A printf format string to be applied to diary time-stamps."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Links
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-image-default-option "width=.9\\linewidth"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Default option for images."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-default-figure-position "htb"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Default position for latex figures."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
2012-02-15 05:08:10 -05:00
|
|
|
|
(defcustom org-e-latex-inline-image-rules
|
|
|
|
|
'(("file" . "\\.\\(pdf\\|jpeg\\|jpg\\|png\\|ps\\|eps\\)\\'"))
|
|
|
|
|
"Rules characterizing image files that can be inlined into LaTeX.
|
|
|
|
|
|
|
|
|
|
A rule consists in an association whose key is the type of link
|
|
|
|
|
to consider, and value is a regexp that will be matched against
|
|
|
|
|
link's path.
|
|
|
|
|
|
|
|
|
|
Note that, by default, the image extension *actually* allowed
|
|
|
|
|
depend on the way the LaTeX file is processed. When used with
|
|
|
|
|
pdflatex, pdf, jpg and png images are OK. When processing
|
|
|
|
|
through dvi to Postscript, only ps and eps are allowed. The
|
|
|
|
|
default we use here encompasses both."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
2012-02-15 05:08:10 -05:00
|
|
|
|
:type '(alist :key-type (string :tag "Type")
|
|
|
|
|
:value-type (regexp :tag "Path")))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Tables
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-default-table-environment "tabular"
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Default environment used to build tables."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'string)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-tables-centered t
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"When non-nil, tables are exported in a center environment."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-tables-verbatim nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"When non-nil, tables are exported verbatim."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2012-02-08 16:34:53 -05:00
|
|
|
|
(defcustom org-e-latex-tables-booktabs nil
|
|
|
|
|
"When non-nil, display tables in a formal \"booktabs\" style.
|
|
|
|
|
This option assumes that the \"booktabs\" package is properly
|
|
|
|
|
loaded in the header of the document. This value can be ignored
|
|
|
|
|
locally with \"booktabs=yes\" and \"booktabs=no\" LaTeX
|
|
|
|
|
attributes."
|
|
|
|
|
:group 'org-export-e-latex
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-table-caption-above t
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"When non-nil, place caption string at the beginning of the table.
|
|
|
|
|
Otherwise, place it near the end."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Drawers
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-format-drawer-function nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Function called to format a drawer in LaTeX code.
|
|
|
|
|
|
|
|
|
|
The function must accept two parameters:
|
|
|
|
|
NAME the drawer name, like \"LOGBOOK\"
|
|
|
|
|
CONTENTS the contents of the drawer.
|
|
|
|
|
|
|
|
|
|
The function should return the string to be exported.
|
|
|
|
|
|
|
|
|
|
For example, the variable could be set to the following function
|
|
|
|
|
in order to mimic default behaviour:
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
\(defun org-e-latex-format-drawer-default \(name contents\)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\"Format a drawer element for LaTeX export.\"
|
|
|
|
|
contents\)"
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'function)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Inlinetasks
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-format-inlinetask-function nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Function called to format an inlinetask in LaTeX code.
|
|
|
|
|
|
|
|
|
|
The function must accept six parameters:
|
|
|
|
|
TODO the todo keyword, as a string
|
|
|
|
|
TODO-TYPE the todo type, a symbol among `todo', `done' and nil.
|
|
|
|
|
PRIORITY the inlinetask priority, as a string
|
|
|
|
|
NAME the inlinetask name, as a string.
|
|
|
|
|
TAGS the inlinetask tags, as a string.
|
|
|
|
|
CONTENTS the contents of the inlinetask, as a string.
|
|
|
|
|
|
|
|
|
|
The function should return the string to be exported.
|
|
|
|
|
|
|
|
|
|
For example, the variable could be set to the following function
|
|
|
|
|
in order to mimic default behaviour:
|
|
|
|
|
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\(defun org-e-latex-format-inlinetask \(todo type priority name tags contents\)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\"Format an inline task element for LaTeX export.\"
|
|
|
|
|
\(let \(\(full-title
|
2011-12-09 08:38:36 -05:00
|
|
|
|
\(concat
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\(when todo
|
|
|
|
|
\(format \"\\\\textbf{\\\\textsf{\\\\textsc{%s}}} \" todo\)\)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
\(when priority \(format \"\\\\framebox{\\\\#%c} \" priority\)\)
|
|
|
|
|
title
|
|
|
|
|
\(when tags \(format \"\\\\hfill{}\\\\textsc{%s}\" tags\)\)\)\)\)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\(format \(concat \"\\\\begin{center}\\n\"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
\"\\\\fbox{\\n\"
|
|
|
|
|
\"\\\\begin{minipage}[c]{.6\\\\textwidth}\\n\"
|
|
|
|
|
\"%s\\n\\n\"
|
|
|
|
|
\"\\\\rule[.8em]{\\\\textwidth}{2pt}\\n\\n\"
|
|
|
|
|
\"%s\"
|
|
|
|
|
\"\\\\end{minipage}}\"
|
|
|
|
|
\"\\\\end{center}\"\)
|
|
|
|
|
full-title contents\)\)"
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type 'function)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Src blocks
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-listings nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Non-nil means export source code using the listings package.
|
|
|
|
|
This package will fontify source code, possibly even with color.
|
|
|
|
|
If you want to use this, you also need to make LaTeX use the
|
|
|
|
|
listings package, and if you want to have color, the color
|
2012-02-05 09:06:49 -05:00
|
|
|
|
package. Just add these to `org-export-latex-packages-alist',
|
|
|
|
|
for example using customize, or with something like:
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
\(require 'org-e-latex)
|
|
|
|
|
\(add-to-list 'org-export-latex-packages-alist '\(\"\" \"listings\"))
|
|
|
|
|
\(add-to-list 'org-export-latex-packages-alist '\(\"\" \"color\"))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
Alternatively,
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
\(setq org-e-latex-listings 'minted)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
causes source code to be exported using the minted package as
|
|
|
|
|
opposed to listings. If you want to use minted, you need to add
|
2012-02-05 09:06:49 -05:00
|
|
|
|
the minted package to `org-export-latex-packages-alist', for
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
example using customize, or with
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
\(require 'org-e-latex)
|
|
|
|
|
\(add-to-list 'org-export-latex-packages-alist '\(\"\" \"minted\"))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
In addition, it is necessary to install pygments
|
|
|
|
|
\(http://pygments.org), and to configure the variable
|
|
|
|
|
`org-e-latex-pdf-process' so that the -shell-escape option is
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
passed to pdflatex."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(choice
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(const :tag "Use listings" t)
|
|
|
|
|
(const :tag "Use minted" 'minted)
|
|
|
|
|
(const :tag "Export verbatim" nil)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-listings-langs
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'((emacs-lisp "Lisp") (lisp "Lisp") (clojure "Lisp")
|
|
|
|
|
(c "C") (cc "C++")
|
|
|
|
|
(fortran "fortran")
|
|
|
|
|
(perl "Perl") (cperl "Perl") (python "Python") (ruby "Ruby")
|
|
|
|
|
(html "HTML") (xml "XML")
|
|
|
|
|
(tex "TeX") (latex "TeX")
|
|
|
|
|
(shell-script "bash")
|
|
|
|
|
(gnuplot "Gnuplot")
|
|
|
|
|
(ocaml "Caml") (caml "Caml")
|
|
|
|
|
(sql "SQL") (sqlite "sql"))
|
|
|
|
|
"Alist mapping languages to their listing language counterpart.
|
|
|
|
|
The key is a symbol, the major mode symbol without the \"-mode\".
|
2012-02-05 09:06:49 -05:00
|
|
|
|
The value is the string that should be inserted as the language
|
|
|
|
|
parameter for the listings package. If the mode name and the
|
|
|
|
|
listings name are the same, the language does not need an entry
|
|
|
|
|
in this list - but it does not hurt if it is present."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(list
|
|
|
|
|
(symbol :tag "Major mode ")
|
|
|
|
|
(string :tag "Listings language"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-listings-options nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Association list of options for the latex listings package.
|
|
|
|
|
|
|
|
|
|
These options are supplied as a comma-separated list to the
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\\lstset command. Each element of the association list should be
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
a list containing two strings: the name of the option, and the
|
2012-01-17 14:54:08 -05:00
|
|
|
|
value. For example,
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-01-16 02:06:11 -05:00
|
|
|
|
(setq org-e-latex-listings-options
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'((\"basicstyle\" \"\\small\")
|
|
|
|
|
(\"keywordstyle\" \"\\color{black}\\bfseries\\underbar\")))
|
|
|
|
|
|
|
|
|
|
will typeset the code in a small size font with underlined, bold
|
|
|
|
|
black keywords.
|
|
|
|
|
|
|
|
|
|
Note that the same options will be applied to blocks of all
|
|
|
|
|
languages."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(list
|
|
|
|
|
(string :tag "Listings option name ")
|
|
|
|
|
(string :tag "Listings option value"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-minted-langs
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'((emacs-lisp "common-lisp")
|
|
|
|
|
(cc "c++")
|
|
|
|
|
(cperl "perl")
|
|
|
|
|
(shell-script "bash")
|
|
|
|
|
(caml "ocaml"))
|
|
|
|
|
"Alist mapping languages to their minted language counterpart.
|
|
|
|
|
The key is a symbol, the major mode symbol without the \"-mode\".
|
2012-02-05 09:06:49 -05:00
|
|
|
|
The value is the string that should be inserted as the language
|
|
|
|
|
parameter for the minted package. If the mode name and the
|
|
|
|
|
listings name are the same, the language does not need an entry
|
|
|
|
|
in this list - but it does not hurt if it is present.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
Note that minted uses all lower case for language identifiers,
|
|
|
|
|
and that the full list of language identifiers can be obtained
|
|
|
|
|
with:
|
2012-02-05 09:06:49 -05:00
|
|
|
|
|
|
|
|
|
pygmentize -L lexers"
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(list
|
|
|
|
|
(symbol :tag "Major mode ")
|
|
|
|
|
(string :tag "Minted language"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-minted-options nil
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Association list of options for the latex minted package.
|
|
|
|
|
|
|
|
|
|
These options are supplied within square brackets in
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\\begin{minted} environments. Each element of the alist should
|
|
|
|
|
be a list containing two strings: the name of the option, and the
|
|
|
|
|
value. For example,
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
\(setq org-e-latex-minted-options
|
|
|
|
|
'\((\"bgcolor\" \"bg\") \(\"frame\" \"lines\")))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
will result in src blocks being exported with
|
|
|
|
|
|
|
|
|
|
\\begin{minted}[bgcolor=bg,frame=lines]{<LANG>}
|
|
|
|
|
|
|
|
|
|
as the start of the minted environment. Note that the same
|
|
|
|
|
options will be applied to blocks of all languages."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(repeat
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(list
|
|
|
|
|
(string :tag "Minted option name ")
|
|
|
|
|
(string :tag "Minted option value"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defvar org-e-latex-custom-lang-environments nil
|
2012-01-17 14:54:08 -05:00
|
|
|
|
"Alist mapping languages to language-specific LaTeX environments.
|
|
|
|
|
|
|
|
|
|
It is used during export of src blocks by the listings and minted
|
|
|
|
|
latex packages. For example,
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-01-17 14:54:08 -05:00
|
|
|
|
\(setq org-e-latex-custom-lang-environments
|
|
|
|
|
'\(\(python \"pythoncode\"\)\)\)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
would have the effect that if org encounters begin_src python
|
|
|
|
|
during latex export it will output
|
|
|
|
|
|
|
|
|
|
\\begin{pythoncode}
|
|
|
|
|
<src block body>
|
|
|
|
|
\\end{pythoncode}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Plain text
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defcustom org-e-latex-quotes
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
'(("fr" ("\\(\\s-\\|[[(]\\)\"" . "«~") ("\\(\\S-\\)\"" . "~»") ("\\(\\s-\\|(\\)'" . "'"))
|
|
|
|
|
("en" ("\\(\\s-\\|[[(]\\)\"" . "``") ("\\(\\S-\\)\"" . "''") ("\\(\\s-\\|(\\)'" . "`")))
|
|
|
|
|
"Alist for quotes to use when converting english double-quotes.
|
|
|
|
|
|
|
|
|
|
The CAR of each item in this alist is the language code.
|
|
|
|
|
The CDR of each item in this alist is a list of three CONS:
|
|
|
|
|
- the first CONS defines the opening quote;
|
|
|
|
|
- the second CONS defines the closing quote;
|
|
|
|
|
- the last CONS defines single quotes.
|
|
|
|
|
|
|
|
|
|
For each item in a CONS, the first string is a regexp
|
|
|
|
|
for allowed characters before/after the quote, the second
|
|
|
|
|
string defines the replacement string for this quote."
|
2012-01-05 10:07:26 -05:00
|
|
|
|
:group 'org-export-e-latex
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
:type '(list
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cons :tag "Opening quote"
|
|
|
|
|
(string :tag "Regexp for char before")
|
|
|
|
|
(string :tag "Replacement quote "))
|
|
|
|
|
(cons :tag "Closing quote"
|
|
|
|
|
(string :tag "Regexp for char after ")
|
|
|
|
|
(string :tag "Replacement quote "))
|
|
|
|
|
(cons :tag "Single quote"
|
|
|
|
|
(string :tag "Regexp for char before")
|
|
|
|
|
(string :tag "Replacement quote "))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
2012-01-05 10:01:34 -05:00
|
|
|
|
;;;; Compilation
|
|
|
|
|
|
|
|
|
|
(defcustom org-e-latex-pdf-process
|
|
|
|
|
'("pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f")
|
|
|
|
|
"Commands to process a LaTeX file to a PDF file.
|
2012-02-05 09:06:49 -05:00
|
|
|
|
This is a list of strings, each of them will be given to the
|
|
|
|
|
shell as a command. %f in the command will be replaced by the
|
|
|
|
|
full file name, %b by the file base name \(i.e. without
|
|
|
|
|
extension) and %o by the base directory of the file.
|
2012-01-05 10:01:34 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
The reason why this is a list is that it usually takes several
|
|
|
|
|
runs of `pdflatex', maybe mixed with a call to `bibtex'. Org
|
|
|
|
|
does not have a clever mechanism to detect which of these
|
|
|
|
|
commands have to be run to get to a stable result, and it also
|
|
|
|
|
does not do any error checking.
|
2012-01-05 10:01:34 -05:00
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
By default, Org uses 3 runs of `pdflatex' to do the processing.
|
|
|
|
|
If you have texi2dvi on your system and if that does not cause
|
|
|
|
|
the infamous egrep/locale bug:
|
2012-01-05 10:01:34 -05:00
|
|
|
|
|
|
|
|
|
http://lists.gnu.org/archive/html/bug-texinfo/2010-03/msg00031.html
|
|
|
|
|
|
|
|
|
|
then `texi2dvi' is the superior choice. Org does offer it as one
|
|
|
|
|
of the customize options.
|
|
|
|
|
|
2012-02-05 09:06:49 -05:00
|
|
|
|
Alternatively, this may be a Lisp function that does the
|
|
|
|
|
processing, so you could use this to apply the machinery of
|
|
|
|
|
AUCTeX or the Emacs LaTeX mode. This function should accept the
|
|
|
|
|
file name as its single argument."
|
2012-01-05 10:01:34 -05:00
|
|
|
|
:group 'org-export-pdf
|
|
|
|
|
:type '(choice
|
|
|
|
|
(repeat :tag "Shell command sequence"
|
|
|
|
|
(string :tag "Shell command"))
|
|
|
|
|
(const :tag "2 runs of pdflatex"
|
|
|
|
|
("pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"))
|
|
|
|
|
(const :tag "3 runs of pdflatex"
|
|
|
|
|
("pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"))
|
|
|
|
|
(const :tag "pdflatex,bibtex,pdflatex,pdflatex"
|
|
|
|
|
("pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"bibtex %b"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"
|
|
|
|
|
"pdflatex -interaction nonstopmode -output-directory %o %f"))
|
|
|
|
|
(const :tag "texi2dvi"
|
|
|
|
|
("texi2dvi -p -b -c -V %f"))
|
|
|
|
|
(const :tag "rubber"
|
|
|
|
|
("rubber -d --into %o %f"))
|
|
|
|
|
(function)))
|
|
|
|
|
|
|
|
|
|
(defcustom org-e-latex-logfiles-extensions
|
|
|
|
|
'("aux" "idx" "log" "out" "toc" "nav" "snm" "vrb")
|
|
|
|
|
"The list of file extensions to consider as LaTeX logfiles."
|
|
|
|
|
:group 'org-export-e-latex
|
|
|
|
|
:type '(repeat (string :tag "Extension")))
|
|
|
|
|
|
|
|
|
|
(defcustom org-e-latex-remove-logfiles t
|
|
|
|
|
"Non-nil means remove the logfiles produced by PDF production.
|
|
|
|
|
These are the .aux, .log, .out, and .toc files."
|
|
|
|
|
:group 'org-export-e-latex
|
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
|
|
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
;;; Internal Functions
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--caption/label-string (caption label info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return caption and label LaTeX string for floats.
|
|
|
|
|
|
2012-01-22 15:34:00 -05:00
|
|
|
|
CAPTION is a cons cell of secondary strings, the car being the
|
|
|
|
|
standard caption and the cdr its short form. LABEL is a string
|
|
|
|
|
representing the label. INFO is a plist holding contextual
|
|
|
|
|
information.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
If there's no caption nor label, return the empty string.
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
For non-floats, see `org-e-latex--wrap-label'."
|
2012-01-22 15:34:00 -05:00
|
|
|
|
(let ((label-str (if label (format "\\label{%s}" label) "")))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
2012-01-22 15:34:00 -05:00
|
|
|
|
((and (not caption) (not label)) "")
|
|
|
|
|
((not caption) (format "\\label{%s}\n" label))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Option caption format with short name.
|
2012-01-22 15:34:00 -05:00
|
|
|
|
((cdr caption)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\caption[%s]{%s%s}\n"
|
2012-01-22 15:34:00 -05:00
|
|
|
|
(org-export-secondary-string (cdr caption) 'e-latex info)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
label-str
|
2012-01-22 15:34:00 -05:00
|
|
|
|
(org-export-secondary-string (car caption) 'e-latex info)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Standard caption format.
|
2012-01-22 15:34:00 -05:00
|
|
|
|
(t (format "\\caption{%s%s}\n"
|
|
|
|
|
label-str
|
|
|
|
|
(org-export-secondary-string (car caption) 'e-latex info))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--guess-inputenc (header)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Set the coding system in inputenc to what the buffer is.
|
|
|
|
|
|
|
|
|
|
HEADER is the LaTeX header string.
|
|
|
|
|
|
|
|
|
|
Return the new header."
|
|
|
|
|
(let* ((cs (or (ignore-errors
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(latexenc-coding-system-to-inputenc
|
|
|
|
|
buffer-file-coding-system))
|
|
|
|
|
"utf8")))
|
org-element: Introduce a new accessor: `org-element-type'
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-caption, org-e-ascii--build-title,
org-e-ascii--describe-links, org-e-ascii-template,
org-e-ascii-paragraph): Use new accessor
* EXPERIMENTAL/org-e-latex.el (org-e-latex--guess-inputenc): Small
refactoring.
(org-e-latex-footnote-reference, org-e-latex-link): Use new
accessor.
* contrib/lisp/org-element.el (org-element-type): New function.
(org-element-map, org-element-parse-elements,
org-element-interpret-data, org-element-normalize-contents,
org-element-forward, org-element-unindent-buffer): Use new
accessor.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-get-min-level, org-export-data, org-export-skip-p,
org-export-interpret-p, org-export-expand,
org-export-expand-include-keyword,
org-export-prepare-file-contents, org-export-first-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal,
org-export-get-loc, org-export-get-genealogy,
org-export-get-parent-headline): Use new accessor.
2012-02-22 07:07:27 -05:00
|
|
|
|
(if (not cs) header
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; First translate if that is requested.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(setq cs (or (cdr (assoc cs org-e-latex-inputenc-alist)) cs))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Then find the \usepackage statement and replace the option.
|
|
|
|
|
(replace-regexp-in-string "\\\\usepackage\\[\\(AUTO\\)\\]{inputenc}"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
cs header t nil 1))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--find-verb-separator (s)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return a character not used in string S.
|
|
|
|
|
This is used to choose a separator for constructs like \\verb."
|
|
|
|
|
(let ((ll "~,./?;':\"|!@#%^&-_=+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>()[]{}"))
|
|
|
|
|
(loop for c across ll
|
2011-12-09 08:38:36 -05:00
|
|
|
|
when (not (string-match (regexp-quote (char-to-string c)) s))
|
|
|
|
|
return (char-to-string c))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--make-option-string (options)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return a comma separated string of keywords and values.
|
|
|
|
|
OPTIONS is an alist where the key is the options keyword as
|
|
|
|
|
a string, and the value a list containing the keyword value, or
|
|
|
|
|
nil."
|
|
|
|
|
(mapconcat (lambda (pair)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat (first pair)
|
|
|
|
|
(when (> (length (second pair)) 0)
|
|
|
|
|
(concat "=" (second pair)))))
|
|
|
|
|
options
|
|
|
|
|
","))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--quotation-marks (text info)
|
2012-01-17 14:54:08 -05:00
|
|
|
|
"Export quotation marks depending on language conventions.
|
|
|
|
|
TEXT is a string containing quotation marks to be replaced. INFO
|
|
|
|
|
is a plist used as a communication channel."
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(mapc (lambda(l)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(let ((start 0))
|
|
|
|
|
(while (setq start (string-match (car l) text start))
|
|
|
|
|
(let ((new-quote (concat (match-string 1 text) (cdr l))))
|
|
|
|
|
(setq text (replace-match new-quote t t text))))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(cdr (or (assoc (plist-get info :language) org-e-latex-quotes)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Falls back on English.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(assoc "en" org-e-latex-quotes))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
text)
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex--wrap-label (element output)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Wrap label associated to ELEMENT around OUTPUT, if appropriate.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
This function shouldn't be used for floats. See
|
2011-12-11 10:23:09 -05:00
|
|
|
|
`org-e-latex--caption/label-string'."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((label (org-element-property :name element)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(if (or (not output) (not label) (string= output "") (string= label ""))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
output
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat (format "\\label{%s}\n" label) output))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Template
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-template (contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return complete document string after LaTeX conversion.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
CONTENTS is the transcoded contents string. INFO is a plist
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
holding export options."
|
|
|
|
|
(let ((title (org-export-secondary-string
|
2011-12-23 10:30:00 -05:00
|
|
|
|
(plist-get info :title) 'e-latex info)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat
|
|
|
|
|
;; 1. Time-stamp.
|
|
|
|
|
(and (plist-get info :time-stamp-file)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format-time-string "%% Created %Y-%m-%d %a %H:%M\n"))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; 2. Document class and packages.
|
|
|
|
|
(let ((class (plist-get info :latex-class))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(class-options (plist-get info :latex-class-options)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(org-element-normalize-string
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(let* ((header (nth 1 (assoc class org-e-latex-classes)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(document-class-string
|
|
|
|
|
(and (stringp header)
|
|
|
|
|
(if class-options
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"^[ \t]*\\\\documentclass\\(\\[.*?\\]\\)"
|
|
|
|
|
class-options header t nil 1)
|
|
|
|
|
header))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--guess-inputenc
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-splice-latex-header
|
|
|
|
|
document-class-string
|
|
|
|
|
org-export-latex-default-packages-alist ; defined in org.el
|
|
|
|
|
org-export-latex-packages-alist nil ; defined in org.el
|
|
|
|
|
(plist-get info :latex-header-extra))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; 3. Define alert if not yet defined.
|
|
|
|
|
"\\providecommand{\\alert}[1]{\\textbf{#1}}\n"
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 4. Possibly limit depth for headline numbering.
|
|
|
|
|
(let ((sec-num (plist-get info :section-numbers)))
|
|
|
|
|
(when (integerp sec-num)
|
|
|
|
|
(format "\\setcounter{secnumdepth}{%d}\n" sec-num)))
|
|
|
|
|
;; 5. Author.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(let ((author (and (plist-get info :with-author)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(let ((auth (plist-get info :author)))
|
|
|
|
|
(and auth (org-export-secondary-string
|
2011-12-23 10:30:00 -05:00
|
|
|
|
auth 'e-latex info)))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(email (and (plist-get info :with-email)
|
|
|
|
|
(org-export-secondary-string
|
2011-12-23 10:30:00 -05:00
|
|
|
|
(plist-get info :email) 'e-latex info))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond ((and author email (not (string= "" email)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format "\\author{%s\\thanks{%s}}\n" author email))
|
|
|
|
|
(author (format "\\author{%s}\n" author))
|
|
|
|
|
(t "\\author{}\n")))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 6. Date.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(let ((date (plist-get info :date)))
|
|
|
|
|
(and date (format "\\date{%s}\n" date)))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 7. Title
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\title{%s}\n" title)
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 8. Hyperref options.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\hypersetup{\n pdfkeywords={%s},\n pdfsubject={%s},\n pdfcreator={%s}}\n"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(or (plist-get info :keywords) "")
|
|
|
|
|
(or (plist-get info :description) "")
|
2012-02-07 02:20:27 -05:00
|
|
|
|
(if (not (plist-get info :with-creator)) ""
|
|
|
|
|
(plist-get info :creator)))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 9. Document start.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"\\begin{document}\n\n"
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 10. Title command.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(org-element-normalize-string
|
|
|
|
|
(cond ((string= "" title) nil)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((not (stringp org-e-latex-title-command)) nil)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
((string-match "\\(?:[^%]\\|^\\)%s"
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-title-command)
|
|
|
|
|
(format org-e-latex-title-command title))
|
|
|
|
|
(t org-e-latex-title-command)))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 11. Table of contents.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(let ((depth (plist-get info :with-toc)))
|
|
|
|
|
(when depth
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat (when (wholenump depth)
|
|
|
|
|
(format "\\setcounter{tocdepth}{%d}\n" depth))
|
|
|
|
|
"\\tableofcontents\n\\vspace*{1cm}\n\n")))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 12. Document's body.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
contents
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 13. Creator.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(let ((creator-info (plist-get info :with-creator)))
|
|
|
|
|
(cond
|
2012-02-07 02:20:27 -05:00
|
|
|
|
((not creator-info) "")
|
2011-12-09 08:38:36 -05:00
|
|
|
|
((eq creator-info 'comment)
|
|
|
|
|
(format "%% %s\n" (plist-get info :creator)))
|
|
|
|
|
(t (concat (plist-get info :creator) "\n"))))
|
2012-01-27 08:49:32 -05:00
|
|
|
|
;; 14. Document end.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"\\end{document}")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;; Transcode Functions
|
|
|
|
|
|
|
|
|
|
;;;; Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-center-block (center-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a CENTER-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information."
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
center-block
|
|
|
|
|
(format "\\begin{center}\n%s\\end{center}" contents)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Comment
|
|
|
|
|
|
|
|
|
|
;; Comments are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Comment Block
|
|
|
|
|
|
|
|
|
|
;; Comment Blocks are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Drawer
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-drawer (drawer contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a DRAWER element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((name (org-element-property :drawer-name drawer))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(output (if (functionp org-e-latex-format-drawer-function)
|
|
|
|
|
(funcall org-e-latex-format-drawer-function
|
2011-12-09 08:38:36 -05:00
|
|
|
|
name contents)
|
|
|
|
|
;; If there's no user defined function: simply
|
|
|
|
|
;; display contents of the drawer.
|
|
|
|
|
contents)))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label drawer output)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Dynamic Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-dynamic-block (dynamic-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a DYNAMIC-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information. See
|
|
|
|
|
`org-export-data'."
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label dynamic-block contents))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Emphasis
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-emphasis (emphasis contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode EMPHASIS from Org to LaTeX.
|
|
|
|
|
CONTENTS is the contents of the emphasized text. INFO is a plist
|
|
|
|
|
holding contextual information.."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(format (cdr (assoc (org-element-property :marker emphasis)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-emphasis-alist))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
contents))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Entity
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-entity (entity contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an ENTITY object from Org to LaTeX.
|
|
|
|
|
CONTENTS are the definition itself. INFO is a plist holding
|
|
|
|
|
contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((ent (org-element-property :latex entity)))
|
|
|
|
|
(if (org-element-property :latex-math-p entity) (format "$%s$" ent) ent)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Example Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-example-block (example-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a EXAMPLE-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((options (or (org-element-property :options example-block) ""))
|
2012-01-11 08:44:28 -05:00
|
|
|
|
(value (org-export-handle-code example-block info)))
|
2012-01-05 10:40:30 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
|
|
|
|
example-block (format "\\begin{verbatim}\n%s\\end{verbatim}" value))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Export Snippet
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-export-snippet (export-snippet contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a EXPORT-SNIPPET object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
2012-02-23 12:10:14 -05:00
|
|
|
|
(when (eq (org-export-snippet-backend export-snippet) 'e-latex)
|
|
|
|
|
(org-element-property :value export-snippet)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Export Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-export-block (export-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a EXPORT-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(when (string= (org-element-property :type export-block) "latex")
|
|
|
|
|
(org-remove-indentation (org-element-property :value export-block))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Fixed Width
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-fixed-width (fixed-width contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a FIXED-WIDTH element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
(let* ((value (org-element-normalize-string
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"^[ \t]*: ?" ""
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value fixed-width)))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
2012-01-05 10:40:30 -05:00
|
|
|
|
fixed-width (format "\\begin{verbatim}\n%s\\end{verbatim}" value))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Footnote Definition
|
|
|
|
|
|
|
|
|
|
;; Footnote Definitions are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Footnote Reference
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-footnote-reference (footnote-reference contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a FOOTNOTE-REFERENCE element from Org to LaTeX.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat
|
|
|
|
|
;; Insert separator between two footnotes in a row.
|
2012-01-08 17:42:47 -05:00
|
|
|
|
(let ((prev (org-export-get-previous-element footnote-reference info)))
|
org-element: Introduce a new accessor: `org-element-type'
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-caption, org-e-ascii--build-title,
org-e-ascii--describe-links, org-e-ascii-template,
org-e-ascii-paragraph): Use new accessor
* EXPERIMENTAL/org-e-latex.el (org-e-latex--guess-inputenc): Small
refactoring.
(org-e-latex-footnote-reference, org-e-latex-link): Use new
accessor.
* contrib/lisp/org-element.el (org-element-type): New function.
(org-element-map, org-element-parse-elements,
org-element-interpret-data, org-element-normalize-contents,
org-element-forward, org-element-unindent-buffer): Use new
accessor.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-get-min-level, org-export-data, org-export-skip-p,
org-export-interpret-p, org-export-expand,
org-export-expand-include-keyword,
org-export-prepare-file-contents, org-export-first-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal,
org-export-get-loc, org-export-get-genealogy,
org-export-get-parent-headline): Use new accessor.
2012-02-22 07:07:27 -05:00
|
|
|
|
(when (eq (org-element-type prev) 'footnote-reference)
|
2012-01-08 17:42:47 -05:00
|
|
|
|
org-e-latex-footnote-separator))
|
2011-12-23 10:08:45 -05:00
|
|
|
|
(cond
|
2012-02-25 08:51:15 -05:00
|
|
|
|
;; Use \footnotemark if the footnote has already been defined.
|
2011-12-23 10:08:45 -05:00
|
|
|
|
((not (org-export-footnote-first-reference-p footnote-reference info))
|
2012-02-25 08:51:15 -05:00
|
|
|
|
(format "\\footnotemark[%s]{}"
|
2011-12-23 10:08:45 -05:00
|
|
|
|
(org-export-get-footnote-number footnote-reference info)))
|
2012-02-25 08:51:15 -05:00
|
|
|
|
;; Use also \footnotemark if reference is within another footnote
|
|
|
|
|
;; reference or footnote definition.
|
|
|
|
|
((loop for parent in (org-export-get-genealogy footnote-reference info)
|
|
|
|
|
thereis (memq (org-element-type parent)
|
|
|
|
|
'(footnote-reference footnote-definition)))
|
2012-02-25 19:37:27 -05:00
|
|
|
|
(let ((num (org-export-get-footnote-number footnote-reference info)))
|
|
|
|
|
(format "\\footnotemark[%s]{}\\setcounter{footnote}{%s}" num num)))
|
2012-02-25 08:51:15 -05:00
|
|
|
|
;; Otherwise, define it with \footnote command.
|
2011-12-23 10:08:45 -05:00
|
|
|
|
(t
|
2012-02-25 08:51:15 -05:00
|
|
|
|
(let ((def (org-export-get-footnote-definition footnote-reference info)))
|
|
|
|
|
(unless (eq (org-element-type def) 'org-data)
|
|
|
|
|
(setq def (cons 'org-data (cons nil def))))
|
|
|
|
|
(concat
|
|
|
|
|
(format "\\footnote{%s}" (org-trim (org-export-data def 'e-latex info)))
|
2012-02-25 19:37:27 -05:00
|
|
|
|
;; Retrieve all footnote references within the footnote and
|
|
|
|
|
;; add their definition after it, since LaTeX doesn't support
|
|
|
|
|
;; them inside.
|
|
|
|
|
(let (all-refs
|
|
|
|
|
(search-refs
|
|
|
|
|
(function
|
|
|
|
|
(lambda (data)
|
|
|
|
|
;; Return a list of all footnote references in DATA.
|
|
|
|
|
(org-element-map
|
|
|
|
|
data 'footnote-reference
|
|
|
|
|
(lambda (ref)
|
|
|
|
|
(when (org-export-footnote-first-reference-p ref info)
|
|
|
|
|
(push ref all-refs)
|
|
|
|
|
(when (eq (org-element-property :type ref) 'standard)
|
|
|
|
|
(funcall
|
|
|
|
|
search-refs
|
|
|
|
|
(org-export-get-footnote-definition ref info)))))
|
|
|
|
|
info) (reverse all-refs)))))
|
2012-02-25 08:51:15 -05:00
|
|
|
|
(mapconcat
|
|
|
|
|
(lambda (ref)
|
|
|
|
|
(format
|
|
|
|
|
"\\footnotetext[%s]{%s}"
|
|
|
|
|
(org-export-get-footnote-number ref info)
|
|
|
|
|
(org-trim
|
|
|
|
|
(funcall
|
2012-02-25 19:37:27 -05:00
|
|
|
|
(if (eq (org-element-property :type ref) 'inline)
|
2012-02-25 08:51:15 -05:00
|
|
|
|
'org-export-secondary-string
|
|
|
|
|
'org-export-data)
|
|
|
|
|
(org-export-get-footnote-definition ref info) 'e-latex info))))
|
2012-02-25 19:37:27 -05:00
|
|
|
|
(funcall search-refs def) ""))))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Headline
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-headline (headline contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an HEADLINE element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the headline. INFO is a plist
|
|
|
|
|
holding contextual information."
|
|
|
|
|
(let* ((class (plist-get info :latex-class))
|
2012-01-08 17:42:47 -05:00
|
|
|
|
(level (org-export-get-relative-level headline info))
|
2012-02-27 16:21:20 -05:00
|
|
|
|
(numberedp (let ((sec-num (plist-get info :section-numbers)))
|
|
|
|
|
(if (wholenump sec-num) (<= level sec-num) sec-num)))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(class-sectionning (assoc class org-e-latex-classes))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Section formatting will set two placeholders: one for the
|
|
|
|
|
;; title and the other for the contents.
|
|
|
|
|
(section-fmt
|
|
|
|
|
(let ((sec (if (and (symbolp (nth 2 class-sectionning))
|
|
|
|
|
(fboundp (nth 2 class-sectionning)))
|
|
|
|
|
(funcall (nth 2 class-sectionning) level numberedp)
|
|
|
|
|
(nth (1+ level) class-sectionning))))
|
|
|
|
|
(cond
|
|
|
|
|
;; No section available for that LEVEL.
|
|
|
|
|
((not sec) nil)
|
|
|
|
|
;; Section format directly returned by a function.
|
|
|
|
|
((stringp sec) sec)
|
|
|
|
|
;; (numbered-section . unnumbered-section)
|
|
|
|
|
((not (consp (cdr sec)))
|
|
|
|
|
(concat (funcall (if numberedp #'car #'cdr) sec) "\n%s"))
|
|
|
|
|
;; (numbered-open numbered-close)
|
|
|
|
|
((= (length sec) 2)
|
|
|
|
|
(when numberedp (concat (car sec) "\n%s" (nth 1 sec))))
|
|
|
|
|
;; (num-in num-out no-num-in no-num-out)
|
|
|
|
|
((= (length sec) 4)
|
|
|
|
|
(if numberedp
|
|
|
|
|
(concat (car sec) "\n%s" (nth 1 sec))
|
|
|
|
|
(concat (nth 2 sec) "\n%s" (nth 3 sec)))))))
|
|
|
|
|
(text (org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :title headline) 'e-latex info))
|
|
|
|
|
(todo
|
|
|
|
|
(and (plist-get info :with-todo-keywords)
|
|
|
|
|
(let ((todo (org-element-property :todo-keyword headline)))
|
|
|
|
|
(and todo (org-export-secondary-string todo 'e-latex info)))))
|
|
|
|
|
(todo-type (and todo (org-element-property :todo-type headline)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(tags (and (plist-get info :with-tags)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :tags headline)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(priority (and (plist-get info :with-priority)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :priority headline)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Create the headline text.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(full-text (if (functionp org-e-latex-format-headline-function)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; User-defined formatting function.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(funcall org-e-latex-format-headline-function
|
2011-12-09 08:38:36 -05:00
|
|
|
|
todo todo-type priority text tags)
|
|
|
|
|
;; Default formatting.
|
|
|
|
|
(concat
|
|
|
|
|
(when todo
|
|
|
|
|
(format "\\textbf{\\textsf{\\textsc{%s}}} " todo))
|
|
|
|
|
(when priority (format "\\framebox{\\#%c} " priority))
|
|
|
|
|
text
|
|
|
|
|
(when tags (format "\\hfill{}\\textsc{%s}" tags)))))
|
|
|
|
|
;; Associate some \label to the headline for internal links.
|
2012-01-25 12:13:58 -05:00
|
|
|
|
(headline-label
|
|
|
|
|
(format "\\label{sec-%s}\n"
|
|
|
|
|
(mapconcat 'number-to-string
|
|
|
|
|
(org-export-get-headline-number headline info)
|
|
|
|
|
"-")))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(pre-blanks
|
|
|
|
|
(make-string (org-element-property :pre-blank headline) 10)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Case 1: This is a footnote section: ignore it.
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
((org-element-property :footnote-section-p headline) nil)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Case 2. This is a deep sub-tree: export it as a list item.
|
|
|
|
|
;; Also export as items headlines for which no section
|
|
|
|
|
;; format has been found.
|
2012-01-15 12:39:57 -05:00
|
|
|
|
((or (not section-fmt) (org-export-low-level-p headline info))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Build the real contents of the sub-tree.
|
|
|
|
|
(let ((low-level-body
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat
|
|
|
|
|
;; If the headline is the first sibling, start a list.
|
|
|
|
|
(when (org-export-first-sibling-p headline info)
|
|
|
|
|
(format "\\begin{%s}\n" (if numberedp 'enumerate 'itemize)))
|
|
|
|
|
;; Itemize headline
|
2012-01-25 12:13:58 -05:00
|
|
|
|
"\\item " full-text "\n" headline-label pre-blanks contents)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; If headline in the last sibling, close the list, before any
|
|
|
|
|
;; blank line. Otherwise, simply return LOW-LEVEL-BODY.
|
|
|
|
|
(if (org-export-last-sibling-p headline info)
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"[ \t\n]*\\'"
|
|
|
|
|
(format "\n\\\\end{%s}" (if numberedp 'enumerate 'itemize))
|
|
|
|
|
low-level-body)
|
|
|
|
|
low-level-body)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Case 3. Standard headline. Export it as a section.
|
|
|
|
|
(t (format section-fmt full-text
|
2012-01-25 12:13:58 -05:00
|
|
|
|
(concat headline-label pre-blanks contents))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Horizontal Rule
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-horizontal-rule (horizontal-rule contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an HORIZONTAL-RULE object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
(let ((attr (mapconcat #'identity
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :attr_latex horizontal-rule)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
" ")))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label horizontal-rule (concat "\\hrule " attr))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Inline Babel Call
|
|
|
|
|
|
|
|
|
|
;; Inline Babel Calls are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Inline Src Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-inline-src-block (inline-src-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an INLINE-SRC-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
|
|
|
|
contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((code (org-element-property :value inline-src-block))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(separator (org-e-latex--find-verb-separator code)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Do not use a special package: transcode it verbatim.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((not org-e-latex-listings)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat "\\verb" separator code separator))
|
|
|
|
|
;; Use minted package.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((eq org-e-latex-listings 'minted)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((org-lang (org-element-property :language inline-src-block))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(mint-lang (or (cadr (assq (intern org-lang)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-minted-langs))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
org-lang))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(options (org-e-latex--make-option-string
|
|
|
|
|
org-e-latex-minted-options)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat (format "\\mint%s{%s}"
|
|
|
|
|
(if (string= options "") "" (format "[%s]" options))
|
|
|
|
|
mint-lang)
|
|
|
|
|
separator code separator)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Use listings package.
|
|
|
|
|
(t
|
|
|
|
|
;; Maybe translate language's name.
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((org-lang (org-element-property :language inline-src-block))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(lst-lang (or (cadr (assq (intern org-lang)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-listings-langs))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
org-lang))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(options (org-e-latex--make-option-string
|
|
|
|
|
(append org-e-latex-listings-options
|
2011-12-09 08:38:36 -05:00
|
|
|
|
`(("language" ,lst-lang))))))
|
|
|
|
|
(concat (format "\\lstinline[%s]" options)
|
|
|
|
|
separator code separator))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Inlinetask
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-inlinetask (inlinetask contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an INLINETASK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information."
|
|
|
|
|
(let ((title (org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :title inlinetask) 'e-latex info))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(todo (and (plist-get info :with-todo-keywords)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((todo (org-element-property
|
2011-12-09 08:38:36 -05:00
|
|
|
|
:todo-keyword inlinetask)))
|
|
|
|
|
(and todo
|
2011-12-23 10:30:00 -05:00
|
|
|
|
(org-export-secondary-string todo 'e-latex info)))))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(todo-type (org-element-property :todo-type inlinetask))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(tags (and (plist-get info :with-tags)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :tags inlinetask)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(priority (and (plist-get info :with-priority)
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :priority inlinetask))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
;; If `org-e-latex-format-inlinetask-function' is provided, call it
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; with appropriate arguments.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(if (functionp org-e-latex-format-inlinetask-function)
|
|
|
|
|
(funcall org-e-latex-format-inlinetask-function
|
2011-12-09 08:38:36 -05:00
|
|
|
|
todo todo-type priority title tags contents)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Otherwise, use a default template.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
inlinetask
|
|
|
|
|
(let ((full-title
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat
|
|
|
|
|
(when todo (format "\\textbf{\\textsf{\\textsc{%s}}} " todo))
|
|
|
|
|
(when priority (format "\\framebox{\\#%c} " priority))
|
|
|
|
|
title
|
|
|
|
|
(when tags (format "\\hfill{}\\textsc{%s}" tags)))))
|
|
|
|
|
(format (concat "\\begin{center}\n"
|
|
|
|
|
"\\fbox{\n"
|
|
|
|
|
"\\begin{minipage}[c]{.6\\textwidth}\n"
|
|
|
|
|
"%s\n\n"
|
|
|
|
|
"\\rule[.8em]{\\textwidth}{2pt}\n\n"
|
|
|
|
|
"%s"
|
|
|
|
|
"\\end{minipage}\n"
|
|
|
|
|
"}\n"
|
|
|
|
|
"\\end{center}")
|
|
|
|
|
full-title contents))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Item
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-item (item contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode an ITEM element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
|
|
|
|
contextual information."
|
2012-01-07 08:30:41 -05:00
|
|
|
|
;; Grab `:level' from plain-list properties, which is always the
|
|
|
|
|
;; first element above current item.
|
2012-02-22 11:46:59 -05:00
|
|
|
|
(let* ((level (org-element-property :level (org-export-get-parent item info)))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(counter (let ((count (org-element-property :counter item)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(and count
|
|
|
|
|
(< level 4)
|
|
|
|
|
(format "\\setcounter{enum%s}{%s}\n"
|
|
|
|
|
(nth level '("i" "ii" "iii" "iv"))
|
|
|
|
|
(1- count)))))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(checkbox (let ((checkbox (org-element-property :checkbox item)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cond ((eq checkbox 'on) "$\\boxtimes$ ")
|
|
|
|
|
((eq checkbox 'off) "$\\Box$ ")
|
|
|
|
|
((eq checkbox 'trans) "$\\boxminus$ "))))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(tag (let ((tag (org-element-property :tag item)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(and tag
|
|
|
|
|
(format "[%s]" (org-export-secondary-string
|
2011-12-23 10:30:00 -05:00
|
|
|
|
tag 'e-latex info))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat counter "\\item" tag " " checkbox contents)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Keyword
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-keyword (keyword contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a KEYWORD element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((key (downcase (org-element-property :key keyword)))
|
|
|
|
|
(value (org-element-property :value keyword)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
((string= key "latex") value)
|
|
|
|
|
((string= key "index") (format "\\index{%s}" value))
|
|
|
|
|
((string= key "target")
|
|
|
|
|
(format "\\label{%s}" (org-export-solidify-link-text value)))
|
|
|
|
|
((string= key "toc")
|
|
|
|
|
(let ((value (downcase value)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cond
|
|
|
|
|
((string-match "\\<headlines\\>" value)
|
|
|
|
|
(let ((depth (or (and (string-match "[0-9]+" value)
|
|
|
|
|
(string-to-number (match-string 0 value)))
|
|
|
|
|
(plist-get info :with-toc))))
|
|
|
|
|
(concat
|
|
|
|
|
(when (wholenump depth)
|
|
|
|
|
(format "\\setcounter{tocdepth}{%s}\n" depth))
|
|
|
|
|
"\\tableofcontents")))
|
|
|
|
|
((string= "tables" value) "\\listoftables")
|
|
|
|
|
((string= "figures" value) "\\listoffigures")
|
2012-02-16 11:38:53 -05:00
|
|
|
|
((string= "listings" value)
|
|
|
|
|
(cond
|
|
|
|
|
((eq org-e-latex-listings 'minted) "\\listoflistings")
|
|
|
|
|
(org-e-latex-listings "\\lstlistoflistings")
|
|
|
|
|
;; At the moment, src blocks with a caption are wrapped
|
|
|
|
|
;; into a figure environment.
|
|
|
|
|
(t "\\listoffigures")))))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Latex Environment
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-latex-environment (latex-environment contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a LATEX-ENVIRONMENT element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((label (org-element-property :name latex-environment))
|
2012-02-19 19:05:46 -05:00
|
|
|
|
(value (org-remove-indentation
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value latex-environment))))
|
2012-02-19 19:05:46 -05:00
|
|
|
|
(if (not (org-string-nw-p label)) value
|
|
|
|
|
;; Environment is labelled: label must be within the environment
|
|
|
|
|
;; (otherwise, a reference pointing to that element will count
|
|
|
|
|
;; the section instead).
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert value)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(forward-line)
|
|
|
|
|
(insert (format "\\label{%s}\n" label))
|
|
|
|
|
(buffer-string)))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Latex Fragment
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-latex-fragment (latex-fragment contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a LATEX-FRAGMENT object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value latex-fragment))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Line Break
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-line-break (line-break contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a LINE-BREAK object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
"\\\\")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Link
|
|
|
|
|
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(defun org-e-latex-link--inline-image (link info)
|
|
|
|
|
"Return LaTeX code for an inline image.
|
|
|
|
|
LINK is the link pointing to the inline image. INFO is a plist
|
|
|
|
|
used as a communication channel."
|
|
|
|
|
(let* ((parent (org-export-get-parent-paragraph link info))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(path (let ((raw-path (org-element-property :path link)))
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(if (not (file-name-absolute-p raw-path)) raw-path
|
|
|
|
|
(expand-file-name raw-path))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(caption (org-e-latex--caption/label-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :caption parent)
|
|
|
|
|
(org-element-property :name parent)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
info))
|
|
|
|
|
;; Retrieve latex attributes from the element around.
|
|
|
|
|
(attr (let ((raw-attr
|
|
|
|
|
(mapconcat #'identity
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :attr_latex parent)
|
2012-02-16 09:44:17 -05:00
|
|
|
|
" ")))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(unless (string= raw-attr "") raw-attr)))
|
|
|
|
|
(disposition
|
|
|
|
|
(cond
|
|
|
|
|
((and attr (string-match "\\<wrap\\>" attr)) 'wrap)
|
|
|
|
|
((and attr (string-match "\\<multicolumn\\>" attr)) 'multicolumn)
|
|
|
|
|
((or (and attr (string-match "\\<float\\>" attr))
|
|
|
|
|
(not (string= caption "")))
|
|
|
|
|
'float)))
|
|
|
|
|
(placement
|
|
|
|
|
(cond
|
|
|
|
|
((and attr (string-match "\\<placement=\\(\\S-+\\)" attr))
|
|
|
|
|
(org-match-string-no-properties 1 attr))
|
|
|
|
|
((eq disposition 'wrap) "{l}{0.5\\textwidth}")
|
|
|
|
|
((eq disposition 'float)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(concat "[" org-e-latex-default-figure-position "]"))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(t ""))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Now clear ATTR from any special keyword and set a default
|
|
|
|
|
;; value if nothing is left.
|
2012-01-25 07:18:28 -05:00
|
|
|
|
(setq attr
|
|
|
|
|
(if (not attr) ""
|
|
|
|
|
(org-trim
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"\\(wrap\\|multicolumn\\|float\\|placement=\\S-+\\)" "" attr))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(setq attr (cond ((not (string= attr "")) attr)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
((eq disposition 'float) "width=0.7\\textwidth")
|
|
|
|
|
((eq disposition 'wrap) "width=0.48\\textwidth")
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(t (or org-e-latex-image-default-option ""))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Return proper string, depending on DISPOSITION.
|
|
|
|
|
(case disposition
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(wrap (format "\\begin{wrapfigure}%s
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\\centering
|
|
|
|
|
\\includegraphics[%s]{%s}
|
|
|
|
|
%s\\end{wrapfigure}" placement attr path caption))
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(mulicolumn (format "\\begin{figure*}%s
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\\centering
|
|
|
|
|
\\includegraphics[%s]{%s}
|
|
|
|
|
%s\\end{figure*}" placement attr path caption))
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(float (format "\\begin{figure}%s
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\\centering
|
|
|
|
|
\\includegraphics[%s]{%s}
|
|
|
|
|
%s\\end{figure}" placement attr path caption))
|
|
|
|
|
(t (format "\\includegraphics[%s]{%s}" attr path)))))
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-link (link desc info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a LINK object from Org to LaTeX.
|
|
|
|
|
|
|
|
|
|
DESC is the description part of the link, or the empty string.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
INFO is a plist holding contextual information. See
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
`org-export-data'."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((type (org-element-property :type link))
|
|
|
|
|
(raw-path (org-element-property :path link))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Ensure DESC really exists, or set it to nil.
|
|
|
|
|
(desc (and (not (string= desc "")) desc))
|
|
|
|
|
(imagep (org-export-inline-image-p
|
2012-02-15 05:08:10 -05:00
|
|
|
|
link org-e-latex-inline-image-rules))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(path (cond
|
|
|
|
|
((member type '("http" "https" "ftp" "mailto"))
|
|
|
|
|
(concat type ":" raw-path))
|
2012-01-23 13:14:59 -05:00
|
|
|
|
((string= type "file")
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(when (string-match "\\(.+\\)::.+" raw-path)
|
|
|
|
|
(setq raw-path (match-string 1 raw-path)))
|
|
|
|
|
(if (file-name-absolute-p raw-path)
|
|
|
|
|
(concat "file://" (expand-file-name raw-path))
|
|
|
|
|
;; TODO: Not implemented yet. Concat also:
|
|
|
|
|
;; (org-export-directory :LaTeX info)
|
|
|
|
|
(concat "file://" raw-path)))
|
|
|
|
|
(t raw-path)))
|
|
|
|
|
protocol)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Image file.
|
2012-02-16 09:44:17 -05:00
|
|
|
|
(imagep (org-e-latex-link--inline-image link info))
|
2012-02-17 10:20:17 -05:00
|
|
|
|
;; Radioed target: Target's name is obtained from original raw
|
|
|
|
|
;; link. Path is parsed and transcoded in order to have a proper
|
|
|
|
|
;; display of the contents.
|
|
|
|
|
((string= type "radio")
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\hyperref[%s]{%s}"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-export-solidify-link-text path)
|
2012-02-17 10:20:17 -05:00
|
|
|
|
(org-export-secondary-string
|
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
path (cdr (assq 'radio-target org-element-object-restrictions)))
|
|
|
|
|
'e-latex info)))
|
2012-02-19 12:20:21 -05:00
|
|
|
|
;; Ref link: If no description is provided, reference label PATH
|
|
|
|
|
;; and display table number. Otherwise move to label but display
|
|
|
|
|
;; description instead.
|
|
|
|
|
((string= type "ref")
|
|
|
|
|
(if (not desc) (format "\\ref{%s}" path)
|
|
|
|
|
(format "\\hyperref[%s]{%s}" path desc)))
|
2012-01-25 12:13:58 -05:00
|
|
|
|
;; Links pointing to an headline: Find destination and build
|
2012-02-17 10:20:17 -05:00
|
|
|
|
;; appropriate referencing command.
|
2012-01-25 12:13:58 -05:00
|
|
|
|
((member type '("custom-id" "fuzzy" "id"))
|
|
|
|
|
(let ((destination (if (string= type "fuzzy")
|
|
|
|
|
(org-export-resolve-fuzzy-link link info)
|
|
|
|
|
(org-export-resolve-id-link link info))))
|
|
|
|
|
;; Fuzzy link points to a target. Do as above.
|
org-element: Introduce a new accessor: `org-element-type'
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-caption, org-e-ascii--build-title,
org-e-ascii--describe-links, org-e-ascii-template,
org-e-ascii-paragraph): Use new accessor
* EXPERIMENTAL/org-e-latex.el (org-e-latex--guess-inputenc): Small
refactoring.
(org-e-latex-footnote-reference, org-e-latex-link): Use new
accessor.
* contrib/lisp/org-element.el (org-element-type): New function.
(org-element-map, org-element-parse-elements,
org-element-interpret-data, org-element-normalize-contents,
org-element-forward, org-element-unindent-buffer): Use new
accessor.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-get-min-level, org-export-data, org-export-skip-p,
org-export-interpret-p, org-export-expand,
org-export-expand-include-keyword,
org-export-prepare-file-contents, org-export-first-sibling-p,
org-export-resolve-fuzzy-link, org-export-get-ordinal,
org-export-get-loc, org-export-get-genealogy,
org-export-get-parent-headline): Use new accessor.
2012-02-22 07:07:27 -05:00
|
|
|
|
(case (org-element-type destination)
|
2012-01-13 19:02:02 -05:00
|
|
|
|
(target
|
|
|
|
|
(format "\\hyperref[%s]{%s}"
|
|
|
|
|
(org-export-solidify-link-text
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :raw-value destination))
|
2012-01-13 19:02:02 -05:00
|
|
|
|
(or desc
|
|
|
|
|
(org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :raw-link link)
|
2012-01-13 19:02:02 -05:00
|
|
|
|
'e-latex info))))
|
2012-01-25 12:13:58 -05:00
|
|
|
|
;; Fuzzy link points to an headline. If headlines are
|
|
|
|
|
;; numbered and the link has no description, display
|
|
|
|
|
;; headline's number. Otherwise, display description or
|
|
|
|
|
;; headline's title.
|
2012-01-13 19:02:02 -05:00
|
|
|
|
(headline
|
2012-01-25 12:13:58 -05:00
|
|
|
|
(let ((label
|
|
|
|
|
(format "sec-%s"
|
|
|
|
|
(mapconcat
|
|
|
|
|
'number-to-string
|
|
|
|
|
(org-export-get-headline-number destination info)
|
|
|
|
|
"-"))))
|
|
|
|
|
(if (and (plist-get info :section-numbers) (not desc))
|
|
|
|
|
(format "\\ref{%s}" label)
|
|
|
|
|
(format "\\hyperref[%s]{%s}" label
|
|
|
|
|
(or desc
|
|
|
|
|
(org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :title destination)
|
2012-01-25 12:13:58 -05:00
|
|
|
|
'e-latex info))))))
|
|
|
|
|
;; Fuzzy link points nowhere.
|
2012-01-13 19:02:02 -05:00
|
|
|
|
(otherwise
|
|
|
|
|
(format "\\texttt{%s}"
|
|
|
|
|
(or desc
|
|
|
|
|
(org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :raw-link link)
|
2012-01-13 19:02:02 -05:00
|
|
|
|
'e-latex info)))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Coderef: replace link with the reference name or the
|
|
|
|
|
;; equivalent line number.
|
|
|
|
|
((string= type "coderef")
|
|
|
|
|
(format (org-export-get-coderef-format path (or desc ""))
|
2012-01-11 08:44:28 -05:00
|
|
|
|
(org-export-resolve-coderef path info)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Link type is handled by a special function.
|
|
|
|
|
((functionp (setq protocol (nth 2 (assoc type org-link-protocols))))
|
|
|
|
|
(funcall protocol (org-link-unescape path) desc 'latex))
|
|
|
|
|
;; External link with a description part.
|
|
|
|
|
((and path desc) (format "\\href{%s}{%s}" path desc))
|
|
|
|
|
;; External link without a description part.
|
|
|
|
|
(path (format "\\url{%s}" path))
|
|
|
|
|
;; No path, only description. Try to do something useful.
|
|
|
|
|
(t (format "\\texttt{%s}" desc)))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Babel Call
|
|
|
|
|
|
|
|
|
|
;; Babel Calls are ignored.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Macro
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-macro (macro contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a MACRO element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
;; Use available tools.
|
|
|
|
|
(org-export-expand-macro macro info))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Paragraph
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-paragraph (paragraph contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a PARAGRAPH element from Org to LaTeX.
|
|
|
|
|
CONTENTS is the contents of the paragraph, as a string. INFO is
|
|
|
|
|
the plist used as a communication channel."
|
|
|
|
|
contents)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Plain List
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-plain-list (plain-list contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a PLAIN-LIST element from Org to LaTeX.
|
|
|
|
|
CONTENTS is the contents of the list. INFO is a plist holding
|
|
|
|
|
contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((type (org-element-property :type plain-list))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(paralist-types '("inparaenum" "asparaenum" "inparaitem" "asparaitem"
|
|
|
|
|
"inparadesc" "asparadesc"))
|
|
|
|
|
(paralist-regexp (concat
|
|
|
|
|
"\\("
|
|
|
|
|
(mapconcat 'identity paralist-types "\\|")
|
|
|
|
|
"\\)"))
|
|
|
|
|
(attr (mapconcat #'identity
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :attr_latex plain-list)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
" "))
|
|
|
|
|
(latex-type (cond
|
|
|
|
|
((and attr
|
|
|
|
|
(string-match
|
|
|
|
|
(format "\\<%s\\>" paralist-regexp) attr))
|
|
|
|
|
(match-string 1 attr))
|
|
|
|
|
((eq type 'ordered) "enumerate")
|
|
|
|
|
((eq type 'unordered) "itemize")
|
|
|
|
|
((eq type 'descriptive) "description"))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
plain-list
|
|
|
|
|
(format "\\begin{%s}%s\n%s\\end{%s}"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
latex-type
|
|
|
|
|
;; Once special environment, if any, has been removed, the
|
|
|
|
|
;; rest of the attributes will be optional arguments.
|
|
|
|
|
;; They will be put inside square brackets if necessary.
|
|
|
|
|
(let ((opt (replace-regexp-in-string
|
|
|
|
|
(format " *%s *" paralist-regexp) "" attr)))
|
|
|
|
|
(cond ((string= opt "") "")
|
|
|
|
|
((string-match "\\`\\[[^][]+\\]\\'" opt) opt)
|
|
|
|
|
(t (format "[%s]" opt))))
|
|
|
|
|
contents
|
|
|
|
|
latex-type))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Plain Text
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-plain-text (text info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a TEXT string from Org to LaTeX.
|
|
|
|
|
TEXT is the string to transcode. INFO is a plist holding
|
|
|
|
|
contextual information."
|
|
|
|
|
;; Protect %, #, &, $, ~, ^, _, { and }.
|
|
|
|
|
(while (string-match "\\([^\\]\\|^\\)\\([%$#&{}~^_]\\)" text)
|
|
|
|
|
(setq text
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(replace-match (format "\\%s" (match-string 2 text)) nil t text 2)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Protect \
|
|
|
|
|
(setq text (replace-regexp-in-string
|
2011-12-09 08:38:36 -05:00
|
|
|
|
"\\(?:[^\\]\\|^\\)\\(\\\\\\)\\(?:[^%$#&{}~^_\\]\\|$\\)"
|
|
|
|
|
"$\\backslash$" text nil t 1))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; LaTeX into \LaTeX{} and TeX into \TeX{}.
|
|
|
|
|
(let ((case-fold-search nil)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(start 0))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(while (string-match "\\<\\(\\(?:La\\)?TeX\\)\\>" text start)
|
|
|
|
|
(setq text (replace-match
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format "\\%s{}" (match-string 1 text)) nil t text)
|
|
|
|
|
start (match-end 0))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Handle quotation marks
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(setq text (org-e-latex--quotation-marks text info))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Convert special strings.
|
|
|
|
|
(when (plist-get info :with-special-strings)
|
|
|
|
|
(while (string-match (regexp-quote "...") text)
|
|
|
|
|
(setq text (replace-match "\\ldots{}" nil t text))))
|
|
|
|
|
;; Handle break preservation if required.
|
|
|
|
|
(when (plist-get info :preserve-breaks)
|
|
|
|
|
(setq text (replace-regexp-in-string "\\(\\\\\\\\\\)?[ \t]*\n" " \\\\\\\\\n"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
text)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Return value.
|
|
|
|
|
text)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Property Drawer
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-property-drawer (property-drawer contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a PROPERTY-DRAWER element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual
|
|
|
|
|
information."
|
|
|
|
|
;; The property drawer isn't exported but we want separating blank
|
|
|
|
|
;; lines nonetheless.
|
|
|
|
|
"")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Quote Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-quote-block (quote-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a QUOTE-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information."
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
quote-block
|
|
|
|
|
(format "\\begin{quote}\n%s\\end{quote}" contents)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Quote Section
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-quote-section (quote-section contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a QUOTE-SECTION element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
(let ((value (org-remove-indentation
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value quote-section))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(when value (format "\\begin{verbatim}\n%s\\end{verbatim}" value))))
|
|
|
|
|
|
|
|
|
|
|
2012-01-08 06:40:38 -05:00
|
|
|
|
;;;; Section
|
|
|
|
|
|
|
|
|
|
(defun org-e-latex-section (section contents info)
|
|
|
|
|
"Transcode a SECTION element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the section. INFO is a plist
|
|
|
|
|
holding contextual information."
|
|
|
|
|
contents)
|
|
|
|
|
|
|
|
|
|
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;;;; Radio Target
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-radio-target (radio-target text info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a RADIO-TARGET object from Org to LaTeX.
|
|
|
|
|
TEXT is the text of the target. INFO is a plist holding
|
|
|
|
|
contextual information."
|
|
|
|
|
(format "\\label{%s}%s"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-export-solidify-link-text
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :raw-value radio-target))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
text))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Special Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-special-block (special-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a SPECIAL-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the block. INFO is a plist
|
|
|
|
|
holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((type (downcase (org-element-property :type special-block))))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
special-block
|
|
|
|
|
(format "\\begin{%s}\n%s\\end{%s}" type contents type))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Src Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-src-block (src-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a SRC-BLOCK element from Org to LaTeX.
|
|
|
|
|
CONTENTS holds the contents of the item. INFO is a plist holding
|
|
|
|
|
contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((lang (org-element-property :language src-block))
|
2012-01-11 08:44:28 -05:00
|
|
|
|
(code (org-export-handle-code src-block info))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(caption (org-element-property :caption src-block))
|
|
|
|
|
(label (org-element-property :name src-block))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(custom-env (and lang
|
|
|
|
|
(cadr (assq (intern lang)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-custom-lang-environments)))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; No source fontification.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((not org-e-latex-listings)
|
|
|
|
|
(let ((caption-str (org-e-latex--caption/label-string
|
2011-12-09 08:38:36 -05:00
|
|
|
|
caption label info))
|
|
|
|
|
(float-env (when caption "\\begin{figure}[H]\n%s\n\\end{figure}")))
|
|
|
|
|
(format (or float-env "%s")
|
|
|
|
|
(concat
|
|
|
|
|
caption-str
|
|
|
|
|
(format "\\begin{verbatim}\n%s\\end{verbatim}" code)))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Custom environment.
|
|
|
|
|
(custom-env
|
|
|
|
|
(format "\\begin{%s}\n%s\\end{%s}\n" custom-env code custom-env))
|
|
|
|
|
;; Use minted package.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((eq org-e-latex-listings 'minted)
|
|
|
|
|
(let* ((mint-lang (or (cadr (assq (intern lang) org-e-latex-minted-langs))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
lang))
|
|
|
|
|
(float-env (when (or label caption)
|
|
|
|
|
(format "\\begin{listing}[H]\n%%s\n%s\\end{listing}"
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--caption/label-string
|
2011-12-09 08:38:36 -05:00
|
|
|
|
caption label info))))
|
|
|
|
|
(body (format "\\begin{minted}[%s]{%s}\n%s\\end{minted}"
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--make-option-string
|
|
|
|
|
org-e-latex-minted-options)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
mint-lang code)))
|
|
|
|
|
(if float-env (format float-env body) body)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Use listings package.
|
|
|
|
|
(t
|
2012-01-22 15:34:00 -05:00
|
|
|
|
(let ((lst-lang
|
|
|
|
|
(or (cadr (assq (intern lang) org-e-latex-listings-langs)) lang))
|
|
|
|
|
(caption-str
|
|
|
|
|
(when caption
|
|
|
|
|
(let ((main (org-export-secondary-string
|
|
|
|
|
(car caption) 'e-latex info)))
|
|
|
|
|
(if (not (cdr caption)) (format "{%s}" main)
|
|
|
|
|
(format
|
|
|
|
|
"{[%s]%s}"
|
|
|
|
|
(org-export-secondary-string (cdr caption) 'e-latex info)
|
|
|
|
|
main))))))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat (format "\\lstset{%s}\n"
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--make-option-string
|
|
|
|
|
(append org-e-latex-listings-options
|
2011-12-09 08:38:36 -05:00
|
|
|
|
`(("language" ,lst-lang))
|
|
|
|
|
(when label `(("label" ,label)))
|
|
|
|
|
(when caption-str
|
|
|
|
|
`(("caption" ,caption-str))))))
|
|
|
|
|
(format "\\begin{lstlisting}\n%s\\end{lstlisting}" code)))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Statistics Cookie
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-statistics-cookie (statistics-cookie contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a STATISTICS-COOKIE object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value statistics-cookie))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Subscript
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-subscript (subscript contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a SUBSCRIPT object from Org to LaTeX.
|
|
|
|
|
CONTENTS is the contents of the object. INFO is a plist holding
|
|
|
|
|
contextual information."
|
|
|
|
|
(format (if (= (length contents) 1) "$_%s$" "$_{\\mathrm{%s}}$") contents))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Superscript
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-superscript (superscript contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a SUPERSCRIPT object from Org to LaTeX.
|
|
|
|
|
CONTENTS is the contents of the object. INFO is a plist holding
|
|
|
|
|
contextual information."
|
|
|
|
|
(format (if (= (length contents) 1) "$^%s$" "$^{\\mathrm{%s}}$") contents))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Table
|
|
|
|
|
|
2012-01-22 16:00:44 -05:00
|
|
|
|
(defun org-e-latex-table--format-string (table table-info info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return an appropriate format string for TABLE.
|
|
|
|
|
|
2012-01-22 16:00:44 -05:00
|
|
|
|
TABLE-INFO is the plist containing format info about the table,
|
|
|
|
|
as returned by `org-export-table-format-info'. INFO is a plist
|
|
|
|
|
used as a communication channel.
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-02-08 16:36:18 -05:00
|
|
|
|
The format string leaves one placeholder for the body of the
|
|
|
|
|
table."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let* ((label (org-element-property :name table))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(caption (org-e-latex--caption/label-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :caption table) label info))
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(attr (mapconcat 'identity
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :attr_latex table)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
" "))
|
|
|
|
|
;; Determine alignment string.
|
2012-01-22 16:00:44 -05:00
|
|
|
|
(alignment (org-e-latex-table--align-string attr table-info))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; Determine environment for the table: longtable, tabular...
|
|
|
|
|
(table-env (cond
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((not attr) org-e-latex-default-table-environment)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
((string-match "\\<longtable\\>" attr) "longtable")
|
2012-02-08 16:36:18 -05:00
|
|
|
|
((string-match "\\<tabular.?\\>" attr)
|
|
|
|
|
(org-match-string-no-properties 0 attr))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(t org-e-latex-default-table-environment)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
;; If table is a float, determine environment: table or table*.
|
|
|
|
|
(float-env (cond
|
|
|
|
|
((string= "longtable" table-env) nil)
|
|
|
|
|
((and attr
|
|
|
|
|
(or (string-match (regexp-quote "table*") attr)
|
|
|
|
|
(string-match "\\<multicolumn\\>" attr)))
|
|
|
|
|
"table*")
|
|
|
|
|
((or (not (string= caption "")) label) "table")))
|
|
|
|
|
;; Extract others display options.
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(width (and attr (string-match "\\<width=\\(\\S-+\\)" attr)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-match-string-no-properties 1 attr)))
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(placement
|
|
|
|
|
(if (and attr (string-match "\\<placement=\\(\\S-+\\)" attr))
|
|
|
|
|
(org-match-string-no-properties 1 attr)
|
|
|
|
|
(format "[%s]" org-e-latex-default-figure-position))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Prepare the final format string for the table.
|
|
|
|
|
(cond
|
|
|
|
|
;; Longtable.
|
|
|
|
|
((string= "longtable" table-env)
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(format
|
|
|
|
|
"\\begin{longtable}{%s}\n%s\n%%s\n%s\\end{longtable}"
|
|
|
|
|
alignment
|
|
|
|
|
(if (or (not org-e-latex-table-caption-above) (string= "" caption)) ""
|
|
|
|
|
(concat (org-trim caption) "\\\\"))
|
|
|
|
|
(if (or org-e-latex-table-caption-above (string= "" caption)) ""
|
|
|
|
|
(concat (org-trim caption) "\\\\\n"))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Others.
|
|
|
|
|
(t (concat (when float-env
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat
|
|
|
|
|
(format "\\begin{%s}%s\n" float-env placement)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(if org-e-latex-table-caption-above caption "")))
|
|
|
|
|
(when org-e-latex-tables-centered "\\begin{center}\n")
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format "\\begin{%s}%s{%s}\n%%s\n\\end{%s}"
|
|
|
|
|
table-env
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(if width (format "{%s}" width) "") alignment table-env)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(when org-e-latex-tables-centered "\n\\end{center}")
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(when float-env
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(concat (if org-e-latex-table-caption-above "" caption)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format "\n\\end{%s}" float-env))))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2012-01-22 16:00:44 -05:00
|
|
|
|
(defun org-e-latex-table--align-string (attr table-info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Return an appropriate LaTeX alignment string.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
ATTR is a string containing table's LaTeX specific attributes.
|
2012-01-22 16:00:44 -05:00
|
|
|
|
TABLE-INFO is the plist containing format info about the table,
|
|
|
|
|
as returned by `org-export-table-format-info'."
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(or (and attr
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(string-match "\\<align=\\(\\S-+\\)" attr)
|
|
|
|
|
(match-string 1 attr))
|
2012-01-22 16:00:44 -05:00
|
|
|
|
(let* ((align (copy-sequence (plist-get table-info :alignment)))
|
|
|
|
|
(colgroups (copy-sequence (plist-get table-info :column-groups)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(cols (length align))
|
|
|
|
|
(separators (make-vector (1+ cols) "")))
|
|
|
|
|
;; Ignore the first column if it's special.
|
2012-01-22 16:00:44 -05:00
|
|
|
|
(when (plist-get table-info :special-column-p)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(aset align 0 "") (aset colgroups 0 nil))
|
|
|
|
|
(let ((col 0))
|
|
|
|
|
(mapc (lambda (el)
|
|
|
|
|
(let ((gr (aref colgroups col)))
|
|
|
|
|
(when (memq gr '(start start-end))
|
|
|
|
|
(aset separators col "|"))
|
|
|
|
|
(when (memq gr '(end start-end))
|
|
|
|
|
(aset separators (1+ col) "|")))
|
|
|
|
|
(incf col))
|
|
|
|
|
align))
|
|
|
|
|
;; Build the LaTeX specific alignment string.
|
|
|
|
|
(loop for al across align
|
|
|
|
|
for sep across separators
|
|
|
|
|
concat (concat sep al) into output
|
|
|
|
|
finally return (concat output (aref separators cols))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-table (table contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a TABLE element from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
|
|
|
|
(let ((attr (mapconcat #'identity
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :attr_latex table)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
" "))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(raw-table (org-element-property :raw-table table)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Case 1: verbatim table.
|
2011-12-11 10:23:09 -05:00
|
|
|
|
((or org-e-latex-tables-verbatim
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(and attr (string-match "\\<verbatim\\>" attr)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\begin{verbatim}\n%s\n\\end{verbatim}"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-export-clean-table
|
|
|
|
|
raw-table
|
|
|
|
|
(plist-get (org-export-table-format-info raw-table)
|
|
|
|
|
:special-column-p))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Case 2: table.el table. Convert it using appropriate tools.
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
((eq (org-element-property :type table) 'table.el)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(require 'table)
|
|
|
|
|
;; Ensure "*org-export-table*" buffer is empty.
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(with-current-buffer (get-buffer-create "*org-export-table*")
|
|
|
|
|
(erase-buffer))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(let ((output (with-temp-buffer
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(insert raw-table)
|
|
|
|
|
(goto-char 1)
|
|
|
|
|
(re-search-forward "^[ \t]*|[^|]" nil t)
|
|
|
|
|
(table-generate-source 'latex "*org-export-table*")
|
|
|
|
|
(with-current-buffer "*org-export-table*"
|
|
|
|
|
(org-trim (buffer-string))))))
|
|
|
|
|
(kill-buffer (get-buffer "*org-export-table*"))
|
|
|
|
|
;; Remove left out comments.
|
|
|
|
|
(while (string-match "^%.*\n" output)
|
|
|
|
|
(setq output (replace-match "" t t output)))
|
|
|
|
|
;; When the "rmlines" attribute is provided, remove all hlines
|
|
|
|
|
;; but the the one separating heading from the table body.
|
|
|
|
|
(when (and attr (string-match "\\<rmlines\\>" attr))
|
|
|
|
|
(let ((n 0) (pos 0))
|
|
|
|
|
(while (and (< (length output) pos)
|
|
|
|
|
(setq pos (string-match "^\\\\hline\n?" output pos)))
|
|
|
|
|
(incf n)
|
2012-02-08 16:36:18 -05:00
|
|
|
|
(unless (= n 2)
|
|
|
|
|
(setq output (replace-match "" nil nil output))))))
|
|
|
|
|
(if (not org-e-latex-tables-centered) output
|
|
|
|
|
(format "\\begin{center}\n%s\n\\end{center}" output))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Case 3: Standard table.
|
2011-12-07 15:03:05 -05:00
|
|
|
|
(t
|
|
|
|
|
(let* ((table-info (org-export-table-format-info raw-table))
|
2012-02-08 16:34:53 -05:00
|
|
|
|
(columns-number (length (plist-get table-info :alignment)))
|
|
|
|
|
(longtablep (and attr (string-match "\\<longtable\\>" attr)))
|
|
|
|
|
(booktabsp
|
|
|
|
|
(or (and attr (string-match "\\<booktabs=\\(yes\\|t\\)\\>" attr))
|
|
|
|
|
org-e-latex-tables-booktabs))
|
|
|
|
|
;; CLEAN-TABLE is a table turned into a list, much like
|
|
|
|
|
;; `org-table-to-lisp', with special column and
|
|
|
|
|
;; formatting cookies removed, and cells already
|
|
|
|
|
;; transcoded.
|
|
|
|
|
(clean-table
|
|
|
|
|
(mapcar
|
|
|
|
|
(lambda (row)
|
|
|
|
|
(if (string-match org-table-hline-regexp row) 'hline
|
|
|
|
|
(mapcar
|
|
|
|
|
(lambda (cell)
|
|
|
|
|
(org-export-secondary-string
|
|
|
|
|
(org-element-parse-secondary-string
|
|
|
|
|
cell
|
|
|
|
|
(cdr (assq 'table org-element-string-restrictions)))
|
|
|
|
|
'e-latex info))
|
|
|
|
|
(org-split-string row "[ \t]*|[ \t]*"))))
|
|
|
|
|
(org-split-string
|
|
|
|
|
(org-export-clean-table
|
|
|
|
|
raw-table (plist-get table-info :special-column-p))
|
|
|
|
|
"\n"))))
|
|
|
|
|
;; If BOOKTABSP is non-nil, remove any rule at the beginning
|
|
|
|
|
;; and the end of the table, since booktabs' special rules
|
|
|
|
|
;; will be inserted instead.
|
|
|
|
|
(when booktabsp
|
|
|
|
|
(when (eq (car clean-table) 'hline)
|
|
|
|
|
(setq clean-table (cdr clean-table)))
|
|
|
|
|
(when (eq (car (last clean-table)) 'hline)
|
|
|
|
|
(setq clean-table (butlast clean-table))))
|
2011-12-07 15:03:05 -05:00
|
|
|
|
;; Convert ROWS to send them to `orgtbl-to-latex'. In
|
|
|
|
|
;; particular, send each cell to
|
|
|
|
|
;; `org-element-parse-secondary-string' to expand any Org
|
2012-02-08 16:34:53 -05:00
|
|
|
|
;; object within. Eventually, flesh the format string out
|
|
|
|
|
;; with the table.
|
|
|
|
|
(format
|
|
|
|
|
(org-e-latex-table--format-string table table-info info)
|
|
|
|
|
(orgtbl-to-latex
|
|
|
|
|
clean-table
|
|
|
|
|
;; Parameters passed to `orgtbl-to-latex'.
|
|
|
|
|
`(:tstart ,(and booktabsp "\\toprule")
|
|
|
|
|
:tend ,(and booktabsp "\\bottomrule")
|
|
|
|
|
:hline ,(if booktabsp "\\midrule" "\\hline")
|
|
|
|
|
;; Longtable environment requires specific header
|
|
|
|
|
;; lines end string.
|
|
|
|
|
:hlend ,(and longtablep
|
|
|
|
|
(format "\\\\
|
|
|
|
|
%s
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\\endhead
|
2012-02-08 16:34:53 -05:00
|
|
|
|
%s\\multicolumn{%d}{r}{Continued on next page}\\\\
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
\\endfoot
|
|
|
|
|
\\endlastfoot"
|
2012-02-08 16:34:53 -05:00
|
|
|
|
(if booktabsp "\\midrule" "\\hline")
|
|
|
|
|
(if booktabsp "\\midrule" "\\hline")
|
|
|
|
|
columns-number))))))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Target
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-target (target text info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a TARGET object from Org to LaTeX.
|
|
|
|
|
TEXT is the text of the target. INFO is a plist holding
|
|
|
|
|
contextual information."
|
|
|
|
|
(format "\\label{%s}%s"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(org-export-solidify-link-text
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :raw-value target))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
text))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Time-stamp
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-time-stamp (time-stamp contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a TIME-STAMP object from Org to LaTeX.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual
|
|
|
|
|
information."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((value (org-element-property :value time-stamp))
|
|
|
|
|
(type (org-element-property :type time-stamp))
|
|
|
|
|
(appt-type (org-element-property :appt-type time-stamp)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(concat (cond ((eq appt-type 'scheduled)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(format "\\textbf{\\textsc{%s}} " org-scheduled-string))
|
|
|
|
|
((eq appt-type 'deadline)
|
|
|
|
|
(format "\\textbf{\\textsc{%s}} " org-deadline-string))
|
|
|
|
|
((eq appt-type 'closed)
|
|
|
|
|
(format "\\textbf{\\textsc{%s}} " org-closed-string)))
|
|
|
|
|
(cond ((memq type '(active active-range))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(format org-e-latex-active-timestamp-format value))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
((memq type '(inactive inactive-range))
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(format org-e-latex-inactive-timestamp-format value))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(t
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(format org-e-latex-diary-timestamp-format value))))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Verbatim
|
|
|
|
|
|
2012-01-17 14:54:08 -05:00
|
|
|
|
(defun org-e-latex-verbatim (verbatim contents info)
|
|
|
|
|
"Transcode a VERBATIM object from Org to LaTeX.
|
|
|
|
|
CONTENTS is nil. INFO is a plist used as a communication
|
|
|
|
|
channel."
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(let ((fmt (cdr (assoc (org-element-property :marker verbatim)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
org-e-latex-emphasis-alist)))
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(value (org-element-property :value verbatim)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(cond
|
|
|
|
|
;; Handle the `verb' special case.
|
|
|
|
|
((eq 'verb fmt)
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(let ((separator (org-e-latex--find-verb-separator value)))
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(concat "\\verb" separator value separator)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Handle the `protectedtexttt' special case.
|
|
|
|
|
((eq 'protectedtexttt fmt)
|
|
|
|
|
(let ((start 0)
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(trans '(("\\" . "\\textbackslash{}")
|
|
|
|
|
("~" . "\\textasciitilde{}")
|
|
|
|
|
("^" . "\\textasciicircum{}")))
|
|
|
|
|
(rtn "")
|
|
|
|
|
char)
|
|
|
|
|
(while (string-match "[\\{}$%&_#~^]" value)
|
|
|
|
|
(setq char (match-string 0 value))
|
|
|
|
|
(if (> (match-beginning 0) 0)
|
|
|
|
|
(setq rtn (concat rtn (substring value 0 (match-beginning 0)))))
|
|
|
|
|
(setq value (substring value (1+ (match-beginning 0))))
|
|
|
|
|
(setq char (or (cdr (assoc char trans)) (concat "\\" char))
|
|
|
|
|
rtn (concat rtn char)))
|
|
|
|
|
(setq value (concat rtn value)
|
|
|
|
|
fmt "\\texttt{%s}")
|
|
|
|
|
(while (string-match "--" value)
|
|
|
|
|
(setq value (replace-match "-{}-" t t value)))
|
|
|
|
|
(format fmt value)))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
;; Else use format string.
|
|
|
|
|
(t (format fmt value)))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;;;; Verse Block
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(defun org-e-latex-verse-block (verse-block contents info)
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
"Transcode a VERSE-BLOCK element from Org to LaTeX.
|
2012-01-17 14:54:08 -05:00
|
|
|
|
CONTENTS is nil. INFO is a plist holding contextual information."
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(org-e-latex--wrap-label
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
verse-block
|
|
|
|
|
;; In a verse environment, add a line break to each newline
|
|
|
|
|
;; character and change each white space at beginning of a line
|
|
|
|
|
;; into a space of 1 em. Also change each blank line with
|
|
|
|
|
;; a vertical space of 1 em.
|
|
|
|
|
(progn
|
|
|
|
|
(setq contents (replace-regexp-in-string
|
2011-12-09 08:38:36 -05:00
|
|
|
|
"^ *\\\\\\\\$" "\\\\vspace*{1em}"
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"\\(\\\\\\\\\\)?[ \t]*\n" " \\\\\\\\\n"
|
|
|
|
|
(org-remove-indentation
|
|
|
|
|
(org-export-secondary-string
|
org-element: Rename accessors
* contrib/lisp/org-element.el (org-element-property,
org-element-contents): New functions, renamed from, respecively
`org-element-get-property' and `org-element-get-contents'.
(org-element-link-successor): Small refactoring.
(org-element-drawer-interpreter,
org-element-dynamic-block-interpreter,
org-element-footnote-definition-interpreter,
org-element-headline-interpreter,
org-element-inlinetask-interpreter, org-element-item-interpreter,
org-element-special-block-interpreter,
org-element-babel-call-interpreter,
org-element-comment-interpreter,
org-element-comment-block-interpreter,
org-element-example-block-interpreter,
org-element-export-block-interpreter,
org-element-fixed-width-interpreter,
org-element-keyword-interpreter,
org-element-latex-environment-interpreter,
org-element-property-drawer-interpreter,
org-element-quote-section-interpreter,
org-element-src-block-interpreter, org-element-table-interpreter,
org-element-verse-block-interpreter,
org-element-emphasis-interpreter, org-element-entity-interpreter,
org-element-export-snippet-interpreter,
org-element-footnote-reference-interpreter,
org-element-inline-babel-call-interpreter,
org-element-inline-src-block-interpreter,
org-element-latex-fragment-interpreter,
org-element-link-interpreter, org-element-macro-interpreter,
org-element-statistics-cookie-interpreter,
org-element-subscript-interpreter,
org-element-superscript-interpreter,
org-element-time-stamp-interpreter,
org-element-verbatim-interpreter, org-element-map,
org-element-parse-elements, org-element-parse-objects,
org-element-interpret-data,
org-element-interpret--affiliated-keywords,
org-element-normalize-contents, org-element-swap-A-B,
org-element-backward, org-element-drag-backward,
org-element-drag-forward, org-element-forward,
org-element-mark-element, org-narrow-to-element,
org-transpose-elements, org-element-unindent-buffer,
org-element-up): Use new names.
* contrib/lisp/org-export.el (org-export-get-inbuffer-options,
org-export-use-select-tags-p, org-export-get-min-level,
org-export-data, org-export-skip-p, org-export-interpret-p,
org-export-collect-footnote-definitions,
org-export-footnote-first-reference-p,
org-export-get-footnote-number, org-export-get-relative-level,
org-export-last-sibling-p, org-export-inline-image-p,
org-export-resolve-fuzzy-link, org-export-resolve-id-link,
org-export-resolve-ref-link, org-export-resolve-coderef,
org-export-expand-macro, org-export-get-loc,
org-export-handle-code, org-export-collect-elements,
org-export-get-genealogy, org-export-get-previous-element): Use new names.
* EXPERIMENTAL/org-e-ascii.el (org-e-ascii--current-text-width,
org-e-ascii--build-title, org-e-ascii--build-caption,
org-e-ascii--list-listings, org-e-ascii--list-tables,
org-e-ascii--unique-links, org-e-ascii--describe-links,
org-e-ascii-template, org-e-ascii-drawer, org-e-ascii-emphasis,
org-e-ascii-entity, org-e-ascii-export-snippet,
org-e-ascii-export-block, org-e-ascii-fixed-width,
org-e-ascii-headline, org-e-ascii-horizontal-rule,
org-e-ascii-inline-src-block, org-e-ascii-inlinetask,
org-e-ascii-item, org-e-ascii-keyword,
org-e-ascii-latex-environment, org-e-ascii-latex-fragment,
org-e-ascii-link, org-e-ascii-paragraph, org-e-ascii-quote-section,
org-e-ascii-statistics-cookie, org-e-ascii-subscript,
org-e-ascii-superscript, org-e-ascii-table, org-e-ascii-verbatim,
org-e-ascii-verse-block): Use new names
* EXPERIMENTAL/org-e-latex.el (org-e-latex--wrap-label,
org-e-latex-drawer, org-e-latex-emphasis, org-e-latex-entity,
org-e-latex-example-block, org-e-latex-export-snippet,
org-e-latex-export-block, org-e-latex-fixed-width,
org-e-latex-footnote-reference, org-e-latex-headline,
org-e-latex-link--inline-image, org-e-latex-latex-fragment,
org-e-latex-latex-environment, org-e-latex-keyword,
org-e-latex-item, org-e-latex-inlinetask,
org-e-latex-inline-src-block, org-e-latex-special-block,
org-e-latex-radio-target, org-e-latex-quote-section,
org-e-latex-plain-list, org-e-latex-src-block,
org-e-latex-statistics-cookie, org-e-latex-table--format-string,
org-e-latex-target, org-e-latex-time-stamp, org-e-latex-verbatim):
Use new names
* EXPERIMENTAL/org-e-publish.el (org-e-publish-collect-index,
org-e-publish-index-generate-theindex): Use new names.
2012-02-22 07:47:20 -05:00
|
|
|
|
(org-element-property :value verse-block)
|
2011-12-23 10:30:00 -05:00
|
|
|
|
'e-latex info)))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(while (string-match "^[ \t]+" contents)
|
|
|
|
|
(let ((new-str (format "\\hspace*{%dem}"
|
2011-12-09 08:38:36 -05:00
|
|
|
|
(length (match-string 0 contents)))))
|
|
|
|
|
(setq contents (replace-match new-str nil t contents))))
|
EXPERIMENTAL/org-latex: LaTeX back-end for generic exporter
* EXPERIMENTAL/org-latex.el (org-latex-option-alist,
org-latex-default-class, org-latex-classes
org-latex-inputenc-alist, org-latex-date-format,
org-latex-title-command, org-latex-format-headline-function, org-latex-emphasis-alist,
org-latex-footnote-separator, org-latex-active-timestamp-format,
org-latex-inactive-timestamp-format,
org-latex-diary-timestamp-format, org-latex-image-default-option,
org-latex-default-figure-position, org-latex-inline-image-extensions,
org-latex-default-table-environment, org-latex-tables-centered,
org-latex-tables-verbatim, org-latex-table-caption-above,
org-latex-format-drawer-function,
org-latex-format-inlinetask-function, org-latex-listings, org-latex-listings-langs,
org-latex-listings-options, org-latex-minted-langs,
org-latex-minted-options, org-latex-quotes,
org-latex-custom-lang-environments): New variables.
(org-latex--caption/label-string, org-latex--guess-inputenc,
org-latex--find-verb-separator, org-latex--make-option-string,
org-latex--quotation-marks, org-latex--wrap-label,
org-latex-template, org-latex-center-block, org-latex-drawer,
org-latex-dynamic-block, org-latex-emphasis, org-latex-entity,
org-latex-example-block, org-latex-export-snippet,
org-latex-export-block, org-latex-fixed-width,
org-latex-footnote-reference, org-latex-headline,
org-latex-horizontal-rule, org-latex-inline-src-block,
org-latex-inlinetask, org-latex-item, org-latex-keyword,
org-latex-latex-environment, org-latex-latex-fragment,
org-latex-line-break, org-latex-link--inline-image, org-latex-link,
org-latex-macro, org-latex-paragraph, org-latex-plain-list,
org-latex-plain-text, org-latex-property-drawer,
org-latex-quote-block, org-latex-quote-section,
org-latex-radio-target, org-latex-special-block,
org-latex-src-block, org-latex-statistics-cookie,
org-latex-subscript, org-latex-superscript,
org-latex-table--format-string, org-latex-table--align-string,
org-latex-table, org-latex-target, org-latex-time-stamp,
org-latex-verbatim, org-latex-verse-block): New functions.
2011-11-28 17:36:51 -05:00
|
|
|
|
(format "\\begin{verse}\n%s\\end{verse}" contents))))
|
|
|
|
|
|
|
|
|
|
|
2012-01-05 10:01:34 -05:00
|
|
|
|
|
2012-01-17 14:27:10 -05:00
|
|
|
|
;;; Interactive functions
|
|
|
|
|
|
|
|
|
|
(defun org-e-latex-export-to-latex
|
|
|
|
|
(&optional subtreep visible-only body-only ext-plist pub-dir)
|
|
|
|
|
"Export current buffer to a LaTeX file.
|
|
|
|
|
|
|
|
|
|
If narrowing is active in the current buffer, only export its
|
|
|
|
|
narrowed part.
|
|
|
|
|
|
|
|
|
|
If a region is active, export that region.
|
|
|
|
|
|
|
|
|
|
When optional argument SUBTREEP is non-nil, export the sub-tree
|
|
|
|
|
at point, extracting information from the headline properties
|
|
|
|
|
first.
|
|
|
|
|
|
|
|
|
|
When optional argument VISIBLE-ONLY is non-nil, don't export
|
|
|
|
|
contents of hidden elements.
|
|
|
|
|
|
|
|
|
|
When optional argument BODY-ONLY is non-nil, only write code
|
|
|
|
|
between \"\\begin{document}\" and \"\\end{document}\".
|
|
|
|
|
|
|
|
|
|
EXT-PLIST, when provided, is a property list with external
|
|
|
|
|
parameters overriding Org default settings, but still inferior to
|
|
|
|
|
file-local settings.
|
|
|
|
|
|
|
|
|
|
When optional argument PUB-DIR is set, use it as the publishing
|
|
|
|
|
directory.
|
|
|
|
|
|
|
|
|
|
Return output file's name."
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((outfile (org-export-output-file-name ".tex" subtreep pub-dir)))
|
|
|
|
|
(org-export-to-file
|
|
|
|
|
'e-latex outfile subtreep visible-only body-only ext-plist)))
|
|
|
|
|
|
|
|
|
|
(defun org-e-latex-export-to-pdf
|
|
|
|
|
(&optional subtreep visible-only body-only ext-plist pub-dir)
|
|
|
|
|
"Export current buffer to LaTeX then process through to PDF.
|
|
|
|
|
|
|
|
|
|
If narrowing is active in the current buffer, only export its
|
|
|
|
|
narrowed part.
|
|
|
|
|
|
|
|
|
|
If a region is active, export that region.
|
|
|
|
|
|
|
|
|
|
When optional argument SUBTREEP is non-nil, export the sub-tree
|
|
|
|
|
at point, extracting information from the headline properties
|
|
|
|
|
first.
|
|
|
|
|
|
|
|
|
|
When optional argument VISIBLE-ONLY is non-nil, don't export
|
|
|
|
|
contents of hidden elements.
|
|
|
|
|
|
|
|
|
|
When optional argument BODY-ONLY is non-nil, only write code
|
|
|
|
|
between \"\\begin{document}\" and \"\\end{document}\".
|
|
|
|
|
|
|
|
|
|
EXT-PLIST, when provided, is a property list with external
|
|
|
|
|
parameters overriding Org default settings, but still inferior to
|
|
|
|
|
file-local settings.
|
|
|
|
|
|
|
|
|
|
When optional argument PUB-DIR is set, use it as the publishing
|
|
|
|
|
directory.
|
|
|
|
|
|
|
|
|
|
Return PDF file's name."
|
|
|
|
|
(interactive)
|
|
|
|
|
(org-e-latex-compile
|
|
|
|
|
(org-e-latex-export-to-latex
|
|
|
|
|
subtreep visible-only body-only ext-plist pub-dir)))
|
2012-01-05 10:01:34 -05:00
|
|
|
|
|
|
|
|
|
(defun org-e-latex-compile (texfile)
|
|
|
|
|
"Compile a TeX file.
|
|
|
|
|
|
|
|
|
|
TEXFILE is the name of the file being compiled. Processing is
|
|
|
|
|
done through the command specified in `org-e-latex-pdf-process'.
|
|
|
|
|
|
|
|
|
|
Return PDF file name or an error if it couldn't be produced."
|
|
|
|
|
(let* ((wconfig (current-window-configuration))
|
|
|
|
|
(texfile (file-truename texfile))
|
|
|
|
|
(base (file-name-sans-extension texfile))
|
|
|
|
|
errors)
|
2012-01-21 10:32:57 -05:00
|
|
|
|
(message (format "Processing LaTeX file %s ..." texfile))
|
2012-01-05 10:01:34 -05:00
|
|
|
|
(unwind-protect
|
|
|
|
|
(progn
|
|
|
|
|
(cond
|
|
|
|
|
;; A function is provided: Apply it.
|
2012-02-23 12:26:12 -05:00
|
|
|
|
((functionp org-e-latex-pdf-process)
|
|
|
|
|
(funcall org-e-latex-pdf-process (shell-quote-argument texfile)))
|
2012-01-05 10:01:34 -05:00
|
|
|
|
;; A list is provided: Replace %b, %f and %o with appropriate
|
|
|
|
|
;; values in each command before applying it. Output is
|
|
|
|
|
;; redirected to "*Org PDF LaTeX Output*" buffer.
|
|
|
|
|
((consp org-e-latex-pdf-process)
|
|
|
|
|
(let* ((out-dir (or (file-name-directory texfile) "./"))
|
|
|
|
|
(outbuf (get-buffer-create "*Org PDF LaTeX Output*")))
|
|
|
|
|
(mapc
|
|
|
|
|
(lambda (command)
|
|
|
|
|
(shell-command
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"%b" (shell-quote-argument base)
|
|
|
|
|
(replace-regexp-in-string
|
|
|
|
|
"%f" (shell-quote-argument texfile)
|
|
|
|
|
(replace-regexp-in-string
|
2012-02-23 12:26:12 -05:00
|
|
|
|
"%o" (shell-quote-argument out-dir) command t t) t t) t t)
|
2012-01-05 10:01:34 -05:00
|
|
|
|
outbuf))
|
|
|
|
|
org-e-latex-pdf-process)
|
|
|
|
|
;; Collect standard errors from output buffer.
|
|
|
|
|
(setq errors (org-e-latex-collect-errors outbuf))))
|
|
|
|
|
(t (error "No valid command to process to PDF")))
|
|
|
|
|
(let ((pdffile (concat base ".pdf")))
|
|
|
|
|
;; Check for process failure. Provide collected errors if
|
|
|
|
|
;; possible.
|
|
|
|
|
(if (not (file-exists-p pdffile))
|
|
|
|
|
(error (concat (format "PDF file %s wasn't produced" pdffile)
|
|
|
|
|
(when errors (concat ": " errors))))
|
|
|
|
|
;; Else remove log files, when specified, and signal end of
|
|
|
|
|
;; process to user, along with any error encountered.
|
|
|
|
|
(when org-e-latex-remove-logfiles
|
|
|
|
|
(dolist (ext org-e-latex-logfiles-extensions)
|
|
|
|
|
(let ((file (concat base "." ext)))
|
|
|
|
|
(when (file-exists-p file) (delete-file file)))))
|
|
|
|
|
(message (concat "Process completed"
|
|
|
|
|
(if (not errors) "."
|
|
|
|
|
(concat " with errors: " errors)))))
|
|
|
|
|
;; Return output file name.
|
|
|
|
|
pdffile))
|
|
|
|
|
(set-window-configuration wconfig))))
|
|
|
|
|
|
|
|
|
|
(defun org-e-latex-collect-errors (buffer)
|
|
|
|
|
"Collect some kind of errors from \"pdflatex\" command output.
|
|
|
|
|
|
|
|
|
|
BUFFER is the buffer containing output.
|
|
|
|
|
|
|
|
|
|
Return collected error types as a string, or nil if there was
|
|
|
|
|
none."
|
|
|
|
|
(with-current-buffer buffer
|
|
|
|
|
(save-excursion
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
;; Find final "pdflatex" run.
|
|
|
|
|
(when (re-search-backward "^[ \t]*This is pdf.*?TeX.*?Version" nil t)
|
|
|
|
|
(let ((case-fold-search t)
|
|
|
|
|
(errors ""))
|
|
|
|
|
(when (save-excursion
|
|
|
|
|
(re-search-forward "Reference.*?undefined" nil t))
|
|
|
|
|
(setq errors (concat errors " [undefined reference]")))
|
|
|
|
|
(when (save-excursion
|
|
|
|
|
(re-search-forward "Citation.*?undefined" nil t))
|
|
|
|
|
(setq errors (concat errors " [undefined citation]")))
|
|
|
|
|
(when (save-excursion
|
|
|
|
|
(re-search-forward "Undefined control sequence" nil t))
|
|
|
|
|
(setq errors (concat errors " [undefined control sequence]")))
|
|
|
|
|
(when (save-excursion
|
2012-01-05 16:29:16 -05:00
|
|
|
|
(re-search-forward "^! LaTeX.*?Error" nil t))
|
2012-01-05 10:01:34 -05:00
|
|
|
|
(setq errors (concat errors " [LaTeX error]")))
|
|
|
|
|
(when (save-excursion
|
2012-01-05 16:29:16 -05:00
|
|
|
|
(re-search-forward "^! Package.*?Error" nil t))
|
2012-01-05 10:01:34 -05:00
|
|
|
|
(setq errors (concat errors " [package error]")))
|
|
|
|
|
(and (org-string-nw-p errors) (org-trim errors)))))))
|
|
|
|
|
|
|
|
|
|
|
2011-12-11 10:23:09 -05:00
|
|
|
|
(provide 'org-e-latex)
|
|
|
|
|
;;; org-e-latex.el ends here
|