How can I stop LaTeX from resetting page numbers whenever a new chapter starts? I would like to have a single global page number for the whole report. I don't think I am changing the default page numbering in any way with what I have in my preamble, but just in case, here it is:  \documentclass[12pt]{report} \usepackage[english]{babel}  %use a new bibliography for each chapter \usepackage[square,sort,comma,numbers,sectionbib]{natbib} \usepackage{chapterbib}    %math environment \usepackage{amsmath}  \numberwithin{equation}{chapter}  %graphics environment \usepackage{graphicx}  %allow figure captions to cross between pages \usepackage{caption}     \DeclareCaptionLabelFormat{adja-page}{\\#1 #2 }  % reset figure numbers between chapters \usepackage{chngcntr}  \counterwithin{figure}{chapter}  % flush all floats whenever a new (sub(sub))section start \usepackage{placeins} \let\Oldsection\section \renewcommand{\section}{\FloatBarrier\Oldsection} \let\Oldsubsection\subsection \renewcommand{\subsection}{\FloatBarrier\Oldsubsection} \let\Oldsubsubsection\subsubsection \renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}  %double spaced \usepackage{setspace} \doublespacing  %smaller margins \usepackage[margin=1.25in]{geometry}  %define display style for large operators in rational equations \newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}} \newcommand\bfrac[2]{\left(\frac{ #1}{ #2}\right)}   %define a chapter author environment \makeatletter \newcommand{\chapterauthor}[1]{%   {\centering\parindent0pt\vspace*{0pt}%   #1%   \par\nobreak\vspace*{25pt}}   \@afterheading% } \makeatother  %no header \pagestyle{plain}  %make bibliographies single spaced \usepackage{etoolbox} \AtBeginEnvironment{thebibliography}{\linespread{1}\selectfont}  %include sub(sub(sub)))sections in TOC \setcounter{tocdepth}{4} \setcounter{secnumdepth}{4}    \begin{document} \include{title} \tableofcontents \vfill \newpage \include{intro} \include{chap1} \include{chap2} \include{chap3} \end{document}   Within each \included file, I have something like this:  \chapter{chap1} \chapterauthor{author list} \begin{abstract} bla bla \end{abstract} \section{Introduction} bla bla ...   One of the includes has this in its entirety, and it resets page numbers:  \chapter{title} \cite{Merchant2010} \bibliographystyle{ieeetr} \bibliography{bib}
121326
I use  \documentclass[12pt, a4paper]{report} for my thesis. I have three parts, each with an abstract. Whenever I put an abstract, the page numbering resets to 1. I would like to continue with the numbering it had before placing the abstract.  Minimum working example:  \documentclass[12pt, a4paper]{report}  \begin{document} \title{title} \maketitle \tableofcontents  \chapter*{Introduction} \addcontentsline{toc}{part}{Introduction}   Introduccion  \part{Part 1} \begin{abstract} abstract \end{abstract}  Part1  \part{part 2} \begin{abstract} abstract \end{abstract}  Part2  \part{3} \begin{abstract} abstract \end{abstract}   \end{document}
56333
I would like to remove page numbering on a specific page. However, the header and footer should remain intact. If I try:  \thispagestyle{empty}   The header and footer disappear. What is the recommended way of removing just the page number?
42022
I have a document divided into \part \chapter \section and \subsection. I have 3 parts and in each part I reset all the counters.  I want that, when I do a crossref to something that is in the 1st part, chapter 3 and section 5, that LaTeX prints something like I-3.5, but  I don't want that in the tableofcontents part that LaTeX prints the part number. For example, what I want is:     Part I      chapter 1 section 1.1 section 1.2      chapter 2   AND NOT     chapter I-1 section I-1.1 section I-1.2      chapter I-2   The command that I've tried   \renewcommand{\thechapter}{\thepart-\arabic{chapter}} \renewcommand{\thesection}{\thechapter.\arabic{section}}   does exactly what I've said  Can anyone help me?
4250
I am working on a long document in LaTeX with documentclass book. I need the page number to always be in the upper right corner of each page, even if that page is the first page of a chapter (right now on 1st pages of chapters, the page number is bottom-centered, on all other pages it's top-right).  I control the position of the page number with fancyhdr:  \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{} \rhead{\thepage} \lfoot{} \cfoot{} \rfoot{} \renewcommand{\headrulewidth}{0pt}   Also, I don't know if the problem is related but my chapters do not start from the top of the page. There is a white area, then comes chapter X, then a newline with the chapter line. What I also want is the chapter to start from the top of the page.  The main question here is how I can get the page number to always appear in the upper right corner, I mention the thing with the chapter title position only in case that might be related.
25022
I am using my school's latex . Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of Contents. This cls file includes the following bit of code, which puts 'Page' at the top of the first page, but not any subsequent pages (see attached)  \newcommand\chapteruaf{ \if@arabic\relax\else\if@chapterone\setcounter{page}{1}\else\relax\fi\fi \@chapteronefalse                     \if@openright\cleardoublepage\else\clearpage\fi                     \thispagestyle{myheadings}%                                                                                                    \global\@topnum\z@                     \@afterindentfalse                     \secdef\@chapter\@schapteruaf} \def\@schapteruaf#1{\if@twocolumn                    \@topnewpage[\@makeschapterheaduaf{#1}]%                                                                                     \else                    \@makeschapterheaduaf{#1}%                                                                                                     \@afterheading                  \fi} \def\@makeschapterheaduaf#1{%                                                                                                    {\parindent \z@ \centering     \reset@font     \normalsize \bfseries  #1\par                                                                                                  \vspace{-18.3pt}\hspace{143mm} Page                                                                                            \nobreak   }}   First page of the TOC:   second page of the TOC:   Any thoughts here? I have played with this a bit, and can't get it to work. Thanks.
61857
Basically, here's my MWE, and I need to include "Chapter" before every section title in the ToC (without changing anything else).      \documentclass[12pt]{article} \usepackage[utf8]{inputenc}  \usepackage[english]{babel} \usepackage[titles]{tocloft} \usepackage{titlesec} \usepackage{titletoc}  \addto\captionsenglish{ \renewcommand*\contentsname{\centerline{TABLE OF CONTENTS}}}  %\renewcommand{\thesection}{CHAPTER} %\renewcommand{\cftsecpresnum}{Chapter \thesection} \titleformat{\section}[display]% {\null\vskip1em\sffamily\bfseries\filcenter}{Chapter \thesection}{0em}{}[] \titlespacing*{\section}{0em}{1em}{1em}  \titlecontents{section} [1.5em] % ie, 1.5em (chapter) + 2.3em {} {\contentslabel{1em}} {\hspace*{-1.5em}} {\titlerule*[0.5pc]{.}\contentspage}  \begin{document} \newpage \tableofcontents \newpage  \section{Section One} \section{Section Two} Content \end{document}   The commented out code is what I've already tried. The first one just changes the number to "CHAPTER" and doesn't move the text in the ToC (so it just overlays on top of the name of the section), and if I include "\thesection" after "CHAPTER" it creates an infinite loop definition error. The second one causes no differences, and the code still compiles.  Thanks!
74560
I want the figures and tables to be numbered 1, 2, 3, ... until the end of the document instead of 1.1, 1.2, ... in chapter I, 2.1, 2.2, ... in chapter II and so on.  I know how to convert the "chapter" part of figure/table numbers from Roman to arabic:  \renewcommand \thefigure     {\ifnum \c@chapter&gt;\z@ \@arabic\c@chapter.\fi \@arabic\c@figure} \renewcommand \thetable     {\ifnum \c@chapter&gt;\z@ \@arabic\c@chapter.\fi \@arabic\c@table}   One could modify the above code in order to remove the "chapter" part, but the figure/table counters would still be reset to 0 at the start of new chapters.
79301
Consider the following code example:  \setuppapersize[A8,landscape][A8,landscape] \starttext \startformula     \startalign         \NC 1 \NC= 1\NR         \NC 2 \NC= 1\NR         \NC 3 \NC= 1\NR         \NC 4 \NC= 1\NR         \NC 5 \NC= 1\NR         \NC 6 \NC= 1\NR         \NC 7 \NC= 1\NR         \NC 8 \NC= 1\NR     \stopalign \stopformula \stoptext   Coming from a LaTeX background I would expect align to break over pages and  tells me     Somewhere between March and Arpril, \startalign lost the ability to break equations across pages. Hopefully, it will be added back soon.   So basically it is intended to have page breaks, isn't it? Question: How to enable them for align?
3796
I found this  to remove the numbering from sections, but I also don't need numbering on sub- and subsubsections.  I tried to add a second def but then the number on Section is showed again. I am fairly new to Latex and I don't really know what is going on in this code block.  Original:  \makeatletter \def\@seccntformat#1{%   \expandafter\ifx\csname c@#1\endcsname\c@section\else   \csname the#1\endcsname\quad   \fi} \makeatother   Mine:  \makeatletter \def\@seccntformat#1{%   \expandafter\ifx\csname c@#1\endcsname\c@section\else   \csname the#1\endcsname\quad   \fi}  \def\@seccntformat#1{%   \expandafter\ifx\csname c@#1\endcsname\c@subsection\else   \csname the#1\endcsname\quad   \fi} \makeatother
17643
I'm writing a book using memoir, and I'd like each chapter's text to begin on a new page after the chapter headings (so each chapter heading stands on a page by itself).  Is there a way to make this automatic, so I don't have to add the \newpage command after each instance of \chapter{}?  I tried \renewcommand{\chapter{}}{\chapter{} \newpage}, but it doesn't seem to work...  Here is my MWE as it stands with my current chapter header customizations:  \documentclass{memoir} \usepackage[american]{babel}  % Chapter headers customize \setsecnumdepth{none} \setlength\beforechapskip{6\baselineskip} \renewcommand*{\chaptitlefont}{\sffamily \HUGE \bfseries}  \begin{document} \chapter{Chapter 1} My text. \end{document}
102298
How can I start my chapter from "Chapter 2" instead of "Chapter 1".  I am preparing LaTeX document for each chapter. when I put \chapter{Introduction}, it produces "Chapter 1" Introduction. However I want it to be "chapter 2" Introduction instead.
17276
\documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath} \usepackage{makeidx}  %Preamble  \numberwithin{equation}{chapter} %\renewcommand{\theequation}{\thesection.\arabic{equation}}  \begin{document}  %\include{chapI}   these 2 lines are because the chapters are different tex files  %\include{chap1}  \renewcommand{\thechapter}{\Roman{chapter}}  %\setcounter{chapter}{0} %\renewcommand{\theequation}{\thechapter.\arabic{equation}}  \chapter{Introduction}  \section{Chap I Section1}  \begin{equation} this is equation I.1 \end{equation}  \begin{equation} this is equation I.2 \end{equation}  \section{Chap I Section2}  \begin{equation} this is equation I.3 \end{equation}  \chapter{Chapter 1}  \section{Chap 1 Section 1}  \begin{equation} this is equation 1.1.1 \end{equation}  \begin{equation} this is equation 1.1.2 \end{equation}  \end{document}     I have been typing Chapters 1-5 that contain sections and subsections and equations. The equations were numbered globally, i.e. if I had 3 equations in section 1 of Chap 1, they were numbered 1.1.1, 1.1.2, 1.1.3 and for Section 2, the equations were 1.2.4, 1.2.5, etc.  Recently I had to change Chap 1 and everything in it to Chapter I (roman number) and Chap 2 were renumbered to Chap 1, etc.  My problem is that LaTeX started numbering the equations in Chap I (the other chapters did not have this problem) according to the sections and not globally anymore. That is, the 3 equations in Chap I were I.1, I.2, I.3, and the equations in the second section of Chap I became I.1, I.2, etc instead of I.4, I.5, etc  I needed the prefix to be the chapter and not the sections. I don't understand why there is a change. I have never used \numberwithin in my book  Here are some of my codes  \documentclass[]{phstyle} \usepackage{latexsym,amsfonts,amssymb, undertilde} \usepackage[fleqn]{amsmath}   for the equation numbering in Chap I  \renewcommand{\thechapter}{\Roman{chapter}} \renewcommand{\theequation}{\thechapter.\arabic{equation}} **   Previously when Chap I was Chap 1, ** was  \renewcommand{\theequation}{\thesection.\arabic{equation}}   I have also tried the line below but it didn't work  \renewcommand{\theequation}{I.\arabic{equation}}   Thank you in advance
78050
During the last phase of layout I frequently get a single line or two on a separate page. Rather then pulling the whole paragraph on that last page I would like to "squeeze" the lines on the previous page a bit.  Is there a way to mark the current page to be squeezed a bit if necessary, but let LaTeX reset this marking automatically after the page is done?
9712
Hello I am trying to further modify my TOC.  I got an answer  as to how I could remove the \section numbers on the left side of the TOC and now I would like to expand that.  I would like to remove the left-hand numbering for \subsection and \subsubsection as well but I do not know how.  (I also want to keep these numbers out of the document and I am using \def\sectionformat{} to do that)  Also, my TOC is slightly over one page and so I would like to adjust the spacing from 2 to 1.5,  is there any way to do this?    \documentclass[12pt, a4paper, twoside]{article}     \usepackage{baskervald}     \usepackage[margin=1in,bindingoffset=15.5mm,heightrounded]{geometry}     \usepackage[T1]{fontenc}     \usepackage[notes]{biblatex-chicago}     \usepackage{filecontents}     \usepackage{microtype}     \usepackage{url}     \usepackage{makeidx}     \usepackage{indentfirst}     \usepackage{setspace}     \usepackage{chngcntr}\counterwithin*{footnote}{section}     \newcommand*{\textsubscript}[1]{$#1{}$}     \DefineBibliographyStrings{english}{references = {Works Cited}}     \DeclareBibliographyCategory{primary}     \makeindex     \addbibresource{bibliography.bib}     \makeatletter     \let\latexl@section\l@section     \def\l@section#1#2{\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}     \def\@seccntformat#1{\ifcsname #1format\endcsname\else\csname the#1\endcsname\quad\fi}     \def\sectionformat{}     \def\subsectionformat{}     \def\subsubsectionformat{}     \makeatother     \author{}     \title{\vspace*{36 pt}\textbf{\emph{\Huge{Big Important Title}}}\vfill}     \date{}     \begin{document}     \tableofcontents     \section{Part I}     Hello World     \end{document}
45598
\documentclass[11pt,a4paper]{article}     \usepackage[T1]{fontenc}     \usepackage{lipsum}     \usepackage{tocloft}     \begin{document}      \tableofcontents     \thispagestyle{empty}         \newpage      \section{Preface} %want section number to be 0     \thispagestyle{empty}         \pagenumbering{roman}     \lipsum[1-3]     \newpage      \section{Start From Here}     \lipsum[1-5]      \section{And So On...}     \lipsum[1-5]     \end{document}      How do I get section numbering to start at 0?   Edit: I know I can do \section*{Preface}, but that removes it from the ToC, which isn't what I want.
57993
If I only input the section title but no body text, Latex can not start new page automatically. The following is my minimal work.  \documentclass{book}  \begin{document}  \part{Title of Part I} \chapter{Title of chapter a} \section{section-1} \section{section-2} \section{section-3} \section{section-4} \section{section-5} \section{section-6} \section{section-7} \section{section-8} \section{section-9} \section{section-10}  \section{section-11} \section{section-12} \section{section-13} \section{section-14} \section{section-15} \section{section-16} \section{section-17} \section{section-18} \section{section-19} \section{section-20}  \end{document}
100950
I have a word document. The first four pages are title and index. After that, the “Chapter 1” starts. I want page numbers to begin from the “Chapter 1” onwards only. The first 4 pages should not have any page number.  How do I achieve this?