Roman numerals in page numbers are required in the front matter of the thesis. But if I write \frontmatter
in the ERT then on some pages the page numbers appear in roman numerals while on the others pages they do not. How can roman numerals in as page numbers be limited only in the front matter?
\batchmode
\makeatletter
\def\input@path{{\/}}
\makeatother
\documentclass[english,openany]{book}
\renewcommand{\familydefault}{\rmdefault}
\usepackage[LGR,T2A,T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{geometry}
\geometry{verbose,tmargin=1.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{array}
\usepackage{textcomp}
\usepackage{multirow}
\usepackage{tipa}
\usepackage{amstext}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{subscript}
\usepackage{chapterbib}
\doublespacing
\makeatletter
\DeclareRobustCommand{\greektext}{%
\fontencoding{LGR}\selectfont\def\encodingdefault{LGR}}
\DeclareRobustCommand{\textgreek}[1]{\leavevmode{\greektext #1}}
\DeclareFontEncoding{LGR}{}{}
\DeclareTextSymbol{\~}{LGR}{126}
\DeclareRobustCommand{\cyrtext}{%
\fontencoding{T2A}\selectfont\def\encodingdefault{T2A}}
\DeclareRobustCommand{\textcyr}[1]{\leavevmode{\cyrtext #1}}
\AtBeginDocument{\DeclareFontEncoding{T2A}{}{}}
\newcommand{\lyxmathsym}[1]{\ifmmode\begingroup\def\b@ld{bold}
\text{\ifx\math@version\b@ld\bfseries\fi#1}\endgroup\else#1\fi}
\providecommand{\tabularnewline}{\\}
\usepackage{amsmath}
\usepackage[
headsepline,
]{scrlayer-scrpage}
\automark[chapter]{chapter}
\addtokomafont{pagehead}{\small}
\clearpairofpagestyles
\chead{\headmark}
\cfoot*{\pagemark}
\makeatother
\usepackage{babel}
\begin{document}
\begin{frontmatter}
\chapter
\section
\subsection
\end{frontmatter}
\end{document}
I am using \makecontents
to make the contents of the chapter. but its does not include the contents of pages in frontmatter how can that be done?