Wiki sample page

Take a look to the source of this page to see how it is generated. Take into acount that you should need the skeleton, the style, the BibTeX file and some images to get the same results.

Index

To insert a table of content just place the previous one. It will appear just in the HTML output. LaTeX output ignores this tac as LaTeX has its own mechanisms to generate ToC's.

Notice that the 'Index' header doesn't appear on the ToC.

Headers

Third level

Fourth level

Headers generate labels. They can be refered from a Table of Content. This is the place holder for a Table of Content

Paragraphs

This is a simple test for the web/article generator. It takes wiki pages and produces HTML and LaTeX output. It also takes a content folder with html fragments and embeds them on a scheletton. The idea is to have the benefits of a wiki syntax but maintain the files on a SVN server and editing them using your favorite editor (vim?) instead of the web interface.

Paragraphs are separated by an empty line. Like the one before.

Lists

  1. first
  2. second
  1. new first
  1. parent 1
    1. child 1
      • non numerated child
      • non numerated child
    2. child 2
      1. subchild 1
    3. child 3
  2. parent 2

Inline directives

Inline directives should end at the same line they start.

Text style

Normal emphasis Normal. Another emphasis Normal Normal em'phasis Normal. Another emphasis Normal. Normal bold Normal. Another bold Normal. Normal bold emphasis more bold. don't Normal. Another bold Normal. Normal emphasis bold don't more emphasis Normal. Another bold Normal.

Linking

a local link local link without alias one and other local link in the same line.

Citations

Cites are resolved using BibTeX files found in the same directory. In LaTeX it works as a regular cite in latex. In HTML a tooltip apears with the bibliographic information. This work can be found in [Error lee87]No bibliography file found.. And also in [Error www-CLAM]No bibliography file found..

Special paragraphs

You can mark a paragraf with a 'Tag:' to mark it special in some sense.

Abstract: Some special paragraphs can be defined by preceding them by a colon ended keyword such as 'Abstract:'
Keywords: And the Keywords: special paragraph
Definition: A wiki compiler is a program that takes a text file containing wiki like syntax and outputs some publishing format.
Corollary: WiKo is a wiki compiler.
Proof: This is a proof
Lemma: Simple is better
Placing space or tabulators at the begining of the line creates a cite. bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
You can place preformated code by enclosing it in
three curly braces.
    Tabs and new lines are preserved.
	
Blank lines are alowed if have spaces in it

Or better you could use the 'Code:' paragraph to have syntax highlighting. If the Pygments python package is available in your system, the code will be highlighted.

for a in [item for a] :
	print "\n".join(a)
>>>> print "hello world"

You can choose a different language. For example C++:

template < typename T > class A;

or bash:

for a in *; do
	echo a | runme > /dev/null
done

Writting tools

To-do's are usefull during the writting of a document to mark that something is still pending. TODO: This is a pending task. Note that todos' are single line so that they can be inserted in the middle of a paragraph. You can use grep command to get all the TODO's listed:

grep '^TODO:' *.wiki | less

Annotations are another nice tool while writting an article. Co-authors and reviewers can edit the source file, if they have access to it via svn for instance, and insert annotations such this one: [Ann:DGG]DGG: This explanation is too verbose, it is an annotation and that's it!! This is usefull to perform peer review via svn. that can be inserted in the middle of a paragraph. To see the annotations hover the icon. Notes indicates who did it, in this case 'DGG', and they are also very visible and searchable on the source code.

Both, TODO's and annotation appear as side notes on the LaTeX output.

Figures

Full featured figures can be generated by using the 'Figure:' special word

MyLabel
This is the caption text. Til the next empty line.

Formulas

You can use LaTeX like formulas with WiKo.

Formulas can be inserted x+1 inline using back-ticks. It is equivalent to the dollar syntax in LaTeX.

You can use the Math: environment to place non-inline formulas:

Or use the Equation environment to get numbered equations:

Other examples:

r_iO_i=r_jI_j

Were r_i and r_j are the number a\over{b} of times that node i and node j will be fired during a period. The vector \vec{r} gives the number of repetitions for each node.