<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[11pt,a4paper,english]{book}
\usepackage{layout}
%\documentclass[11pt,a4paper,english,draft]{book}
\usepackage[debug,frames]{notes}
%\usepackage[debug]{notes}
%\usepackage{notes}

\newdimen\pageleft
\begin{document}
%\layout
\chapter{First Chapter}
\chaptername \thechapter
%\begin{notes}
%EXAMPLE 1
%\end{notes}
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.

This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.
This is the first paragraph, which is not indented.

%$\meaning\bigskip$\par
%$\meaning\noteskip$\par
%$\meaning\vspace$\par
%$\meaning\protect$\par
\vskip 10.63629pt
\vskip -5.55141pt % for a double line box
\vskip -12pt % 6pt note skip
%\vskip -24pt % 12pt note skip
\vskip -10.81811pt
%\vskip 0.00001pt
This is the second paragraph, which is indented.
\marginpar{margin note 1}
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
This is the second paragraph, which is indented.
%This should wrap the paragraph onto he next page!
\pageleft=\pagegoal
\advance\pageleft by -\pagetotal
\typeout{testnotes: pagegoal=\the\pagegoal}
\typeout{testnotes: pagetotal=\the\pagetotal}
\typeout{testnotes: textheight=\the\textheight}
\typeout{testnotes: pageleft=\the\pageleft}
\begin{importantnote}
EXAMPLE 2
on two lines it there is enough text to wrap to the next line
\end{importantnote}
This is the first paragraph on page two.
\marginpar{margin note 3, which is also longer to show line wrapping}
This is the first paragraph on page two.
\marginpar{margin note 2}
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.
This is the first paragraph on page two.

This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.
This is the second paragraph on page two.

This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.
This is the third paragraph on page two.

This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
%This should wrap the paragraph onto he next page!
%\importantnote{third note}%, which should be longer than the box to show some line wrapping.}
This is the fourth paragraph on page two.
\marginpar{margin note 4}
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
This is the fourth paragraph on page two.
\marginpar{margin note 4}
This is the fourth paragraph on page two.
\chaptername\par

chaptermark=\chaptermark \quad
chaptername=\chaptername\par
%markboth=\markboth{test}
%markright=\markright

\end{document}
</pre></body></html>