<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%&amp;latex -*- latex -*-
% Implement the \frontmatter, \mainmatter, and \backmatter macros,
% so I can use them in reports, not just books.

\newif\if@mainmatter \@mainmattertrue

\newcommand\frontmatter{%
	\cleardoublepage\@mainmatterfalse\pagenumbering{roman}}

\newcommand\mainmatter{%
	\cleardoublepage\@mainmattertrue%
	\pagenumbering{arabic}\setcounter{page}{1}}

\newcommand\backmatter{%
	\if@openright\cleardoublepage\else\clearpage\fi%
	\@mainmatterfalse}
</pre></body></html>