<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass{article}


\usepackage{tex-label}

\begin{document}

\labels{sample page, demo, tex-labels}
this is a sample page.

this page doesn't contain any useful info.
just demonstrating use of labels.

\vfil
\break

\labels{second page, demo, labels}

This is another page with different labels.

\vfill
\break

If a page starts without any label. It shows last page's labels. 

\end{document}

</pre></body></html>