I make my diploma and want to end-to-end numbering of my document.
But I have an error with page with table of contents. For example:
1st page - title page
2nd page - Abstract (I manually fix it's number to 2)
3td page - Contents (I can't numerate it to 3, it stubbornly spelled 'i')
4th page - Intro and following text...
Can you please help me to numerate page with table of contents? Thank you))
I have the following code for beginning pages:
\documentclass[a4paper,12pt]{article}
\usepackage[noheader]{sleek}
\begin{document}
\begin{titlepage}
title page
\end{titlepage}
\newpage
\pagestyle{plain}
\pagenumbering{arabic}
\setcounter{page}{2}
\begin{center}
\section{Abstract}
\end{center}
About purposes...
\newpage
\setcounter{page}{3}
\pagenumbering{arabic}
\renewcommand\contentsname{Content}
\pagenumbering{arabic}
\romantableofcontents
\setcounter{page}{4}
\begin{center}
\section{Intro}
\end{center}
lalala
\end{document}
And code for sleek.sty:
\ProvidesPackage{sleek}[2020/10/29 v1.01 Sleek Package]
% Table of contents
\newcommand{\romantableofcontents}{ % creates a table of contents with roman (i, ii, iii, ...) numbering of the pages
\newpage
\pagenumbering{roman}
\tableofcontents
\newpage
\pagenumbering{arabic}
}
\endinput
\largedoes not take a argument so\large{...} ...is making the entire document large not just the text in{...}– David Carlisle Nov 24 '22 at 13:40\setcounter{page}{3}\pagenumbering{arabic}is wrog as\pagenumberingsets the number to 1, so you keep repeating that command so prevent latex numbering the pages – David Carlisle Nov 24 '22 at 13:43\Large abcnot\Large{abc}– David Carlisle Nov 24 '22 at 13:45! LaTeX Error: File \packages/sleek.sty' not found.` – David Carlisle Nov 24 '22 at 13:50