附錄中包含圖表

附錄中包含圖表

目前的問題涉及上一篇

\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}取得附錄標題。

相關內容