Search found 1 match

by Spaccana
Thu Oct 26, 2023 9:44 am
Forum: Document Classes
Topic: Make function called before \begin{document} to insert text
Replies: 0
Views: 20653

Make function called before \begin{document} to insert text

I want the function \leaf to print text in the document. Because \leaf is called before \begin{document}, I get an error. What can I do?

\documentclass[a4paper,10pt]{article}

\ExplSyntaxOn

\RequirePackage{geometry}

\cs_new_protected:Nn \scand_leaf:
{ \geometry { paperwidth=21cm, paperheight ...