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