图表清单

图表清单

我正在用 LaTex 写论文,论文格式要求每行都出现“图”字,并且加粗,左对齐的标题意味着标题应该在下一行对齐

IE

Figure 2.1: Test Problem 1 Test Problem 1 Test Problem 1
            Test Problem 1 ........................... 34
Figure 2.2: Test Problem 2 Test Problem 1 Test Problem 2
            Test Problem 2 ........................... 36

目前,我已经

2.1 Test Problem 1 Test Problem 1 Test Problem 1
Test Problem 1 ...................................... 34
2.2 Test Problem 2 Test Problem 1 Test Problem 2
Test Problem 1 ...................................... 34

梅威瑟:

\documentclass[12pt,a4paper,openany]{report}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage{amsmath,amsthm}
\usepackage{amssymb}
\usepackage{epsfig}
\usepackage[T1]{fontenc}
\usepackage{palatino}
\usepackage{caption}
\textwidth  5.8in \textheight 8.5 in \topmargin 0.0in \oddsidemargin
0.0in \evensidemargin 0.0in \setlength{\parindent}{12pt}
\pagestyle{plain}
\renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{ax}{Axiom}
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
\newtheorem*{notation}{Notation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addcontentsline{toc}{section}{Contents}{}
\tableofcontents
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\listoftables
{%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables%
}
\addcontentsline{toc}{section}{List of Tables}{}
%\renewcommand{\cftfignumwidth}{6em}
%\renewcommand{\cftfigpresnum}{Figure }

%\listoffigures
{%
\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures%
}
%\renewcommand{\cftfigpresnum}{Figure }
\addcontentsline{toc}{section}{List of Figures}{}
%\listoffigures
\newpage
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
 \include{Chap_1}
 \include{Chap_2}
 \include{Chap_3}
 \include{Chap_4}
 \include{Chap_5}
 \include{Chap_6}
% \include{Conclusions}
\appendix
 \chapter*{Appendix}
  \markboth{Appendix}{Appendix}
  \addcontentsline{toc}{chapter}{Appendix}
\begin{equation*}
 A_0=\frac{-1}{e^{m_2}-e^{m_1}} \quad , \quad  B_0=\frac{1}{e^{m_2}-e^{m_1}}
\end{equation*}
 \include{reference}
 \end{document}

答案1

使用tocloft如下面的 MWE 中所示的包(请注意,MWE 中的大多数代码与您陈述的问题无关)。

% lofprob.tex  SE 526765 Figure before number in LoF

\documentclass{report}
\usepackage{tocloft}
\renewcommand{\cftfigpresnum}{Figure } % put Figure before the number
\renewcommand{\cftfigaftersnum}{:}     % add colon after the number
\addtolength{\cftfignumwidth}{1cm}     % extra space for extended numbers


\begin{document}

\listoffigures

\begin{figure}
\centering
THIS IS A FIGURE
\caption{A long figure caption so we can see how it looks in the LoF.
         Is this really long enough?}
\end{figure}

\end{document}

相关内容