%%headerstart%%
\documentclass[english,11pt,oneside,article,a5]{memoir}
\usepackage[english]{babel}
\usepackage{geometry} 
\usepackage{lastpage}
\usepackage{color} 
\usepackage{ulem} 
\usepackage{graphicx} 
\usepackage{picins}
\usepackage{microtype} 
\usepackage{letltxmacro}
\usepackage[pdftex, colorlinks=true, breaklinks=true,plainpages=false,linkcolor=black,ngerman,citecolor=black]{hyperref} 
\pdfminorversion=9
\geometry{left=20mm,right=20mm, top=20mm, bottom=50mm}

\definecolor{authortitle}{rgb}{0,0,0}
\definecolor{commenttitle}{rgb}{0,0,0}
\definecolor{authortext}{rgb}{0.6,0,0}
\definecolor{quotetext}{rgb}{0.5,0.7,0}
\definecolor{commenttext}{rgb}{0,0.5,0.5}
\definecolor{linktext}{rgb}{0,0,1}
\definecolor{spoilertext}{rgb}{0.5,0.5,0.5}
\definecolor{background}{rgb}{1,1,1}

\definecolor{red}{rgb}{1,1,1}
\definecolor{blue}{rgb}{1,1,1}
\definecolor{purple}{rgb}{0.502,0,0.502}
\definecolor{orange}{rgb}{1,0.647,0}

\newlength\picturewidth
\setlength\picturewidth{0.3\textwidth}

\makepagestyle{standard}
\makeheadrule{standard}{\textwidth}{\normalrulethickness}
\makeoddhead{standard}{\Kurztitel}{}{-~\thepage~-~}

\newcommand{\Titel}{\Huge ##title##}
\newcommand{\Kurztitel}{##title##}
\newcommand{\postbyr}[2]{\phantomsection\label{#2}\begin{flushright}\textcolor{authortitle}{\textbf{\huge#1}\tiny#2}\end{flushright}}
\newcommand{\postbyl}[2]{\phantomsection\label{#2}\pagebreak[3]\begin{flushleft}\textcolor{commenttitle}{\textbf{\large#1}\tiny#2}\end{flushleft}}
\newcommand{\npicskip}[1]{\picskip{#1}\leftskip3em}
\newcommand{\linkref}[1]{\textcolor{linktext}{\underline{\hyperref[#1]{$>>$#1}}}}
\newcommand{\link}[1]{\textcolor{linktext}{\url{#1}}}
\newcommand{\spoiler}[1]{\textcolor{spoilertext}{\xout{#1}}}
\newenvironment{post}{\rmfamily\npicskip{0}\nopagebreak\vspace*{0.5em}}{}

\title{\vfil\Titel\\[4cm]}
\author{compiled by\\[5mm]
\textbf{Dediggefedde}\\[5mm]
using tgchan\_BLICK's Archive-feature}

%escape: & % $ # _ { } ~ ^ \ < >
%to: \& \% \$ \# \_ \{ \} \textasciitilde \textasciicircum \textbackslash $<$ $>$

\setlength{\emergencystretch}{2em}

\LetLtxMacro\origttfamily\ttfamily
\DeclareRobustCommand*{\ttfamily}{%
  \origttfamily
  \hyphenchar\font=`\-\relax
  \fontdimen3\font=.25em\relax
  \fontdimen4\font=.167em\relax
  \fontdimen7\font=.167em\relax
}

\makeatletter
\DeclareRobustCommand\vttfamily{%
  \not@math@alphabet\vttfamily\relax
  \fontfamily{cmvtt}% cmvtt (Computer Modern) or lmvtt (Latin Modern)
  \selectfont
}
\DeclareTextFontCommand{\textvtt}{\vttfamily}
\makeatother


\begin{document}
\begin{titlingpage}
	\pagecolor{background}
	\color{authortitle}
	\maketitle
	\thispagestyle{empty} 	
\end{titlingpage}

\clearpage
\pagestyle{standard}  

\OnehalfSpacing
\leftskip3em\rightskip2em
%%headerend%%


%%authorstart%%
\begin{post}
\parpic[l]{\includegraphics[width=\picturewidth]{##imagename##}}
\postbyr{##poster##}{##postnummer##}
##posttext##\npicskip{0}
\end{post}
%%authorend%%

%%commentstart%%
\begin{post}
\postbyl{##poster##}{##postnummer##}
##posttext##\npicskip{0}
\end{post}
%%commentend%%

\end{document}
