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.
This commit is contained in:
parent
74faf5bd26
commit
daf0275085
|
@ -1973,9 +1973,13 @@ holding contextual information."
|
||||||
CONTENTS holds the contents of the block. INFO is a plist
|
CONTENTS holds the contents of the block. INFO is a plist
|
||||||
holding contextual information."
|
holding contextual information."
|
||||||
(let ((type (downcase (org-element-property :type special-block))))
|
(let ((type (downcase (org-element-property :type special-block))))
|
||||||
(org-e-latex--wrap-label
|
(concat (format "\\begin{%s}\n" type)
|
||||||
special-block
|
;; Insert any label or caption within the block
|
||||||
(format "\\begin{%s}\n%s\\end{%s}" type contents type))))
|
;; (otherwise, a reference pointing to that element will
|
||||||
|
;; count the section instead).
|
||||||
|
(org-e-latex--caption/label-string special-block info)
|
||||||
|
contents
|
||||||
|
(format "\\end{%s}" type))))
|
||||||
|
|
||||||
|
|
||||||
;;;; Src Block
|
;;;; Src Block
|
||||||
|
|
Loading…
Reference in New Issue