/test/art/ok/toc.aat

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