%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[]{scrartcl}
\KOMAoptions{paper=a4}
\usepackage[
pdftitle={XEP-: },
pdfauthor={XMPP Standards Foundation},
pdfcreator={XEP2PDF},
pdfproducer={XEP2PDF},
breaklinks = true,
unicode,
pagebackref,
xetex]{hyperref}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{tabularx}
\usepackage{listings}
\usepackage{varwidth}
\usepackage{titling}
\usepackage{titletoc}
\usepackage{hyphenat}
\hypersetup{colorlinks, linkcolor=blue, anchorcolor=blue, urlcolor=blue}
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setromanfont[Mapping=tex-text, Ligatures={Common}]{Gentium}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gentium}
\setmonofont[Scale=MatchLowercase]{Inconsolata}
\setkomafont{descriptionlabel}{\normalfont\bfseries}
\usepackage[english]{babel}
\pagestyle{fancy}
\fancyfoot{}
\fancyhead{}
%% page numbering
\newcommand{\XEPNumber}[0]{}
\newcommand{\XEPVersion}[0]{}
\fancyhead[L,L]{\includegraphics[totalheight=10pt]{xmpp.pdf} \slshape \leftmark}
\fancyfoot[C,C]{\thepage}
\pretitle{
\begin{figure*}[h]
\begin{center}
\includegraphics[totalheight=7.5cm]{xmpp-text.pdf}
\end{center}
\end{figure*}
\begin{center}\LARGE
}
%\titlecontents{section}[0.7cm]
%{\vspace{0.3cm}}
%{\bfseries\Large\contentslabel{0.7cm}}
%{\bfseries\Large\hspace{-0.7cm}}
%{\bfseries\Large\hfill\contentspage}
%
%\titlecontents{subsection}[2cm]
%{}
%{\contentslabel{1.3cm}}
%{}
%{\titlerule*[1mm]{.}\contentspage}
%
%\titlecontents{subsubsection}[2.3cm]
%{}
%{\contentslabel{1.3cm}}
%{}
%{}
\sloppy
XEP-:
\\
mailto: \\
xmpp: \\
\and
\\ Version
language=XML,
breaklines=true,
emptylines=5,
frame=single,
rulecolor=\color{black},
basicstyle=\small\color{darkgray},
keywordstyle=\color{cyan},
stringstyle=\color{blue},
tagstyle=\color{purple},
markfirstintag=true
empty
empty
ccc
Status & Type & Short Name \\
& &
Legal
fancy
page1
Copyright
Permissions
Warranty
Liability
Conformance
lXX
& \\
\hline
\hline
*http*
#*
\\
caption=