\documentclass[11pt]{book}
\usepackage[english]{babel}
\usepackage{ragged2e}
\usepackage{colortbl}
\usepackage{fancyhdr}
\usepackage{xcolor}
\usepackage[normalem]{ulem}
\usepackage{marginfix}
\usepackage[a4paper, twoside, top=25mm, bottom=35mm, outer=40mm, inner=20mm, heightrounded, marginparwidth=25mm, marginparsep=5mm]{geometry}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\usepackage{hyperref}
\usepackage{ifxetex}
\usepackage{longtable}
\usepackage{tabu}
\usepackage[maxfloats=64]{morefloats}
\usepackage{listings}
\lstset{
basicstyle=\small\ttfamily,columns=flexible,breaklines=true}
\pagestyle{fancy}
\fancyhf{}
\def\theendnote{\@alph\c@endnote}
\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}
\hyperbaseurl{}
\graphicspath{{//data/}}
%\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\thispagestyle{empty}

\catcode`|=4
% set left and right margin
\newenvironment{changemargin}[2]{%
\begin{list}{}{%
\setlength{\topsep}{0pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
\def\signed #1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
\hbox{}\nobreak\hfil#1%
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
\newsavebox\mybox
\newenvironment{aquote}[1]
{\savebox\mybox{#1}\begin{quote}}
{\signed{\usebox\mybox}\end{quote}}
% Styles
\newcommand{\TeiAddI}[1]{\textit{#1}}
\newcommand{\TeiTitleII}[1]{\textit{{\Centering #1\par}}}
\newcommand{\TeiTitleI}[1]{\textit{{\Centering #1\par}}}
\newcommand{\TeiRefIII}[1]{\begin{changemargin}{20px}{0mm}{\RaggedRight #1\par}\end{changemargin}
}
\newcommand{\TeiRefII}[1]{{\fontsize{1em}{1.2em}\selectfont {\Centering #1\par}}}
\newcommand{\TeiPb}[1]{\begin{changemargin}{4pt}{0mm}\textcolor{grey}{#1}\end{changemargin}
}
\newcommand{\TeiHi}[1]{\begin{changemargin}{1px}{0mm}#1\end{changemargin}
}
\newcommand{\TeiSpan}[1]{\textit{#1}}
\newcommand{\TeiHeadII}[1]{\textit{#1}}
\newcommand{\TeiHeadIII}[1]{\textit{#1}}
\newcommand{\TeiDateline}[1]{{\RaggedLeft #1\par}}
\newcommand{\TeiHeadVI}[1]{{\Centering #1\par}}
\newcommand{\TeiNoteIII}[1]{\begin{changemargin}{.25em}{0mm}#1\end{changemargin}
}
\newcommand{\TeiP}[1]{{\setlength{\parindent}{20px}#1}}
\newcommand{\TeiTitleVI}[1]{\begin{changemargin}{20px}{0mm}\textit{#1}\end{changemargin}
}
\newcommand{\TeiTitleIII}[1]{\textit{{\setlength{\parindent}{20px}#1}}}
\newcommand{\TeiTitleIV}[1]{\textsc{{\Centering #1\par}}}
\newcommand{\TeiEmph}[1]{\textit{#1}}
\newcommand{\TeiRefI}[1]{{\fontsize{1em}{1.2em}\selectfont {\Centering #1\par}}}
\newcommand{\TeiCell}[1]{{\RaggedRight #1\par}}
\newcommand{\TeiListII}[1]{{\setlength{\parindent}{20px}#1}}
\newcommand{\TeiTable}[1]{\begin{changemargin}{20px}{0mm}#1\end{changemargin}
}
\newcommand{\TeiHeadIV}[1]{\textit{#1}}
\newcommand{\TeiFloatingText}[1]{\textcolor{red}{#1}}
\newcommand{\TeiHeadV}[1]{\textbf{#1}}

\begin{document}
%\tableofcontents
\mainmatter
\fancyhead[EL,OR]{\thepage}
\fancyhead[ER]{\leftmark}
\fancyhead[OL]{\leftmark}

\title{When the Wall Came Down. The Perception of German Reunification in International Diplomatic Documents 1989–1990 (Quaderni di Dodis 12)}
\author{Marc Dierikx, Sacha Zala}
\date{}
\maketitle








\chapter*{\TeiHeadVI{ \href{https://dodis.ch/53169}{\TeiRefIII{dodis.ch/53169}} Telegram\footnote{\TeiNoteIII{Telegram No. 0-1789/IV (incoming, translated from Polish): Archives of the Polish Ministry of Foreign Affairs AMSZ, ZD 24/91, w. 3, t. 9. Delivered by: 10 November 1989, 4.00 a.m. }} from the Polish Ambassador in East Berlin, Janusz Obodowski\footnote{\TeiNoteIII{Janusz Obodowski (1930–2011), dodis.ch/P57588, Polish Ambassador in East Berlin 1986–1990.}}, to the Polish Minister of Foreign Affairs, Krzysztof Skubiszewski\footnote{\TeiNoteIII{Krzysztof Skubiszewski (1926–2010), dodis.ch/P57377, Polish Minister of Foreign Affairs 12.9.1989–26.10.1993.}} }}\markboth{\TeiHeadVI{
\href{https://dodis.ch/53169}{\TeiRefIII{dodis.ch/53169}}
Telegram from the Polish Ambassador in East Berlin,
Janusz Obodowski, to the Polish Minister of Foreign Affairs,
Krzysztof Skubiszewski

}}{\TeiHeadVI{
\href{https://dodis.ch/53169}{\TeiRefIII{dodis.ch/53169}}
Telegram from the Polish Ambassador in East Berlin,
Janusz Obodowski, to the Polish Minister of Foreign Affairs,
Krzysztof Skubiszewski

}}

For immediate action
\TeiDateline{\TeiDateline{East Berlin, 10 November 1989, 1.00 a.m.}}

\TeiP{\TeiP{Following Schabowski’s\footnote{\TeiNoteIII{Günter Schabowski (1929–2015), dodis.ch/P56902, member of the SED
Politburo and spokesman of the GDR government 1989.}} statement about the
opening of borders with the West, the border with the FRG has burst. Masses of people
are crossing into West Berlin. Some are moving back and forth. Rallies at the W\TeiAddI{[est]} B\TeiAddI{[erlin]} border.}}


\end{document}