I'm writing my dissertation, but it getting missed with the format because the number starts from 0 for each section, and I want to start from 1.
Also, the paragraphs start from the center. Here is my code.
\documentclass[fleqn]{unmeethesis}
\usepackage[document]{ragged2e}
\usepackage{comment}
\usepackage{lipsum}
\usepackage{mathrsfs}
\usepackage{xspace}
\usepackage{verbatim}
\usepackage{graphicx}
%%\usepackage{epstopdf}
\usepackage[table]{xcolor}
\usepackage[cmex10]{amsmath}
\usepackage{pifont,tikz,paralist,multirow,amssymb,amsthm}
\usepackage[ruled,linesnumbered]{algorithm2e}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\newtheorem{theorem}{Theorem}
\newtheorem{lem}{Lemma}
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
\usepackage{titlesec}
\newcommand{\removelatexerror}{\let@latex@error@gobble}
\usepackage{cite,graphicx,,booktabs,bm,
caption,subcaption,soul}
\begin{document}
\stepcounter{chapter} % just for this example
\section{Hello World}
\end{document}
\inputfor files we don't have. (Also, don't\removelatexerror.) But with all of that, what is your purpose of having\setcounter{section}{-1}? – Teepeemm Aug 01 '22 at 22:26\setcounter{section}{-1}in the first place? The only thing I can see that doing is making your section numbers start from 0, which is exactly what you're complaining about. – Teepeemm Aug 02 '22 at 02:40unmeethesis, which I think is from this link found in this question. At line 973 is the start of some commands like\newcommand\section, I'd guess whoever created your class, reformatted sections, subsections and so on to appear exactly as you don't want. To achieve the design you want, you will have to edit there or add something that overrides it. – FHZ Aug 02 '22 at 09:04