如何在目录中缩进更多空格

如何在目录中缩进更多空格

在表格列表中:如何将字母 c 缩进几个空格,以便 Success 中的 c 位于 Correlation 中的 C 下方。

在此处输入图片描述

  \documentclass[12pt,reqno]{siugrad51}
\usepackage{titlesec}
\usepackage[titletoc,title]{appendix}
\usepackage{titletoc}
\usepackage[nottoc]{tocbibind}
\setcounter{secnumdepth}{7}
\setcounter{tocdepth}{7}

\titlecontents{chapter}[0em]{\medskip}
{\MakeUppercase{\chaptername}\enspace \thecontentslabel.\enspace}
{}
{\titlerule*[1pc]{.}\titlerule*[1pc]{.}\contentspage}

\begin{document}
    
    \addtocontents{toc}{\vspace{-0.45in} {CHAPTER} ~\hfill \underline{PAGE}\par}
    
    \renewcommand\listfigurename{LIST OF FIGURES}
    \renewcommand\listtablename{LIST OF TABLES}
    
    \addtocontents{lot}{\vspace{-0.15in} \underline{TABLE} ~\hfill \underline{PAGE}\par}
    \addtocontents{lof}{\vspace{-0.15in} \underline{FIGURE} ~\hfill \underline{PAGE}\par}
    %\listoftables % comment out if no tables
    \renewcommand{\numberline}[1]{#1~}
    
    \tableofcontents
    {%
        \let\oldnumberline\numberline%
        \renewcommand{\numberline}{\tablename~\oldnumberline}%
        \listoftables%
    }
    
    {%
        \let\oldnumberline\numberline%
        \renewcommand{\numberline}{\figurename~\oldnumberline}%
        \listoffigures%
    }

\newpage
\pagenumbering{arabic}
\setcounter{page}{1}
%\raggedright
\parindent=.35in


%\input{introduction}

\chapter{Introduction}

\begin{table}[htb]
    \begin{center}
        \caption{Correlation Coefficients of the Compared Frameworks in Terms of the Success Rate } % title of Table
        \label{table:correlation1} % is used to refer this table in the text
        {\footnotesize
            
        }  
        
        
    \end{center}
\end{table}






\end{document} 

答案1

我只对您的设置做了一些小改动。(标记为<<<<<<<<)以获得所需的对齐。我建议您不要在每个表号前加上“Table”这个词,因为上面已经有标题“TABLE”了。 此处引述

% !TeX TS-program = pdflatex
 
\documentclass[12pt,reqno]{siugrad51}
\usepackage{titlesec}
\usepackage[titletoc,title]{appendix}
\usepackage{titletoc}
\usepackage[nottoc]{tocbibind}
\setcounter{secnumdepth}{7}
\setcounter{tocdepth}{7}

\titlecontents{chapter}[0em]{\medskip}
{\MakeUppercase{\chaptername}\enspace \thecontentslabel.\enspace}
{}
{\titlerule*[1pc]{.}\titlerule*[1pc]{.}\contentspage}

\begin{document}
    
    \addtocontents{toc}{\hspace{-2.5em}{CHAPTER} ~\hfill \underline{PAGE}\par} % <<<<<<<<<<<<<<<<<
    
    \renewcommand\listfigurename{LIST OF FIGURES}
    \renewcommand\listtablename{LIST OF TABLES}

    \addtocontents{lot}{\hspace{-2.5em}\underline{TABLE} ~\hfill \underline{PAGE}\par}% <<<<<<<<<<<<<<<<<
    \addtocontents{lof}{\hspace{-2.5em}\underline{FIGURE} ~\hfill \underline{PAGE}\par}% <<<<<<<<<<<<<<<<<
    %\listoftables % comment out if no tables
    
    \tableofcontents
    {%
%       \let\oldnumberline\numberline% <<<<<<<<<<<<<<<<
%       \renewcommand{\numberline}{\tablename~\oldnumberline}%<<<<<<<<<<<<<<<<
        \listoftables%
    }
    
    {%
%       \let\oldnumberline\numberline% <<<<<<<<<<<<<<<<<<<<
%       \renewcommand{\numberline}{\figurename~\oldnumberline}%<<<<<<<<<<<<<<<<
        \listoffigures%
    }
    
    \newpage
    \pagenumbering{arabic}
    \setcounter{page}{1}
    %\raggedright
    \parindent=.35in
    
    %\input{introduction}
    
    \chapter{Introduction}
    
    \begin{table}[htb]
        \begin{center}
            \caption{Correlation Coefficients of the Compared Frameworks in Terms of the Success Rate } % title of Table
            \label{table:correlation1} % is used to refer this table in the text
            {\footnotesize              
            }           
        \end{center}
    \end{table} 
\end{document} 

如果您想返回到您的设置,请替换序言中的\vspace{...}for 。\hspace{...}

相关内容