I am writing a book, compiled in XeLaTeX, with, among other things, an index. My concern is the following:
I don't like the lowercase roman page numbering (in \frontmatter) because of the dots (i, ii, iii). I would like to have small caps instead.
I found the following 6 lines (under the comment %numéros pages roman petites majuscules dans \frontmatter% in my code) in this book to do it (https://framabook.org/docs/latex/framab ... -libre.pdf) p.185-186.
Here is a summary of my code:
Code: Select all
\documentclass[a4paper, 12pt]{book}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{fancyhdr}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{imakeidx}
\makeindex[title= Index]
\setdefaultlanguage[frenchpart=false]{french}
\setmainfont[Ligatures=Rare]{Linux Libertine O}
\newfontfamily\fancy{Z003-MediumItalic.otf}
%%%%%%%%%%%%%%
% numéros pages roman petites majuscules dans frontmatter
%%%%%%%%%%%%%%
\frontmatter
\renewcommand{\thepage}{\textsc{\roman{page}}}
\def\frontmatter{
\let\indexORI\index
\renewcommand{\index}[1]{\indexORI{##1|textsc}}
\fancyhead[LE,RO]{\textsc{\thepage}}
}
%%%%%%%%%%%%%%%%%%%%
\makeatletter %Supprime les
\let\ps@plain\ps@empty %numéros de page
\makeatother %des titres
%%%%%%%%%%%%%%%%%%%
\usepackage[automake=true]{glossaries-extra} % glossaries ne fonctionne pas
\makeglossaries
\newglossaryentry{Décryptement}
{name=Décryptement,
description={recherche sans l'aide de documents}}
\newenvironment{smquote}{\begin{quote}\small}{\end{quote}}
\title{TITRE DU LIVRE}
\author{}
\date{}
\begin{document}
%%%%%%%%%%%%
\frontmatter
%%%%%%%%%%%%
\maketitle
\thispagestyle{empty}
\cleardoublepage
\thispagestyle{empty}
\vspace*{\stretch{1}}
\begin{center}
\Huge{TITRE DU LIVRE}
\bigskip
\large{AUTEUR}
\end{center}
\vspace*{\stretch{1}}
\clearpage
\thispagestyle{empty}
%%%%%%%% Début du contenu %%%%%%%%%%
\include{01_preface.tex}
\thispagestyle{empty}
\include{02_intro.tex}
\thispagestyle{empty} %supprime page et entête après preface
%%%%%%%%%
% PREMIÈRE PARTIE
%%%%%%%%%
%%%%%%%%%%%
\mainmatter
%%%%%%%%%%%
\setcounter{footnote}{0}
%%%%%%%%%%%
\part{PART 1}
%%%%%%%%%%%
%%%%%%%%%%%
% Chapitre 0 - Prologue
%%%%%%%%%%%
\include{03_prologue.tex}
%%%%%%%%%%%
\backmatter
%%%%%%%%%%%
\appendix
%%%%%%%%%%%%%%
\part{ANNEXES}
%%%%%%%%%%%%%%
\include{annexe_une.tex}
\thispagestyle{empty}
\printindex{}
\addcontentsline{toc}{chapter}{Index}%Pour qu'il apparaisse dans la TOC
\glsaddall
\printglossary[title=Glossaire, toctitle=Glossaire]
\tableofcontents
\end{document}
What can I do to get both?
Thanks for your help