/test/art/ok/toc-macro.aat

http://txt2tags.googlecode.com/ · Unknown · 246 lines · 162 code · 84 blank · 0 comment · 0 complexity · b8e1ef9f19afcb9e89e52725403570e0 MD5 · raw file

  1. ============================================================
  2. +------------------------------------+
  3. | TXT2TAGS SAMPLE for Ascii Art Text |
  4. +------------------------------------+
  5. +----------------+
  6. | Aurelio Jargas |
  7. +----------------+
  8. +------------+
  9. | 2010-10-10 |
  10. +------------+
  11. ============================================================
  12. +------------+
  13. | My Own TOC |
  14. +------------+
  15. +--------------------------------------+
  16. | My Own TOC, the title 1 above is not |
  17. +--------------------------------------+
  18. My Own TOC
  19. Introduction
  20. Fonts and Beautifiers
  21. Beautifiers
  22. Pre-Formatted Text
  23. More Cosmetics
  24. Lists
  25. Plain List
  26. Numbered List
  27. Definition List
  28. Tables
  29. Special Entities
  30. Images
  31. Other
  32. +--------------+
  33. | Introduction |
  34. +--------------+
  35. Welcome to the txt2tags sample file.
  36. Here you have examples and a brief explanation of all
  37. marks.
  38. The first 3 lines of the this file are used as headers,
  39. on the following format:
  40. line1: document title
  41. line2: author name, email
  42. line3: date, version
  43. Lines with balanced equal signs = around are titles.
  44. +-----------------------+
  45. | Fonts and Beautifiers |
  46. +-----------------------+
  47. We have two sets of fonts:
  48. The NORMAL type that can be improved with beautifiers.
  49. The TYPEWRITER type that uses monospaced font for
  50. pre-formatted text.
  51. We will now enter on a subtitle...
  52. Beautifiers
  53. ===========
  54. The text marks for beautifiers are simple, just as you
  55. type on a plain text email message.
  56. We use double *, /, - and _ to represent *bold*,
  57. /italic/, -strike- and _underline_.
  58. The */bold italic/* style is also supported as a
  59. combination.
  60. Pre-Formatted Text
  61. ==================
  62. We can put a code sample or other pre-formatted text:
  63. here is pre-formatted
  64. //marks// are **not** ``interpreted``
  65. And also, it's easy to put a one line pre-formatted
  66. text:
  67. prompt$ ls /etc
  68. Or use pre-formatted inside sentences.
  69. More Cosmetics
  70. ==============
  71. Special entities like email (duh@somewhere.com) and
  72. URL (http://www.duh.com) are detected automagically,
  73. as long as the horizontal line:
  74. ------------------------------------------------------------
  75. ^ thin or large v
  76. ============================================================
  77. You can also specify an explicit link[1]
  78. with label.
  79. And remember,
  80. A TAB in front of the line does a quotation.
  81. More TABs, more depth (if allowed).
  82. Nice.
  83. +-------+
  84. | Lists |
  85. +-------+
  86. A list of items is natural, just putting a *dash* or
  87. a *plus* at the beginning of the line.
  88. Plain List
  89. ==========
  90. The dash is the default list identifier. For sublists,
  91. just add *spaces* at the beginning of the line. More
  92. spaces, more sublists.
  93. - earth
  94. - america
  95. - south america
  96. - brazil
  97. - how deep can i go?
  98. - europe
  99. - lots of countries
  100. - mars
  101. - who knows?
  102. The list ends with *two* consecutive blank lines.
  103. Numbered List
  104. =============
  105. The same rules as the plain list, just a different
  106. identifier (plus).
  107. 1. one
  108. 2. two
  109. 3. three
  110. - mixed lists!
  111. - what a mess
  112. 1. counting again
  113. 2. ...
  114. 4. four
  115. Definition List
  116. ===============
  117. The definition list identifier is a colon, followed by
  118. the term. The term contents is placed on the next line.
  119. orange
  120. a yellow fruit
  121. apple
  122. a green or red fruit
  123. other fruits
  124. - wee!
  125. - mixing lists
  126. 1. again!
  127. 2. and again!
  128. +--------+
  129. | Tables |
  130. +--------+
  131. Use pipes to compose table rows and cells.
  132. Double pipe at the line beginning starts a heading row.
  133. Natural spaces specify each cell alignment.
  134. +-----------+-------------+------------+
  135. | heading 1 | heading 2 | heading 3 |
  136. +===========+=============+============+
  137. | cell 1.1 | cell 1.2 | cell 1.3 |
  138. +-----------+-------------+------------+
  139. | cell 2.1 | cell 2.2 | cell 2.3 |
  140. +-----------+-------------+------------+
  141. Without the last pipe, no border:
  142. +-----------+-------------+------------+
  143. | heading 1 | heading 2 | heading 3 |
  144. +-----------+-------------+------------+
  145. | cell 1.1 | cell 1.2 | cell 1.3 |
  146. | cell 2.1 | cell 2.2 | cell 2.3 |
  147. +-----------+-------------+------------+
  148. +------------------+
  149. | Special Entities |
  150. +------------------+
  151. Because things were too simple.
  152. Images
  153. ======
  154. The image mark is as simple as it can be: [filename].
  155. [img/photo.jpg]
  156. - The filename must end in PNG, JPG, GIF, or similar.
  157. - No spaces inside the brackets!
  158. Other
  159. =====
  160. The handy %%date macro expands to the current date.
  161. That's all for now.
  162. [1] http://duh.org