ox-latex: Support tikz images, :width, and :height
commit42576eaac1126acbbb19245dbc1aa1191e3be453
authorAaron Ecay <aaronecay@gmail.com>
Wed, 6 Mar 2013 04:04:42 +0000 (5 23:04 -0500)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 6 Mar 2013 08:29:37 +0000 (6 09:29 +0100)
treeb77dd71ca42d3607378317b77871b8f0ef1ce3d0
parent8f7b95091e4470dbb71337bea79e88c14e7ffc67
ox-latex: Support tikz images, :width, and :height

* ox-latex.el:
(org-latex-image-default-option): Change default value to ""
(org-latex-image-default-width)
(org-latex-image-default-height): Add variables
(org-latex-inline-image-rules): Make .tikz files as exportable with
latex
(org-latex--inline-image): Support tikz images.  Also support separate
:width and :height parameters for images.

* ob-R.el (org-babel-R-construct-graphics-device-call): Change file
extension of tikz graphics files to .tikz

Tikz graphics should be exported to LaTeX by \include, not as a link.
This commit changes the file extension used for tikz graphics from .tex
to .tikz, and inserts code for including such images.  The :options for
tikz graphics are passed as an optional argument to a tikzpicture
environment.

Also provide :width and :height ATTR_LATEX entries for images.  For tikz
graphics, these are implemented with \resizebox; for other image types
they are inserted in the optional arguments to \includegraphics.
lisp/ob-R.el
lisp/ox-latex.el