\documentclass{scrreprt}
\usepackage[
% headsepline, % En-/disable for checks with the GW headline
]{scrlayer-scrpage}
\clearmainofpairofpagestyles
\setlength{\headheight}{\baselineskip}
% -- Now use the package
% -- NOTE: since .sty and .txt are not in same directory, we have to give
% -- the templatefile argument and use ../gwbar
\usepackage[
templatefile="../code/generic_template.txt",
% templatefile="../code/eccentric_template.txt",
declaretitlebox=false,
progressbar=false,
]{../gwbar}
\ihead{%
\gwbar[%
% -- Potentially Different Options
]%
Test Header%
}
% -- NOTE: this is the intended way of using the command. \ohead or \head would
% -- work as well, but only with some extra work (see the file alignment_example).
\begin{document}
Hello there
\end{document}
PDF Preview
Create an account to compile and preview