\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, 20. November 1718}\TeiTitleXI{Basler Edition der Bernoulli-Briefwechsel}}
\author{}
\date{manualPlaceholderContent}
\maketitle

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


Gratia Accepi heri litteras\footnote{Nicolaus I Bernoulli an Pietro Antonio Michelotti. Padua, 20. November 1718} Tuas gratissimas una cum epistola,
quam dicis Roma\footnote{Rom} ad Te missam fuisse àa Monacho quodam, dicis.

Rogo ut mihi significes nomen mhujus monachi, et an Tibi idem sit
notus, ut et an ejus epistola, quam ab eo accepisti, ab eadem
manu fuerit exarata, àa qua fuit ea quam inclusam ad me
misisti. Ego nullas unquam litteras àa Monachoab illo accepi, neque
ullus mihi Romæae\footnote{Rom} Monachus notus est. Suspicor aliquid myste-rii hic subesse; antequam igitur ad eum scribas, rogo ut me
de illsta re certiorem facias, simulque mihi indices, an nullus
Tibi Romæae\footnote{Rom} notus sit vir sinceræae fidei, ad quem qui per quem
tuto ad amicum Romæae\footnote{Rom} degentem litteras mittere liceret. Quid
Professores nostri sive boni sive mali de Te sentiant, ignoro. Quod
vero attinet ad y, ea de re coram agemus. Gaudeo Te acce-pisse àa Patruo\footnote{Johann I Bernoulli (1667–1748)} epistolam\footnote{Johann I Bernoulli an Pietro Antonio Michelotti. Basel, 02. November 1718} doctrinis plenam; scire gestio, num
quid Tibi de Professione Duisburgensi\footnote{Duisburg} significaverit. Nebu-lo quidam, qui sub nomine Caroli Baldi latere voluit, et quem 
credo esse Verzagliam\footnote{Giuseppe Verzaglia (1669–30.1.1728)},publica typis edidit libellum famosum,
constantem duabus plagulis, plenum contumeliis et paralogis-mis, adversus observationes meas in Theorema\footnote{ . } Fagnani\footnote{Giulio Carlo Fagnano dei Toschi (1682–1766)} publicatas
in Tom. 29. art. 5. Diarii. Nescio an huic nebuloni responsurus sim,
stylus enim hujus scripti plane non differt àa stylo libri,elli\footnote{Verzaglia, Giuseppe. Esame delle riflessioni geometriche pubblicate da un oltramontano professore in Italia nell'articolo VII del tomo VII del Giornale de' letterati, in difesa dell'articolo XVI del tomo V intorno a i pro[…]. 1714} famo-si, quodem contra Herman̄nnum\footnote{Jacob Hermann (1678–1733)} edidit Verzaglia\footnote{Giuseppe Verzaglia (1669–30.1.1728)}, neque ovum ovo
similius esse potest. Saltem in Tomo proximo Diarii monebo, ejus-cemodi nebulones indignos esse quibus respondeatur.

Vale.
Patavii\footnote{Padua} d. 20. 9bris. 1718.

\end{document}