Page Layout ⇒ Page Numbering in Texworks
-
- Posts: 5
- Joined: Sun Oct 24, 2010 8:20 am
Page Numbering in Texworks
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
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
Page Numbering in Texworks
-
- Posts: 5
- Joined: Sun Oct 24, 2010 8:20 am
Re: Page Numbering in Texworks
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}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page Numbering in Texworks
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10