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.

0

1 Answer 1

9

You just need

\AtBeginDocument{Text}

Not the answer you're looking for? Browse other questions tagged .