Commit Graph

1597 Commits

Author SHA1 Message Date
Daniel Clemente d8ad57d4f7 org-contacts.el (org-contacts-format-name): New function
* org-contacts.el (org-contacts-format-name): New function.
(org-contacts-format-email): Use the new function.

TINYCHANGE
2013-01-02 10:22:25 +01:00
Bastien Guerry 60b23bdeac Merge branch 'maint'
Conflicts:
	contrib/lisp/htmlize.el
	etc/schema/od-manifest-schema-v1.2-os.rnc
	etc/schema/od-schema-v1.2-os.rnc
	lisp/org-exp-blocks.el
2013-01-01 16:06:17 +01:00
Bastien Guerry 98cd4687a2 Update copyright years.
Happy new year!
2013-01-01 16:04:24 +01:00
Bastien Guerry 37e562460d org-e-odt.el (org-compat): Require
* org-e-odt.el (org-compat): Require.
2012-12-30 11:05:57 +01:00
Bastien Guerry 9f1f0535be Merge branch 'maint' 2012-12-23 17:20:51 +01:00
Jambunathan K dcd5c81dc4 org-e-odt.el: Handle links to target, list items 2012-12-23 12:44:44 +01:00
Jambunathan K d06f326f20 org-e-odt.el: Handle links to headline, table etc that have a description 2012-12-23 12:44:43 +01:00
Jambunathan K 5aceba1da3 org-e-odt.el: Handle clickable images 2012-12-23 12:44:43 +01:00
Jambunathan K 135dc9e049 org-e-odt.el: Use `org-export-data-with-translations' 2012-12-23 12:44:43 +01:00
Jambunathan K 29ac6d77e3 org-e-odt.el: Support for short captions 2012-12-23 12:44:43 +01:00
Jambunathan K 847e92377e org-e-odt.el: Port fix for Bug#13197 2012-12-23 12:44:43 +01:00
Jambunathan K 4876e94fee org-e-odt.el: Fix typesetting of Math formulae 2012-12-23 12:44:43 +01:00
Jambunathan K 2b761ceb39 org-e-odt.el: Add frame title and description to latex equations 2012-12-23 12:44:43 +01:00
Jambunathan K fddc312c29 org-odt.el: Improve TOC entries 2012-12-23 12:44:43 +01:00
Jambunathan K 6e3e0176e3 org-e-odt.el: Emit priority in headlines, right justify tags 2012-12-23 12:44:43 +01:00
Jambunathan K ef29557e6a org-e-odt.el: Not all keywords are supported 2012-12-23 12:44:43 +01:00
Jambunathan K ac19d91ab8 org-e-odt.el: Use new version of org-export-get-previous/next-element 2012-12-23 12:44:43 +01:00
Jambunathan K 5cf798dc24 org-e-odt.el: New experimental option `org-e-odt-use-date-fields' 2012-12-23 12:44:43 +01:00
Jambunathan K 4680247236 Fix Table of Contents, Clock block and various styles 2012-12-23 12:44:43 +01:00
Jambunathan K 8cf8c1d8c0 org-e-odt.el: Fix export issues on Windows XP
Fixes http://lists.gnu.org/archive/html/emacs-orgmode/2012-11/msg00747.html
2012-12-23 12:44:42 +01:00
Jambunathan K 26d0c053b4 org-e-odt.el: Honor `org-export-with-date'
* etc/styles/OrgOdtStyles.xml (OrgDate): New date style.
* contrib/lisp/org-e-odt.el (org-e-odt--date): Misc. change.
(org-e-odt-template): Honor `org-export-with-date'.
2012-12-23 12:44:42 +01:00
Jambunathan K 293a14d13f Update OpenDocument schema files to v1.2 OASIS standard
* etc/schema/od-schema-v1.2-os.rnc: OASIS standard
* etc/schema/od-manifest-schema-v1.2-os.rnc: OASIS standard
* etc/schema/schemas.xml: Fix uri to rnc files.
* lisp/org-odt.el (org-export-odt-schema-dir): Modified to
accommodate change in rnc file names.
* contrib/lisp/org-e-odt.el (org-e-odt-schema-dir): Modified
to accommodate change in rnc file names.
2012-12-23 12:44:42 +01:00
Bastien Guerry 91056e2a8d org-export-generic.el: Small code clean-up
* org-export-generic.el (org-export-generic-preprocess): Use
`delete-backward-char' instead of `backward-delete-char'.
(org-generic-alist, def-org-export-generic-keyword)
(org-export-generic-remember-section, org-export-generic)
(org-export-generic-format, org-export-generic-header)
(org-generic-level-start): Remove dangling parentheses,
fix indentation.
2012-12-23 12:23:02 +01:00
Thomas Dye e873446a63 Texinfo: Mention #+TEXINFO_POST_HEADER in comments
* contrib/lisp/org-e-texinfo.el: There are now nine keywords.

