LaTex로 논문을 쓰고 있는데 논문 형식을 지정하려면 각 줄에 "그림"이라는 단어가 굵게 표시되어야 하며 왼쪽 맞춤 캡션은 캡션이 다음 줄에 정렬되어야 함을 의미합니다.
즉
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
MWE:
\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
아래 MWE에 표시된 대로 패키지를 사용하십시오 tocloft
(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}