My figure captions should be normal text, no bold no italic. But figure numbers in List of figures should be bold. Also same for the List of Tables. Additionally for table of contents I need to bold only first depth titles and their page numbers. I need these:

Table of contents: https://ibb.co/jGJ1Ay
List of figures: https://ibb.co/mx3q3J
List of tables: https://ibb.co/eNz8qy

So obtain that lists I included these lines:

\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cfttabfont}{Table }

But I get following errors:

Argument of \@argdef has an extra }. \begin{preliminaries}
Illegal parameter number in definition of \@themark. \begin{preliminaries}
Missing \endcsname inserted. \begin{preliminaries}
Paragraph ended before \@vspacer was complete. \begin{preliminaries}
Use of \@icentercr doesn't match its definition. \begin{preliminaries}

Also this error:

If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.

! Argument of \@vspacer has an extra }.
<inserted text> 
l.233 \begin{preliminaries}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Class and definitions file here:

How can I fix this problem ?

My tex file is as follows:



\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cfttabfont}{Table }

\author{JOHN DOE}
\date{October 2014}
\supervisor[prof]{JOHN DOE}
\departmentofsupervisor{Industrial Engineering Department, ABC}
\committeememberi[assistprof]{JAMES DOE}
\affiliationi{Industrial Engineering Department, ABC}
\committeememberii[assistprof]{JESSICA DOE}
\affiliationii{Industrial Engineering Department, ABC}
\committeememberiii[assocprof]{RICK DOE}
\affiliationiii{Industrial Engineering Department, ABC}

\abstract{Lorem ipsum dolor sit amet.}
\resume{Lorem ipsum dolor sit amet}
\oz{Lorem ipsum dolor sit amet}
\acknowledgments{Lorem ipsum dolor sit amet.}


% Preliminaries

\newenvironment{prf}{\noindent{\bf Proof}}{$\hfill \Box$ \vspace{10pt}}


\section{Lorem ipsum}
Lorem ipsum dolor sit amet, sit recusabo sententiae cu, ius iriure denique electram no. Justo clita dignissim sea ut, Table~\ref{table:summary22} sed aperiam fabulas id. Sea ea ludus gubergren posidonium, veri facete adipiscing pro cu, efficiendi reprehendunt pro an. His aliquam delenit an, pri commodo virtute ad. Ut usu tamquam insolens, essent eirmod ad vis As shown in.

        Test &    Vect. &     C & K-fold & Ngram &   Acc. &  Prec.  \\
        1 &    Aa &  0.01 &      2 &     3 &  0.361 &   0.13  \\
        2 &    Bb &  0.01 &      2 &     3 &  0.361 &   0.13  \\



Also a read only copy here:

  • I'm not sure that your problem is caused by tocloft. What happens if yo don't use the package and its macros? – Peter Wilson Jun 2 '18 at 19:03
  • Manually I disabled and reenabled all packages. I found out that tocloft doesn't work when algorithm2e is active. When I don't use algorithm2e, tocloft works. – Mark Jun 2 '18 at 19:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.