Tocloft 包问题

Tocloft 包问题

我的图表标题应该是普通文本,不加粗也不加斜体。但图表列表中的图号应该是粗体。表格列表也一样。此外,对于目录,我只需要加粗第一深度标题及其页码。我需要这些:

目录:https://ibb.co/jGJ1Ay
图片列表:https://ibb.co/mx3q3J
表格列表:https://ibb.co/eNz8qy

因此,获取我包含以下行的列表:

\usepackage{tocloft}
\renewcommand{\cftchapfont}{\scshape}
\renewcommand{\cftsecfont}{\bfseries}
\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cfttabfont}{Table }

但我收到以下错误:

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}

还有这个错误:

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> 
                \par 
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.

类和定义文件在此处:
http://www.filedropper.com/gsu12
http://www.filedropper.com/gsu12_1

我该如何解决这个问题?

我的tex文件如下:

\documentclass[12pt,oneandhalf,chaparabic,ie,ms,eng,oneside,pntc]{gsufbe}
\usepackage{appendix}

\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{enumitem}
\usepackage{amsthm}
\usepackage{subcaption}
\usepackage{booktabs}
\usepackage{array}
\usepackage[round]{natbib}
\usepackage{har2nat}
\usepackage{algorithmic}
\usepackage[ruled,noline]{algorithm2e}
\usepackage{titlesec}
\usepackage[section]{placeins}
\usepackage{float}

\usepackage{tocloft}
\renewcommand{\cftchapfont}{\scshape}
\renewcommand{\cftsecfont}{\bfseries}
\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cfttabfont}{Table }

\author{JOHN DOE}
\title{Titleb2}
\trtitle{Titleb2}
\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}
\keywords{STEEVE}
\motscles{STEEVE}
\anahtarklm{STEEVE}

\abstract{Lorem ipsum dolor sit amet.}
\resume{Lorem ipsum dolor sit amet}
\oz{Lorem ipsum dolor sit amet}
\acknowledgments{Lorem ipsum dolor sit amet.}
\setlength{\paperheight}{297mm}

\usepackage[pdftex]{hyperref}
\usepackage[all]{hypcap}

\begin{document}
\addtolength{\textheight}{1.5cm}
% Preliminaries
\newlength\myindent
\setlength\myindent{6em}
\newcommand\bindent{%
  \begingroup
  \setlength{\itemindent}{\myindent}
  \addtolength{\algorithmicindent}{\myindent}
}
\newcommand\eindent{\endgroup}
\begin{preliminaries}
\end{preliminaries}

\newtheorem{thm}{Definition}[chapter]
\renewcommand{\thethm}{\arabic{chapter}.\arabic{thm}}
\newtheorem{prp}{Proposition}[chapter]
\renewcommand{\theprp}{\arabic{chapter}.\arabic{prp}}
\newenvironment{prf}{\noindent{\bf Proof}}{$\hfill \Box$ \vspace{10pt}}




\chapter{Introduction}
\thispagestyle{empty}
\label{chap:intro}



\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.


\begin{table}[!ht]
    \caption{Results.}
    \centering
    \begin{tabular}{lllllrrrrrr}
        \toprule
        Test &    Vect. &     C & K-fold & Ngram &   Acc. &  Prec.  \\
        \midrule
        1 &    Aa &  0.01 &      2 &     3 &  0.361 &   0.13  \\
        2 &    Bb &  0.01 &      2 &     3 &  0.361 &   0.13  \\
        \bottomrule
    \end{tabular}
    \label{table:summary22}
\end{table}


\begin{figure}[!ht]
    \centering
    \includegraphics[width=14cm]{svm}
    \caption{SVM.}
    \label{svm}
\end{figure}

\end{document} 

这里还有一份只读副本:
https://www.overleaf.com/read/kvwdfwjknkwr

相关内容