为什么图表列表中会有这么大的空间?

为什么图表列表中会有这么大的空间?

我想了解为什么我的图表列表中的标题后面有这么大的空间?

在此处输入图片描述

我的代码是这样的:

\chapter*{List of Figures}
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{List of Figures}{\pagestyle{plain}}
\setlength{\cftparskip}{1.5\baselineskip}
\renewcommand{\listfigurename}{}

\listoffigures
\cleardoublepage

如何解决?

答案1

您在章节标题和其内容之间添加了两次空格:第一次是在创建未编号的章节( \chapter*{List of Figures})时,第二次是在\listoffigures(本身就是一个章节)以空白名称发布时(\renewcommand{\listfigurename}{}})。

章节(报告或书籍)第一页的标准样式是纯文本,因此\thispagestyle{plain}没有必要。

请尝试这个最小代码。

\documentclass[12pt]{report}
\usepackage{graphicx}

\usepackage{tocloft}
\setlength{\cftparskip}{1.5\baselineskip}

\begin{document}
    
    \tableofcontents
    \cleardoublepage    

    \addcontentsline{toc}{chapter}{List of Figures}
    \listoffigures      
    \cleardoublepage        

    \chapter{One}
    
    Some text.
    
    \begin{figure}  
        \includegraphics{example-image-a}
        \caption{Artic Shipping Routes.}
    \end{figure}
    
    \begin{figure}  
        \includegraphics{example-image-a}
        \caption{Unique ships entering the Polar Code area 2013 and 2019. Source: adapted from PAME (2020)}
    \end{figure}
    
    \chapter{Two}
    
    Some more text.
    
    \begin{figure}
            \includegraphics{example-image-b}
            \caption{Sea Ice Extent.}
    \end{figure}

    \begin{figure}
        \includegraphics{example-image-b}
        \caption{Canadian Artic Classes and Ice type related to each of them. Source: Transport Canada (2017)}
    \end{figure}

    \begin{figure}
        \includegraphics{example-image-b}
        \caption{Shipping Safety Control Zones.}
    \end{figure}

\end{document}

A

更新之后的后续问题。(使用前一个答案

\documentclass[12pt]{report}
\usepackage{graphicx}

\usepackage{tocloft}
\setlength{\cftparskip}{1.5\baselineskip}

\usepackage{hyperref} % added <<<<<<<<<<<<<

\hypersetup{
    colorlinks=true,
    linkcolor=blue,
}

\begin{document}        
    
    \thispagestyle{empty}
    \begin{titlepage}
        \centering
        \vspace{1cm}
        {\LARGE\noindent \textbf{TITLE OF MY WORK} \par}
        \vspace{0.5cm}
        %Thesis subtitle
        {\Large\noindent \par}
        \vspace{2cm}
        \vspace{1cm}
        {\Large
            by}
        
        \vspace{1cm}
        
        {\LARGE\noindent  MY NAME \par} 
        \vspace{1cm}
        {\Large \noindent Submitted in partial fulfillment of the requirements for the degree of Master of Applied Science \par
            \vspace{1cm}   
            April 2023} 
        \vfill  
        \hrule
        \vspace{0.3cm}
        
        {\Large\noindent \textcopyright\ Copyright by .....} 
    \end{titlepage}
    \cleardoublepage
    
    \pagenumbering{Roman} % added <<<<<<<<<<<<<
    
    \tableofcontents
    \cleardoublepage    

    \phantomsection % added <<<<<<<<<<<<<
    \addcontentsline{toc}{chapter}{List of Figures}
    \listoffigures  
    \cleardoublepage        

    \pagenumbering{arabic} % added <<<<<<<<<<<<<
    \chapter{One}
    
    Some text.
    
    \begin{figure}  
        \includegraphics{example-image-a}
        \caption{Artic Shipping Routes.}
    \end{figure}
    
        \begin{figure}  
        \includegraphics{example-image-a}
        \caption{Unique ships entering the Polar Code area 2013 and 2019. Source: adapted from PAME (2020)}
    \end{figure}
    
    \chapter{Two}
    
    Some more text.
    
        \begin{figure}
            \includegraphics{example-image-b}
            \caption{Sea Ice Extent.}
    \end{figure}

    \begin{figure}
        \includegraphics{example-image-b}
        \caption{Canadian Artic Classes and Ice type related to each of them. Source: Transport Canada (2017)}
    \end{figure}

    \begin{figure}
        \includegraphics{example-image-b}
        \caption{Shipping Safety Control Zones.}
    \end{figure}

\chapter{Three}

Some text.

\begin{figure}  
    \includegraphics{example-image-a}
    \caption{Artic Shipping Routes.}
\end{figure}

\begin{figure}  
    \includegraphics{example-image-a}
    \caption{Unique ships entering the Polar Code area 2013 and 2019. Source: adapted from PAME (2020)}
\end{figure}

\chapter{Four}

Some more text.

\begin{figure}
    \includegraphics{example-image-b}
    \caption{Sea Ice Extent.}
\end{figure}

\begin{figure}
    \includegraphics{example-image-b}
    \caption{Canadian Artic Classes and Ice type related to each of them. Source: Transport Canada (2017)}
\end{figure}

\begin{figure}
    \includegraphics{example-image-b}
    \caption{Shipping Safety Control Zones.}
\end{figure}


\end{document}

相关内容