|
@@ -45,68 +45,68 @@
|
|
|
|
|
|
;;; Define Back-End
|
|
|
|
|
|
-(org-export-define-backend groff
|
|
|
- ((bold . org-groff-bold)
|
|
|
- (center-block . org-groff-center-block)
|
|
|
- (clock . org-groff-clock)
|
|
|
- (code . org-groff-code)
|
|
|
- (comment . (lambda (&rest args) ""))
|
|
|
- (comment-block . (lambda (&rest args) ""))
|
|
|
- (drawer . org-groff-drawer)
|
|
|
- (dynamic-block . org-groff-dynamic-block)
|
|
|
- (entity . org-groff-entity)
|
|
|
- (example-block . org-groff-example-block)
|
|
|
- (export-block . org-groff-export-block)
|
|
|
- (export-snippet . org-groff-export-snippet)
|
|
|
- (fixed-width . org-groff-fixed-width)
|
|
|
- (footnote-definition . org-groff-footnote-definition)
|
|
|
- (footnote-reference . org-groff-footnote-reference)
|
|
|
- (headline . org-groff-headline)
|
|
|
- (horizontal-rule . org-groff-horizontal-rule)
|
|
|
- (inline-src-block . org-groff-inline-src-block)
|
|
|
- (inlinetask . org-groff-inlinetask)
|
|
|
- (italic . org-groff-italic)
|
|
|
- (item . org-groff-item)
|
|
|
- (keyword . org-groff-keyword)
|
|
|
- (line-break . org-groff-line-break)
|
|
|
- (link . org-groff-link)
|
|
|
- (paragraph . org-groff-paragraph)
|
|
|
- (plain-list . org-groff-plain-list)
|
|
|
- (plain-text . org-groff-plain-text)
|
|
|
- (planning . org-groff-planning)
|
|
|
- (property-drawer . (lambda (&rest args) ""))
|
|
|
- (quote-block . org-groff-quote-block)
|
|
|
- (quote-section . org-groff-quote-section)
|
|
|
- (radio-target . org-groff-radio-target)
|
|
|
- (section . org-groff-section)
|
|
|
- (special-block . org-groff-special-block)
|
|
|
- (src-block . org-groff-src-block)
|
|
|
- (statistics-cookie . org-groff-statistics-cookie)
|
|
|
- (strike-through . org-groff-strike-through)
|
|
|
- (subscript . org-groff-subscript)
|
|
|
- (superscript . org-groff-superscript)
|
|
|
- (table . org-groff-table)
|
|
|
- (table-cell . org-groff-table-cell)
|
|
|
- (table-row . org-groff-table-row)
|
|
|
- (target . org-groff-target)
|
|
|
- (template . org-groff-template)
|
|
|
- (timestamp . org-groff-timestamp)
|
|
|
- (underline . org-groff-underline)
|
|
|
- (verbatim . org-groff-verbatim)
|
|
|
- (verse-block . org-groff-verse-block))
|
|
|
+(org-export-define-backend 'groff
|
|
|
+ '((bold . org-groff-bold)
|
|
|
+ (center-block . org-groff-center-block)
|
|
|
+ (clock . org-groff-clock)
|
|
|
+ (code . org-groff-code)
|
|
|
+ (comment . (lambda (&rest args) ""))
|
|
|
+ (comment-block . (lambda (&rest args) ""))
|
|
|
+ (drawer . org-groff-drawer)
|
|
|
+ (dynamic-block . org-groff-dynamic-block)
|
|
|
+ (entity . org-groff-entity)
|
|
|
+ (example-block . org-groff-example-block)
|
|
|
+ (export-block . org-groff-export-block)
|
|
|
+ (export-snippet . org-groff-export-snippet)
|
|
|
+ (fixed-width . org-groff-fixed-width)
|
|
|
+ (footnote-definition . org-groff-footnote-definition)
|
|
|
+ (footnote-reference . org-groff-footnote-reference)
|
|
|
+ (headline . org-groff-headline)
|
|
|
+ (horizontal-rule . org-groff-horizontal-rule)
|
|
|
+ (inline-src-block . org-groff-inline-src-block)
|
|
|
+ (inlinetask . org-groff-inlinetask)
|
|
|
+ (italic . org-groff-italic)
|
|
|
+ (item . org-groff-item)
|
|
|
+ (keyword . org-groff-keyword)
|
|
|
+ (line-break . org-groff-line-break)
|
|
|
+ (link . org-groff-link)
|
|
|
+ (paragraph . org-groff-paragraph)
|
|
|
+ (plain-list . org-groff-plain-list)
|
|
|
+ (plain-text . org-groff-plain-text)
|
|
|
+ (planning . org-groff-planning)
|
|
|
+ (property-drawer . (lambda (&rest args) ""))
|
|
|
+ (quote-block . org-groff-quote-block)
|
|
|
+ (quote-section . org-groff-quote-section)
|
|
|
+ (radio-target . org-groff-radio-target)
|
|
|
+ (section . org-groff-section)
|
|
|
+ (special-block . org-groff-special-block)
|
|
|
+ (src-block . org-groff-src-block)
|
|
|
+ (statistics-cookie . org-groff-statistics-cookie)
|
|
|
+ (strike-through . org-groff-strike-through)
|
|
|
+ (subscript . org-groff-subscript)
|
|
|
+ (superscript . org-groff-superscript)
|
|
|
+ (table . org-groff-table)
|
|
|
+ (table-cell . org-groff-table-cell)
|
|
|
+ (table-row . org-groff-table-row)
|
|
|
+ (target . org-groff-target)
|
|
|
+ (template . org-groff-template)
|
|
|
+ (timestamp . org-groff-timestamp)
|
|
|
+ (underline . org-groff-underline)
|
|
|
+ (verbatim . org-groff-verbatim)
|
|
|
+ (verse-block . org-groff-verse-block))
|
|
|
:export-block "GROFF"
|
|
|
:menu-entry
|
|
|
- (?g "Export to GROFF"
|
|
|
- ((?g "As GROFF file" org-groff-export-to-groff)
|
|
|
- (?p "As PDF file" org-groff-export-to-pdf)
|
|
|
- (?o "As PDF file and open"
|
|
|
- (lambda (a s v b)
|
|
|
- (if a (org-groff-export-to-pdf t s v b)
|
|
|
- (org-open-file (org-groff-export-to-pdf nil s v b)))))))
|
|
|
+ '(?g "Export to GROFF"
|
|
|
+ ((?g "As GROFF file" org-groff-export-to-groff)
|
|
|
+ (?p "As PDF file" org-groff-export-to-pdf)
|
|
|
+ (?o "As PDF file and open"
|
|
|
+ (lambda (a s v b)
|
|
|
+ (if a (org-groff-export-to-pdf t s v b)
|
|
|
+ (org-open-file (org-groff-export-to-pdf nil s v b)))))))
|
|
|
:options-alist
|
|
|
- ((:groff-class "GROFF_CLASS" nil org-groff-default-class t)
|
|
|
- (:groff-class-options "GROFF_CLASS_OPTIONS" nil nil t)
|
|
|
- (:groff-header-extra "GROFF_HEADER" nil nil newline)))
|
|
|
+ '((:groff-class "GROFF_CLASS" nil org-groff-default-class t)
|
|
|
+ (:groff-class-options "GROFF_CLASS_OPTIONS" nil nil t)
|
|
|
+ (:groff-header-extra "GROFF_HEADER" nil nil newline)))
|
|
|
|
|
|
|
|
|
|