<!doctype linuxdoc system>
<article>
<title>TXT2TAGS SAMPLE
<author>aurélio, <htmlurl url="mailto:aurelio@verde666.org" name="aurelio@verde666.org">
<date>20021220
<toc>
<p>
<sect>Introduction<p>

Welcome to the <tt>txt2tags</tt> sample file.

Here you have examples and a brief explanation of all tags.

The first 3 lines of the this file are used as headers, on the following format:
<tscreen><verb>
line1: document title
line2: author name, email
line3: date, version
</verb></tscreen>

Lines with balanced equal signs = around are titles.

<sect>Fonts and Beautifiers<p>

We have two sets of fonts:

<descrip>
<tag>the normal type</tag>
  can be improved with beautifiers to bold, italic, underline or combinations between them.
<p>
<tag>the typewriter type</tag>
  uses monospaced font for preformatted text.
</descrip>
We will now enter on a subtitle...

<sect1>Beautifiers<p>

The text tags for beautifiers are simple, just as you type on a plain text email message.

We use double *, / and _ to represent <bf>bold</bf>, <em>italic</em> and <bf><em>underline</em></bf>.

The <bf><em>bold italic</em></bf> style is also supported.

<sect1>Pre-Formatted Text<p>

We can put a code sample or other preformatted text:
<tscreen><verb>
  here    is     preformatted
//tags// are  **not**  `interpreted`
</verb></tscreen>

And also, it's easy to put a one line preformatted text:
<tscreen><verb>
prompt$ ls /etc
</verb></tscreen>

Or use <tt>preformatted</tt> inside sentences.

<sect1>More Cosmetics<p>

Special entities like an email (<htmlurl url="mailto:duh@somewhere.com" name="duh@somewhere.com">) or an URL (<htmlurl url="http://www.duh.com" name="http://www.duh.com">) are recognized automagically, as long as the horizontal line:

<!-- ________________________________________________________ -->
^ thin or large v
<!-- ======================================================== -->

You can also specify an <htmlurl url="http://duh.org#anchor" name="explicit link"> with label.

And remember,
<quote>
	A TAB in front of the line does a quotation.
		More TABs increase the quote depth (if allowed).
</quote>
Nice.

<sect>Lists<p>

A list of items is natural, just putting a <bf>dash</bf> or a <bf>plus</bf> at the begining of the line.

<sect1>Plain List<p>

The dash is the default list identifier. For sublists, just add <bf>spaces</bf> at the beginning of the line. More spaces, more sublists.

<itemize>
<item>earth
  <itemize>
  <item>america
    <itemize>
    <item>south america
      <itemize>
      <item>brazil
        <itemize>
        <item>how deep can i go?
        </itemize>
      </itemize>
    </itemize>
  <item>europe
    <itemize>
    <item>lots of countries
    </itemize>
  </itemize>
<item>mars
  <itemize>
  <item>who knows?
  </itemize>
</itemize>
The list ends with <bf>two</bf> consecutive blank lines.

<sect1>Numbered List<p>

The same rules as the plain list, just a different identifier (plus).

<enum>
<item>one
<item>two
<item>three
  <itemize>
  <item>mixed lists!
  <item>what a mess
    <enum>
    <item>counting again
    <item>...
    </enum>
  </itemize>
<item>four
</enum>
<sect1>Definition List<p>

The list identifier is an equal sign, and the colon separate the definition
term to the definition definition.

<descrip>
<tag>orange</tag> a yellow fruit
<tag>apple</tag> a green or red fruit
<tag>other fruits</tag>
  <itemize>
  <item>wee!
  <item>mixing lists
    <enum>
    <item>again!
    <item>and again!
    </enum>
  </itemize>
</descrip>
<sect>Tables<p>

Tables are supported for the HTML, Sgml and Moin targets.
On the others they're treated as preformatted text.

Just use pipes to compose table rows and cells.
Double pipe at the line begining identify a table title row.

<table><tabular ca="c">
title<colsep>other title<colsep>another<rowsep>
cell 1.1<colsep>cell 1.2<colsep>cell 1.3<rowsep>
cell 2.1<colsep>cell 2.2<colsep>cell 2.3<rowsep>
</tabular></table>


Without the last pipe, no border:

<table><tabular ca="c">
title<colsep>other title<colsep>another<rowsep>
cell 1.1<colsep>cell 1.2<colsep>cell 1.3<rowsep>
cell 2.1<colsep>cell 2.2<colsep>cell 2.3<rowsep>
</tabular></table>


<sect>Special Entities<p>

Because things were too simple.

<sect1>Images<p>

The image tag is as simple as it can be: <tt>&lsqb;filename]</tt>.
<figure><ph vspace=""><img src="photo.jpg"></figure>
<itemize>
<item>filename must end in PNG, JPG, GIF, or similar.
<item>no spaces on the brackets! (on the filename ok)
</itemize>
<sect1>Other<p>

And as a gift, a special <tt>%%date</tt> handy tag that tell us the current date.

So today is 20021220 on the ISO <tt>yyyymmdd</tt> format.

You can also specify the date format with the %? flags,
as <tt>%%date(%m-%d-%Y)</tt> wich gives: 12-20-2002.

That's all.
<figure><ph vspace=""><img src="pwrbytxt2tags-2.png"></figure>

<!-- sgml code generated by txt2tags 1.3 (http://txt2tags.sf.net) -->
<!-- cmdline: txt2tags \-\-toc -t sgml sample.t2t -->
</article>
