当前的问题涉及上一个。
\documentclass[11pt,a4paper,oneside]{report}
\pagestyle{headings}
\usepackage{setspace}
\usepackage{array}
\usepackage{covington}
\usepackage[danish,english]{babel}
\usepackage{pslatex}
\usepackage{float}
\usepackage[demo]{graphicx}
\usepackage{titlesec}
\usepackage{amssymb}
\usepackage{typearea}
\usepackage[a4paper]{geometry}
\geometry{includefoot=false, heightrounded=true, top=4.5cm, bottom=6cm, left=4.7cm, right=4.7cm}
\usepackage[toc,page]{appendix}
\usepackage{longtable}
\usepackage{caption}
\newif\ifappendix % snippet appendice
\makeatletter
\def\LT@c@ption#1[#2]#3{%
\LT@makecaption#1\fnum@table{#3}%
\def\@tempa{#2}%
\ifx\@tempa\@empty\else
{\let\\\space
\addcontentsline{\ifappendix toc\else lot\fi}{table}{\protect\numberline{\thetable}{#2}}}%
\fi}
\makeatother
\usepackage{multirow}
\usepackage{morefloats}
\usepackage{booktabs}
\newcolumntype{R}{>{\raggedleft\arraybackslash}p{2cm}}
\usepackage[bottom,norule]{footmisc}
\setlength\belowcaptionskip{1\baselineskip}
\begin{document}
\tableofcontents
\addcontentsline{file}{sec_unit}{entry}
\addcontentsline{toc}{chapter}{\bibname}
\chapter{Lorem}
Lorem ipsum. Lorem ipsum. Lorem ipsum.
\begin{appendices}
\appendixtrue
\setcounter{table}{0}
\renewcommand*{\thetable}{A.\arabic{table}}
\renewcommand*{\tablename}{Appendix}
\begin{figure}[H]\centering
\includegraphics[scale=1]{pic1.jpg} \caption{Metonymy}.\label{fig:Metonymy}
\end{figure}
\begin{figure}[H]\centering
\includegraphics[scale=1]{pic2.jpg} \caption{Synonymy}.\label{fig:Synonymy}
\end{figure}
\end{appendices}
\end{document}
我的 MWE 输出一个附录,其中包含两个图,但没有附录标题。除了图名之外,我还想在页面顶部添加一个附录标题。下面这样的操作在这里不起作用,因为我已经有了图的标题。
\caption{Example\label{appendix: Example}}\
答案1
用于\chapter{A nice appendix}
获取附录标题。