LaTeX header and footer
Six slots (left, centre, right, top and bottom) to fill with the school, class, teacher, year, date, title or “1/3” page number. The first page can have its own information block. The fancyhdr code is written for you.
Approximate preview, with sample information to replace. The final result depends on the LaTeX compilation.
To compile without installing anything: open the Otoolia LaTeX editor, then “Project” → “Import a .zip”, or paste the code into a new file. The separate .sty is added to the project like any other file.
How to do it
- Open section 3, “Header and footer”.
- Choose the content of each slot and the text style.
- Set the first page: same header, information block, or nothing.
- Copy the preamble or download the .zip.
Tips
- “Page 1/3” uses lastpage: compile twice if the total shows “??”.
- A thin rule under the header separates the text without weighing down the page.
- Header text can take the style's main colour.
Frequently asked questions
Do I need to know fancyhdr?
No: the workshop writes the \fancyhead and \fancyfoot commands; you can edit them in the preamble later.
Can I add the school logo?
Yes: choose “Logo” in a slot, then add the logo.png file next to the document.
Do I need to install LaTeX?
No: “Compiled preview” compiles the document in your browser, and “Open in the Otoolia editor” opens the full project in the online LaTeX editor, with nothing to install.