\documentclass[twoside,a4paper,10pt]{report}
%%\usepackage[french]{babel} %% Use your own babel language
\usepackage[top=3cm,bottom=3cm,left=2.5cm,right=2.5cm]{geometry}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{pslatex}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{supertabular}
\usepackage{pdflscape} %% Used for very big table
\usepackage{moreverb}
\usepackage{color}
\usepackage{listings}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{ulem}
\usepackage{textcomp}
\usepackage{wasysym}
\usepackage{wrapfig} %%Usefull for image 
\usepackage{aeguill}
\usepackage{eso-pic} %% Background
\pagestyle{fancy}%
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{%
	\markboth{\chaptername\ \thechapter.\ #1}{}}

\renewcommand{\sectionmark}[1]{%
	\markright{#1}{}}

\fancypagestyle{plain}{%
\fancyhf{}
\fancyfoot[R]{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\fancyhf{}
\fancyhead[L]{\rightmark}
\fancyhead[R]{\leftmark}
\fancyfoot[R]{\thepage/\pageref{LastPage}}
\renewcommand{\headrulewidth}{0.1pt}
\renewcommand{\footrulewidth}{0pt}

\definecolor{codegray}{gray}{.95}
\lstset{language=C,
	numbers=left,
	tabsize=2,
	basicstyle=\scriptsize,
	stringstyle=\textrm,
	showstringspaces=false,
	frame=none,
	xleftmargin=3pt,
	backgroundcolor=\color{codegray}}

\newcommand{\settexitref}[2]{(\ref{#1}p\pageref{#1})}
\newcommand{\dokutitlelevelone}[1]{\chapter{#1}}
\newcommand{\dokutitleleveltwo}[1]{\section{#1}}
\newcommand{\dokutitleleveltree}[1]{\subsection{#1}}
\newcommand{\dokutitlelevelfour}[1]{\subsubsection{#1}}
\newcommand{\dokutitlelevelfive}[1]{\paragraph{#1}}
\newcommand{\dokufootnote}[1]{\footnote{#1}}
\newcommand{\dokufootmark}[1]{\footnotemark[#1]}
\newcommand{\dokubold}[1]{\textbf{#1}}
\newcommand{\dokuitalic}[1]{\textsl{#1}}
\newcommand{\dokumonospace}[1]{\texttt{#1}}
\newcommand{\dokuunderline}[1]{\underline{#1}}
\newcommand{\dokuoverline}[1]{\sout{#1}}
\newcommand{\dokusupscript}[1]{\textsuperscript{#1}}
\newcommand{\dokusubscript}[1]{$_{#1}$}
\newcommand{\dokuhline}{\line(1,0){400}}
\newcommand{\dokulabel}[1]{\label{#1}}
\newcommand{\dokuitem}{\item}
\newcommand{\dokuquoting}{\textbar}
\newcommand{\dokutabularwidth}{\textwidth}
\newcommand{\dokusupertabularheadbreak}{\small\sl continued from previous page}
\newcommand{\dokusupertabulartailbreak}{\small\sl continued on next page}
\newcommand{\dokuheadingstyle}[1]{\textbf{#1}}
\definecolor{dokuheadingcolor}{rgb}{0,0,0.60}
\newcommand{\dokubackground}[1]{%
\AddToShipoutPicture{%
  \AtTextCenter{%
    \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
      \rotatebox{25}{\textsf{\textbf{\textcolor[gray]{0.90}{#1}}}}}}%
  }%
 }%
}

\hypersetup{
pdftitle = {Formating syntax},
pdfauthor = {DokuTeXit},
pdfcreator = {DokuTeXit},
pdfproducer = {dokuwiki + TeXit + latex + dvipdf}
}
\title{Formating syntax}
\author{DokuTeXit}
\dokubackground{https://wiki.physik.fu-berlin.de/fp/}
\begin{document}
\thispagestyle{empty}
\maketitle
\thispagestyle{empty}
\cleardoublepage
\tableofcontents
\newpage
\thispagestyle{plain}
\cleardoublepage
\newpage

\dokutitlelevelone{Formatting Syntax}
\label{917c8e6bd9628e4835150a84b12302f1}%% formatting_syntax
\label{55152fd428afc5d73e8878d27d0b09c3}%%Start: syntax => /srv/wiki/docroot/fp/data/pages/syntax.txt
\includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{DokuWiki} supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the \dokuitalic{Edit this page} button at the top or bottom of the page. If you want to try something, just use the \hyperref[96c70b1dc0455bd80da8756721c6f6a7]{playground} page. The simpler markup is easily accessible via \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{quickbuttons}, too.


\dokutitleleveltwo{Basic Text Formatting}
\label{43234e38c6439626283383111c9b1bbc}%% basic_text_formatting
DokuWiki supports \dokubold{bold}, \dokuitalic{italic}, \dokuunderline{underlined} and \dokumonospace{monospaced} texts. Of course you can \dokubold{\dokuunderline{\dokuitalic{\dokumonospace{combine}}}} all these.


\small
\begin{verbatimtab}
DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts.
Of course you can **__//''combine''//__** all these.
\end{verbatimtab}
\normalsize
You can use \dokusubscript{subscript} and \dokusupscript{superscript}, too.


\small
\begin{verbatimtab}
You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
\end{verbatimtab}
\normalsize
You can mark something as \dokuoverline{deleted} as well.


\small
\begin{verbatimtab}
You can mark something as <del>deleted</del> as well.
\end{verbatimtab}
\normalsize
\dokubold{Paragraphs} are created from blank lines. If you want to \dokubold{force a newline} without a paragraph, you can use two backslashes followed by a whitespace or the end of line.

This is some text with some linebreaks\\ Note that the
two backslashes are only recognized at the end of a line\\ 
or followed by\\ a whitespace {\textbackslash}{\textbackslash}this happens without it.


\small
\begin{verbatimtab}
This is some text with some linebreaks\\ Note that the
two backslashes are only recognized at the end of a line\\
or followed by\\ a whitespace \\this happens without it.
\end{verbatimtab}
\normalsize
You should use forced newlines only if really needed.


\dokutitleleveltwo{Links}
\label{807765384d9d5527da8848df14a4f02f}%% links
DokuWiki supports multiple ways of creating links.


\dokutitleleveltree{External}
\label{6a21b6995a068148bbb65c8f949b3fb2}%% external
External links are recognized automagically: \href{http://www.google.com}{http://www.google.com} or simply \href{http://www.google.com}{www.google.com} - You can set the link text as well: \href{http://www.google.com}{This Link points to google}. Email addresses like this one: andi@splitbrain.org are recognized, too.


\small
\begin{verbatimtab}
DokuWiki supports multiple ways of creating links. External links are recognized
automagically: http://www.google.com or simply www.google.com - You can set
link text as well: [[http://www.google.com|This Link points to google]]. Email
addresses like this one: <andi@splitbrain.org> are recognized, too.
\end{verbatimtab}
\normalsize

\dokutitleleveltree{Internal}
\label{d1efad72dc5b17dc66a46767c32fff40}%% internal
Internal links are created by using square brackets. You can either just give a \hyperref[e86de33f2e57c728111217b243f944ac]{pagename} or use an additional \hyperref[e86de33f2e57c728111217b243f944ac]{link text}.


\small
\begin{verbatimtab}
Internal links are created by using square brackets. You can either just give
a [[pagename]] or use an additional [[pagename|link text]].
\end{verbatimtab}
\normalsize
\includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{Wiki pagenames} are converted to lowercase automatically, special characters are not allowed.

You can use \hyperref[3d322af70bc106a52679f1eb72f98ae6]{namespaces} by using a colon in the pagename.


\small
\begin{verbatimtab}
You can use [[some:namespaces]] by using a colon in the pagename.
\end{verbatimtab}
\normalsize
For details about namespaces see \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{namespaces}.

Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML\dokufootnote{HyperText Markup Language}. This links to \hyperref[d1efad72dc5b17dc66a46767c32fff40]{this Section}.


\small
\begin{verbatimtab}
This links to [[syntax#internal|this Section]].
\end{verbatimtab}
\normalsize
Notes:


\begin{itemize}
\dokuitem  Links to \hyperref[55152fd428afc5d73e8878d27d0b09c3]{existing pages} are shown in a different style from \hyperref[2813f85cc7212a31f7f2cfd4ce1eca3c]{nonexisting} ones.
\dokuitem  DokuWiki does not use \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitVjPmn3.ps}\href{http://en.wikipedia.org/wiki/{NAME}}{CamelCase} to automatically create links by default, but this behavior can be enabled in the \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{config} file. Hint: If DokuWiki is a link, then it's enabled.
\dokuitem  When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.
\end{itemize}

\dokutitleleveltree{Interwiki}
\label{432634f733a86e923251a58df004ca4b}%% interwiki
DokuWiki supports \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{Interwiki} links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitVjPmn3.ps}\href{http://en.wikipedia.org/wiki/{NAME}}{Wiki}.


\small
\begin{verbatimtab}
DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis.
For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
\end{verbatimtab}
\normalsize

\dokutitleleveltree{Windows Shares}
\label{15e9262a5a4035a2c4eb520ae3b3c9fc}%% windows_shares
Windows shares like [[{\textbackslash}{\textbackslash}server{\textbackslash}share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitVjPmn3.ps}\href{http://en.wikipedia.org/wiki/{NAME}}{Intranet}.


\small
\begin{verbatimtab}
Windows Shares like [[\\server\share|this]] are recognized, too.
\end{verbatimtab}
\normalsize
Notes:


\begin{itemize}
\dokuitem  For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone").
\dokuitem  For Mozilla and Firefox it can be enabled through different workaround mentioned in the \href{http://kb.mozillazine.org/Links_to_local_pages_do_not_work}{Mozilla Knowledge Base}. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in \dokumonospace{conf/local.protected.php}:
\end{itemize}

\small
\begin{verbatimtab}
$lang['js']['nosmblinks'] = '';
\end{verbatimtab}
\normalsize

\dokutitleleveltree{Image Links}
\label{311f889cefe46eb5c704553126d6dd3d}%% image_links
You can also use an image to link to another internal or external page by combining the syntax for links and \hyperref[b981ca62a894af30bc3e34cfe1c21822]{images} (see below) like this:


\small
\begin{verbatimtab}
[[http://www.php.net|{{wiki:dokuwiki-128.png}}]]
\end{verbatimtab}
\normalsize
\begin{figure*}[h]
\centering
\includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}
\caption{\href{http://www.php.net}{http://www.php.net}}
\end{figure*}


Please note: The image formatting is the only formatting syntax accepted in link names.

The whole \hyperref[b981ca62a894af30bc3e34cfe1c21822]{image} and \hyperref[807765384d9d5527da8848df14a4f02f]{link} syntax is supported (including image resizing, internal and external images and URLs and interwiki links).


\dokutitleleveltwo{Footnotes}
\label{13a2f32fee58ecafb9cdd5eee71ee80b}%% footnotes
You can add footnotes \dokufootnote{This is a footnote} by using double parentheses.


\small
\begin{verbatimtab}
You can add footnotes ((This is a footnote)) by using double parentheses.
\end{verbatimtab}
\normalsize

\dokutitleleveltwo{Sectioning}
\label{35c7acf794e075219549816904b025a6}%% sectioning
You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically  this can be disabled by including the string \dokumonospace{\~{ }\~{ }NOTOC\~{ }\~{ }} in the document.


\dokutitleleveltree{Headline Level 3}
\label{0ae68d5d1a798679ee099a5a907e4f33}%% headline_level_3

\dokutitlelevelfour{Headline Level 4}

\dokutitlelevelfive{Headline Level 5}

\small
\begin{verbatimtab}
==== Headline Level 3 ====
=== Headline Level 4 ===
== Headline Level 5 ==
\end{verbatimtab}
\normalsize
By using four or more dashes, you can make a horizontal line:


\dokuhline


\dokutitleleveltwo{Images and Other Files}
\label{b981ca62a894af30bc3e34cfe1c21822}%% images_and_other_files
You can include external and internal \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{images} with curly brackets. Optionally you can specify the size of them.

Real size:                        \includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}


Resize to given width:            \includegraphics[width=50pt]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}


Resize to given width and height\dokufootnote{when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing}: \includegraphics[height=50pt,width=200pt]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}


Resized external image:           \includegraphics[height=50pt,width=200pt]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitV8THS5.ps}



\small
\begin{verbatimtab}
Real size:                        {{wiki:dokuwiki-128.png}}
Resize to given width:            {{wiki:dokuwiki-128.png?50}}
Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}}
Resized external image:           {{http://de3.php.net/images/php.gif?200x50}}
\end{verbatimtab}
\normalsize
By using left or right whitespaces you can choose the alignment.

\begin{wrapfigure}{r}{0pt}
\includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}
\end{wrapfigure}


\begin{wrapfigure}{l}{0pt}
\includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}
\end{wrapfigure}


\begin{figure*}[h]
\centering
\includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}
\end{figure*}



\small
\begin{verbatimtab}
{{ wiki:dokuwiki-128.png}}
{{wiki:dokuwiki-128.png }}
{{ wiki:dokuwiki-128.png }}
\end{verbatimtab}
\normalsize
Of course, you can add a title (displayed as a tooltip by most browsers), too.

\begin{figure*}[h]
\centering
\includegraphics{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjlNlF3.ps}
\caption{This is the caption}
\end{figure*}



\small
\begin{verbatimtab}
{{ wiki:dokuwiki-128.png |This is the caption}}
\end{verbatimtab}
\normalsize
If you specify a filename (external or internal) that is not an image (\dokumonospace{gif, jpeg, png}), then it will be displayed as a link instead.

For linking an image to another page see \hyperref[311f889cefe46eb5c704553126d6dd3d]{Image Links} above.


\dokutitleleveltwo{Lists}
\label{e6dbca21d4865b265ca2780205b19305}%% lists
Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a \dokumonospace{*} for unordered lists or a \dokumonospace{-} for ordered ones.


\begin{itemize}
\dokuitem  This is a list
\dokuitem  The second item
\begin{itemize}
\dokuitem  You may have different levels
\end{itemize}

\dokuitem  Another item
\end{itemize}

\begin{enumerate}\dokuitem  The same list but ordered
\dokuitem  Another item
\begin{enumerate}\dokuitem  Just use indention for deeper levels
\end{enumerate}

\dokuitem  That's it
\end{enumerate}

\small
\begin{verbatimtab}

  * This is a list
  * The second item
    * You may have different levels
  * Another item

  - The same list but ordered
  - Another item
    - Just use indention for deeper levels
  - That's it

\end{verbatimtab}
\normalsize
Also take a look at the \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{FAQ on list items}.


\dokutitleleveltwo{Text Conversions}
\label{fe7b9f3de64aceb5dddb8ed6e94d6507}%% text_conversions
DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML\dokufootmark{1}.

The text to image conversion is mainly done for smileys. And the text to HTML\dokufootmark{1} conversion is used for typography replacements, but can be configured to use other HTML\dokufootmark{1} as well.


\dokutitleleveltree{Text to Image Conversions}
\label{c44a50f5f7f2c7b2217953ad84768d41}%% text_to_image_conversions
DokuWiki converts commonly used \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitVjPmn3.ps}\href{http://en.wikipedia.org/wiki/{NAME}}{emoticon}s to their graphical equivalents. Those \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{Smileys} and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki:


\begin{itemize}
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitZNKe97.ps}   8-)  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitPzpAra.ps}   8-O  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitfHXHLc.ps}   :-(  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitLtcC7e.ps}   :-)  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitfqbivh.ps}    =)   
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texit71GKUj.ps}   :-/  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitbvRXlm.ps}   :-{\textbackslash}  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texit1snWOo.ps}   :-?  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitrELFjr.ps}   :-D  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjXUbQt.ps}   :-P  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitT3atow.ps}   :-O  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitZdYtYy.ps}   :-X  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texit5yViAB.ps}   :-|  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitfLfWdE.ps}   ;-)  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitzoTkTG.ps}   \^{ }{\textunderscore}\^{ }  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitPNpwAJ.ps}   :?:  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texit7ZFtjM.ps}   :!:  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitTMcb4O.ps}   LOL  
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitxj5OQR.ps}   FIXME 
\dokuitem  \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitV55dFU.ps}  DELETEME 
\end{itemize}

\dokutitleleveltree{Text to HTML Conversions}
\label{da7df4dfc71ce469e6b242927d58de96}%% text_to_html_conversions
Typography: \hyperref[18c179f84e1e69aa6a4ff775ac0a2b0f]{DokuWiki} can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.

{$\rightarrow$} {$\leftarrow$} {$\leftrightarrow$} {$\Rightarrow$} {$\Leftarrow$} {$\Leftrightarrow$} {\guillemotright} {\guillemotleft}   640{\texttimes}480 {\copyright} {\texttrademark} {\textregistered}
"He thought 'It's a man's world'\ldots{}"


\small
\begin{verbatimtab}

-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
"He thought 'It's a man's world'..."

\end{verbatimtab}
\normalsize
The same can be done to produce any kind of HTML\dokufootmark{1}, it just needs to be added to the \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{pattern file}.

There are three exceptions which do not come from that pattern file: multiplication entity (640{\texttimes}480), 'single' and "double quotes". They can be turned off through a \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{config option}.


\dokutitleleveltwo{Quoting}
\label{aaefc213d456f1c0ccaa8a70837bb85b}%% quoting
Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:


\small
\begin{verbatimtab}
I think we should do it

> No we shouldn't

>> Well, I say we should

> Really?

>> Yes!

>>> Then lets do it!
\end{verbatimtab}
\normalsize
I think we should do it

{\dokuquoting} No we shouldn't

{\dokuquoting}{\dokuquoting} Well, I say we should

{\dokuquoting} Really?

{\dokuquoting}{\dokuquoting} Yes!

{\dokuquoting}{\dokuquoting}{\dokuquoting} Then lets do it!


\dokutitleleveltwo{Tables}
\label{9ab2ec7ea4a2041306f7bdf150fcd453}%% tables
DokuWiki supports a simple syntax to create tables.

%% Table analyse:
%%    Numrows: 4
%%    Longest row size: 53
%%    Choose table mode: tabular
\vspace{0.8em}
\begin{tabular}{lll}
\hline
\multicolumn{1}{|l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 1      \normalcolor}}&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 2       \normalcolor}}&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 3          \normalcolor}}\\ 
\hline
\multicolumn{1}{|l|}{ Row 1 Col 1    }&\multicolumn{1}{l|}{ Row 1 Col 2     }&\multicolumn{1}{l|}{ Row 1 Col 3        }\\ 
\hline
\multicolumn{1}{|l|}{ Row 2 Col 1    }&\multicolumn{2}{l|}{ some colspan (note the double pipe) }\\ 
\hline
\multicolumn{1}{|l|}{ Row 3 Col 1    }&\multicolumn{1}{l|}{ Row 3 Col 2     }&\multicolumn{1}{l|}{ Row 3 Col 3        }\\ 
\hline
\end{tabular}
\vspace{0.8em}

Table rows have to start and end with a \dokumonospace{|} for normal rows or a \dokumonospace{\^{ }} for headers.


\small
\begin{verbatimtab}
^ Heading 1      ^ Heading 2       ^ Heading 3          ^
| Row 1 Col 1    | Row 1 Col 2     | Row 1 Col 3        |
| Row 2 Col 1    | some colspan (note the double pipe) ||
| Row 3 Col 1    | Row 3 Col 2     | Row 3 Col 3        |
\end{verbatimtab}
\normalsize
To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!

Vertical tableheaders are possible, too.

%% Table analyse:
%%    Numrows: 4
%%    Longest row size: 56
%%    Choose table mode: tabular
\vspace{0.8em}
\begin{tabular}{lll}
\hline
\multicolumn{1}{|l|}{              }&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 1            \normalcolor}}&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 2          \normalcolor}}\\ 
\hline
\multicolumn{1}{|l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 3    \normalcolor}}&\multicolumn{1}{l|}{ Row 1 Col 2          }&\multicolumn{1}{l|}{ Row 1 Col 3        }\\ 
\hline
\multicolumn{1}{|l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 4    \normalcolor}}&\multicolumn{1}{l|}{ no colspan this time }&\multicolumn{1}{l|}{                    }\\ 
\hline
\multicolumn{1}{|l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 5    \normalcolor}}&\multicolumn{1}{l|}{ Row 2 Col 2          }&\multicolumn{1}{l|}{ Row 2 Col 3        }\\ 
\hline
\end{tabular}
\vspace{0.8em}

As you can see, it's the cell separator before a cell which decides about the formatting:


\small
\begin{verbatimtab}
|              ^ Heading 1            ^ Heading 2          ^
^ Heading 3    | Row 1 Col 2          | Row 1 Col 3        |
^ Heading 4    | no colspan this time |                    |
^ Heading 5    | Row 2 Col 2          | Row 2 Col 3        |
\end{verbatimtab}
\normalsize
You can have rowspans (vertically connected cells) by adding \dokumonospace{:::} into the cells below the one to which they should connect.

%% Table analyse:
%%    Numrows: 4
%%    Longest row size: 64
%%    Choose table mode: tabular
\vspace{0.8em}
\begin{tabular}{lll}
\hline
\multicolumn{1}{|l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 1      \normalcolor}}&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 2                  \normalcolor}}&\multicolumn{1}{l|}{\dokuheadingstyle{\color{dokuheadingcolor} Heading 3          \normalcolor}}\\ 
\hline
\multicolumn{1}{|l|}{ Row 1 Col 1    }&\multicolumn{1}{l|}{ this cell spans vertically }&\multicolumn{1}{l|}{ Row 1 Col 3        }\\ 
\hline
\multicolumn{1}{|l|}{ Row 2 Col 1    }&\multicolumn{1}{l|}{ Row 2 Col 3        }\\ 
\hline
\multicolumn{1}{|l|}{ Row 3 Col 1    }&\multicolumn{1}{l|}{ Row 2 Col 3        }\\ 
\hline
\end{tabular}
\vspace{0.8em}

Apart from the rowspan syntax those cells should not contain anything else.


\small
\begin{verbatimtab}
^ Heading 1      ^ Heading 2                  ^ Heading 3          ^
| Row 1 Col 1    | this cell spans vertically | Row 1 Col 3        |
| Row 2 Col 1    | :::                        | Row 2 Col 3        |
| Row 3 Col 1    | :::                        | Row 2 Col 3        |
\end{verbatimtab}
\normalsize
You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text.

%% Table analyse:
%%    Numrows: 4
%%    Longest row size: 42
%%    Choose table mode: tabular
\vspace{0.8em}
\begin{tabular}{lll}
\hline
\multicolumn{3}{|c|}{\dokuheadingstyle{\color{dokuheadingcolor}           Table with alignment           \normalcolor}}\\ 
\hline
\multicolumn{1}{|r|}{         right}&\multicolumn{1}{c|}{    center    }&\multicolumn{1}{l|}{left          }\\ 
\hline
\multicolumn{1}{|l|}{left          }&\multicolumn{1}{r|}{         right}&\multicolumn{1}{c|}{    center    }\\ 
\hline
\multicolumn{1}{|l|}{ xxxxxxxxxxxx }&\multicolumn{1}{l|}{ xxxxxxxxxxxx }&\multicolumn{1}{l|}{ xxxxxxxxxxxx }\\ 
\hline
\end{tabular}
\vspace{0.8em}

This is how it looks in the source:


\small
\begin{verbatimtab}
^           Table with alignment           ^^^
|         right|    center    |left          |
|left          |         right|    center    |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
\end{verbatimtab}
\normalsize
Note: Vertical alignment is not supported.


\dokutitleleveltwo{No Formatting}
\label{189047e3a505db61cbf2f2548ac3259f}%% no_formatting
If you need to display text exactly like it is typed (without any formatting), enclose the area either with \dokumonospace{$<$nowiki$>$} tags or even simpler, with double percent signs \dokumonospace{\%\%}.


This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.

The same is true for //{\textunderscore}{\textunderscore}this{\textunderscore}{\textunderscore} text// with a smiley ;-).


\small
\begin{verbatimtab}
<nowiki>
This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**,
but nothing is done with it.
</nowiki>
The same is true for %%//__this__ text// with a smiley ;-)%%.
\end{verbatimtab}
\normalsize

\dokutitleleveltwo{Code Blocks}
\label{b34e45d23f2e0c607a5cd5e5c6a5024f}%% code_blocks
You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags \dokumonospace{$<$code$>$} or \dokumonospace{$<$file$>$}.


\small
\begin{verbatimtab}
This is text is indented by two spaces.
\end{verbatimtab}
\normalsize

\small
\begin{verbatimtab}

This is preformatted code all spaces are preserved: like              <-this

\end{verbatimtab}
\normalsize

\small
\begin{verbatimtab}

This is pretty much the same, but you could use it to show that you quoted a file.

\end{verbatimtab}
\normalsize
Those blocks were created by this source:


\small
\begin{verbatimtab}
  This is text is indented by two spaces.
\end{verbatimtab}
\normalsize

\small
\begin{verbatimtab}
<code>
This is preformatted code all spaces are preserved: like              <-this
</code>
\end{verbatimtab}
\normalsize

\small
\begin{verbatimtab}
<file>
This is pretty much the same, but you could use it to show that you quoted a file.
</file>
\end{verbatimtab}
\normalsize

\dokutitleleveltree{Syntax Highlighting}
\label{7a25b4fac1e9bfb0d00433012d58df23}%% syntax_highlighting
\hyperref[18c179f84e1e69aa6a4ff775ac0a2b0f]{DokuWiki} can highlight sourcecode, which makes it easier to read. It uses the \href{http://qbnz.com/highlighter/}{GeSHi} Generic Syntax Highlighter  so any language supported by GeSHi is supported. The syntax is the same like in the code and file blocks in the previous section, but this time the name of the used language is inserted inside the tag. Eg. \dokumonospace{$<$code java$>$} or \dokumonospace{$<$file java$>$}.


\lstset{language=java}
\begin{lstlisting}
/**
 * The HelloWorldApp class implements an application that
 * simply displays "Hello World!" to the standard output.
 */
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); //Display the string.
    }
}

\end{lstlisting}
The following language strings are currently recognized: \dokuitalic{4cs, abap, actionscript-french, actionscript, actionscript3, ada, apache, applescript, asm, asp, autoconf, autohotkey, autoit, avisynth, awk, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c{\textunderscore}mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, cpp, cpp-qt, csharp, css, cuesheet, d, dcs, delphi, diff, div, dos, dot, ecmascript, eiffel, email, erlang, fo, fortran, freebasic, fsharp, gambas, genero, genie, gdb, glsl, gml, gnuplot, groovy, gettext, gwbasic, haskell, hicest, hq9plus, html, icon, idl, ini, inno, intercal, io, j, java5, java, javascript, jquery, kixtart, klonec, klonecpp, latex, lisp, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, modula2, modula3, mmix, mpasm, mxml, mysql, newlisp, nsis, oberon2, objc, ocaml-brief, ocaml, oobas, oracle8, oracle11, oxygene, oz, pascal, pcre, perl, perl6, per, pf, php-brief, php, pike, pic16, pixelbender, plsql, postgresql, povray, powerbuilder, powershell, progress, prolog, properties, providex, purebasic, python, q, qbasic, rails, rebol, reg, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, vala, vbnet, vb, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, winbatch, whois, xbasic, xml, xorg{\textunderscore}conf, xpp, z80}


\dokutitleleveltree{Downloadable Code Blocks}
\label{a535c05f514d6f202c26cc04f9f6f94c}%% downloadable_code_blocks
When you use the \dokumonospace{$<$code$>$} or \dokumonospace{$<$file$>$} syntax as above, you might want to make the shown code available for download as well. You can to this by specifying a file name after language code like this:


\small
\begin{verbatimtab}

<file php myexample.php>
<?php echo "hello world!"; ?>
</file>

\end{verbatimtab}
\normalsize

\small
\begin{verbatimtab}

<?php echo "hello world!"; ?>

\end{verbatimtab}
\normalsize
If you don't want any highlighting but want a downloadable file, specify a dash (\dokumonospace{-}) as the language code: \dokumonospace{$<$code - myfile.foo$>$}.


\dokutitleleveltwo{Embedding HTML and PHP}
\label{e94a31be6822bab9573d6e4a4088c597}%% embedding_html_and_php
You can embed raw HTML\dokufootmark{1} or PHP\dokufootnote{Hypertext Preprocessor} code into your documents by using the \dokumonospace{$<$html$>$} or \dokumonospace{$<$php$>$} tags. (Use uppercase tags if you need to enclose block level elements.)

HTML\dokufootmark{1} example:


\small
\begin{verbatimtab}

<html>
This is some <span style="color:red;font-size:150%;">inline HTML</span>
</html>
<HTML>
<p style="border:2px dashed red;">And this is some block HTML</p>
</HTML>

\end{verbatimtab}
\normalsize

\lstset{language=html}
\begin{lstlisting}
<html>

This is some <span style="color:red;font-size:150%;">inline HTML</span>

</html>

\end{lstlisting}


PHP\dokufootmark{4} example:


\small
\begin{verbatimtab}

<php>
echo 'A logo generated by PHP:';
echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';
echo '(generated inline HTML)';
</php>
<PHP>
echo '<table class="inline"><tr><td>The same, but inside a block level element:</td>';
echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !"
/></td>';
echo '</tr></table>';
</PHP>

\end{verbatimtab}
\normalsize

\lstset{language=php}
\begin{lstlisting}
<php>

echo 'A logo generated by PHP:';
echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />';
echo '(inline HTML)';

</php>

\end{lstlisting}


\dokubold{Please Note}: HTML\dokufootmark{1} and PHP\dokufootmark{4} embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed.


\dokutitleleveltwo{RSS/ATOM Feed Aggregation}
\label{e23c2f1ff25f9c3287135d3e55c72d5c}%% rss_atom_feed_aggregation
\hyperref[18c179f84e1e69aa6a4ff775ac0a2b0f]{DokuWiki} can integrate data from external XML\dokufootnote{Extensible Markup Language} feeds. For parsing the XML\dokufootmark{5} feeds, \href{http://simplepie.org/}{SimplePie} is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:

%% Table analyse:
%%    Numrows: 7
%%    Longest row size: 122
%%    Choose table mode: tabularx
\vspace{0.8em}
\begin{tabularx}{\dokutabularwidth}{|p{7.2em}|X|}%% 9 | X | 
\hline
{\dokuheadingstyle{\color{dokuheadingcolor} Parameter  \normalcolor}}&{\dokuheadingstyle{\color{dokuheadingcolor} Description \normalcolor}}\\ 
\hline
{ any number }&{ will be used as maximum number items to show, defaults to 8 }\\ 
\hline
{ reverse    }&{ display the last items in the feed first }\\ 
\hline
{ author     }&{ show item authors names }\\ 
\hline
{ date       }&{ show item dates }\\ 
\hline
{ description}&{ show the item description. If \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{HTML} is disabled all tags will be stripped }\\ 
\hline
{ \dokuitalic{n}[dhm] }&{ refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). }\\ 
\hline
\end{tabularx}
\vspace{0.8em}

The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. \hyperref[18c179f84e1e69aa6a4ff775ac0a2b0f]{DokuWiki} will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells \hyperref[18c179f84e1e69aa6a4ff775ac0a2b0f]{DokuWiki} to re-render the page if it is more than \dokuitalic{refresh period} since the page was last rendered.

\dokubold{Example:}


\small
\begin{verbatimtab}
{{rss>http://slashdot.org/index.rss 5 author date 1h }}
\end{verbatimtab}
\normalsize

\begin{itemize}
\dokuitem \href{http://rss.slashdot.org/~r/Slashdot/slashdot/~3/uwfGG-ZWlbY/the-artificial-life-of-the-app-store}{The Artificial Life of the App Store} by timothy (\%2012/\%04/\%22 \%22:\%Apr)
\dokuitem \href{http://rss.slashdot.org/~r/Slashdot/slashdot/~3/w6HF6-Rj5gY/mit-hack-turns-the-green-building-into-a-giant-game-of-tetris}{MIT Hack Turns the Green Building Into a Giant Game of Tetris} by timothy (\%2012/\%04/\%22 \%21:\%Apr)
\dokuitem \href{http://rss.slashdot.org/~r/Slashdot/slashdot/~3/mLr_Y_zpmQc/did-microsoft-simply-run-out-of-time-on-windows-rt}{Did Microsoft Simply Run Out of Time On Windows RT?} by timothy (\%2012/\%04/\%22 \%20:\%Apr)
\dokuitem \href{http://rss.slashdot.org/~r/Slashdot/slashdot/~3/xc-Ou9cTZ_I/us-journalists-targeted-by-pentagon-propaganda-contractors}{US Journalists Targeted By Pentagon Propaganda Contractors} by timothy (\%2012/\%04/\%22 \%19:\%Apr)
\dokuitem \href{http://rss.slashdot.org/~r/Slashdot/slashdot/~3/vI6_g8Jp4yI/iranian-military-says-its-copying-us-drone}{Iranian Military Says It's Copying US Drone} by timothy (\%2012/\%04/\%22 \%18:\%Apr)
\end{itemize}

\dokutitleleveltwo{Control Macros}
\label{ab5e6e532866dfbb989a0722b1c326d2}%% control_macros
Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:

%% Table analyse:
%%    Numrows: 3
%%    Longest row size: 202
%%    Choose table mode: tabularx
\vspace{0.8em}
\begin{tabularx}{\dokutabularwidth}{|p{4em}|X|}%% 5 | X | 
\hline
{\dokuheadingstyle{\color{dokuheadingcolor} Macro           \normalcolor}}&{\dokuheadingstyle{\color{dokuheadingcolor} Description \normalcolor}}\\ 
\hline
{ \~{ }\~{ }NOTOC\~{ }\~{ }   }&{ If this macro is found on the page, no table of contents will be created }\\ 
\hline
{ \~{ }\~{ }NOCACHE\~{ }\~{ } }&{ DokuWiki caches all output by default. Sometimes this might not be wanted (eg. when the $<$php$>$ syntax above is used), adding this macro will force DokuWiki to rerender a page on every call }\\ 
\hline
\end{tabularx}
\vspace{0.8em}


\dokutitleleveltwo{Syntax Plugins}
\label{c29b6172010169a749e0274f81a83599}%% syntax_plugins
DokuWiki's syntax can be extended by \includegraphics[height=1em]{/srv/wiki/docroot/fp/lib/plugins/tmp/texitimages/texitjGOX82.ps}\href{http://www.dokuwiki.org/}{Plugins}. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation:


\appendix
\end{document}