TINYCHANGE
2012-12-23 00:36:38 +01:00
Bastien Guerry be4bacb32b contrib/lisp/org-contacts.el: Fix indentation of the file 2012-12-22 19:07:10 +01:00
Bastien Guerry 0966773c5b contrib/lisp/org-contacts.el: Docstring fixes and small code clean up
* org-contacts.el (org-contacts)
(org-contacts-birthday-format, org-contacts-complete-name)
(org-contacts-wl-get-name-email)
(org-contacts-template-wl-name)
(org-contacts-view-send-email, org-contacts-vcard-escape)
(org-contacts-vcard-format, org-contacts-export-as-vcard)
(org-contacts-show-map): Docstring fixes and small code clean
up.
2012-12-22 19:05:28 +01:00
Jonas Bernoulli 894e93d759 Orgpan: quiet byte-compiler
* contrib/lisp/org-panel.el: don't setq undefined and otherwise unused
  variable orgpan-this-panel-window
* contrib/lisp/org-panel.el (orgpan-check-panel-mode): fix format
  string of (error)
* contrib/lisp/org-panel.el: declare variables
  viper-emacs-state-mode-list and viper-new-major-mode-buffer-list
  which are defined in viper.el

TINYCHANGE
2012-12-22 16:10:36 +01:00
Jonas Bernoulli 650748ae43 Orgpan: resize the correct window
* contrib/lisp/org-panel.el (orgpan-panel): Make sure the panel buffer
  is resized to four lines not the document buffer.

TINYCHANGE
2012-12-22 16:10:33 +01:00
Bastien Guerry 5de94e46e4 Merge branch 'maint' 2012-12-20 13:16:47 +01:00
Dmitry Antipov bfb9f9d10f Use (point-marker) instead of (move-marker (make-marker) (point))
* org-agenda.el (org-agenda-get-restriction-and-command): Use `point-marker'.
* org-capture.el (org-capture-place-template): Likewise.
* org-colview-xemacs.el (org-dblock-write:columnview): Likewise.
* org-colview.el (org-dblock-write:columnview): Likewise.
* org-mobile.el (org-mobile-locate-entry): Likewise.
* org-table.el (org-table-convert-region): Likewise.
* org.el (org-update-statistics-cookies): Likewise.
* contrib/lisp/org-invoice.el (org-dblock-write:invoice): Likewise.
2012-12-20 13:16:41 +01:00
Alan Schmitt 5267cfc6fb * contrib/lisp/org-e-beamer.el: added publishing functions
org-e-beamer-publish-to-latex and org-e-beamer-publish-to-pdf
2012-12-20 09:58:16 +01:00
Nicolas Goaziou f506348bcf org-export: Allow to force viewing of a stack source in Emacs
* contrib/lisp/org-export.el (org-export--stack-view): Add optional
  prefix argument to view a file in Emacs.

Patch from Jambunathan K.
2012-12-19 22:27:58 +01:00
Nicolas Goaziou 27f06c104e org-export: Implement function to locally override translation table
* contrib/lisp/org-export.el (org-export-data-with-translations,
  org-export-data-with-backend): New functions.
* testing/lisp/test-org-export.el: Add tests.
2012-12-19 17:48:51 +01:00
Nicolas Goaziou 27d7d0ea17 org-export: Remove NOEXPAND optional argument from `org-export-as'
* contrib/lisp/org-export.el (org-export-options-alist): Fix
  docstring.
(org-export-as): Remove NOEXPAND argument.
(org-export-to-buffer, org-export-to-file): Apply argument removal.

This argument is not needed since a function removing macros, babel
code and include keywords can be added to
`org-export-before-processing-hook'.
2012-12-18 22:42:00 +01:00
Bastien Guerry 0db5f28dd4 org-html.el and org-e-html.el: Add CSS classes to list tags.
* org-html.el (org-html-export-list-line): Add CSS classes to
these list HTML tags: <ul> <dl> and <ol>.

* contrib/lisp/org-e-html.el (org-e-html-begin-plain-list): Add
CSS classes to these list HTML tags: <ul> <dl> and <ol>.
2012-12-18 18:38:20 +01:00
Jonathan Leech-Pepin 676180a5fb org-e-texinfo.el: Fix link export to account for alternate TOC names
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-link): Texinfo uses the
menu/TOC names for finding cross-references.  Use the menu-title as
the link destination.  Also ensures link descriptions are used as
link titles.
2012-12-17 10:58:25 -05:00
Nicolas Goaziou 83b567925a org-export: Fix docstring
* contrib/lisp/org-export.el (org-export-define-backend): Fix
  docstring to include asynchronous export and additional sub-menus.
2012-12-16 08:22:41 +01:00
Nicolas Goaziou 457c27d05b org-e-confluence: Add asynchronous export support
* contrib/lisp/org-e-confluence.el (org-e-confluence-export-as-confluence):
  Add asynchronous export support.
2012-12-15 20:22:46 +01:00
Bastien Guerry e77f26e121 contrib/lisp/org-e-confluence.el: New file by Sébastien Delafond 2012-12-15 07:36:05 +01:00
Bastien Guerry 20940bb18f contrib/lisp/org-bullets.el: New file by Evgeni Sabof
Implements a minor mode to show org-mode bullets as UTF-8 characters.
2012-12-15 07:22:49 +01:00
Nicolas Goaziou e556812db5 org-export: Fix docstring
* contrib/lisp/org-export.el (org-export-stack-mode): Fix docstring.
2012-12-14 19:02:34 +01:00
Nicolas Goaziou 68d4de2f2c org-koma-letter: Add asynchronous export support
* contrib/lisp/org-koma-letter.el (org-koma-letter-export-as-latex,
  org-koma-letter-export-to-latex, org-koma-letter-export-to-pdf): Add
  asynchronous export support.
2012-12-14 16:55:17 +01:00
Jonathan Leech-Pepin a223d1a011 * contrib/lisp/org-e-texinfo.el: Remove messages used for debugging
(org-e-texinfo--generate-menu-items): Remove messages used for debugging.
2012-12-14 09:21:22 -05:00
Nicolas Goaziou 286fd7f250 org-e-beamer/html: Asynchronous export ignores `org-export-show-temporary-export-buffer'
* contrib/lisp/org-e-beamer.el (org-e-beamer-export-as-latex): Ignore
  `org-export-show-temporary-export-buffer' when export is
  asynchronous.
* contrib/lisp/org-e-html.el (org-e-html-export-as-html): Ignore
  `org-export-show-temporary-export-buffer' when export is
  asynchronous.

Export output always goes in the Export Stack.
2012-12-13 23:13:35 +01:00
Nicolas Goaziou 06872a4570 export back-ends: Activate asynchronous export
* contrib/lisp/org-e-ascii.el (org-e-ascii-export-as-ascii,
  org-e-ascii-export-to-ascii): Activate asynchronous export.
* contrib/lisp/org-e-beamer.el (org-e-beamer-export-as-latex,
  org-e-beamer-export-to-latex): Activate asynchronous export.
* contrib/lisp/org-e-groff.el (org-e-groff-export-to-groff,
  org-e-groff-export-to-pdf): Activate asynchronous export.
* contrib/lisp/org-e-html.el (org-e-html-export-as-html,
  org-e-html-export-to-html): Activate asynchronous export.
* contrib/lisp/org-e-icalendar.el (org-e-icalendar-export-to-ics):
  Activate asynchronous export.
* contrib/lisp/org-e-latex.el (org-e-latex-export-as-latex,
  org-e-latex-export-to-latex, org-e-latex-export-to-pdf): Activate
  asynchronous export.
* contrib/lisp/org-e-man.el (org-e-man-export-to-man,
  org-e-man-export-to-pdf): Activate asynchronous export.
* contrib/lisp/org-e-odt.el (org-e-odt-export-to-odt): Activate
  asynchronous export.  Remove body-only argument.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-export-to-texinfo,
  org-e-texinfo-export-to-info): Activate asynchronous export.
* contrib/lisp/org-md.el (org-md-export-as-markdown,
  org-md-export-to-markdown): Activate asynchronous export.
2012-12-13 15:36:51 +01:00
Nicolas Goaziou 5319cec24e org-e-publish: Activate asynchronous publishing
* contrib/lisp/org-e-publish.el (org-e-publish, org-e-publish-all,
  org-e-publish-current-file, org-e-publish-current-project): Activate
  asynchronous publishing.
