[texworks] Empty style at the first page of index

Roland FORTUNIER roland.fortunier at hotmail.fr
Sat Dec 17 11:07:51 CET 2022


Hello :



I finally found a solution by forcing any plain style to be empty (I do not use any plain style in my document).



\documentclass[a4paper,11pt,twoside]{book}

\RequirePackage{imakeidx}

\usepackage[T1]{fontenc}

\usepackage[latin1]{inputenc}

\usepackage[french]{babel}

\usepackage{fancyhdr}

\usepackage{lipsum}

% code Added to force plain to be empty

\makeatletter

   \let\ps at plain\ps at empty

\makeatother



\selectlanguage{french}

\indexsetup{level=\chapter*}

\makeindex[intoc=true, title=Index]

\pagestyle{fancy}

\fancyhf{}

\renewcommand{\headrulewidth}{0.4pt}

\fancyhead[COE]{\textit{\nouppercase{\leftmark}}}

\fancyhead[ROLE]{\thepage}



% *** DOCUMENT

\begin{document}

\title{ test }

\maketitle

\chapter{text}

\thispagestyle{empty}

\lipsum{1} \index{\lipsum}



\printindex



\end{document}



----- configuration info -----
TeXworks version : 0.6.7 (MiKTeX 22.8.28)
Install location : C:/Users/Utilisateur/AppData/Local/Programs/MiKTeX/miktex/bin/x64/miktex-texworks.exe
Library path     : C:/Users/Utilisateur/AppData/Roaming/TUG/TeXworks/
pdfTeX location  : C:/Users/Utilisateur/AppData/Local/Programs/MiKTeX/miktex/bin/x64/pdftex.exe
Operating system : Windows 10.0.19044
Qt version       : 5.15.2 (build) / 5.15.2 (runtime)
------------------------------
Envoyé à partir de Courrier<https://go.microsoft.com/fwlink/?LinkId=550986> pour Windows

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texworks/attachments/20221217/dd42ba6b/attachment-0001.html>


More information about the texworks mailing list.