我有一个无法解决的问题。
我将此模板用于我的论文。我无法在图表列表中设置子图表,因为我是 Latex 的新手。
https://github.com/ondes/Template-Latex-ITU-Thesis/blob/master/Template-Thesis/thesis_itu.cls
下面的代码是来自 cls 文件的代码。
\renewcommand\listoffigures{%
%\vspace*{\ChapterUstenBosluk} % This is not effective -
{\chapter*{\listfigurename}%
\vspace*{-18pt}%
\renewcommand{\ULdepth}{4pt}% Added using ulem package for \uline command
\renewcommand{\ULthickness}{1.5pt}% Added for underline tickness change which was 0.4pt
\if@Ingilizce\hfill\vspace*{0truecm}{\bf\uline{Page}}~\else~\hfill\vspace*{0truecm}{\bf\uline{Sayfa}}\fi}\\ % Instead of \underline{text}
%\hfill\vspace*{0.5truecm}{\bf\underline{\if@Ingilizce Page\else Sayfa\fi}}}
\let\orig@numberline\numberline
\@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
\renewcommand*{\numberline}[1]{%
\orig@numberline{\bf\figurename\ ##1}\hspace{-8pt}{\bf:}\hspace{4pt}}% Better spacing
\addcontentsline{toc}{part}{\bf{\protect\listfigurenameToC}}%
\setlength{\th@oldparskip}{\parskip}%
\setlength{\parskip}{\LoFparskip}%
\@starttoc{lof}%
\setlength{\parskip}{\th@oldparskip}%
\let\numberline\orig@numberline
}
这是我用来添加子图的代码。
\begin{figure}[h]
\begin{subfigure}{.5\textwidth}
\centering
% include first image
\includegraphics[width=.8\linewidth]{Figures2/rc_final5.jpg}
\caption{Patch panel}
\label{fig:sub-first}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include second image
\includegraphics[width=.8\linewidth]{Figures2/rc_final6.jpg}
\caption{Honeycomb ventilation gap}
\label{fig:sub-second}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include second image
\includegraphics[width=.8\linewidth]{Figures2/rc_final9.jpg}
\caption{I-profiles}
\label{fig:sub-second}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include second image
\includegraphics[width=.8\linewidth]{Figures2/rc_final11.jpg}
\caption{Power filter}
\label{fig:sub-second}
\end{subfigure}
\caption{Some details of RC prototype}
\label{fig:rc_details}
\end{figure}
这是 pdf 中的图像。
到目前为止,一切都很好。但图列表中的文字是混杂的。
你能帮助我吗?
答案1
用于 \nextsubcaption
子图的标题。
该命令\nextsubcaption
由 定义thesis_itu.cls
。
\begin{figure}[h]
\begin{subfigure}{.5\textwidth}
\centering
% include first image
\includegraphics[width=.8\linewidth]{example-image}
\nextsubcaption{Patch panel} % changed <<<<<<<<<<<<<<<<<<
\label{fig:sub-first}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include next image
\includegraphics[width=.8\linewidth]{example-image}
\nextsubcaption{Honeycomb ventilation gap} % changed <<<<<<<<<<<<<<<<<<
\label{fig:sub-second}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include next image
\includegraphics[width=.8\linewidth]{example-image}
\nextsubcaption{I-profiles} % changed <<<<<<<<<<<<<<<<<<
\label{fig:sub-second}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\centering
% include next image
\includegraphics[width=.8\linewidth]{example-image}
\nextsubcaption{Power filter} % changed <<<<<<<<<<<<<<<<<<
\label{fig:sub-second}
\end{subfigure}
\caption{Some details of RC prototype}
\label{fig:rc_details}
\end{figure}