Codebase list swi-prolog / 2e0148a5-3de0-4ad2-b1af-64a6ba38be71/upstream man / plpage.sty
2e0148a5-3de0-4ad2-b1af-64a6ba38be71/upstream

Tree @2e0148a5-3de0-4ad2-b1af-64a6ba38be71/upstream (Download .tar.gz)

plpage.sty @2e0148a5-3de0-4ad2-b1af-64a6ba38be71/upstreamraw · history · blame

%% Define Prolog manual page and header layout

\usepackage{fancyheadings}
\usepackage{fancychap}

%	PAGESTYLE
%
%       Chapter                            date
%       ---------------------------------------
%
%	bla, bla, bla, ...
%	
%       \bottomleft    - page -    \bottomright

\def\arabicday{\number\year-\number\month-\number\day}

\providecommand{\runningtitle}{none}

\ifthenelse{\equal{\runningtitle}{none}}{%
	\relax}{%
\pagestyle{fancyplain}
\headheight 14pt
\def\chaptermark{\mbox{}}
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} % remember chapter title
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}

\lhead[\fancyplain{}{\bf\thepage}]{\fancyplain{}{\bf\rightmark}}
\rhead[\fancyplain{}{\bf\leftmark}]{\fancyplain{}{\bf\thepage}}
\footrulewidth 0.2pt
\lfoot[\tiny \runningtitle]{}
\rfoot[]{\tiny \runningtitle}
\cfoot{}}