Page LayoutHow do I start numbering from 2 instead of 1 using a thesis.cls from my University

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
vepadilla
Posts: 1
Joined: Mon Dec 12, 2022 4:50 am

How do I start numbering from 2 instead of 1 using a thesis.cls from my University

Post by vepadilla »

So I have been searching the forums and googling and it seems very silly, but I am not an expert in TeX at all.

I was wondering if anyone knew how I can start the numbering from 2 instead of 1. The Thesis.cls begins the numbering on anything after the titlepage that I include.

In this case, I begin my thesis by including acknowledgements page, so the acknowledgements page starts the numbering at 1. I need the \titlepage to be the page 1, without actually including the number 1 in the header. So numbering should start at 2 on the acknowledgements page. I figured it had to do something with \pagestyle{myheadings} in the global settings section in the .cls, but I am not sure. Commenting out \pagestyle{myheadings} doesn't do anything either. It does use \markboth and \clearpage which may be part of it as well as \refstepcount. The \titlepage is also not a \chapter or a \part which may exclude the \titlepage? Not sure. I also provided my main.tex which may have something there that is preventing the \setcounter or \addtocounter I try to include from working.

It has to be something in the Global Settings section, or the Renewed Commands section in the .cls file itself (sections labeled in .cls). Or perhaps something excluded in the Title Page section (which I tried to make it a chapter using \chapter{}, but no luck).

I please ask for guidance as I have spent hours trying to fiddle with settings and not break anything, and I have to turn this in in a few days here. Thank you for your time.

Code: Select all

Code, edit and compile here:
%Thesis.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uathesis}
\DeclareOption{CC-BY}{%
\setboolean{CCBY}{true}
}
\DeclareOption{CC-BY-SA}{%
\setboolean{CCBYSA}{true}
}
\DeclareOption{CC-BY-ND}{%
\setboolean{CCBYND}{true}
}
\newboolean{GeneratedOn}
\setboolean{GeneratedOn}{false}
\DeclareOption{generatedon}{%
\setboolean{GeneratedOn}{true}
} % This option puts the generation date on the titlepage.
%% These next four options are for passing through to the book class.
\DeclareOption{oneside}{%
\PassOptionsToClass{\CurrentOption}{book}%
}
\DeclareOption{twoside}{%
\PassOptionsToClass{\CurrentOption}{book}%
}
\DeclareOption{openright}{%
\PassOptionsToClass{\CurrentOption}{book}%
}
\DeclareOption{openany}{%
\PassOptionsToClass{\CurrentOption}{book}%
}
\DeclareOption*{%
\ClassWarning{uathesis}{Unknown option `\CurrentOption'}%
} % A general warning for unknown options.
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Code: Select all

Code, edit and compile here:
%%------------------------------------------------------------%main.tex-------------------------------------------------------------------------------------------------------------------------------
\documentclass[thesis,oneside]{uathesis}
\usepackage[utf8]{inputenc}
\usepackage[square,numbers]{natbib}
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{acro}{\textbf{Acronyms}}{%
\ifstrequal{#1}{sy}{\textbf{Symbols}}{}}%
]}
\usepackage{textcomp}
\usepackage{gensymb}
%\chapterfont{\centering}
\begin{document}
%\setcounter{page}{2}
\begin{titlepage}
\maketitlepage{title}{name}{degree}{department}{2022}
%\pagenumbering{roman}
%\maketitle
\end{titlepage}
%\titlespacing{\chapter}{0pt}{0pt}
\pagebreak
\incacknowledgements{}
I acknowledge
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

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

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

User avatar
MjK
Posts: 89
Joined: Fri Jan 28, 2022 6:09 pm

How do I start numbering from 2 instead of 1 using a thesis.cls from my University

Post by MjK »

Unfortunately the shown class is broken (e.g., \newboolean is not defined but used and several more errors). So I cannot test it. But I would remove \begin{titlepage} and \end{titlepage}. If \maketitlepage is the command to generate a title page, it should already do everything needed (like \maketitle of standard classed do, which also should not be used inside \begin{titlepage}…\end{titlepage}).
My main topics are KOMA-Script and other questions related to my packages. If I reply to any other topic or if you've not yet added a minimal working example, please do not expect any further response. And please don't forget to tag examples as code.
Post Reply