0

enter image description here

I want to place the heading in the middle and the page number below in Latex. Please suggest how to do it.

I am using the following coding.

\chapter{$\Lambda$-Modules}\ref{ch:prili}
\pagestyle{myheadings}
\markright{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Chapter
\ref{ch:prili}:~Preliminaries}
\thispagestyle{empty}
1

The fancyhdr package provides a lot of options for customizing headers and footers, including control over the location of page numbers. Having the page number at the bottom and a centered header text could go like this, for a simple example:

\documentclass{book}

\usepackage{fancyhdr}
\pagestyle{fancy}

\chead{Header text} % Can also use \lhead or \rhead

\cfoot{\thepage} % Can also use \lfoot or \rfoot

\begin{document}
...
0

fancyhdr is the easiest way to go. \usepackage{google} for more info. i think you want something like (not tested)

\usepackage{fancyhdr}
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\fancyhead[CE,CO]{\chaptername \thechapter. \chaptermark}
\fancyhead[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.