resurrect org-create-formula-image
commit27101a3e0ee77550f6e45f898e50be5c9b7847b6
authorEric Schulte <eric.schulte@gmx.com>
Sun, 9 Sep 2012 19:30:32 +0000 (9 13:30 -0600)
committerEric Schulte <eric.schulte@gmx.com>
Sun, 9 Sep 2012 19:30:32 +0000 (9 13:30 -0600)
tree3f3046a062bf247821ed12367b34a625f3c64f1b
parentfaa2be8d571d6fa71a41992c130b7b8b00ccd532
resurrect org-create-formula-image

This commit resurrects the `org-create-formula-image' function which was
removed in commit a9d3ce.  This function is still called elsewhere, and
provides a simpler interface to the two backend-specific image creation
functions.

This also simplifies `org-format-latex', which still has some serious
problems such as optional arguments such as PROCESSING-TYPE which are
never assigned a default value, and extraneous variables.

At some point the `org-create-formula-image-with-imagemagick' and
`org-create-formula-image-with-dvipng' functions should be combined as a
great deal of code and logic is duplicated between the two functions.

* lisp/org.el (org-format-latex): Simplified and now makes use of the
  new `org-create-formula-image' function.
  (org-create-formula-image): Provides a simpler interface to the two
  backend-specific functions.
lisp/org.el