In order to illustrate a large chapter number on the beginning of each chapter, I created a tikz environment and added it to the CLS file like this:
\begin{tikzpicture}
........
\node[anchor=north west, inner sep=0pt, ] at (0.905\textwidth,1.42) {\sffamily\fontsize{130}{150}\selectfont \color{gray}\thechapter};
........
\end{tikzpicture}
By this way, the \thechapter numbering appears as a "0" to the Contents, List of Tables and List of Figures, which is undesirable. I want numbering to begin from the first Chapter as "1" and so on. So I added an \if statement like this:
\begin{tikzpicture}
........
\ifnum\value{\thechapter}>0{
\node[anchor=north west, inner sep=0pt, ] at (0.905\textwidth,1.42) {\sffamily\fontsize{130}{150}\selectfont \color{gray}\thechapter};
\else{};
\fi;
........
\end{tikzpicture}
but the \thechapter numbering totally disappeared, so obviously it seems that I do not use the \if statement correctly. So, which is the right way to use the \if statement in this case?
Any thoughts would be appreciated.
\value{chapter}... – Paul Gaborit Feb 28 '22 at 08:27