--- org-export-generic.el.orig 2012-11-13 17:59:22.795585712 +0100 +++ org-export-generic.el 2012-11-13 19:33:15.458769199 +0100 @@ -371,6 +371,103 @@ ) ;; + ;; txt2tags + ;; + ("txt2tags" + :file-suffix ".t2t" + :key-binding ?2 + + ; Header + :title-format "%s\n" + :author-export t + :date-export t + :date-suffix "\n" + :toc-export nil + + ; Titles & sections + :body-section-prefix "" + :body-header-section-numbers nil + :body-section-header-prefix ("\n\n\n= " "\n== " "=== " + "==== " "===== " "====== ") + :body-section-header-format "%s" + :body-section-header-suffix (" =\n" " ==\n" " ===\n" + " ====\n" " =====\n" " ======\n") + + ; General line format + :body-line-format "%s\n" + :body-line-wrap 72 + ; To have a new line after each paragraph: + :body-newline-paragraph "\n" + :body-text-prefix "" + :body-text-suffix "" + + ; Lists + ; Note: nested lists are not handled by org-export-generic yet. + ; /!\ Multi-line items get a new line after their first line + ; (because of :body-newline-paragraph) + :body-list-format "- %s" + :body-list-suffix "\n\n" + + ; Numbered lists + ; /!\ Numbered lists does not seem to be detected in the Org source + ; file! + :body-number-list-format "+ %s\n" + :body-number-list-suffix "\n\n" + :body-number-list-leave-number nil + + ; Checkboxes + :body-list-checkbox-todo "\\1 " + :body-list-checkbox-done "\\1 " + :body-list-checkbox-half "\\1 " + :body-list-checkbox-todo-end "" + :body-list-checkbox-done-end "" + :body-list-checkbox-half-end "\n" + + ; Text style formats + :bold-format "**%s**" + :italic-format "//%s//" + :underline-format "__%s__" + :strikethrough-format "--%s--" + :code-format "``%s``" + :verbatim-format "``%s``" + + ; Block formats + :body-line-export-preformated t + :body-line-fixed-format "``` %s\n" + ; /!\ #+BEGIN_QUOTE does not seem to work (neither do #+BEGIN_VERSE) +; :blockquote-start "!BLOCKQUOTE-START!" +; :blockquote-end "!BLOCKQUOTE-END!" + + ; Tables + :body-table-start "" + :body-table-end "" + :body-table-row-start "|" + :body-table-row-end "|" + :body-table-cell-start "" + :body-table-cell-end "" + :body-table-first-cell-start "" + :body-table-interior-cell-start "| " + :body-table-interior-cell-end " " + :body-table-last-cell-end "" + ; /!\ Horizontal lines are not handled by txt2tags, but there is + ; apparently no way to avoid them + :body-table-hline-start "" + :body-table-hline-end "" + + ; Other stuff handled by txt2tags and org-mode but not yet by + ; org-export-generic: + ; - definition/description lists + ; - comments (# lines and #+BEGIN_COMMENT blocks) + ; - verbatim/literal blocks (#+BEGIN_EXAMPLE and #+BEGIN_SRC) + ; - horizontal rule (currently detected as a list item) + ; - links + ; - images + ; - included files (#+INCLUDE) (what would be nice is an option to + ; allow choosing between inclusion of sub-files as #+INCLUDEs or + ; directly in the text) + ; - macros + ) + ;; ;; internet-draft .xml for xml2rfc exporter ;; ("ietfid"