1

I am trying to find a solution to use lower font size for subsections than sections.
In fact, my latex code is no more. I have things as follows:

\documentclass[fleqn,10pt]{SelfArx} 
\begin{document}
\maketitle % Output the title and abstract box
\tableofcontents % Output the contents section
\thispagestyle{empty} % Removes page numbering from the first page

There are not any extra codes while writing sections and subsections.
An example is as follows:

\section{The Existing Methods of Fuzzy Cluster Analysis for Categorical Data}

and

\subsection{Fuzzy k-means algorithm}

I could not find a solution to customize the font size of subsections in table of contents. I think that the problem may be related to the document class \documentclass[fleqn,10pt]{SelfArx}. I cannot use any other packages instead of SelfArx because I use it as my article template. My current output for table of contents is as the following image. I do not know how I can touch the font size of subsections.

Table of Contents

1 Answers1

0

You may use the tocloft package.

\documentclass[fleqn,10pt]{SelfArx} 
\usepackage{tocloft}

\renewcommand{\cftsecfont}{\small} \renewcommand{\cftsubsecfont}{\footnotesize} \renewcommand{\cftsecpagefont}{\small} \renewcommand{\cftsubsecpagefont}{\footnotesize}

\begin{document} \maketitle \tableofcontents \thispagestyle{empty}

\section{The Existing Methods of Fuzzy Cluster Analysis for Categorical Data} \subsection{Fuzzy k-means algorithm}

  • But almost certainly shouldn't if this is a submission class ;). – cfr Mar 31 '24 at 03:26
  • That is the exact solution of my need& my problem. I am able to touch font sizes of the table of contents, now. Thank you for your time! – Murat Yazıcı Mar 31 '24 at 11:35
  • @MuratYazıcı As far as I can see, the class uses titletoc and it conflicts with tocloft. Your submission will likely be rejected. – egreg Mar 31 '24 at 15:02