%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[]{scrartcl}
\KOMAoptions{paper=a4}
\usepackage[
pdftitle={XEP-: },
pdfauthor={XMPP Standards Foundation},
breaklinks = true,
unicode,
pagebackref,
xetex]{hyperref}
\usepackage{color}
\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}]{Hoefler Text}
%\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Gill Sans}
%\setmonofont[Scale=MatchLowercase]{Monaco}
\setkomafont{descriptionlabel}{\normalfont\bfseries}
\usepackage[english]{babel}
\pagestyle{fancy}
\fancyfoot{}
\fancyhead{}
%% page numbering
\newcommand{\XEPNumber}[0]{}
\newcommand{\XEPVersion}[0]{}
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\includegraphics[totalheight=10pt]{logo.pdf} \slshape \leftmark}
\fancyfoot[CO,CE]{\thepage}
\pretitle{
\begin{figure*}[h]
\begin{center}
\includegraphics[totalheight=7.5cm]{logo-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, basicstyle=\small, frame=single, breaklines=true, emptylines=5
empty
empty
ccc
Status & Type & Short Name \\
& &
Legal
fancy
page1
Copyright
Permissions
Warranty
Liability
Conformance
lXX
& \\
\hline
\hline
*http*
#*
\\
caption=