/test/art/ok/toc-no-headers.aat

http://txt2tags.googlecode.com/ · Unknown · 231 lines · 151 code · 80 blank · 0 comment · 0 complexity · 75f4c1556f4180b924d36e93b683353d MD5 · raw file

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