(org-e-publish-initial-buffer): Remove unused variable.
* contrib/lisp/org-export.el (org-export-dispatch): Send asynchronous
  flag to publishing functions, when needed.
2012-12-13 15:36:51 +01:00
Nicolas Goaziou ffb630b85d org-export: Add asynchronous process wrapper for export
* contrib/lisp/org-export.el (org-export-async-stack,
org-export-async-debug, org-export-in-background,
org-export-async-init-file, org-export-stack-mode-map): New
variables.
(org-export-async-start): New macro.
(org-export--stack-source-at-point, org-export--stack-refresh,
 org-export-add-to-stack, org-export--stack-remove,
 org-export--stack-view, org-export--stack-clear,
 org-export-stack, org-export-copy-buffer,
 org-export--generate-copy-script): New functions.
(org-export-dispatch, org-export-dispatch-ui): Allow to toggle
asynchronous export.
(org-export-with-buffer-copy): Renamed from
`org-export-with-current-buffer-copy'.
(org-export-execute-babel-code): Use new function to copy a buffer.
(org-export-as): Remove all text properties from output so it still
can be sent to the original process.
2012-12-13 15:36:51 +01:00
Jonathan Leech-Pepin 5c1eab535b * contrib/lisp/org-e-texinfo.el: Provided export of info: links
(org-e-texinfo-link): Parse info: links to allow linking to
appropriate info nodes.
2012-12-13 08:38:31 -05:00
Nicolas Goaziou 627d5733be org-e-html: Small refactoring
* contrib/lisp/org-e-html.el (org-e-html-fontify-code): Activating
  major mode before inserting contents avoid problem of initial
  visibility for an Org buffer.
2012-12-12 23:16:51 +01:00
Nicolas Goaziou 2c39a4ae85 export back-ends: Apply line break changes
* contrib/lisp/org-e-html.el (org-e-html-line-break): Apply line break
  changes.
* contrib/lisp/org-e-latex.el (org-e-latex-line-break): Apply line
  break changes.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-line-break): Apply line
  break changes.
* contrib/lisp/org-md.el (org-md-line-break): Apply line break
  changes.
2012-12-12 22:48:06 +01:00
Eric Schulte 8dd3fa301a Use the org-mime-default-header customized variable
* contrib/lisp/org-mime.el (org-mime-htmlize): Use the
  org-mime-default-header customized variable.
2012-12-12 10:48:57 -07:00
Nicolas Goaziou b1f36921d7 org-export: Allow to retrieve all previous/next exportable objects
* contrib/lisp/org-export.el (org-export-get-previous-element,
  org-export-get-next-element): Allow to retrieve all previous/next
  exportable objects by specifying a non-nil, non positive integer
  argument.
* testing/lisp/test-org-export.el: Add tests.
2012-12-10 08:54:52 +01:00
Nicolas Goaziou 66c6642e68 org-e-html: Fix error when exporting an Org src block
* contrib/lisp/org-e-html.el (org-e-html-fontify-code): Expand
  everything in the buffer before calling htmlize.  Remove an assert.
  Add docstring.
2012-12-09 12:30:26 +01:00
Nicolas Goaziou 2cdddb96c4 org-e-html: Remove unused variable
* contrib/lisp/org-e-html.el (org-e-html-cvt-link-fn): Remove
  variable.
2012-12-09 12:17:16 +01:00
Nicolas Goaziou b95793d200 org-e-html: Small refactoring
* contrib/lisp/org-e-html.el (org-e-html--textarea-block): New
  function.
(org-e-html--make-string): Renamed from `org-e-html-make-string'.
(org-e-html-format-toc-headline): Use previous function.
(org-e-html-do-format-code, org-e-html-format-code): Remove argument
relative to textareas. Add docstring.
(org-e-html-example-block, org-e-html-src-block): Refactoring relative
to textareas.
2012-12-09 12:16:37 +01:00
Nicolas Goaziou 2aac1818d5 org-md: Fix export error with inline images
* contrib/lisp/org-md.el (org-md-link): Fix error with inline images.
2012-12-08 19:30:27 +01:00
Nicolas Goaziou cbb96d69d3 org-export: Add an optional argument to previous an next elements getters
* contrib/lisp/org-export.el (org-export-get-previous-element,
  org-export-get-next-element): Change signature.
