I am using the amsbook document class. I would like it to print the section number at the top of each page. How does one go about doing that? And, what options do I have for displaying it?
EDIT: Here is my preamble. I have typed about six sections, but there is nothing out of the ordinary about them.
\documentclass[12pt]{amsbook}
\usepackage{etex}
\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-grad} % For gradients
\usepackage{pst-plot}
\usepackage{tikz}
\usepackage{amsmath,amsthm,amsfonts,amssymb,bm,tikz,pgfplots,subfig,float,sidecap,enumitem,varioref,thmtools}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\usepackage{multicol}
\usepackage[nice]{nicefrac}
\usepackage{imakeidx}
\usepackage[hypertexnames=true]{hyperref}
\hypersetup{colorlinks,linkcolor=blue}
\pagestyle{plain}
\makeindex[name=index, title=Index of Terms, columns=2]
\makeindex[name=notation, title=Index of Notations, columns=2]
\onehalfspacing %also singlespacing and doublespacing
\setlength{\parindent}{18pt}
\setlength{\intextsep}{1cm}% plus 1pt minus 2pt}
\setlength{\textfloatsep}{1cm}% plus 1pt minus 2pt}
\setlength{\floatsep}{1cm}% plus 1pt minus 2pt}
\usepackage{enumitem}
\setcounter{secnumdepth}{2}
\numberwithin{section}{chapter}
\title{Book Title}
\author{Me}
\begin{document}
\maketitle
\pagebreak
\setcounter{secnumdepth}{-1}
\setcounter{page}{1}
\pagenumbering{roman}
\setcounter{tocdepth}{4}
\makeatletter
\def\l@subsection{\@tocline{2}{0pt}{2.5pc}{5pc}{}}
\makeatother
\tableofcontents
\pagebreak
\setcounter{secnumdepth}{2}
\pagenumbering{arabic}
\setcounter{page}{1}
\section{Book Begins}
A
\newpage
B
\newpage
C
\end{document}
amsbookis the chapter number and title on the left, and the section number and title on the right. do you mean that you simply want the section information on both the left and the right, or do you want something entirely different? – barbara beeton Sep 19 '16 at 00:33\pagestyle{plain}. by definition, that page style marks pages only with a page number at the bottom. if you remove it, you will get running heads, but since you don't have any\chapters, the left-hand running head is never reset, so it will say "contents". if instead you want a section heading there, let me know, and i'll write out how to do it in an answer. (as it is, this is hardly worth a real answer.) – barbara beeton Sep 20 '16 at 20:46epsfig. Don't load packages twice. – cfr Sep 20 '16 at 23:33