Function: org-texinfo--wrap-float
org-texinfo--wrap-float is a byte-compiled function defined in
ox-texinfo.el.gz.
Signature
(org-texinfo--wrap-float VALUE INFO &optional TYPE LABEL CAPTION SHORT)
Documentation
Wrap string VALUE within a @float command.
INFO is the current export state, as a plist. TYPE is float
type, as a string. LABEL is the cross reference label for the
float, as a string. CAPTION and SHORT are, respectively, the
caption and shortcaption used for the float, as secondary
strings (e.g., returned by org-export-get-caption).
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
(defun org-texinfo--wrap-float (value info &optional type label caption short)
"Wrap string VALUE within a @float command.
INFO is the current export state, as a plist. TYPE is float
type, as a string. LABEL is the cross reference label for the
float, as a string. CAPTION and SHORT are, respectively, the
caption and shortcaption used for the float, as secondary
strings (e.g., returned by `org-export-get-caption')."
(let* ((backend
(org-export-toc-entry-backend 'texinfo
(cons 'footnote-reference
(lambda (f c i) (org-export-with-backend 'texinfo f c i)))))
(short-backend
(org-export-toc-entry-backend 'texinfo
'(inline-src-block . ignore)
'(verbatim . ignore)))
(short-str
(if (and short caption)
(format "@shortcaption{%s}\n"
(org-export-data-with-backend short short-backend info))
""))
(caption-str
(if (or short caption)
(format "@caption{%s}\n"
(org-export-data-with-backend
(or caption short)
(if (equal short-str "") short-backend backend)
info))
"")))
(format "@float %s%s\n%s\n%s%s@end float"
type (if label (concat "," label) "") value caption-str short-str)))