* testing/lisp/test-org-export.el: Add tests.
2012-12-08 18:57:10 +01:00
Bastien Guerry dcdec74b00 Merge branch 'maint' 2012-12-04 15:24:43 +01:00
Bastien Guerry 6dfe2fef04 org-export-generic.el: Warn about not using this for new exporters. 2012-12-04 15:24:37 +01:00
Steve Purcell ba7a3ef869 org-mac-iCal.el (org-mac-iCal): Support version 10.8.
* contrib/lisp/org-mac-iCal.el (org-mac-iCal): Support version 10.8.

TINYCHANGE
2012-12-04 15:21:02 +01:00
Thomas S. Dye 6340615cc6 org-e-texinfo.el: Introduce #+TEXINFO_POST_HEADER and use it.
* org-e-texinfo.el (e-texinfo)
(org-e-texinfo--generate-menu-list, org-e-texinfo-template):
Introduce #+TEXINFO_POST_HEADER and use it.

TINYCHANGE
2012-12-04 15:19:43 +01:00
Steve Purcell 795e951270 org-mac-iCal.el (org-mac-iCal): Support version 10.8.
* contrib/lisp/org-mac-iCal.el (org-mac-iCal): Support version 10.8.

TINYCHANGE
2012-12-04 15:13:51 +01:00
Nicolas Goaziou 496ed832d8 export back-ends: Remove useless pub-dir argument from export commands
* contrib/lisp/org-e-ascii.el (org-e-ascii-export-to-ascii): Remove
  pub-dir argument.
* contrib/lisp/org-e-beamer.el (org-e-beamer-export-to-latex,
  org-e-beamer-export-to-pdf): Remove pub-dir argument.
* contrib/lisp/org-e-groff.el (org-e-groff-export-to-groff,
  org-e-groff-export-to-pdf): Remove pub-dir argument.
* contrib/lisp/org-e-html.el (org-e-html-export-to-html): Remove
  pub-dir argument.
* contrib/lisp/org-e-latex.el (org-e-latex-export-to-latex,
  org-e-latex-export-to-pdf): Remove pub-dir argument.
* contrib/lisp/org-e-man.el (org-e-man-export-to-man,
  org-e-man-export-to-pdf): Remove pub-dir argument.
* contrib/lisp/org-e-odt.el (org-e-odt-export-to-odt): Remove pub-dir
  argument.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-export-to-texinfo,
  org-e-texinfo-export-to-info): Remove pub-dir argument.
* contrib/lisp/org-koma-letter.el (org-koma-letter-export-to-latex,
  org-koma-letter-export-to-pdf): Remove pub-dir argument.
* contrib/lisp/org-md.el (org-md-export-to-markdown): Remove pub-dir
  argument.

Publishing mechansim does not call any export command. It only relies
on `org-export-file-name' and `org-export-to-file'.  Only the former
has to support a pub-dir argument.
2012-11-29 21:52:43 +01:00
Nicolas Goaziou 07f4d867e5 org-export: Dispatcher repeats last export action when called with C-u
* contrib/lisp/org-export.el (org-export-dispatch-last-action): New
  variable.
(org-export-dispatch): Repeat last export action when called with C-u.
2012-11-28 20:39:55 +01:00
Nicolas Goaziou 8ea5c9992a org-e-beamer: Allow to use arbitrary environment for lists
* contrib/lisp/org-e-beamer.el (org-e-beamer-plain-list): Allow to use
  arbitrary environment for lists.
2012-11-28 15:06:56 +01:00
Nicolas Goaziou dbdbf53cd6 org-export: Fix *:nil export option
* contrib/lisp/org-export.el (org-export--interpret-p): Fix *:nil
  export option.
(org-export-with-emphasize): Update docstring.
2012-11-28 13:36:31 +01:00
Alan Schmitt d344fda27a Add koma-letter back-end
* contrib/lisp/org-koma-letter.el: New file.
2012-11-26 08:58:59 +01:00
Nicolas Goaziou 6c8bd67cae org-e-latex: Take into account default mode when building a cluster
* contrib/lisp/org-e-latex.el (org-e-latex--math-table): Take into
  account default mode when building a cluster.
2012-11-25 16:41:43 +01:00
Nicolas Goaziou 755af23577 org-e-latex: Implement math table clusters
* contrib/lisp/org-e-latex.el (org-e-latex--math-table): Contiguous
  tables sharing the same math mode are wrapped within the same
  environment.

