\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/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{\TeiAddII}[1]{\underline{\textcolor{green}{#1}}}
\newcommand{\TeiTitleXI}[1]{\textit{#1}}
\newcommand{\TeiRowI}[1]{\textbf{#1}}
\newcommand{\TeiUnclear}[1]{\textcolor{grey}{#1}}
\newcommand{\TeiTitleXV}[1]{\textit{#1}}
\newcommand{\TeiTitleXIII}[1]{\textit{#1}}
\newcommand{\TeiHiV}[1]{\textit{#1}}
\newcommand{\TeiHiII}[1]{\textsc{#1}}
\newcommand{\TeiHeadIII}[1]{\textit{#1}}
\newcommand{\TeiHeadIV}[1]{\textit{#1}}
\newcommand{\TeiHiVII}[1]{\underline{#1}}
\newcommand{\TeiPII}[1]{{\RaggedLeft #1\par}}
\newcommand{\TeiPbI}[1]{{\fontsize{16px}{1.2em}\selectfont {\RaggedLeft #1\par}}}
\newcommand{\TeiPbII}[1]{{\fontsize{16px}{1.2em}\selectfont {\RaggedLeft #1\par}}}
\newcommand{\TeiHiI}[1]{\textbf{#1}}
\newcommand{\TeiHeadII}[1]{\textit{#1}}
\newcommand{\TeiDatelineII}[1]{{\RaggedLeft #1\par}}
\newcommand{\TeiPIII}[1]{{\Centering #1\par}}
\newcommand{\TeiDatelineI}[1]{{\Centering #1\par}}
\newcommand{\TeiNoteII}[1]{\begin{changemargin}{0.2em}{0mm}#1\end{changemargin}
}
\newcommand{\TeiHeadV}[1]{\textbf{#1}}
\newcommand{\TeiPbIII}[1]{{\fontsize{16px}{1.2em}\selectfont {\RaggedLeft #1\par}}}
\newcommand{\TeiDelII}[1]{\sout{#1}}
\newcommand{\TeiTitleIX}[1]{\textit{#1}}

\begin{document}
%\tableofcontents
\mainmatter
\fancyhead[EL,OR]{\thepage}
\fancyhead[ER]{\leftmark}
\fancyhead[OL]{\leftmark}
\title{\TeiTitleIX{Nicolaus I Bernoulli an Pietro Antonio Michelotti. Padua, 24. November 1718}\TeiTitleXI{Basler Edition der Bernoulli-Briefwechsel}}
\author{}
\date{manualPlaceholderContent}
\maketitle

\includegraphics[max size={\textwidth}{\textheight}]{https://www.e-manuscripta.ch/i3f/v20/1038512/manifest}


Epistola Roma Tibi missa, quam En remitto protinus epistolam Roma\footnote{Rom}
ad Te datam; non est ea scripta àa Monacho, sed ab illo ipso amico
meo, àa quo etiam inclusa scripta fuit. Suspicabar aliquid iniqui,
quia putabam hanc epistolam non ab eo, sed |:(ut ajebas:|) àa Mo-

s nacho scriptam esse putabam. Ego valde metuo, ne litteræae, quas
ad eum dedi, interceptæae fuerint, quia se nunq nullam responsionem
àa me accepisse conqueritur. Enixe igitur Te rogo, ut proximo
die Sabbathi respondeas, ipsique dicas, Te tres pro me accepisse
epistolas, ad quarum primam et tertiam responderim, meque
etiam ad istam quartam responsurum esse; simulque ab ipso
petas, num ultimam meam die 4. Novembris scriptam accepe-rit. Rogo ut mittas epistolam sub involucro isti Patri Ô Kel-lÿ (ad quem meas miseram) inscripto, ego meam per aliasm
viam mittam, quia dicto Patri\footnote{Johann I Bernoulli (1667–1748)} non satis fido. Rem totam
quæae mihi cum isto amico intercedit, aliquando narrabo co-ram. Interim ignosce si quam Tibi creem molestiam. De
scelesto illo responsione adversus scelesti illius objectiones co-
gitabo Cohortaris me, ut scelesto illi respondeam sub alieno
nomine; de ea re cogitabo, videboque qua ratione optime
id fieri poterit; si quid mihi constitutum erit, fortassis Tua opera 
utar.

Vale et mihi favere perge. Patavii\footnote{Padua} d. 24. 9bris 1718.

\end{document}