[Tex/LaTex] What are the parameters of \newpagestyle

pagestyle

I see \newpagestyle used with \sethead and \setfoot, for example here, but I cannot find any information on what those arguments for \sethead and \setfoot mean.

Best Answer

Here is an example page (odd page 3) which should explain the six parameters:

\documentclass[a5paper]{article}
\usepackage{titlesec}
\newpagestyle{main}{
  \sethead[A][B][C]% even
    {D}{E}{F}%       odd
  \setfoot[a][b][c]% even
   {d}{e}{f}%        odd
}
\pagestyle{main}

\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}

enter image description here

Related Question