diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-11-10 10:08:19 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-11-10 10:08:19 +0100 |
| commit | 1467c76f200999452344579436a4cc12f29216ff (patch) | |
| tree | 92f670f9316aaf97024281eb48718614195a24fd | |
| parent | 513d1b05e24257d8e437520d951fd2972b6c08cd (diff) | |
| download | unterricht-1467c76f200999452344579436a4cc12f29216ff.tar.gz unterricht-1467c76f200999452344579436a4cc12f29216ff.zip | |
test: improve headers
Always print the first page header. This prevents a bug where the
first page header including the school's logo and the name
were not printed for single page tests using the sigborder option.
| -rw-r--r-- | latex/test.cls | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/latex/test.cls b/latex/test.cls index 0352d450..a17621ef 100644 --- a/latex/test.cls +++ b/latex/test.cls @@ -114,8 +114,8 @@ \pagestyle{fancy} \setlength{\headheight}{25 pt} \fancyhf{} -\fancyhead[L]{\Schule} -\fancyhead[R]{\HeaderText} +\fancyhead[L]{\ifnumcomp{\value{page}}{=}{1}{\ifdefined\KeinLogo \else \includegraphics[width=0.3\textwidth,height=1.5cm]{\LogoSchule} \newline \fi}{}\Schule} +\fancyhead[R]{\ifnumcomp{\value{page}}{=}{1}{\Large Name: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }{\HeaderText}} \fancypagestyle{ErsteSeite}{% \fancyhf{}% |
