The general idea is to have the name of the author jutting out from the outer margin on verso pages, with the title of the current issue next to it and aligned with the text block. On recto pages, the name of the part would jut out from the outer margin, with the name of the chapter next to it and aligned with the text block as well. I should mention that, as it's a journal, the author changes with every chapter.
As an example, take a look at pages 2 and 3 of the PDF I've attached: The problem I'm having is finding a way to make the author appear in the header automatically. I'd also like to find a way to make the title of the issue appear automatically, but that's not all that important, since I can modify that manually every time I have to work on the design of a particular issue.
At the moment, this is the code I've come up with:
Code: Select all
% Purple color
\definecolor{dred}{HTML}{6F2151}
% Triangle for beneath headers, on recto and verso pages
\newcommand{\eptri}{%
\rlap{\smash{\raisebox{-2.5pt}{%
\begin{tikzpicture}%
\draw[fill=dred,color=dred] (0,0) -- (0.4,0) -- (0,-0.4) -- (0,0)
\end{tikzpicture}%
}}}}
\newcommand{\optri}{%
\llap{\smash{\raisebox{-2.5pt}{%
\begin{tikzpicture}%
\draw[fill=dred,color=dred] (0,0) -- (0.4,0) -- (0.4,-0.4) -- (0,0)
\end{tikzpicture}%
}}}}
% header code
\makepagestyle{kingshf}
\makeheadposition{kingshf}{flushright}{flushleft}{}{}
\makepsmarks{kingshf}{%
\nouppercaseheads
\createmark{chapter}{right}{nonumber}{}{}
\createmark{part}{left}{nonumber}{}{}
\createplainmark{toc}{both}{\contentsname}
\createplainmark{lof}{both}{\listfigurename}
\createplainmark{lot}{both}{\listtablename}
\createplainmark{bib}{both}{\bibname}
\createplainmark{index}{both}{\indexname}
\createplainmark{glossary}{both}{\glossaryname}
}
\makeevenfoot{kingshf}%
{\normalfont\bfseries\thepage}{}{}
\makeoddfoot{kingshf}%
{}{}{\normalfont\bfseries\thepage}
\makeevenhead{kingshf}%
{\llap{\colorbox{dred}{\rule{85pt}{}\llap{\textcolor{white}{\scshape john smith}}}\optri\kern\marginparsep}\normalfont\itshape Issue Title}{}{}
\makeoddhead{kingshf}%
{}{{{\normalfont\itshape\rightmark}\rlap{\kern\marginparsep\eptri\colorbox{dred}{\rlap{\textcolor{white}{\scshape\leftmark}}\rule{85pt}{}}}}
Thanks in advance,
Cedric