I am writing a book-style document for children stories etc. I 've found a nice border for the page background of each paper, with a special place near the corner for each page-number.
What I need now is to put the page-numbering of each page, on the bottom Left or Right side (but near the corners of each page) depending on even-odd logic of a book.
So far I've just managed to put with fancyhdr
the even-odd page numbering correctly and suppress the 'Body' margins with a naive way to push the numbering at the sides. But I can't suppress the 'Body' borders, for both Odd and Even pages with the simple\hspace
method.
I've tried \checkoddpage
(if-then logic) and stuff but they did not work out well. The Right-Odd (RO) footer simply does not want to be pushed!!!
Any ideas pushing that remaining Odd-numbering to the side? A sample of the code follows. It's a little long sorry! (I can't include the borders-backgrounds…but I hope you can imagine-understand what is needed to be implemented here.)
Thanks in advance for your time.
\documentclass[openany]{book}
\usepackage[a4paper]{geometry}
\usepackage{multicol}
\usepackage{parskip}
\usepackage{graphicx}
\usepackage{changepage}
\usepackage{fancyhdr}
\usepackage{lipsum}
\pagestyle{plain}
%CHAPTER FORMAT
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering\Huge\bfseries}
{\chaptername\ \thechapter}{0pt}{\Huge}
\titleformat{\section}
{\Huge\bfseries}
{}{1em}{}
\titleformat{\subsection}
{\LARGE}
{}{1em}{}
%TABLE OF CONTENTS
\usepackage[titles]{tocloft}
\usepackage[toc]{multitoc}
\renewcommand\cftchapfont{}
\renewcommand\cftsecfont{}
\renewcommand\cftchappagefont{\normalsize}
\renewcommand\cftsecpagefont{\small}
\renewcommand\cftchapafterpnum{\par\addvspace{3pt}}
\renewcommand\cftsecafterpnum{\par\addvspace{3pt}}
\renewcommand{\contentsname}{\centering Contents}
%PAGE NUM (RIGHT/LEFT)
\pagestyle{plain}
\fancypagestyle{plain}{
\fancyhf{} % clear all header and footer fields
\fancyfoot[LE]{\hspace*{-2.5cm}\LARGE{\textbf{\thepage}}}
\fancyfoot[RO]{\hspace*{1.5cm}\LARGE{\textbf{\thepage}}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\footskip}{110pt}
\hoffset =0pt
}
%BEGIN DOC
\title{Pax Romana}
\begin{document}
\maketitle
\tableofcontents
\thispagestyle{empty}
\clearpage\pagestyle{plain}
\chapter{Introduction}
\begin{multicols}{2}
\lipsum
\end{multicols}
\chapter{Chp1}
\begin{multicols}{2}
\lipsum
\end{multicols}
\end{document}
Best Answer
Here is a very simple solution, loading
titleps
via thepagestyles
option of titlesec, instead of fancyhdr:Odd page: