目前我的 LoT 和 LoF 仅显示数字和简短标题,例如
2.1 Bathimety map.....1
2.2 Other stuff ......2
但我希望将它们列在 LoF 和 LoT 中,因为
Figure 2.1 Bathimetry map......1
Figure 2.2 Other stuff.........2
Table 1.1 Cool stuff...........3
我的代码需要改变什么(带有章节的报告类)?
\documentclass[hidelinks,12pt]{report}
\usepackage[paperheight=28cm,paperwidth=22cm,tmargin=25.4mm,bmargin=25mm,lmargin=38.1mm,rmargin=25.4mm,heightrounded]{geometry}
\usepackage{graphicx,siunitx,pdflscape}
\usepackage{hyperref,amsmath,amssymb,graphicx,wasysym,paralist,textcomp}
\usepackage[round]{natbib}
\usepackage[english]{babel}
\usepackage[babel]{csquotes}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{caption}
\usepackage{float}
\usepackage{etoolbox}
\usepackage{lineno}
\usepackage{indentfirst}
\usepackage[labelfont=bf]{caption}
%\renewcommand{\listoffigures}{\begingroup
%\tocsection
%\tocfile{\listfigurename}{lof}
%\endgroup}
%\renewcommand{\listoftables}{\begingroup
%\tocsection
%\tocfile{\listtablename}{lot}
%\endgroup}
\makeatletter
\patchcmd{\@caption}{\csname the#1\endcsname}{\csname fnum@#1\endcsname:}{}{}
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{4.5em}}
\let\l@table\l@figure
\makeatother
\begin{document}
\pagenumbering{Roman}
\tableofcontents
\newpage
\listoffigures
\listoftables
\clearpage
\newpage
\begin{figure}[!ht]
\centering
\makebox[\textwidth]{
\includegraphics[height=.5\textheight]{Map.png}}
\captionsetup{format=hang}
\caption[Bathymetry map ]{\textbf{Bathymetry}}
\label{fig.B1}
\end{figure}
\end{document}