This patch will allow to write:

  #+label: I_2
  #+attr_latex: :mode math :environment bmatrix
  | a | b |
  |---+---|
  | c | d |
  #+attr_latex: :mode math :environment bmatrix :math-prefix "\\times"
  | 1 | 0 |
  |---+---|
  | 0 | 1 |
  #+attr_latex: :mode math :environment bmatrix :math-prefix "="
  | 1 | 0 |
  |---+---|
  | 0 | 1 |
  #+attr_latex: :mode math :environment bmatrix :math-prefix "\\times"
  | a | b |
  |---+---|
  | c | d |
  #+attr_latex: :mode math :environment bmatrix :math-prefix "="
  | a | b |
  |---+---|
  | c | d |

and get:

  \begin{equation}
    \label{I_2}
    \begin{bmatrix}
      a & b \\
      c & d \\
    \end{bmatrix}
    \times\begin{bmatrix}
      1 & 0 \\
      0 & 1 \\
    \end{bmatrix}
    =\begin{bmatrix}
      1 & 0 \\
      0 & 1 \\
    \end{bmatrix}
    \times\begin{bmatrix}
      a & b \\
      c & d \\
    \end{bmatrix}
    =\begin{bmatrix}
      a & b \\
      c & d \\
    \end{bmatrix}
  \end{equation}
2012-11-25 16:16:29 +01:00
Nicolas Goaziou fe3f1a0026 org-e-latex: Implement :font attribute for regular tables
* contrib/lisp/org-e-latex.el (org-e-latex--org-table):
  Implement :font attribute for regular tables.
2012-11-25 15:10:37 +01:00
Nicolas Goaziou 0226b01c3c org-e-icalendar: Create vevents for timestamps within headline's title
* contrib/lisp/org-e-icalendar.el (org-e-icalendar-entry): Create
  vevent for timestamps within headline's title.
2012-11-25 01:16:44 +01:00
Nicolas Goaziou b7053b5f9c org-export: Fix Babel unresolved references error
* contrib/lisp/org-export.el (org-export-execute-babel-code): New
  function.
(org-export-as): Use new function.
2012-11-25 00:24:25 +01:00
Nicolas Goaziou f71df7dc50 export back-ends: Use new tools for timestamps
* contrib/lisp/org-e-ascii.el (org-e-ascii-timestamp): Use new tool.
* contrib/lisp/org-e-groff.el (org-e-groff-timestamp): Use new tool.
* contrib/lisp/org-e-html.el (org-e-html-timestamp): Use new tool.
* contrib/lisp/org-e-latex.el (org-e-latex-timestamp): Use new tool.
* contrib/lisp/org-e-texinfo.el (org-e-texinfo-timestamp): Use new
  tool.
2012-11-23 18:43:05 +01:00
Nicolas Goaziou 0a142efdde org-export: Add tools for timestamps objects
* contrib/lisp/org-export.el (org-export-split-timestamp-range,
  org-export-translate-timestamp): New functions.
* testing/lisp/test-org-export.el: Add tests.
2012-11-23 18:41:58 +01:00
Nicolas Goaziou 68234d5a41 org-export: uniquify and sort allowed keys in dispatcher expert UI
* contrib/lisp/org-export.el (org-export-dispatch-ui): uniquify and
  sort allowed keys.
2012-11-22 22:32:48 +01:00
Nicolas Goaziou 785e470c6c org-e-latex: Fix bug with inline images
* contrib/lisp/org-e-latex.el (org-e-latex--inline-image): Use
  appropriate string.

This bug was introduced by 984ef56e65.
2012-11-22 22:24:10 +01:00
Nicolas Goaziou eb1ef7267b org-export: Fix "wrong number of arguments" error
* contrib/lisp/org-export.el (org-export-with-backend): Fix "wrong
  number of arguments" error.

This fixexs d1a075e6bb.
2012-11-22 17:44:10 +01:00
Nicolas Goaziou d1a075e6bb org-export: Allow variable arity in `org-export-with-backend'
* contrib/lisp/org-export.el (org-export-with-backend): Allow to
  ignore contents and info, if necessary.  Also fix code typo.
2012-11-22 15:02:21 +01:00
Nicolas Goaziou cc998ccbad org-e-html: Allow to set preamble/postamble in OPTIONS line 2012-11-22 14:37:11 +01:00
Nicolas Goaziou b5bfebb568 org-e-latex: Fix small bug
* contrib/lisp/org-e-latex.el (org-e-latex--table.el-table): Fix small
  bug.
2012-11-21 17:31:32 +01:00
Nicolas Goaziou 984ef56e65 org-e-latex: Change syntax for images attributes
* contrib/lisp/org-e-latex.el (org-e-latex--inline-image): Rename from
  `org-e-latex-link--inline-image'.  Use new attributes.
