我正在用 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}