|
@@ -561,6 +561,7 @@ document.
|
|
|
- ~:filter-dynamic-block~
|
|
|
- ~:filter-entity~
|
|
|
- ~:filter-example-block~
|
|
|
+ - ~:filter-export-block~
|
|
|
- ~:filter-export-snippet~
|
|
|
- ~:filter-final-output~
|
|
|
- ~:filter-fixed-width~
|
|
@@ -1199,35 +1200,6 @@ document.
|
|
|
|
|
|
See also: [[#get-headline-number][~org-export-get-headline-number~]].
|
|
|
|
|
|
-** ~org-export-raw-special-block-p~
|
|
|
- :PROPERTIES:
|
|
|
- :CUSTOM_ID: raw-special-block-p
|
|
|
- :END:
|
|
|
-
|
|
|
- Non nil when a given special block should be inserted as-is in the
|
|
|
- final output.
|
|
|
-
|
|
|
- This fuction should be used as a first check in a special block
|
|
|
- translator, in order to know if contents are to be processed or
|
|
|
- not. In the latter case, one can extract raw contents through
|
|
|
- ~:raw-value~ property, as shown in the following excerpt from
|
|
|
- ~latex~ back-end:
|
|
|
-
|
|
|
- #+BEGIN_SRC emacs-lisp
|
|
|
- (defun org-latex-special-block (special-block contents info)
|
|
|
- "Transcode a SPECIAL-BLOCK element from Org to LaTeX.
|
|
|
- CONTENTS holds the contents of the block. INFO is a plist
|
|
|
- holding contextual information."
|
|
|
- (if (org-export-raw-special-block-p special-block info)
|
|
|
- (org-remove-indentation (org-element-property :raw-value special-block))
|
|
|
- (let ((type (downcase (org-element-property :type special-block)))
|
|
|
- (opt (org-export-read-attribute :attr_latex special-block :options)))
|
|
|
- (concat (format "\\begin{%s}%s\n" type (or opt ""))
|
|
|
- (org-latex--caption/label-string special-block info)
|
|
|
- contents
|
|
|
- (format "\\end{%s}" type)))))
|
|
|
- #+END_SRC
|
|
|
-
|
|
|
** ~org-export-read-attribute~
|
|
|
:PROPERTIES:
|
|
|
:CUSTOM_ID: read-attribute
|