\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 Giovanni Checcozzi. Venedig, 14. Juli 1719}\TeiTitleXI{Basler Edition der Bernoulli-Briefwechsel}}
\author{}
\date{manualPlaceholderContent}
\maketitle

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


Viro Illustrissimo atque Doctissimo Johanni Checotio

S. P. D. N. B.

Quas pro humanissima tua epistola superioribus diebus prop ter adversam valetudinem persolvere nequivit gratias, eas tibi, Vir Eruditissime, nunc demum, sed moestissima mente, persolvo. Ingenti certe tristitia me affecerat nuntius de peri coloso Fratris tui statu; sed ex quo multo infaustiorem à Rev. Patre Catharino Zeno accepi nuntium de ipsa Viri hone stissimi morte, dolore pene conficior. Etenim non possum non graviter ferre jacturam amici, quem mei studiosum fuisse, non solum à te et à communibus amicis, sed etiam ex ipsius huma nissimis ad me litteris satis superque intellexi. Et eo qui dem gravius fero hanc jacturam, quo majorem animo ejus conva lescentia, et de amicitiae recens inter nos natae fructibus spem conceperam. Cum igitur tam brevi temporis spatio, quo amicitia inter nos coaluit, ejus erga me bonevolentiam demereri nullo pacto potuerim, hoc mihi reliquum manet, ut tibi persuadeam, me tanti amici et tam eximii rerum Mathematicarum cultoris memoriam grata mente culturum. Interim ne justo dolori nimium indulgeas, quaeso, sed in Dei voluntate acquiescas qui solatio suo luctum vestrum moderetur, et calamitatem hanc alia felicitate compenset! Quod superest gratias ago pro enixa tua in me voluntate, rogoque ut eam demerendi, et meam vicissim erga te observantiam demonstrandi occasionem mihi praebeas.

Vale. Dabam Venetiis d. 14. Julii 1719.

\end{document}