Page LayoutPage Numbering in Texworks

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
horizon_83
Posts: 5
Joined: Sun Oct 24, 2010 8:20 am

Page Numbering in Texworks

Post by horizon_83 »

Hi,

I am writing my thesis and need to have a page number in roman from the second page excluding abstract. But I am getting page numbers only in the chapters not the title, approval pages... etc. I tried using \setcounter{page}{i} but it does not work... I would really appreciate any help on this.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Page Numbering in Texworks

Post by Montag »

As far as I can understand some parts of your post, I can say that the page numbering does not have anything to do with the editor. Please post a minimal working example including all the relevant packages and settings related to this particular issue.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
horizon_83
Posts: 5
Joined: Sun Oct 24, 2010 8:20 am

Re: Page Numbering in Texworks

Post by horizon_83 »

Hi I am having two problems. Firstly I want my page to be numbered from the second page ie, it should have nu number on abstract page. Secondly I want my acknowledgements, list of figures to be in table of contents with page number. I have tried a lot but its not working. I have posted the basic format I have used. Would really appreciate any help on this matter...
Thanks!!

\documentclass[12pt]{report}
\usepackage{fullpage}
\usepackage{latexsym, amssymb, amsmath, geometry, bm, amsbsy, amsthm, verbatim, fancyhdr}
%\geometry{margins=1in}
\usepackage{setspace}\doublespacing % important!
\textfloatsep 0.75in % important with double spacing

\newtheorem{thm}{Theorem}
\newtheorem{lem}{Lemma}
\newtheorem{definition}{Definition}

\begin{document}

% Make the official abstract page
\newpage
\thispagestyle{empty}
\vspace*{18pt}
\begin{center}
\textsc{title}\\[18pt]
by\\[18pt]
\textsc{Author namr}\\[12pt]
(Under the direction of prof)\\[12pt]
\textsc{Abstract}
\end{center}
This is the abstract, a brief summary of the contents of the thesis. It
is limited to 150 words in length.

The abstract page(s) are not numbered and are not necessarily included in a
printed and bound copy of the thesis. The index words at the bottom of the
abstract should be chosen carefully, preferably with the help of your colleagues.

% Display the index words (this is a bit fancy):
\begin{list}{\sc Index words:\hfill}{\labelwidth 1.2in\leftmargin 1.4in\labelsep 0.2in}
\item
\begin{flushleft}\singlespacing
Index word or phrase,
Index word or phrase,
Index word or phrase,
Index word,
Index word,
Index word
\end{flushleft}
\end{list}

\pagenumbering{roman}

% Make the official title page
\newpage
\thispagestyle{empty}
\pageno
\vspace*{18pt}
\begin{center}
\textsc{title}\\[18pt]
by\\[18pt]
\textsc{author}\\[12pt]
B. A.,....... 2006\\

\vfill
A Thesis Submitted to the Graduate Faculty \\
of The University of ..... in Partial Fulfillment \\
of the \\
Requirements for the Degree \\[10pt]
\textsc{Master of Science}\\[36pt]
\textsc{place}\\[18pt]
2010\\
%\setcounter{page}{i}
\end{center}

% Make the copyright page
\newpage
\thispagestyle{empty}
\vspace*{5.5in}
\begin{center}
%\setcounter{page}{ii}
\copyright 2010 \\
author namr\\
All Rights Reserved\\
%\setcounter{page}{ii}
\end{center}

% Make the approval page
\newpage
\thispagestyle{empty}
%\setcounter{page}{iii}
\vspace*{18pt}
\begin{center}
\textsc{title}\\[18pt]
by\\[18pt]
\textsc{author name}
\end{center}
\vfill
\begin{flushleft}\singlespacing
\hskip 200pt {Approved:}\\
\vskip 12pt
% Two major professors. If you have only one, change word to "Professor".
\hspace*{200pt}\makebox[100pt][l]{Major Professor:}\\
\vskip 12pt
% Committee (use as many lines as needed)
\hspace*{200pt}\makebox[100pt][l]{Committee: }\\
\hspace*{200pt}\makebox[100pt][l]{~ }\\
% Approval words
\vfill
Electronic Version Approved:\\[12pt]
name of dean\\
Dean of the Graduate School\\
University name \\
December 2010

\end{flushleft}


% Now we begin the regular LaTeX document.
% You may want to have a regular LaTeX title page here..

\chapter*{Dedication}
%\setcounter{page}{iv}

\chapter*{Acknowledgments}
You can have acknowledgments or a preface here
\addtocontents{toc}{Acknowledgements}
%\setcounter{page}{v}

\tableofcontents
\listoffigures % if any
\listoftables % if any

\clearpage
\pagenumbering{arabic}
\addtocontents{toc}{Chapter}
\chapter{Introduction and Literature Review}\\

\chapter{Basic Definitions}\\

\end{document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page Numbering in Texworks

Post by localghost »

Your example is not what is called a minimal working example (MWE). So clean it up and reduce it to the essentials. And please check your sample code for errors. Your example is not compilable. Please fix the error(s) first and try again.


Thorsten
Post Reply