4

I'm developing my own documentclass. How can I make some text appear on the beginning of each document with this class?

For now I'm working with this in the class:

\newcommand{\showAtBegin}{Text}

And in each document...

\begin{document}
\showAtBegin

But there has to be a neat way.

Keelan
  • 5,425

1 Answers1

9

You just need

\AtBeginDocument{Text}
David Carlisle
  • 757,742