(org-e-latex-link): Use new function.
2012-11-21 17:28:03 +01:00
Nicolas Goaziou cf3eb34953 org-e-latex: Change syntax for plain list attributes
* contrib/lisp/org-e-latex.el (org-e-latex-plain-list): Change syntax
  for plain list attributes.
2012-11-21 17:28:03 +01:00
Nicolas Goaziou 82c88878bc org-e-latex: Change tables attributes and implement matrix support
* contrib/lisp/org-e-latex.el (org-e-latex-table-matrix-macros,
  org-e-latex-default-table-mode): New variables.
(org-e-latex-tables-verbatim): Removed variable.
(org-e-latex-tables-booktabs): Update docstring.
(org-e-latex--align-string, org-e-latex--org-table,
org-e-latex--table.el-table): Rename functions from, respectively
`org-e-latex-table--align-string', `org-e-latex-table--org-table' and
`org-e-latex-table--table.el-table'.  Use new attributes.
(org-e-latex-table,org-e-latex-table-row): Use new attributes.
(org-e-latex--math-table): New function.
2012-11-21 17:28:03 +01:00
Jonathan Leech-Pepin d939c4fb75 * contrib/lisp/org-e-texinfo.el: Added support for optional menu titles, also do not create menu entries for non-exporting headlines
(org-e-texinfo--generate-menu-items): Use optional title in menu if
present.
(org-e-texinfo-headline): Use optional title in node entry if present.
(org-e-texinfo--generate-menu-list): Omit headlines with :noexport:
tag when generating menu entries.
2012-11-21 11:15:33 -05:00
Nicolas Goaziou 1a0f8b5c8b org-export: Add tools for timestamps
* contrib/lisp/org-export.el (org-export-timestamp-has-time-p,
  org-export-format-timestamp): New functions.
* testing/lisp/test-org-export.el: Add tests.
2012-11-19 21:52:32 +01:00
Nicolas Goaziou dadde768f7 org-export: Fix docstring
* contrib/lisp/org-export.el (org-export-smart-quotes-alist): Fix
  docstring.
2012-11-19 21:32:59 +01:00
Nicolas Goaziou 5107ca3c9b org-export: Fix subtree option with `split' behaviour
* contrib/lisp/org-export.el (org-export--get-subtree-options): Store
  value of options with `split' behaviour as a list of strings, not
  simply as a string.  Small refactoring.
* testing/lisp/test-org-export.el: Add tests.
2012-11-18 14:44:20 +01:00
Nicolas Goaziou 626786c6eb org-e-beamer: Add "fullframe" special environment
* contrib/lisp/org-e-beamer.el (org-e-beamer-environments-special):
  Add "fullframe" environment.  Change access key for "againframe".
(org-e-beamer--frame-level): "fullframe" environment also sets the
frame level for the tree.
(org-e-beamer--format-frame): Ignore headline title when environment
is "fullframe".
(org-e-beamer-select-environment): Change access key for "againframe".
2012-11-17 21:55:26 +01:00
Nicolas Goaziou b58ce97144 org-e-beamer: Fix "columns" environment when explicitly requested
* contrib/lisp/org-e-beamer.el (org-e-beamer-environments-special):
  Add "columns" as a new special environment.
(org-e-beamer--format-block): Allow options in columns environment
when explictly requested as a BEAMER_env property.  Small refactoring.
2012-11-17 21:17:19 +01:00
Myles English 359b10b307 org-e-latex: Fixes bug introduced by commit 907110e
* contrib/lisp/org-e-latex.el: Floating tables get a \centering
  declaration, otherwise the table get wrapped in \begin{center}
  and \end{center} environment.

Thanks to Andreas Leha for reporting it.

TINYCHANGE
2012-11-17 16:44:47 +01:00
Nicolas Goaziou 4c7dcd0830 Silence byte compiler
* contrib/lisp/org-invoice.el (org-invoice-info-to-table,
  org-invoice-list-to-table): Silence byte compiler.
* lisp/org-agenda.el (org-agenda-show-clocking-issues,
  org-agenda-format-item): Silence byte compiler.
* lisp/org-colview-xemacs.el (org-agenda-columns): Silence byte
  compiler.
* lisp/org-colview.el (org-agenda-columns): Silence byte compiler.
* lisp/org.el (org-properties-postprocess-alist): Silence byte
  compiler.

Function renaming was necessary as of
a00a7b2918.
2012-11-17 15:51:26 +01:00
Nicolas Goaziou daf0275085 org-e-latex: Stuff label and caption within special blocks
* contrib/lisp/org-e-latex.el (org-e-latex-special-block): Stuff label
  and caption within special blocks.
2012-11-17 14:47:26 +01:00
Nicolas Goaziou 74faf5bd26 org-export: New `org-export-derived-backend-p' predicate
* contrib/lisp/org-export.el (org-export-define-derived-backend): Add
  `:parent' property to derived backend.
(org-export-derived-backend-p): New function.
* testing/lisp/test-org-export.el: Add tests.

This function can be useful in filters implemation. I.e.

  (defun my-filter (contents backend info)
    (when (memq backend '(e-latex e-beamer some-derived-backend-from-latex))
      ...))

can be replaced with:

  (defun my filter (contents backend info)
    (when (org-export-derived-backend-p backend 'e-latex)
      ...))
2012-11-17 13:33:38 +01:00
Nicolas Goaziou aa7dbec775 org-export: Fix dispatcher
* contrib/lisp/org-export.el (org-export-dispatch-ui): Correctly
  compute allowed keys, taking into account derived backends.
(org-export-dispatch-action): Correctly compute action associated to
key combination, taking into account derived backends.
2012-11-15 14:05:05 +01:00
Peter Münster 8fb2cb8c19 Make org-notify.el work with latest org-element.el
* contrib/lisp/org-notify.el (org-notify-convert-deadline): New function.
(org-notify-make-todo): Use that function.
2012-11-14 19:28:30 +01:00
Myles English 907110e913 org-e-latex: Tables get correct amount of vertical space
* contrib/lisp/org-e-latex.el: Replaced a set of \begin{center}
  and \end{center} environment markers with a \centering
  declaration.

Using both \begin{table} and \being{center} environments leads to double
the vertical space around the float, whereas \centering adds none.

TINYCHANGE
2012-11-14 15:00:36 +01:00
Nicolas Goaziou 72a27c3b3f org-export: Make backend registration more stable wrt Org reload
* contrib/lisp/org-export.el (org-export-define-backend,
  org-export-define-derived-backend): Modify backend properties if
  backend is already registered.
(org-export-registered-backends): Use defvar instead of defconst so
a reload doesn't reset it.
2012-11-14 14:43:11 +01:00
Nicolas Goaziou 3d56f56399 org-export: Internal changes to back-end definition
* contrib/lisp/org-export.el (org-export-registered-backends): New
  variable.
(org-export-define-backend, org-export-define-derived-backend): Use
new variable. Also redefine how sub-menus are defined.
(org-export-backend-filters, org-export-backend-menu,
org-export-backend-options, org-export-backend-translate-table): New
functions.
(org-export-get-environment, org-export--parse-option-keyword,
org-export--get-subtree-options, org-export--get-inbuffer-options,
org-export--get-global-options, org-export-install-filters,
org-export-with-backend): Access to data stored in new variable.
(org-export-dispatch-ui): Display sub-menus according to new
definition.
(org-export-dispatch-menu-entries): Removed variable.
* contrib/lisp/org-e-beamer.el: Use new sub-menu definition.
(org-e-beamer--format-section, org-e-beamer-item,
org-e-beamer-keyword): Use `org-export-with-backend' instead of
relying on removed variables.
* testing/lisp/test-org-export.el: Update tests.

This patch gets rid of "invisible" variables, that is variables
defvar'ed within a macro.
2012-11-13 23:25:08 +01:00
Nicolas Goaziou 6d099eedc8 org-element: Allow footnote references in table cells
* lisp/org-element.el (org-element-object-restrictions): Add footnote
  references objects in table cells.
* contrib/lisp/org-e-latex.el (org-e-latex-footnote-reference,
  org-e-latex-table): Add support for footnote reference in table
  cells.
2012-11-12 21:14:43 +01:00
Nicolas Goaziou aaf179fe7f org-e-publish: Fix cache invalid read syntax error
* contrib/lisp/org-e-publish.el (org-e-publish-collect-index): Do not
  store text properties from strings in the cache.  Instead focus on
  necessary data only.
(org-e-publish-index-generate-theindex): Apply changes to previous
function.
2012-11-12 00:04:07 +01:00